Single axis gimbal with RC servo and mpu6050 drifts

Using an Arduino Nano with a mpu6050 to make a single axis gimbal. Have searched for this drift in the forum without success. So, question: My servo is accurate as the base housing is rotated about 10 degrees off the center 0 degrees in both directions. HOWEVER, if it is rotated past the 10ish degrees it does not kept it balanced at 0 degrees but drifts about 20 degrees, both directions at 45 degree rotation.

Drift while using the MPU6050 is the normal, usually followed with a recommendation to get a more modern MPU, for example, this Adafruit MPU...

Look for calibration for loads of information...

Thank you for the reply. I'll check out the adafruit one.
I did, however solve this. The servo motor I was using is not a linear rotator, but logarithm instead. Guess it's for steering on RC vehicles...

Was that printed on the servo, datasheet, or anywhere (OEM web site)? Thanks.

emailed the manufacturer

1 Like