Arduino Projects DISCUSSION

How do I reset the Arduino programmatically?

Started by syedzainnasir How do I reset the Arduino programmatically?
1 replies 248 views 2 participants
Latest activity · 24 Feb 2017

How do I reset the Arduino programmatically?

syedzainnasir Arduino Projects Forum
#1
Hello,

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:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235780325/all

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]

Community replies 1

Re: How do I reset the Arduino programmatically?

#2
[quote=Timothy post_id=166 time=1487946522 user_id=79] Hello,

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:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235780325/all

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] [/quote]
Search within the forum instead. This was discussed here within the last few weeks.
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[/url]
TEP COMMUNITY