Skip to content

makertut/balance-robot

Repository files navigation

balance-robot

Hardware

1. Arduino board 2. MPU-6050 3 Axis Accelerometer/Gyro Module 3. L298N DC Motor Controller

Connection

Maker Tutor

Maker Tutor

Tune the PID values manually instead.

1.Make Kp, Ki, and Kd equal to zero.

2.Adjust Kp. Too little Kp will make the robot fall over, because there's not enough correction. Too much Kp will make the robot go back and forth wildly. A good enough Kp will make the robot go slightly back and forth (or oscillate a little).

3.Once the Kp is set, adjust Kd. A good Kd value will lessen the oscillations until the robot is almost steady. Also, the right amount of Kd will keep the robot standing, even if pushed.

4.Lastly, set the Ki. The robot will oscillate when turned on, even if the Kp and Kd are set, but will stabilize in time. The correct Ki value will shorten the time it takes for the robot to stabilize.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published