Motion Detection MMA8451

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

Motion Detection MMA8451

1,195 次查看
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,072 次查看
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,072 次查看
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 项奖励
回复