Go Down

Topic: Read serial data (a column of data) from SD card and store into an array for acc (Read 53 times) previous topic - next topic


Been trying a lot of codes and posts on the forum for my project and it still doesn't work. I have a .txt file that has data in the form
and so on.. approximately upto 5000 data with values ranging from -250 to +350..
I need to access each of this data to use in mathematical operation and thought saving them into a character array and then typecasting might help.
Initially tried the EEPROM angle but figured it can't store that much.. Can someone help me with the code to how can I store this many data in the Arduino ? Thanks in advance.


If you want to store 5000 integers in the memory of an Arduino, you need an Arduino board that has sufficient SRAM or EEPROM (at least 10k). Which Arduino do you have?

If you have an Arduino with insufficient memory, you have to redesign your mathematical stuff. Your mileage will vary depending on the algorithms needed. For a simple iteration (e.g. calculating the sum of the numbers), you can simply read each number from file and add to the sum instead of storing everything first in an array.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131