autopower-off for arduino
To power-on hit the button on the left-side after that to maintain power, change the state of the logic source . An arduino pin is simulated in circuit by a logic source on the right-side of the circuit.
When running time in the program is elapsed (using millis() function) the MCU put the output pin in "LOW" state (in this case by changing the logic source from HIGH to LOW), this turns off the power.
The leds act as load in this simulation.
I tested on a breadboard with an Arduino Nano and it is functioning very well. Have fun!