Motion Detection MMA8451

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

Motion Detection MMA8451

648 Views
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

Labels (1)
0 Kudos
2 Replies

525 Views
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 Kudos

525 Views
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 Kudos