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

Angle Inaccuracy - Please Advise #15

Open
sparfitt93 opened this issue Oct 25, 2018 · 4 comments
Open

Angle Inaccuracy - Please Advise #15

sparfitt93 opened this issue Oct 25, 2018 · 4 comments

Comments

@sparfitt93
Copy link

Hi,
First thanks fro the code, it's by far the easiest to use for the MPU, but I have noticed the angles in X and Y are consistently off.

I made a 3D printed block with surfaces at 0, 30, 45, 60 and 90 degrees to test and found that both X and Y have issues.
At 0 degrees the error is 1-2 degrees (Not an issue)
However, at 30 degrees both X and Y read between 23-26,
at 45 both read around 34-37,
at 60 both read 46-48
and at 90 both read about 75.

So about 15-25% error.

Any reason for this? I tried varying the accel/gyro ratio and nothing seemed to effect it.

Thanks in advance.

@sparfitt93
Copy link
Author

sparfitt93 commented Oct 25, 2018

Update - Increasing the values output but 20% gives much better results, only 1-2 degrees of variation.
Tried with 2 different MPU-6050's and works well on both.

@wearni
Copy link

wearni commented Nov 6, 2018

Hi. What did you actually do to increase output values 20%?

@sparfitt93
Copy link
Author

Literally multiplied the output by a factor of 1.2

y_angle = 1.2*mpu.getAngleY();

@dzulkiflijoey
Copy link

May i know what the is the unit for the reading that have been shown by this coding? in degree degrees per second or in radian per second?

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