Search code examples
accelerometer

Calibrating an accelerometer


I have a device which contains an accelerometer. I'm looking for calibrating my 3D accelerometer.

I'm proceeding as follows:

The first time, I put my device in a flat position (rest) and I obtained these values :

x = -0.02

y = -0.02

z = -1.02

I applied Pythagoras's theorem to calculate total acceleration : A = sqrt(x*x + y*y + z*z)

Normally, when I subtract -1 (9.8 m/s2) from A, it should give 0 m/s but in my case it gives me : 0.01, so can I consider that my accelerometer is calibrated with a litle error = 0.01 or should I subtract 0.01 from all my outputs data for each axes.

Thanks in advance


Solution

  • @Nadosh: enter image description hereYes, data acceleration is 3 bytes. x,y,z in order did you mean line this