S ScienceFairProjects.info
Hard⏱ time4 hr$ cost35

Self-Balancing Robot

A gyroscope and fast motor corrections keep a two-wheel robot standing upright.

Start building ↓
fig — working model Result first

The build

Step 01

Build tall

Make a narrow two-wheel frame with weight up high.

Step 02

Add the sensor

Mount the gyro to read tilt angle.

Step 03

Tune the loop

Program a PID controller that drives motors to cancel tilt.

Step 04

Balance

Let go — it corrects and stays upright.

Working Principle

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.

The science behind it

A closer look

A PID feedback loop reacts to the tilt error many times a second, the same control idea used in hoverboards.

Take it further

Variables to test

  • 1 Tune the PID gains — how does it wobble change?
  • 2 Push it gently — how fast does it recover?

More Robotics