Problems using two MMA8452Q simultaneously

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

Problems using two MMA8452Q simultaneously

1,622 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

1,503 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

1,503 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
%3CLINGO-SUB%20id%3D%22lingo-sub-456910%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EProblems%20using%20two%20MMA8452Q%20simultaneously%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-456910%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%C2%B4m%20trying%20to%20use%20two%20MMA8452Q%20simultaneously%20to%20check%20differents%20accelerations%20over%20the%20same%20body%2C%20and%20detect%20deformations%20while%20on%20movement.%20For%20this%20project%20I%C2%B4m%20using%20an%20ARDUINO%20board%20for%20prototipation%20and%20after%20some%20succesful%20preliminary%20tests%2C%20after%20preparing%20a%20kit%20for%20a%20second%20phase%20tests%20the%20systems%20stop%20working.%20I%20already%20checked%20all%20the%20connections%20between%20and%20tested%20both%20accelerometers%20and%20everything%20is%20ok%2C%20but%20when%20I%20try%20to%20init%20the%20second%20accelerometer%2C%20no%20matter%20which%20one%20was%20the%20first%2C%20I%20got%20an%20error.%20The%20WHO_AM_I%20command%20for%20the%20second%20accelerometer%20is%20returning%200x01.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%20and%20sorry%20for%20english%20mistakes%20on%20the%20text%20above%2C%3C%2FP%3E%3CP%3ECl%C3%B3vis%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-456910%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-456912%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20using%20two%20MMA8452Q%20simultaneously%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-456912%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Reyes%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EYou%20are%20right.%20I%C2%B4ve%20tried%20to%20put%20the%20delay%20as%20a%20workaround%20for%20the%20problem%20and%20it%20has%20worked.%20I%C2%B4m%20not%20sure%20about%20the%20cause%20but%20I%20tried%20this%20to%20avoid%20possible%20data%20overrun.%20I%20have%20to%20put%20a%20minimum%20delay%20(10ms)%20between%20consecutive%20reads%20to%20avoid%20similar%20problems.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThanks%20a%20lot!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-456911%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Problems%20using%20two%20MMA8452Q%20simultaneously%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-456911%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Cl%C3%B3vis%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EAccording%20to%20our%20last%20communication%2C%20the%20problem%20seems%20to%20be%20corrected%20by%20adding%20a%20call%20delay%20(100)%2C%20correct%3F%3C%2FP%3E%3CP%3ECan%20you%20please%20confirm%20is%20this%20solved%20the%20problem%3F%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EJose%20Reyes%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E-----------------------------------------------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20Correct%20Answer%20button.%20Thank%20you!%3CBR%20%2F%3E-----------------------------------------------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E