Accelerometer output to tilt angle conversion?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Accelerometer output to tilt angle conversion?

ソリューションへジャンプ
992件の閲覧回数
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 解決策
554件の閲覧回数
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 返答(返信)
555件の閲覧回数
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 件の賞賛
返信
554件の閲覧回数
Bobli
Contributor I

rocco,

 

I got it, thanks very much.

0 件の賞賛
返信