# Data Storage on Arduino

**URL:** <https://forum.arduino.cc/t/data-storage-on-arduino/660376>\
**Category:** General Guidance\
**Created:** [June 12, 2020, 3:04pm UTC](https://forum.arduino.cc/t/data-storage-on-arduino/660376 "2020-06-12T15:04:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bronco9588](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/bronco9588/32/1126705_2.png) [@bronco9588](https://forum.arduino.cc/u/bronco9588)\
**Post date:** [June 12, 2020, 3:04pm UTC](https://forum.arduino.cc/t/data-storage-on-arduino/660376/1 "2020-06-12T15:04:05Z")

</div>

Brief Description: I would like to perform drop testing on an object and collect high frequency yet short duration acceleration data of the of the dropped object to measure impulse and deflection.

More Description: Drop test rig had a max drop height of 8.5 ft with a free fall time of approximately .75 seconds. I am predicting that I need to log 1.5 seconds of acceleration data (.75 seconds of free fall and .75 seconds of impact data).

Sensor: Looking at the ADXL345 accelerometer with +/- 16g logging capability at 3.2 kHz. The accelerometer logs 13-bits of acceleration data on 6 channels (+x, -x, +y, -y, +z, -z). Uses SPI or I2C interface. This also has a free fall interrupt. I am open to different accelerometers.

Data: While it logs 13-bits of data, I am assuming that data storage in the arduino is best done by bytes, therefore 16-bits per sample. Is this a fair assumption? Therefore, I am calculating 460.8 kb of data, or 57.6 kB (3200 samples_16bits_6 channels\*1.5 seconds).

Data Export: I have done some work with SD write that stored data on an SD card at 1 second intervals. I seriously doubt that I could store each sample on the card.

Data Storage: Can this be stored in onboard memory and then exported to the SD card (or read via USB)? If using USB, I don't want to have a computed connected for the drop. What type of memory can be utilized (EEPROM vs. SRAM vs FLASH)?

Board: I think this is beyond the memory capability of the UNO. Is the memory large enough on the Mega for this application?

Thanks!

---

<div class="post-metadata">

**Author:** ![wildbill](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wildbill/32/1126438_2.png) [@wildbill](https://forum.arduino.cc/u/wildbill)\
**Post date:** [June 12, 2020, 3:23pm UTC](https://forum.arduino.cc/t/data-storage-on-arduino/660376/2 "2020-06-12T15:23:43Z")

</div>

Mega has nowhere near enough RAM. I doubt it could keep up with sampling at that rate either.

Maybe try a Teensy 4.0, or one of the new nano 33 range. The latter seemed a bit flaky when I used one in January, hopefully better by now.

---

<div class="post-metadata">

**Author:** ![bronco9588](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/bronco9588/32/1126705_2.png) [@bronco9588](https://forum.arduino.cc/u/bronco9588)\
**Post date:** [June 15, 2020, 2:44pm UTC](https://forum.arduino.cc/t/data-storage-on-arduino/660376/3 "2020-06-15T14:44:30Z")

</div>

Teensy 4.1 looks great with expandable memory and SD card.

Battery attachment options would be nice.

Anybody know of tutorials on an array of data stored on the RAM and exported to SD?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 7:15pm UTC](https://forum.arduino.cc/t/data-storage-on-arduino/660376/4 "2021-05-05T19:15:26Z")

</div>

Closed on May 5, 2021, 7:15pm UTC


