Main Content

In this project, we will be building a “1 - Axis Gimbal with an MPU6050.” After you plug your Arduino into a power source, keep the sensor on a leveled surface for a few seconds for more accurate results. Now if you move the sensor clockwise the roll values from the MPU6050 will decrease and the servo position will increase and when you move the sensor counter-clockwise the roll values from the MPU6050 will increase the servo position will decrease. This allows the servo to always stay level on the roll axis.”

Link to article