Pages: [1]   Go Down
Author Topic: Arduino using Flash and/or EEPROM storage as variables  (Read 2005 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

I am currently working on data logging some GPS data from a high altitude weather balloon.  I am storing:

- altitude
- heading
- velocity

I am looking to store this data at up to once a second (approximately 6000 data points).  I want to then use this data for some prediction calculations, and I haven't found any information on using the stored in non-volatile memory data and performing comparisons/math with it.  I need to do some interpolating between the data points mainly.  I am looking to start at around 400 data points and increase from there.  Is this possible using the EEPROM or flash memory?  I know I can store it, I just want to know if I will be able to interpolate it (and if it is relatively fast).

I can also use any Arduino board (although I currently have an Uno).

Thanks,

Travis
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13739
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


The UNO has build in EEPROM of 512 bytes so you should use an external EEPROM. I2C is quite easy to use and you will have 32K of memory.

 check - http://arduino.cc/playground/Main/LibraryForI2CEEPROM
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


The UNO has build in EEPROM of 512 bytes so you should use an external EEPROM. I2C is quite easy to use and you will have 32K of memory.

 check - http://arduino.cc/playground/Main/LibraryForI2CEEPROM

Actually:  EEPROM 1 KB (ATmega328)

Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13739
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

oops!   lefty you're right smiley-wink

Still to small to hold 6000 datapoints. Except if measured values are quite similar one could use runlength compression. So instead of an array with all values:

10 10 10 10 10 10 10 11 11 11 11 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12
10 6 11 4 12 15  (value count) pairs

Rob
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: