Maker Pro
Maker Pro

Calculating Tilt from Accelerometer

L

llienossor

Jan 1, 1970
0
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
 
G

Gareth

Jan 1, 1970
0
llienossor said:
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.

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

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

Therefore :-

angle = ASIN(Ay/1g)


--
 
Top