
This paper presents a comprehensive study of an ESP32 microcontroller-based self-balancing mobile robot system designed in conjunction with an Android app for Bluetooth control. The robot employs an MPU6050 accelerometer/gyroscope to execute dynamic equilibrium control for robotic balance. This study explores the design of a system composed of an ESP32-based dual-platform architecture. The firmware for the ESP32 executes real-time motor control and sensor processing, while the Android application provides the user interface, data visualization, and command transmission. The system achieves stable operation with tilt angle variations of ±2.5° (σ=0.8°, n = 50 trials) during normal operation with a PID controller tuned to KP = 6.0, KI = 0.1, and KD = 1.5. In experimental tests, control latency was measured at 38–72 ms (mean = 55 ms, σ=12 ms) over distances of 1–10 m with a robust Bluetooth connection. Extended operational tests indicated the reliability of both autonomous obstacle avoidance mode and manual control exceeding 95%. Key contributions include gyro drift compensation using a progressive calibration scheme, intelligent battery management for operational efficiency, and a dual-mode control interface to facilitate seamless transition between manual and autonomous operation. Processing of real-time telemetry on the Android application allows visualization of important parameters like tilt angle, motor speeds, and sensor readings. This work contributes to a cost-effective mobile robotics platform (total cost: USD 127) through the provision of detailed design specifications, implementation strategies, and performance characteristics.
Authors: Sandeep Gupta, Kanad Roy, M. Shamim Kaiser
DOI: https://doi.org/10.3390/automation6030042
Publish Year: 2025