Problems using two MMA8452Q simultaneously

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

Problems using two MMA8452Q simultaneously

586 Views
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

Labels (1)
0 Kudos
2 Replies

467 Views
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 Kudos

467 Views
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 Kudos