How you collect such data is dependent on 4 things; how quickly do you want the data sampled, how many consecutive data points are needed, do you want 10 bits per sample or will less (is quicker) suffice and can you have a PC attached while recording the data.rmgard91:
Athnetix:Would you be willing to share your code for how you collected the acceleration data? I am struggling with doing more than just printing the values on an LCD. I want to be able to graph the information just as you all did below.
Thanks!
The simplest but slowest thing to do is to analogRead(A?) and the print(value) to the serial port. An analogRead will take 120-130 usec and a print of a single character a tad longer (1000 usec @ 9600 baud). This could be read by your PC or a datalogger. Then again perhaps you have a digital accelerometer and don’t need to do the analogRead part.
Alternately you could sample, store and save the data and “print it” only upon later command, after the test. That means you can loop faster but you have limited memory to save data … unless you add some.
What are your needs ? What accelerometer ?