MMA8452Q accelerometer

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

MMA8452Q accelerometer

2,362 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

2,011 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

2,011 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

2,010 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
%3CLINGO-SUB%20id%3D%22lingo-sub-612259%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMMA8452Q%20accelerometer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-612259%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20use%20MMA8452Q%20circuit%2C%20i%20used%20the%20AN4071%20application%20to%20configurate%20my%20accelerometer%2C%20(7.1%20example%20steps%20for%20configuring%20using%20transient%20detection)%3C%2FP%3E%3CP%3Ewhen%20the%20MMA8452Q%20accelerometer%20detect%20motion%2C%20my%20LED%20turn%20ON.%3C%2FP%3E%3CP%3Ei%20need%20to%20turn%20OFF%20Led%20after%2010%20seconds%2C%20which%20register%20should%20i%20configure%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-612259%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAccelerometers%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-612262%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MMA8452Q%20accelerometer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-612262%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Achref%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20am%20glad%20to%20help.%3C%2FP%3E%3CP%3EPlease%20try%20to%20download%20the%26nbsp%3B%3CA%20_jive_internal%3D%22true%22%20data-content-finding%3D%22Community%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fservlet%2FJiveServlet%2Fdownload%2F869578-1-398888%2FFRDM-KL25Z_MMA8451Q_TransientDetection.zip%22%20target%3D%22_blank%22%3EFRDM-KL25Z_MMA8451Q_TransientDetection.zip%3C%2FA%3E%20file%20attached%20to%20this%20response.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EDavid%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-612261%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MMA8452Q%20accelerometer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-612261%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20David%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%3CP%3ECould%20you%20send%20me%20again%20your%20application.%20there%20is%20no%20attached%20file%20in%20your%20response.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-612260%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MMA8452Q%20accelerometer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-612260%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Achref%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20writing.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EOnce%20you%20configure%20your%20accelerometer%20and%20set%20up%20the%20transient%20detection%2C%20I%20recommend%20%3CSTRONG%3Eusing%20a%20timer%20from%20your%20master%20device%3C%2FSTRONG%3E%20in%20order%20to%20turn%20off%20the%20corresponding%20LED%20after%2010%20seconds.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIn%20this%20case%2C%20I%20made%20a%20very%20simple%20project%20using%20the%20PIT%20(Periodic%20Interrupt%20Timer)%20from%20the%20KL25Z%20as%20a%20reference%20for%20your%20application.%20Please%20find%20it%20attached%20to%20this%20response.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20used%20CodeWarrior%20v10.6%20and%20the%20FRDM-KL25Z.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EPlease%20let%20me%20know%20if%20you%20have%20any%20further%20questions.%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EDavid%3C%2FP%3E%3C%2FLINGO-BODY%3E