MMA8452Q accelerometer

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

MMA8452Q accelerometer

984 Views
achrefkok
Contributor II

Hello,

I use MMA8452Q circuit, i used the AN4071 application to configurate my accelerometer, (7.1 example steps for configuring using transient detection)

when the MMA8452Q accelerometer detect motion, my LED turn ON.

i need to turn OFF Led after 10 seconds, which register should i configure ? 

Thank You.

Labels (1)
0 Kudos
3 Replies

633 Views
david_diaz
NXP Employee
NXP Employee

Hello Achref,

Thank you very much for writing.

Once you configure your accelerometer and set up the transient detection, I recommend using a timer from your master device in order to turn off the corresponding LED after 10 seconds.

In this case, I made a very simple project using the PIT (Periodic Interrupt Timer) from the KL25Z as a reference for your application. Please find it attached to this response.

I used CodeWarrior v10.6 and the FRDM-KL25Z.

 

Please let me know if you have any further questions.

Regards,

David

0 Kudos

633 Views
achrefkok
Contributor II

Hello David,

Thank you for your reply.

Could you send me again your application. there is no attached file in your response.

Regards,

0 Kudos

633 Views
david_diaz
NXP Employee
NXP Employee

Hello Achref,

I am glad to help.

Please try to download the FRDM-KL25Z_MMA8451Q_TransientDetection.zip file attached to this response.

Regards,

David

0 Kudos