Accelerometer orientation detection

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

Accelerometer orientation detection

Jump to solution
1,259 Views
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,

Tags (1)
0 Kudos
1 Solution
1,053 Views
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

View solution in original post

0 Kudos
1 Reply
1,054 Views
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 Kudos