Accelerometer output to tilt angle conversion?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Accelerometer output to tilt angle conversion?

Jump to solution
935 Views
Bobli
Contributor I

Hi,

 

For accelerometers such as MMA7660, by reading registers {XOUT, YOUT, ZOUT} the digital output can be immediately obtained.

 

However, how to convert these outputs into tilt angles? Namely, what is the relationship between physical tilt angle against the gravity/perpendicular axis, and the sensor’s {XOUT, YOUT, ZOUT} readouts?

 

It should in general be non-linear. Then what is the formula for conversion? Could Freescale provide some help on this?

 

 

 

Bob

Labels (1)
0 Kudos
Reply
1 Solution
497 Views
rocco
Senior Contributor II

Hi Bob,

 

It is simple trig. Gravity is a vector, so all you need to do is to treat the three axes as vectors, sum them, and the resulting vector is straight down.

View solution in original post

0 Kudos
Reply
2 Replies
498 Views
rocco
Senior Contributor II

Hi Bob,

 

It is simple trig. Gravity is a vector, so all you need to do is to treat the three axes as vectors, sum them, and the resulting vector is straight down.

0 Kudos
Reply
497 Views
Bobli
Contributor I

rocco,

 

I got it, thanks very much.

0 Kudos
Reply