Soft power latch

Hi,

I recently started to tinker with Arduino and wanted to create a simple soft power latch button, though all schematics seemed a bit more complicated than it should be, at least at first.

Wouldn`t something like this work, just with one transistor and without capacitor?

Basically button turns on Arduino, that switches Pin Y On, that keeps VIN flow on. And later on when Pin X reads state High, it switches PinY after minor delay.

@casualguy2024
That circuit won't work.
As soon as you connect the 5V source, current will flow through the transistor base-emitter junction, the 200 ohm resistor and through the ESD protection diode of pin Y. The transistor will thus turn on and supply power to the Arduino. The Arduino may completely turn on or may cycle on and off until the power is removed.

Are you just experimenting or looking for a push button latching circuit. Most will use two MOSFETS a diode and a cap and resistors

Thank your for explanation.

I was looking for latching circuit, but didn`t get it why simplest versions used 2 mosfets instead of one. That would probably be the reason.

It seems Adafruit already offers PCB manufactured solutions (Push button Power Switch), that could be easier to implement.

Would be easier. That one uses 2 nand gates, a transistor and a P MOSFET
Here is the schematic

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.