Hi everybody :) I just want to ask a question... I'm working on a project in which i use the MPU6050 IMU from invensense connected to an arduino leonardo. Thanks to Jeff Rowberg's library, i could use the DMP of this chip to get yaw, pitch and roll angles, but my problem is that when i run the example code, every thing is ok, but when i just add one delay, say delay(100), the FIFO register overflows. Is there any solution for this problem??
Another problem i faced also is that when i added some extra pieces of code (related to my project), where i use the PWM to control the speed of rotation of some motors, the yaw angle readings from the MPU go nuts, is there any relation between using PWM and the FIFO in the MPU??
thank you in advance for your help.
I too having same problem... You got any solutions???
i'm sorry for being so late, frankly i don't visit DIY drones frequently :D anyway, i think i know the solution for this problem ... You can control the DMP output rate by changing the last byte on line 261 of MPU6050_6Axis_MotionApps20.h, and there will be a comment in this location describing the possible rates and the bytes corresponding to them.
In some thread they say that IMU started calibrating at faster rate than mc, so the stack is getting overflown due to that...