All-in-one Battery Controller
One day Stationeer will build stationary battery. It’s one of the moust important part in base building. And It’s OK if you have only one battery, but if you need ten?
This programm provide solution in large-skale management. Wile stable in almost all situations, it can work with any amount of different batteries.
At first, you need to build minimus setup.
– IC chip
– IC Housing
– Any battery that you want to use
– Cable Coils.
Now it works. But with minimum set it do almost nothing, so the second thing that you nees is a Main fetures.
If you connect small led display to your logic network, you can see your batteries charge in procent in 6-colors variations that depends on your current batteries charge. Note that you need to rename you display to
"LED Battery Display",
unless it won’t work.
Also, if you add a mod switch dial (use D0 pin for it), you can see you batteries charge in watts (set mod 2) neither procensts and and vice versa. Support limitless amount of displays.
In the current version I add consomtion/gain analayzer. It counts the charging difference, so now you can know your Power NET balance. Use a second display for It. Do not forget to change it’s name to
"LED Net Gain Display",
By default it displays a NET gain/loss. Use mod switch dial (D0 pin) to see time before full charge/discharge. Note that the time is shown in minutes, not in seconds.
If you connect solid fuel generator ito your logic network, it starts to work as reserv power source. By defult, it automaticly turns On when summary charge is less then 10%.
If you connect Dial to D1 pin , you can control the procent of energy that you solid generator need to sustain. Just set number and generator will work until it research x procent of charge. If you set 0, generator will never work and if you set 100, it will always work.
If you connect klaxon speaker, it will notify you if the power is criticaly low (less then 10%), so you don’t miss it.
If you connect a mod switch and set it to mod 0, the code will be executed until you set it to mod 1 or 2. While executed, It disables all related displays and batteries. In any case, the IC will continue to work on.
Usefull in some situations.
Thise code will integrate every Large/Small transformers that connected to logic network. That means that if you Large Transformer, it value will be set to 49990 watts (and 4990 for smaller one). This helps with networking and setting up power lines.
Power Save Mode. In the event that the battery charge falls below 10%, the script will enter a "Power Save Mode" and restrict the output value of all connected transformers to 1500 watts for larger models and 1000 watts for smaller ones. This is a self-defence algorithm that ensures the system remains operational.
in previous versions the Power Networking applys only one controlable unit. This solution has been rejected in a practical way.
If you found a bug or want to see more fetures, please report me in comments.
Revisions:
Old revisions of this mod are available below. Click the link to download.