Barotrauma

Barotrauma

Not enough ratings
2in1 AutoBattery Buffer Backup
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
408.540 KB
8 Mar, 2024 @ 3:16am
8 Mar, 2024 @ 4:00pm
2 Change Notes ( view )

Subscribe to download
2in1 AutoBattery Buffer Backup

Description
2-in-1 Automated Surge Protector Buffer Backup Battery (95% capacity) integrated with adjustable overvolt switch that works with/without A.R.C, featured in the Hourglass. It charges 10% on idle if <95% capacity and discharges when > 95% by hot swapping charging dock (total 400w) to battery from power grid. The 400w charging dock is within a 1000w relay alongside 1000w oxygen generator hence no power spike/drop (constant 1000w draw) whenever hot swapping it to battery/power grid. Battery will try to stay close to 95% to ensure enough capacity for backup power and not being completely full to allow battery buffer to work. When reactor Power < Load (whenever load spikes and power is catching up or when reactor is out, charge rate will always be at 0% preventing input feedback loop and ensure no wasted charging load.
  • It only charges 10% at idle when charge is below 95%, current BATTERY_RECHARGE_RATE is 0 (idle state) and when power >= load
  • Oscillator frequency can be reduced to extend recharge time when load drops, but found value of 3 to work best since it's somehow mostly in sync to instantly adjusts charge_rate while other numbers tends to have a very short delay (you will see a very short sudden drop in graph instead of smoother lines).
  • It charges at 10% on idle since having higher values will reduce battery buffer capability so the lowest value 10% is used to still have 90% of buffer. However 10% may be too slow to charge the battery when on low charge thereby a fast charge override switch is also added to the system (tho it will disable battery buffer in its mode)
  • Make sure fast charge switch disables battery output otherwise oscillations feedback loop may occur.
BATTERY_RECHARGE_RATE = REACTOR_POWER - (LOAD * OVERVOLT_MULT) + (CHARGE_OUT / 100 * MAX_CHARGE_RATE * BATTERY_COUNT) / (MAX_RECHARGE_RATE * BATTERY_COUNT / 100) - ([OSCILLATOR PULSE, FREQUENCY=3] * 10) {CLAMP [0,100]} -> [Signal Check SET_OUTPUT, FALSE OUTPUT = 10] [Signal Check TARGET 0, SIGNAL_IN ] = 95 > CHARGE [AND] POWER >= (LOAD - (CHARGE_OUT / 100 * MAX_CHARGE_RATE * BATTERY_COUNT) ) [AND] 10 > BATTERY_RECHARGE_RATE Charging Dock Battery Output Relay SET_STATE = CHARGE > 95 Charging Dock Power Grid Output Relay SET_STATE = [NOT] CHARGE > 95 [Charging Dock Battery Output Relay] -> [CHARGING DOCK RELAY] OXYGEN_GEN -> [1000w RELAY] <- [Charging Dock Power Grid Output Relay] -> [CHARGING DOCK RELAY] Fast charge 100% Switch: Signal Check INPUT: SWITCH OUTPUT: BATTERY_RECHARGE_RATE Circuit OUTPUT FALSE : 100 TARGET = 0