Teeter, a balancing robot to learn robotics on
One motor, two wheels and a printed body that snaps together. Build it, balance it with a PID, then train a neural network to balance it.

Teeter stands on two wheels that share one motor shaft. It falls over unless a control loop keeps driving the wheels under it, so it is a good first robot for learning how sensing, control and learning fit together.
- Parts
- about $31
- Mass
- about 253 g
- Height
- 170 mm
- Printed
- 24 g of PLA, no screws
- Control loop
- 400 Hz on an ESP32
teeter_web page and drove forward and back. The learned policy is trained and tested in simulation only, and the 60 s PID pass test has not been recorded yet.Three parts, in order
- 1Build the robotFrom a parts list to a wired robot whose motor turns both ways. Print, snap together, wire, power up, motor test.12 steps
- 2Balance it with a PIDFlash the balancer, tell it how the IMU is mounted, and tune the gains from a web page on your phone until it stands on its own.7 steps
- 3Train a policy with reinforcement learningTrain a small neural network in a MuJoCo simulation of Teeter, check it against the PID, put it on the ESP32 and run it beside the PID.7 steps
Each step in a guide is one thing to do and one check that it worked. Do not start the next step until the check passes.
Parts and files
| Part | Qty | About |
|---|---|---|
| Dual-shaft TT gearmotor 1:48 | 1 | $3.00 |
| 65 mm TT wheel | 2 | $4.00 |
| ESP32 DevKit (classic WROOM-32) | 1 | $7.00 |
| GY-521 MPU-6050 | 1 | $2.60 |
| MX1508 motor driver | 1 | $1.60 |
| Mini360 buck (set to 5.0 V) | 1 | $0.90 |
| 2S BMS with balancing | 1 | $1.60 |
| 2 x 18650 holder, series | 1 | $1.75 |
| 18650 cells | 2 | on hand |
| PTC fuse 3 A, power switch | 1 each | $1.30 |
| 470 uF 16 V, 100 nF (2), 100k (3), 33k | $0.95 | |
| JST-XH 2-pin pair | 2 | $1.60 |
| DC 5.5 x 2.1 mm jack on a pigtail | 1 | $0.70 |
| Perfboard scrap, header pins, Dupont jumpers | $1.35 | |
| Zip ties, a hook-and-loop strap, wire | $2.00 | |
| A second hook-and-loop strap (both up to 12 mm wide), double-sided foam tape | not priced | |
| PLA | 24 g | $0.39 |
| Total | about $31 |
An 8.4 V Li-ion charger is extra if you do not have one. Everything else (code, print files, drawings) is in the repository.
cheek.stl rungs_shelf.stl spine.stl
Related robots
Tailwhip is a larger balancing robot that reuses Teeter's electronics and firmware. Ouro is another BuildRobotz robot to build.