Self Balance robot: MPU6050 crash randomly

I'm using the IMU MPU6050 for my balance robot. I use the sample code for reading the raw data from the sensor. The problem is MPU6050 tends to crash randomly when reading raw data, mostly when the robot is shaky, or when the motors suddenly change the rotating direction. Even when i turn off the motors and let the robot lying there doing nothing, MPU6050 still crashes after running a while. But it's stable when using the sample code for reading data from DMP.

Has anyone met this problem before ? If so, please give me some advice ! I'm really frustrated now :frowning: Many thanks !

I'm really frustrated now

I'm really frustrated now with your cross-posting.

DO NOT CROSS-POST, CROSS-POSTING WASTES TIME.

Yes i get it too, when reading gyro.

But 6050 is much better in this issue than the sparkfun itg imu, which freezes much more often

namv1994:
I'm using the IMU MPU6050 for my balance robot. I use the sample code for reading the raw data from the sensor. The problem is MPU6050 tends to crash randomly when reading raw data, mostly when the robot is shaky, or when the motors suddenly change the rotating direction. Even when i turn off the motors and let the robot lying there doing nothing, MPU6050 still crashes after running a while. But it's stable when using the sample code for reading data from DMP.

Has anyone met this problem before ? If so, please give me some advice ! I'm really frustrated now :frowning: Many thanks !