Source: https://mokxi.com/learn/path/build-balance-bot
Updated: 2026-11-20

All paths

# Build a balance bot

Three lessons on a two-wheel self-balancing robot: read its tilt, see what the wheels do to it, and write the PID that stands it up.

Arduino Uno R3 Free 3 lessons 2 h 2 chapters 1,000 XP Maker · Expert +400 XP

0 of 3 done

Start the course free Balance bot 1: read the tilt Build it as a kit Retails for about $81, free on Mokxi. Lesson plan for teachers

What you will build

## One project, built step by step

3 lessons in 2 chapters, about 2 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### Balance bot 2: what the wheels do

Drive the wheels forward and the body tips back: the move every balancing robot is made of. Then balance on P and D alone and see why that is not quite enough.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Sense and drive

Turn the IMU into an angle, and learn which way the wheels must go.

Open 250 XP

### Balance bot 1: read the tilt

Wake the robot’s MPU6050 and turn its readings into a tilt three ways: from gravity, from the gyro, and with a complementary filter that blends the two. Then watch them follow the robot as it falls.

0 of 4 steps

Start What is in it

Project Locked 500 XP

### Balance bot 2: what the wheels do

Drive the wheels forward and the body tips back: the move every balancing robot is made of. Then balance on P and D alone and see why that is not quite enough.

0 of 4 steps

Chapter 2

## Stand it up

A PID on three knobs, a push, and tuning it by hand.

Locked 250 XP

### Balance bot 3: the PID that stands it up

The finished balance bot: a complementary filter, a PID with three knobs for Kp, Ki and Kd, and the angle and gains on an OLED. Push it, turn the knobs, and tune it.

0 of 4 steps

Syllabus

## Every lesson in the course

All 3 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Sense and drive

- Balance bot 1: read the tilt Wake the robot’s MPU6050 and turn its readings into a tilt three ways: from gravity, from the gyro, and with a complementary filter that blends the two. Then watch them follow the robot as it falls.
- Balance bot 2: what the wheels do Drive the wheels forward and the body tips back: the move every balancing robot is made of. Then balance on P and D alone and see why that is not quite enough.

Chapter 2

### Stand it up

- Balance bot 3: the PID that stands it up The finished balance bot: a complementary filter, a PID with three knobs for Kp, Ki and Kd, and the angle and gains on an OLED. Push it, turn the knobs, and tune it.

Keep going

## The next course on your track

Build a balance bot is part of the maker track, a ladder of courses from zero to expert.

Next course

### Build a camera slider

A motorized camera slider on a Nano in three short lessons: homing a stepper, an eased video move, and a timelapse that settles before every shot.
Open the next course

Track

### Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.
See every course on the track

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

The kit for this course

### Balance Bot Kit

An Uno, a self-balancing robot, an OLED display (128x64) and a potentiometer: a bot that stands up on two wheels.
Open the kit

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Build a balance bot

Is Build a balance bot free?

Yes. All 3 lessons of Build a balance bot are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a balance bot take?

About 2 hours: 3 lessons in 2 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Balance bot 2: what the wheels do.

Where do I start?

With "Balance bot 1: read the tilt", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
