Pages: [1]   Go Down
Author Topic: Keeping the Program in my Uno  (Read 208 times)
0 Members and 1 Guest are viewing this topic.
Tulsa USA
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm just getting started using Arduino.

I upload my program to the board and it runs. But if the board loses power the program is gone next time I supply power. How can I keep the program on the Uno and be able to turn it off and on? Or do I need to keep power to the board so that it is always 'on'? If so how much current would the Uno typically draw if the program were in standby mode and not really doing anything?
Logged

Chris H

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

Quote
But if the board loses power the program is gone next time I supply power
Are you sure? That is not how the arduino works.

It retains the program until you replace it, whether it is powered or not.
Logged

Tulsa USA
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Are you sure? That is not how the arduino works.

It retains the program until you replace it, whether it is powered or not.

Hmmm...

You're right. It does still work after a power loss. That's going to make things a whole lot easier.

Thanks for the prompt help.
Logged

Chris H

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4094
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just to expand a bit in case you were not aware, the program is stored in flash memory, like in a USB flash drive, SD flash memory card, etc. -- no power required once it's stored. The datasheet says the data will be retained for 20 years at 85°C or for 100 years at 25°C.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Pages: [1]   Go Up
Jump to: