Problems using two MMA8452Q simultaneously

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

Problems using two MMA8452Q simultaneously

1,238 次查看
clovismarcondes
Contributor I

Hi,

I´m trying to use two MMA8452Q simultaneously to check differents accelerations over the same body, and detect deformations while on movement. For this project I´m using an ARDUINO board for prototipation and after some succesful preliminary tests, after preparing a kit for a second phase tests the systems stop working. I already checked all the connections between and tested both accelerometers and everything is ok, but when I try to init the second accelerometer, no matter which one was the first, I got an error. The WHO_AM_I command for the second accelerometer is returning 0x01.

Thanks in advance, and sorry for english mistakes on the text above,

Clóvis

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

1,119 次查看
reyes
NXP TechSupport
NXP TechSupport

Hi Clóvis,

According to our last communication, the problem seems to be corrected by adding a call delay (100), correct?

Can you please confirm is this solved the problem?


Have a great day,
Jose Reyes

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,119 次查看
clovismarcondes
Contributor I

Hi Reyes,

You are right. I´ve tried to put the delay as a workaround for the problem and it has worked. I´m not sure about the cause but I tried this to avoid possible data overrun. I have to put a minimum delay (10ms) between consecutive reads to avoid similar problems.

Thanks a lot!

0 项奖励
回复