Go Down

Topic: What's the reset button for? (Read 563 times) previous topic - next topic

Bricoleur

I've used the arduino controller for many years and have never figured out what the reset button is for; never had to use it. What is it?

TchnclFl

When you push the reset button, the Atmega chip resets, causing the bootloader to run, and then the program loaded.  On older boards without the auto reset functionality, you have to push the reset button every time you want to upload a program (I prefer it actually :)).

It's also useful for restarting your program without having to remove power.

Bricoleur

Cool! I assume that the program in memory starts from line 1 and not where ever the program stopped?

Grumpy_Mike

#3
Feb 05, 2010, 09:38 am Last Edit: Feb 05, 2010, 09:39 am by Grumpy_Mike Reason: 1
Quote
I assume that the program in memory starts from line 1


It dose.

Quote
not where ever the program stopped?


It doesn't

Supposed you have a program that calibrated say ambient light levels when it started up, in the setUp() section. This code only ever runs either when you first plug it in or when you press the reset button.

Go Up