Harash driving detection

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

Harash driving detection

1,192 Views
anishkumar
Contributor I

How can I detect Huge Acceleration/Brake with MMA8653 accelerometer?

0 Kudos
1 Reply

1,023 Views
david_diaz
NXP Employee
NXP Employee

Hello Anish Kumar,

You could identify the acceleration changes using the data registers of the device.

Note that the MMA8653 device has embedded functionalities which might help detecting the events that you mentioned. Freefall is detected when the acceleration magnitude is less than the configured threshold.

A huge acceleration/brake will generate a ‘spike’ on the data register that can be identified as below:

pastedImage_1.png

You can use the example project bellow as a reference for your project:

MMA8652FC - Bare metal example project

 

I hope this information helps.

Best Regards,

David  

0 Kudos