Accelerometer orientation detection

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

Accelerometer orientation detection

跳至解决方案
1,324 次查看
bergo
Contributor III

Hello Freescalers,

I'm using MMA8453q accelerometer in an embedded project,

I would like to know when the device is facing down (Z axis facing down),

After reading the relevant application note (AN4068) I'm still in the dark about this issue, and was hoping I could get some help here.

Just reading positive acceleration on Z axis is not enough (positive Z axis -> g force when device is upside down), as this can be happening when device is on it's side and in a car (for example).

Thanks a lot in advance,

标记 (1)
0 项奖励
1 解答
1,118 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Bergo,


Accelerometers generally measure both gravity and linear acceleration. Advanced accelerometers usually use either a low-pass filter or a debounce counter to filter out fast transitions.

The MMA8453Q is a smart accelerometer that uses the debounce counter to eliminate the effects of high frequency motion for orientation detection. Chapter 3.6.2 in the AN4068 describes it in detail.

Note that the MMA8453Q has a fixed back/front trip angle (±75°). Only the MMA8451Q allows to choose between four different trip angles.


Regards,

Tomas

在原帖中查看解决方案

0 项奖励
1 回复
1,119 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Bergo,


Accelerometers generally measure both gravity and linear acceleration. Advanced accelerometers usually use either a low-pass filter or a debounce counter to filter out fast transitions.

The MMA8453Q is a smart accelerometer that uses the debounce counter to eliminate the effects of high frequency motion for orientation detection. Chapter 3.6.2 in the AN4068 describes it in detail.

Note that the MMA8453Q has a fixed back/front trip angle (±75°). Only the MMA8451Q allows to choose between four different trip angles.


Regards,

Tomas

0 项奖励