MPU6500 stabilety

Hello Guys,

I gut an MPU6500 and I see drifts in the accelerate readings, not a lot but +- 600 out of the 16bit ADC reading.

Do you have any idea how to stabilize the reading to have a lower fluctuations? maybe something like comparing all 3 axis (x^2+b^2+z^2)^0.5= 1G when stable?

Just to note that I need only one axis for my project.

Any idea is welcome.

Thanks You,
Yossi

The accelerometer should not drift, but gyros do.

Post code and output examples, as explained in the "How to use this forum" post.