Motion Detection MMA8451

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

Motion Detection MMA8451

1,191件の閲覧回数
luigi5hd
Contributor II

Goodmorning,

I've enabled the motion detection and now when my acceleration on the X-axis exceeds the threshold it works fine, but I want also that it continues to collect data while the device is moving at constant speed (acceleration = 0).

Does exist some embedded register to use the deceleration (breaking) as threshold for stop collecting data?

Thank you for you time.

Luigi

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,068件の閲覧回数
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Luigi,

The configurable threshold in the FF_MT_THS register is an absolute value and you can distinguish positive vs. negative using polarity flags (XHP, YHP and ZHP) in the FF_MT_SRC register.

pastedImage_2.png

pastedImage_3.png

I hope it helps.

Best regards,

Tomas

0 件の賞賛
返信

1,068件の閲覧回数
luigi5hd
Contributor II

Hi Tomas,

Oh sure, you're right, I'd forgotten these register's proprieties.

But I have a question, the acceleration's polarity meanings are, for instance for the X axe:

if XHE = 1 we have an  acceleration

if XHP = 1 we have a braking (deceleration)

And the polarity isn't correlated to the fact that I'm going forward or backward right?

Thank you in advance.

Luigi

0 件の賞賛
返信