AudioOutput I2S does not work with Wire.h

Status
Not open for further replies.

evan2882

New member
I am using the audio library and 9-dof IMU from Sparkfun. The IMU functions based on the Wire.h library from Arduino. Somehow the AudioOutput I2S has complicits with my IMU. It will force the IMU to stop working after a few seconds. The IMU works just fine after I comment that line out. Any suggestions of what to do? I tried to dig into the audio library but I don't know where to start. Any advice would be greatly appreciated.

Just to give a bit more information. The line causing the problem is :
AudioOutputI2S i2s1;
It is from GUI declaration.
My IMU works for the first a couple seconds and then output a really large number like 63 (usually it is less then 5). It is also able to work if the IMU is in still. I can restart it by software. Once the shake/move the IMU, it will stall at some point forever and I cannot restart by software command anymore.
So I think it is a communication problem. The I2C is parsed wrong or not communicating well. Is it because of interrupts?

The IMU github: https://github.com/sparkfun/SparkFun...rduino_Library
 
Status
Not open for further replies.
Back
Top