I had an idea for a latching power circuit, however I thought I’d come onto the forum to see whether anyone could tell me whether the concept works before I commit to parts. Or maybe someone has a better idea.
Requirements:
Press a pushbutton. Latches power.
Microcontroller turns on and stays on until it wishes to turn off.
Unlatches power.
My idea is shown below. DISCLAIMER! I know that you need to use resistors with transistors. I didn’t include them because its still theoretical at the moment.
Bonus marks! : Is it possible for the push button to also latch power to the SR flip flop by connecting Q and flipflop’s +? This would help me save even more power!
What sort of transistor should I be using, considering it is possible that additionally attached loads could draw large amounts of current? (darlington pair, mosfet?)
Behavior of this circuit will depend on how well Q1 saturates since the Arduino will be floating at the Vce drop.
In any case, you don’t need the latch: the Arduino can do that itself. I would try a PNP transistor/FET at the Arduino Vcc with a momentary switch from base to ground (through a limiting resistor) and tie a digital output to the switch.
Push switch, transistor turns on and Arduino also pulls base to ground. Release switch, Arduino is still pulling it to ground and stays powered up until it decides to turn itself off.
Yes, this is for a battery powered circuit. However, as my goal is not just to switch the arduino but also to switch other devices, I think I’ll go with rrpilots suggestion.
Unless you guys think it might be more worthwhile to switch other devices using transistors on arduino’s outputs?