is it possible to reset the board from software? preferably without tying a I/O pin to the Reset pin.
I haven't found anything online yet.
Thanks in advance,
~Travis
is it possible to reset the board from software? preferably without tying a I/O pin to the Reset pin.
I haven't found anything online yet.
Thanks in advance,
~Travis
This query seems to have arisen a few times lately.
Why do you want to reset the Arduino from software ?
Your best bet is to write a function that resets everything the way you want it and call it from setup() and from wherever you want to reset.
(deleted)
If you need to reset the board/circuit, send an output to an external circuit that power cycles the board.
Or, use a watch dog circuit.
But, you should never have to do this.
Why do you need to do this?
Don't believe everything you read. As long as you subtract to compare times, millis() overflow/wrap-around will not affect you and certainly does not cause a "hang".
The wdt reset is definitely the way to go if you want a software reset - you could also store parameters in the eeprom on the chip to remember what state it's in, instead of the SD card. I hate SD cards, but maybe not everyone does.
Trying an io pin to reset is specifically warned against in the datasheet
DrAzzy:
Trying an io pin to reset is specifically warned against in the datasheet
Where?
You don't reset the board - you write a sketch that correctly handles whatever condition you want to be causing a reset.
aarg:
Where?
Not the datasheet but close enough...
http://atmel.force.com/support/articles/en_US/FAQ/Software-Reset
I swear I've read that in a datasheet. Maybe it was for some other megaAVR or tinyAVR line. That's certainly the first time I've seen Atmel specifically state that the pin got tristated before the reset was finished, not that I couldn't have inferred same.
DrAzzy:
I swear I've read that in a datasheet.
It is strongly implied but not explicitly stated.
In any case, testing by various people has shown that using an I/O pin directly connected to RESET is unreliable.