The robot balancing on its two wheels.
| Controller | ESP32 dev board (ESP-WROOM-32) |
| Motor driver | Toshiba TB6612FNG dual H-bridge breakout |
| Motors | 2x brushed DC motors, one per wheel |
| Sensor | Bosch BMI160 6-axis IMU on I²C (SDA / SCL) |
| Battery | 7.6 V, 4500 mAh LiPo |
| Power stage | LM2596 adjustable buck converter, set to 5 V for the ESP32 |
| Switching | Rocker switch between battery and the rest of the circuit |
The electronics for a two-wheel self-balancing robot. An ESP32 reads the tilt of the robot from a BMI160 IMU and drives two DC motors through a TB6612FNG dual H-bridge, all powered from one 7.6 V LiPo battery.