Accelerometer output to tilt angle conversion?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Accelerometer output to tilt angle conversion?

跳至解决方案
1,513 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,075 次查看
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 项奖励
回复
2 回复数
1,076 次查看
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 项奖励
回复
1,075 次查看
Bobli
Contributor I

rocco,

 

I got it, thanks very much.

0 项奖励
回复