Latching Circuit/ Auto off


I'm working on a project that will use a membrane keypad to control all functions of the project.

I need a latching circuit to control power. To turn power on, a button on the keypad needs to be pushed. The circuit needs to be turned off by using a pin on the Arduino. The Arduino is powered by 5V from a boosted 3.7V Lipo battery. Ideally the latched circuit can tolerate 1 amp.

I came across this circuit, Is this circuit suitable? I will need to buy in these parts especially if need be.

It'll be great if anyone can offer some advice on this. I'm very new to circuits.


There are many variation of the power button design you shared.

A nice explanation of "how they work" is done here: EEVblog #262 – World’s Simplest Soft Latching Power Switch Circuit – EEVblog

Though, he does not share much about using a signal to turn it off.

Simplest one I know of:

For me personally, it's just simpler to buy one of these. Pololu Pushbutton Power Switch SV (old version)

It meets your requirements since it has a logic level shutoff pin.

Have you considered using a standalone atmega328 chip (which you can get ready-assembled on a board with the crystal if you want) and running it directly from 3.7V? Then you wouldn't need either the power supply voltage booster or the power supply switch, because you can put the chip in power-down mode to turn it off, and wake it up again when certain of the membrane keys are pressed.

Two CMOS NOR gates make a flip-flop to control a p-channel MOSFET power switch.
A push button and pull-down resistor form the turn-on circuit, and the load
can pull the other input high to switch it off again. The supply voltage (and MOSFET)
is assumed logic-level.

Thanks for your responses.

I am actually using a standalone Atmega2560 for this circuit.

MarkT: Are you able to provide a circuit example of this setup? It would be very much appreciated.


What is the reason that you don't run the atmega2560 directly from the 3.7V supply? Do you need the 5V to power something else?


You're completely correct. I didn't think that i could power it by 3.7V until i checked out the datasheet more thoroughly. Thanks!