Storing Acceleration Data

I apologize if this is a really easy question, but I couldn't find much from searching. (or at least not much that I thought looked useful)

I'm incredibly new to this, but I think I can manage to figure out the basics. I want to use the Arduino is to just store data from an accelerometer. I have most of what is seen in this setup:

The main thing I need is for it to work without being plugged in to anything. I can figure out how to wire up a battery pack, but I'm unsure of how to store data on a memory chip instead of having it read directly to a computer.

Also, just some general questions to anyone who has done some wireless stuff before:
What type of battery would you recommend using and how long would it last?
I realize this would depend on the memory card, but how much data could be stored? I'm essentially just wondering how much memory about 30 seconds of 3-axis acceleration data would take up.

Thank you very much to anyone who can help :slight_smile:

The data could be shoved into the EEPROM of the Arduino itself. Since the ADXL330 is ten bits per channel, you will need at least four bytes per sample to store them at full resolution (four bytes is 32 bits). If you sample ten times a second, then an ATmega328 could store about 25 seconds worth of data.

If you sample more often, memory will fill up faster. If you need to sample a longer timespan, memory will fill up. There are external EEPROM packages which are quite easy to use with minimal support. They come in various capacities but are still in the kilobytes range.

There is also an SD card option (like Adafruit's WaveShield), but the programming is fairly complicated to get into. The major wins for that approach is that it becomes super-easy to get huge data onto the PC: eject card, insert card into PC, browse one or more data files.

Lastly, before you go too far with logging acceleration data: you won't get anywhere near the time or accuracy required to be able to "dead-reckon" or figure out the position of the object from its acceleration profile. You'll get a rough estimate, at best. These are noisy little sensors.