Timer/Relay for 100% shutdown of Arduino when not in use?

Hi! :slight_smile:

I'm a beginner at the Arduino MEGA, I've managed to make a decent code that works OK.

Now I want the Arduino to shut off (not sleepmode, 100% OFF) after let say 10 mins of non use.
So that there is no drain of the battery at all.

Then when I press a button, it shall reboot.
And as soon as anyone stop using the machine, the Arduino will shut down itself after a while.

So what do you think is the simplest way to make it turn off by itself?
Any example schematic somewhere?

Thanks

Sounds like a soft latch circuit.

Relay; connect 5V to common contact, normally open contact to arduino.
Push button from 5V to arduino.

Push the button,, arduino gets powered, arduino switched relay on and you can release the button.

Powering off is obvious.

Unikron:
Hi! :slight_smile:

I'm a beginner at the Arduino MEGA, I've managed to make a decent code that works OK.

Now I want the Arduino to shut off (not sleepmode, 100% OFF) after let say 10 mins of non use.
So that there is no drain of the battery at all.

Then when I press a button, it shall reboot.
And as soon as anyone stop using the machine, the Arduino will shut down itself after a while.

So what do you think is the simplest way to make it turn off by itself?
Any example schematic somewhere?

Thanks

Please tell us what "as soon as anyone stop using the machine", actually means.

Paul

I vote for this: