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