A compact two‑wheel, self‑balancing robot built around an STM32F407 MCU, an MPU‑6050 IMU for angle sensing, and an L298N dual H‑bridge for motor drive. The firmware runs a 200 Hz control loop with a ...