I tried to convert the raw values to g, so that I can do further analysis like FFT, time domain and time-frequency domain analysis.
I got confused on how to interpret the datasheet as attached.
I don't really know if it is advisable to use the accelerometer timestamp , that is the micros().
const int X_AXIS_PIN = A9; // Analog input pin for X-axis
const int Y_AXIS_PIN = A8; // Analog input pin for Y-axis
const int Z_AXIS_PIN = A7; // Analog input pin for Z-axis
void setup() {
Serial.begin(2000000); // Initialize serial communication
}
void loop() {
int xData, yData, zData;
// Read analog values from accelerometer
xData = analogRead(X_AXIS_PIN);
yData = analogRead(Y_AXIS_PIN);
zData = analogRead(Z_AXIS_PIN);
// Print the accelerometer data
//Serial.print("X: ");
Serial.print(micros());
Serial.print(",");
Serial.print(xData);
Serial.print(",");
Serial.print(yData);
Serial.print(",");
Serial.println(zData);
//delay(500); // Delay between readings
}
36984059,228,209,234
36984111,228,209,233
36984164,228,209,234
36984216,228,209,234
36984268,228,209,233
36984321,228,209,233
36984373,228,209,234
36984425,228,209,233
36984478,228,209,234
36984530,228,209,233
36984582,228,208,233



