Self-Balancing Robot
A gyroscope and fast motor corrections keep a two-wheel robot standing upright.
Start building ↓The build
Build tall
Make a narrow two-wheel frame with weight up high.
Add the sensor
Mount the gyro to read tilt angle.
Tune the loop
Program a PID controller that drives motors to cancel tilt.
Balance
Let go — it corrects and stays upright.
The gyro senses the robot tipping, and the controller drives the wheels under the falling point to catch it — like balancing a broom on your hand.
A closer look
A PID feedback loop reacts to the tilt error many times a second, the same control idea used in hoverboards.
Variables to test
- 1 Tune the PID gains — how does it wobble change?
- 2 Push it gently — how fast does it recover?
More Robotics
Obstacle-Avoiding Robot
An Arduino car reads distance with ultrasonic sound and steers itself away from walls.
Line-Following Robot
Infrared sensors keep a small robot glued to a black track as it races a loop.
Bristlebot
A toothbrush head, a coin motor and a battery make a buzzing bug that scurries across the table.