Main Content

This little circuit allows your microcontroller to cut the power off. To turn the circuit on press the button. To turn it off drive the “to microcontroller” signal high using whichever condition you like. For battery applications you might want to have a voltage reading on another pin (a voltage divider will do the job) and drive the pin high when a certain threshold has been reached.”

Link to article