I am trying to use an ADXL345 to measure vibration, utilizing I2C and ADXL libraries along with SimpleTimer. I've verified that the ADXL345 is working properly, reading only the Z axis. My goal was to read every 50 milliseconds and input into an array that would hold the vibration waveform.
This code does NOT work;
AZ[k] = accel.getAccelerationZ(); k = k + 1;
Is there a way to store readings in an array?
Also, any way to search these forums for similar questions?