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

Temperature error - please check #37

Open
hydrastarmaster opened this issue Aug 25, 2019 · 0 comments
Open

Temperature error - please check #37

hydrastarmaster opened this issue Aug 25, 2019 · 0 comments

Comments

@hydrastarmaster
Copy link

hydrastarmaster commented Aug 25, 2019

Hi,
MPU6050 temperature does not match the specific BMP280 temperature measurement.

The current calculation for the temperature is:
temp = (rawTemp + 12412.0) / 340.0;
But the datasheet (MPU-6000-Register-Map1.pdf) specifies:

Temperature in degrees C = (TEMP_OUT Register Value as a signed quantity)/340 + 36.53

36.53 * 340 = 12420020, so the error should be in the formula.

Using this calculation will give the right value:
temp = rawTemp / 340.0 + 36.53;
In this case, the small difference vs. BMP280 can be justified as the internal heat of the gyro.

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

1 participant