Loading...
Pages: [1]   Go Down
Author Topic: Keeping the Program in my Uno  (Read 105 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: 272
Posts: 25464
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
Edison Member
*
Karma: 43
Posts: 2491
"We're a proud service of the Lost Electricity Reclamation Agency"
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

Get the infamous "One Million Ohms" board at tINDIE.com: http://tinyurl.com/BuyMohms

Pages: [1]   Go Up
Print
 
Jump to: