Pages: [1]   Go Down
Author Topic: How to store values recieved onto the arduino?  (Read 678 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 1
Posts: 34
Nub
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Could some one show me a code example of how to store values recieved?
 Without using an SD card or other form of external memory?
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.arduino.cc/en/Reference/EEPROM
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1234477290/3#3
Logged

0
Offline Offline
Newbie
*
Karma: 1
Posts: 34
Nub
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sweet thank you! That helped a little lol  smiley-mr-green
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How many data do you want to store?
You can indeed use the eprom, as you'll see in the previous links, but you're limited in size.
Consult your arduino's specs.

Good luck!
Logged

0
Offline Offline
Newbie
*
Karma: 1
Posts: 34
Nub
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

at least 25 values, with each value being 4 intregers long, im almost positive the eeprom on the mega2560 can handle that
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 64
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The Arduino's built-in EEPROM library can only handle small values.  You might want to look at this extended library to make storing anything larger than a nibble easier:

http://www.arduino.cc/playground/Code/EEPROMWriteAnything
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 443
Posts: 23835
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What do the folks who create things like EEPROMWriteAnything have against putting a few comments in with the code? Like an explanation of the variables used at a minimum? I really dislike having to pore thru the code trying to decipher what it does and what the unnamed variables represent to be able to use it.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: