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

MPU6050 Calibrated Acc and Gyro in different measurement range #56

Open
williamesp2015 opened this issue Jan 28, 2022 · 2 comments
Open

Comments

@williamesp2015
Copy link

If you see source code for IMU you will see using DMP or raw data but none has given more realistic solution for applied project. I'm using raw data and I get offset when MPU6050 is set to measure +/-2g and 250 DPS. I store them in an int16 array so aRes is Acc rang and gyro rang /32768.0. Now, when I read sensor in a loop, I have to get calibrated value:
(float) (Ax-(offsetAX/ADIVIDER))*aRes;
(float) (Gx-(offsetGX/GDIVIDER))*gRes;
ADIVIDER for 2g is 1 and for 16g is 8
GDIVIDE for 250 DPS is 1 and for 2000 DPS is 8
Even though, the method is much better than others but in gyro I see offset about 1-7 as I expected to have 0.

@bhupiister
Copy link

Search for a library i2c_mpu6886_4khz by yururi. Mpu6886 and 6050 are identical and this library is easy to use for starters.

@kriswiner
Copy link
Owner

kriswiner commented Jan 28, 2022 via email

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

3 participants