Hi, guys !
I made this beautiful schematics (see the attached pdf) for a 12V UPS control board that I will use to power a Raspberry Pi server. And I have a problem which I don't know how to solve.
Let me describe a little the circuit. Starting from the top, from left to right... is the circuit for the power LED, made in such a way that it has constant brightness and only lights up from a certain voltage level up (it shows that we have valid voltage ). Then the 13.7V stabilizer circuit for charging the battery. Then, above, the mosfet switch for the battery status display, and below it, a level detector that gives the Warning signal when the battery voltage drops below a certain level. In the lower right is the flip-flop that controls the ON/OFF mosfet switch for the main output voltage. Then to the left, M4/M5 transforms 3.3V into 12V so that the Raspberry can reset the flip-flop and cut its own supply voltage. The 2 comparators on the left switch to logic 1 if the battery voltage drops below the minimum allowed threshold, in this way U3b signals to the Raspberry that it is time to shut down, through the lower circuit, with M2 pulling a pin to ground. and U3a, cuts the supply voltage of the battery status display... and in this way there is no consumer to draw from the battery if it is already empty. I put 2 comparators because one has lower hysteresis and immediately turns on the display when the mains voltage returns, and the other one turns on the Raspberry again after the battery has been half charged. On the far left is the 5V reference and after it is the battery voltage divider, which has a circuit with Q2 that quickly charges the capacitor C8 at start-up so that those comparators do not think that the battery is empty and go to logic 1, signaling shutdown.
Now, the damn problem I can't get rid of, is the circuit with M3 from the output of U3b. This circuit, when U3b goes from 1 to 0, gives a short positive pulse to the flip-flop and switches it to logic 1, turning on the power supply to the devices connected to the UPS. The problem is that, if the voltage battery or the line voltage is swiched off, the voltage on the divider drops and the comparator switches to 1, and then, when we switch on the supply voltage, it immediately switches to zero, which causes the circuit with M3 to give an unwanted starting impulse.
I could make a kind of "Enable" to the circuit with M3, which would inhibit the start pulse... but I don't have any signal to control it. Because, I could put a resistance to charge a capacitor gradually and make a circuit like the Warning circuit that gives 1 or 0 when the voltage exceeds a certain threshold, but the problem is that on the second start, the capacitor is already loaded and the circuit becomes useless...
Do you have any idea how I can solve it, because it drove me crazy...?
I don't want solutions that will significantly change my scheme, with a microcontroller or something else, nor make the control circuit consume more than 500uA.


I made this beautiful schematics (see the attached pdf) for a 12V UPS control board that I will use to power a Raspberry Pi server. And I have a problem which I don't know how to solve.
Let me describe a little the circuit. Starting from the top, from left to right... is the circuit for the power LED, made in such a way that it has constant brightness and only lights up from a certain voltage level up (it shows that we have valid voltage ). Then the 13.7V stabilizer circuit for charging the battery. Then, above, the mosfet switch for the battery status display, and below it, a level detector that gives the Warning signal when the battery voltage drops below a certain level. In the lower right is the flip-flop that controls the ON/OFF mosfet switch for the main output voltage. Then to the left, M4/M5 transforms 3.3V into 12V so that the Raspberry can reset the flip-flop and cut its own supply voltage. The 2 comparators on the left switch to logic 1 if the battery voltage drops below the minimum allowed threshold, in this way U3b signals to the Raspberry that it is time to shut down, through the lower circuit, with M2 pulling a pin to ground. and U3a, cuts the supply voltage of the battery status display... and in this way there is no consumer to draw from the battery if it is already empty. I put 2 comparators because one has lower hysteresis and immediately turns on the display when the mains voltage returns, and the other one turns on the Raspberry again after the battery has been half charged. On the far left is the 5V reference and after it is the battery voltage divider, which has a circuit with Q2 that quickly charges the capacitor C8 at start-up so that those comparators do not think that the battery is empty and go to logic 1, signaling shutdown.
Now, the damn problem I can't get rid of, is the circuit with M3 from the output of U3b. This circuit, when U3b goes from 1 to 0, gives a short positive pulse to the flip-flop and switches it to logic 1, turning on the power supply to the devices connected to the UPS. The problem is that, if the voltage battery or the line voltage is swiched off, the voltage on the divider drops and the comparator switches to 1, and then, when we switch on the supply voltage, it immediately switches to zero, which causes the circuit with M3 to give an unwanted starting impulse.
I could make a kind of "Enable" to the circuit with M3, which would inhibit the start pulse... but I don't have any signal to control it. Because, I could put a resistance to charge a capacitor gradually and make a circuit like the Warning circuit that gives 1 or 0 when the voltage exceeds a certain threshold, but the problem is that on the second start, the capacitor is already loaded and the circuit becomes useless...
Do you have any idea how I can solve it, because it drove me crazy...?
I don't want solutions that will significantly change my scheme, with a microcontroller or something else, nor make the control circuit consume more than 500uA.


Attachments
-
204.5 KB Views: 36