MMA8452Q accelerometer

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

MMA8452Q accelerometer

1,851 次查看
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.

标签 (1)
0 项奖励
回复
3 回复数

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

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

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