Pages: [1]   Go Down
Author Topic: What's the reset button for?  (Read 523 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 7
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

B0100111001000011, USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1503
I'm confused.  Wait, maybe not..
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley).

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 7
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 604
Posts: 33439
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: February 05, 2010, 03:39:44 am by Grumpy_Mike » Logged

Pages: [1]   Go Up
Jump to: