i am using adxl312 sensor to measure vehicle vibration. i tried by calculating resultant (sqrt(x2+y2+z2) but that gives wrong ansewer. sensor position not fix.
please find the attached code and output of accelerometer sensor with and without vibration
Are you doing any initial calibration on the part to remove errors such as initial offset?
Retrieving data ...