Is it possible to reset the Arduino via software in such a way that the Arduino thinks it's being powered on for the first time?
I Googled before coming to the forums and found this:
But, the thread is a couple years old, and I don't have enough technical knowledge to understand whether doing it this way is safe to use. Any advice?
[code]
void(* resetFunc) (void) = 0; //declare reset function @ address 0
...
resetFunc(); //call reset[/code]
I think PaulS, Awol, or Nick Gammon had the solution.
Read the data sheet too - power on reset, hardware reset, software reset, not all do quite the same thing; but may end up doing what you need.
Recommended:
[url=http://www.theengineeringprojects.com/2015/11/reset-arduino-programmatically.html]How to Reset Arduino Programmatically