01 / 03
Two wheels and nothing else
Left alone, a robot on two wheels falls over. This one stays up because its controller keeps driving the wheels back underneath its centre of mass, the way you balance a broom on your hand.
ProjectsFig. 02
A personal project built from scratch around an ESP32 and an LSM6DSOX six-axis IMU. It stands on two wheels with nothing else to lean on, so it has to measure its own tilt and correct it many times a second.
How to read this pageScroll and the drawing builds itself chapter by chapter. Underlined words point at parts. Drag the drawing to turn it.
01 / 03
Left alone, a robot on two wheels falls over. This one stays up because its controller keeps driving the wheels back underneath its centre of mass, the way you balance a broom on your hand.
02 / 03
An LSM6DSOX six-axis IMU measures how far the robot leans, and the ESP32 filters that signal and runs a closed-loop PID controller that drives the motors back under the centre of mass. The panel beside the drawing shows the loop at work.
03 / 03
The robot is built in layers: a printed chassis, a motor driver and battery pack wired by hand, the electronics plate with the controller and IMU, and the firmware that ties them together.
| Controller | ESP32 |
|---|---|
| Sensor | LSM6DSOX six-axis IMU (accelerometer and gyroscope) |
| Control | Sensor filtering and a closed-loop PID balance controller |
| Drive | Two geared DC motors through a motor driver |
The robot holds itself upright and recovers when it is pushed: the filtered IMU signal and the PID loop reject disturbances instead of letting them build up.
Contact
I welcome conversations about internships, research collaborations and robotics competitions.