Daniel Botchway

ProjectsFig. 02

Self-Balancing Robot

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.

Year
Personal
Discipline
Robotics
Role
Solo build: design, electronics and firmware
Tools
ESP32, LSM6DSOX IMU, PID control, 3D printing

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

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.

02 / 03

Balance is a feedback problem

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

From CAD to firmware

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.

Specifications

ControllerESP32
SensorLSM6DSOX six-axis IMU (accelerometer and gyroscope)
ControlSensor filtering and a closed-loop PID balance controller
DriveTwo geared DC motors through a motor driver

Outcome

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

Get in touch

I welcome conversations about internships, research collaborations and robotics competitions.

botchwaydanielkwekudade@gmail.com

LinkedInGitHub

Phone
+233 53 808 0342
Location
Accra, Ghana