SparkFun_MPU-9250-DMP_Arduino_Library icon indicating copy to clipboard operation
SparkFun_MPU-9250-DMP_Arduino_Library copied to clipboard

Unsufficient I2C baud-rate

Open hbob opened this issue 7 years ago • 1 comments

The baud-rate between the MPU9250 and the microcontroller is not specified explicitly. When trying to sample the DMP at 200 Hz, this caused some drops in the gyroscope readings, which in turn also affected the angle computation. And therefore my balancing controller was unstable Adding the line: Wire.setClock(400000); after Wire.begin(); in the inv_error_t MPU9250_DMP::begin(void) function resolved all issues.

hbob avatar Sep 07 '17 12:09 hbob

this also helps to sample at higher rate like 1000Hz @hbob thank you

shirish47 avatar May 30 '18 17:05 shirish47