For a project I want to put my arduino in sleep mode if nobody uses the controller for 10 minutes. The purpose is that the user would have to power it off and than on again to make it work again. I was wondering if the arduino will restart in sleepmode or in normal mode. I'm scared to try it and that my arduino doesn't wake up.
If I just put this in my code (with a condition when to start. Will my arduino reboot normally if I shut it down and then up?
Thanks for your answer. But I'm still have a doubt with wath you mean.
What do you mean with a full power cycle? Is switching of and on the power a full power cycle?
Pressing the reset button or removing power will get your arduino out of sleep and back in business - meaning it will try to run again whatever code is in there (execute the setup and the loop).
You don't take risks By trying to sleep your arduino and never be able to wake it up again.
Also when using the IDE to upload code through USB, it does also the right thing to prevent existing code from blocking uploading new code.