Open taniaxue opened 4 years ago
Update: I think the I2C and Arduino 101 bug was the problem as the errors were fixed when I updated the board under Arduino IDE's Tools > Board > Boards Manager.
After more testing, the disconnection issue is still occurring quite frequently and sometimes the resetting sequence does not work. What would be the causes of frequent disconnection throughout the program?
Hi,
I have some code based on the MPU6050 DMP example (modified to poll the FIFO buffer, no interrupts). I've ran my code multiple times on both a Arduino Pro Mini and Arduino 101. It works perfectly with the Arduino Pro Mini but crashes frequently with the Arduino 101.
One of the many crashes/errors I get when using the Arduino 101 is that it often loses connection with the MPU6050 - I check this by having this in the loop():
while (!mpu.testConnection()){...}
. Sometimes it manages to restart itself when I run the following lines in that while loop:(Side question: why does the MPU6050 frequently disconnect?)
However, often when it restarts successfully, it either gets stuck in the FIFO overflow condition or alternates between FIFO overflow and outputting random ypr values, e.g. without moving the MPU6050, it gives values like this:
Is there a problem with the Arduino 101 that causes frequent errors with the MPU6050? I have heard possible issues with Arduino 101 and I2C (e.g. https://github.com/arduino/ArduinoCore-arc32/issues/238) but I'm not sure if those are related to this or not.
Thanks.