Calculating Tilt from Accelerometer

Jan 27, 2005 1 Replies

Hi,



I'm using a ADXL311 acceleromoter as a Tilt Sensor. The equations given to calculate the tilt on the x axis or Pitch is ASIN(Ax/1g) and the tilt on the y axis or Roll is ASIN(Ay/1g). g is acceleration due to gravity, Ax & Ay are the amplitudes of the analog voltages from x and y outputs. But I do not know what the A (presumabely amplitude of some sort) before SIN represents.



If anyone has any ideas I would be very grateful.



Thanks.



llienossor



ASIN means inverse sine, or arc sine, NOT A*SIN

e.g. SIN(angle) = Ay/1g

Therefore :-

angle = ASIN(Ay/1g)

----------------------------------------------------------------------- To reply to me directly: Replace privacy.net with: totalise DOT co DOT uk and replace me with gareth.harris

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required