Open misch2 opened 4 months ago
For example this step down https://www.laskakit.cz/step-down-menic-s-xl4016e1/ should handle up to 8A and convert 24V to anything between 2V - 22V.
Alwo with 24V / 16.8 V / 12V combo there's no need for a MOSFET to prevent load sharing: when powered the D2 diode has always 24V and is therefore reverse-biased. Only when the input power drops below the battery voltage the D2 will get foward-biased and will start to conduct.
RELAY1: test or calibrate the UPS (force disconnect the input)
RELAY2: disconect the output. This might be a bad idea, possibly do not even use it.
Q4: disconnect the CC/CV buck converter. And as D2 is normally reverse-biased the batteries should last long because they won't be permanently being charged or discharged. MOSFET is better than relay here because it's going to turn on and off quite often and a realy might be noisy.
Updated schematic: It's still missing a lot of circuitry (ESP32, relay drivers, current/voltage sensors etc.) but in principle it should work. Time to test it.
⚠️ Don't forget that IRF5210 (and almost any other MOSFET) has |Vgs(max)| < 20V.
Simulation for controlling the IRF5210 using 3.3V source:
This should be within a safe Vgs range. For 3V3 on input it produces -12V as Vgs.
⚠️ CC/CV buck converter has a separate GND on IN vs OUT. There's a shunt resistor between them and it must not be clamped otherwise the CC won't work. Separate GND1 and GND2 must be used there!
Good point on CCCV modules with isolated ground: https://forum.arduino.cc/t/using-constant-current-buck-converter-with-common-ground/861109/4
Because the V1 works but for small currents only and the V2 failed, I'm considering a new approach:
This would also produce smaller currents compatible with INA219 and with narrower PCB traces.
Rough idea: