Go Down

Topic: How to store values recieved onto the arduino? (Read 907 times) previous topic - next topic

88

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?

Coding Badly

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

88

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

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!

88

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

James C4S

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
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

CrossRoads

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.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up