MPU6050_tockn icon indicating copy to clipboard operation
MPU6050_tockn copied to clipboard

Angle Inaccuracy - Please Advise

Open sparfitt93 opened this issue 5 years ago • 4 comments

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 avatar Oct 25 '18 14:10 sparfitt93

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.

sparfitt93 avatar Oct 25 '18 14:10 sparfitt93

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

wearni avatar Nov 06 '18 07:11 wearni

Literally multiplied the output by a factor of 1.2

y_angle = 1.2*mpu.getAngleY();

sparfitt93 avatar Nov 06 '18 10:11 sparfitt93

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?

dzulkiflijoey avatar Mar 20 '19 09:03 dzulkiflijoey