Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsufficient I2C baud-rate #12

Open
hbob opened this issue Sep 7, 2017 · 1 comment
Open

Unsufficient I2C baud-rate #12

hbob opened this issue Sep 7, 2017 · 1 comment

Comments

@hbob
Copy link

hbob commented Sep 7, 2017

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.

@shirish47
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants