I've been goofing around the internet trying to build my own flash light with a single 18650, with low voltage protection circuit. For now this circuit can already achieve following ideas:
- Standby at very low power: with T1_1 pin at 0 volt and T3_1 pin at Vcc
- Lit the power LED: Press the SW1, T1_2 goes low, T1_1 goes high
- Cutoff the whole circuit when Vcc drops below ~3.3v
- Lit the warning LED D2 if Vcc<3.3 w/ SW1 overiding protection circuit.
Now, I want to figure out how to shutdown this circuit. Currently SW1 is sort of both "turn on' and "override", but how do I turn off?
- If simply disconnect the Vcc it would mean you have to push SW1 every time reconnected and that's just one step too much.
- Right now, if the battery is charged, the SW1 would turn ON, but never OFF. This does not look like override to me.
I've tried multiple connection around T1 so far, and even thinking about using some caps to create some sort of histerisis so a single switch can act differently at different state. But still no success. So I'm hoping someone can help me here on:
- How to add a proper ON/OFF switch? (so when turned OFF, everthing goes back to low power standby state)
- How to add a proper override switch? (that lit the warning light but still enable T3)
p.s. Yes, I know the circuit probably seemed weird because it's too complicate to achieve some simple tasks. I'm doing my best to try to learn (doing googling) here. Please forgive me for any noob question, I really appreciate any opinions of all kind.