Problems using two MMA8452Q simultaneously

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problems using two MMA8452Q simultaneously

1,240件の閲覧回数
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,121件の閲覧回数
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,121件の閲覧回数
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 件の賞賛
返信