Hi,
I'm trying to connect an Arduino Micro to MPU-9150 using the MPU6050_DMP6 example.
It runs for couple of seconds then the board Hangs, I sometimes see the "FIFO overflow" message.
The same code runs well when i connect the MPU-9150 to Arduino UNO and Arduino Duemilanove.
I tried to lower the serial baud rate but no success with that. I even tried connecting an external 12V to the Micro but it's the same.
should I lower the i2c clock (not sure how to do it)?
another interesting thing i have noticed is that with the Duemilanove i can use a longer line for the i2c (5m of cat5e), with the Uno it only works with less then 2m cables, can anyone tell why?
Itay_Gal:
Hi,
I'm trying to connect an Arduino Micro to MPU-9150 using the MPU6050_DMP6 example.
It runs for couple of seconds then the board Hangs, I sometimes see the "FIFO overflow" message.
The same code runs well when i connect the MPU-9150 to Arduino UNO and Arduino Duemilanove.
I tried to lower the serial baud rate but no success with that. I even tried connecting an external 12V to the Micro but it's the same.
should I lower the i2c clock (not sure how to do it)?
another interesting thing i have noticed is that with the Duemilanove i can use a longer line for the i2c (5m of cat5e), with the Uno it only works with less then 2m cables, can anyone tell why?
I2C is only designed to work with 45cm max cabling. Without the code, I interpret "FIFO overflow" as meaning you are not reading the Sensor often enough. It is generating more reading than you can process per second.
Lowering the I2C clock would extend the distance possible, but you are still running out of 'time' to process all of the readings without the sensor over filling it's internal FIFO buffer.
Chuck.