MMA8652, problem with freefall/motion flag reading. Desperately need help!

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

MMA8652, problem with freefall/motion flag reading. Desperately need help!

1,253件の閲覧回数
samkuliev
Contributor I

Hello,
I am using MMA8652FC accelerometer in on of my developments and desperately need help to solve the following problem as I am way behind schedule because of this.

Regardless of the setting of "OAE" and "ELE" in FF_MT_CFG Reg:0x15 and values in 0x017 and 0x018, bit "EA" in FF_MT_SRC 0x016 is getting locked with "Z" axis up. Entire register is acting more like Portrait/Landscape at 0x10.

My intentions are simply to read the motion bit in 0x16 and activate, or deactivate the light. 
What am I doing wrong?

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

857件の閲覧回数
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Sam,

Please try using the embedded transient detection function that triggers an interrupt when any of the enabled axes has exceeded a set acceleration threshold disregarding the static acceleration. So the data that is compared to the threshold to be exceeded is high-pass filtered data. For more info, please refer to the AN4071.

Best regards,

Tomas

0 件の賞賛
返信