Reset Arduino Uno.

Hello, how can I reset my arduino board with code order than doing it manually with the reset button?
Thanks.

joedrealguy:
Hello, how can I reset my arduino board with code order than doing it manually with the reset button?
Thanks.

You can unplug it and plug it back in? Are you talking about a software reset? The general consensus is that you if you have to do this, you're doing something wrong.

The proper way of performing a software reset is to enable the Watchdog Timer with a timeout that is slightly longer than it takes to get through the bootloader sequence and into setup() and disable it again in setup(). The Watchdog Timer will timeout forcing the MCU to reset. I'm not 100% sure about the needing to turn it off in setup() - I'm not sure if this is done for you by the bootloader or not, but if not you will need to turn it off in setup() as the first thing you do - you don't want it rebooting the MCU again before you get a chance to turn it off, do you...?