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

Value by getangleZ() keeps on increasing with time. Even the sensor is still. #50

Closed
MuhamdShahab opened this issue Feb 12, 2023 · 5 comments

Comments

@MuhamdShahab
Copy link

Hello there,
I have tested the library for MPU6050 on three different sensors. I have faced a common issue where the angle given by getangleZ() kept on increasing after decimals which eventually generates a bigger difference. This is a kind of cumulative error.

@netpipe
Copy link

netpipe commented Feb 12, 2023

drift because of gravity likely there is a mode for extra precision with a gravity factor to fix that iirc.
https://howtomechatronics.com/tutorials/arduino/arduino-and-mpu6050-accelerometer-and-gyroscope-tutorial/
https://forum.arduino.cc/t/removing-gravity-from-mpu6050-data/977167

@MuhamdShahab
Copy link
Author

For sure gravity val effects the precision but the noise is cumulative. In case of drift there must b a random behaiviour.

@MuhamdShahab
Copy link
Author

@tockn ??

@MrXu-98
Copy link

MrXu-98 commented Oct 16, 2023

Hello, has this problem been solved? I found another problem similar to this problem. When x axis and Y axis obtain a certain Angle value, irregular jump will occur, and the Angle value can reach 600+

@MuhamdShahab
Copy link
Author

MuhamdShahab commented Oct 16, 2023

Yes, I have tried to find a solution for this which can be seen in my github repo.
The other issue which you have mentioned exists.
I have com to the conculsion that IMU BNO 055 must be used in place of MPU 6050 if you want your orientation angle. For Roll and Pitch only MPU is fine.

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