I am designing my own circuit to switch on / off a 9V motor via solar panel. I am connecting 2 sets of 3.7V 18650 batteries in series, that means the circuit runs on 7.4V. I am also using a generic battery charger, so the battery protection part is solved.
My question is, how do I design a circuit (without a microcontroller) so that
- It switches ON from OFF state only if the voltage is above 7V
- It switches OFF from ON state only if the voltage is below 6V
- When it's switched ON due to (1) above, it'll hold it's ON state until (2) happens
- When it's switched OFF due to (2) above, it'll hold it's OFF state until (1) happens
When you combine (1) - (4), it means I want a kind of "latching" behavior where, when it's charging, it'll charge until at least 7V before switching on the motor, and when it's discharging (motor running,) it'll discharge until 6V at which point we'll stop the motor so that it can go back to charging mode again.
As mentioned earlier, I am not planning to use a microcontroller here. I have BJTs, MOSFETs and comparators (LM393) on hand, so I thought I would go try to go fully analog.