SF20 Analisis Performa DMP MPU6050 dan Kendali PID pada Robot Self-Balancing Berbasis ESP32
Keywords:
Self-Balancing Robot, MPU6050, Digital Motion Processor (DMP), PID Control, ESP32Abstract
A two-wheeled self-balancing robot requires accurate tilt-angle estimation and a low-latency real-time control system to maintain balance. However, software-based sensor fusion algorithms generally increase the computational burden of the microcontroller, reducing control responsiveness. This study evaluates the effectiveness of the Digital Motion Processor (DMP) embedded in the MPU6050 sensor combined with a discrete Proportional–Integral–Derivative (PID) controller on an ESP32-based self-balancing robot. The proposed approach was evaluated by comparing three angle estimation methods, namely Raw Data, Complementary Filter, and Hardware DMP, in terms of sampling time, transient response, and balance stability. Experimental results show that the DMP achieved a sampling time of 8 ms, outperforming both the Complementary Filter (11 ms) and Raw Data (21 ms) approaches. The proposed system maintained the robot's upright position with a settling time of 1.5 s and a low steady-state angular deviation. Furthermore, offloading the sensor fusion process to the DMP significantly reduced the computational burden on the ESP32, as inferred from the reduced sampling time of 8 ms, resulting in more responsive and stable control performance. These results demonstrate that integrating the MPU6050 DMP with a discrete PID controller provides an effective solution for improving the responsiveness and stability of embedded two-wheeled self-balancing robots.
References
T. Taufiq and Aswardi, “Self Balancing Robot Menggunakan Metode PID Berbasis Arduino,” JTEIN J. Tek. Elektro Indones., vol. 3, no. 1, pp. 15–24, 2022, doi: 10.24036/jtein.v3i1.192.
A. Najmurrokhman, Kusnandar, I. Irfansyah, and A. Daelami, “Rancang Bangun Auto Balancing Robot Menggunakan Metode Kendali PID,” TELKA J. Telekomun. Elektron. Komputasi, dan Kontrol, vol. 5, no. 1, pp. 15–23, 2019.
A. T. Ali, A. M. O. Mohamed, A. S. A. Salim, E. A. O. M. El-Amin, and O. M. K. Ahmed, “Design and Implementation of Two-Wheeled Self-Balancing Robot Using PID Controller,” in Proceedings of: 2020 International Conference on Computer, Control, Electrical, and Electronics Engineering, ICCCEEE 2020, 2021, pp. 9–13. doi: 10.1109/ICCCEEE49695.2021.9429579.
S. I. Khan, M. A. Choudhry, A. Ali, I. U. H. Shaikh, and F. Saleem, “A Hybrid Technique for Upward Stabilization and Control of Two Wheeled Self-Balancing Segway,” Mehran Univ. Res. J. Eng. Technol., vol. 41, no. 1, pp. 169–179, 2022, doi: 10.22581/muet1982.2201.17.
I. Jmel, H. Dimassi, S. H. Said, and F. M. Sahli, “Adaptive Observer-Based Output Feedback Control for Two-Wheeled Self-Balancing Robot,” Math. Probl. Eng., vol. 2020, 2020, doi: 10.1155/2020/5162172.
B. N. Cahyono, Sumardi, and B. Setiyono, “Self-Balancing Scooter Menggunakan Metode Kendali Proporsional Integral Derivatif,” Transmisi, vol. 15, no. 4, pp. 164–169, 2013.
G. Lu and F. Zhang, “IMU Based Attitude Estimation in the Presence of Narrow-band Noise with Application to a Three-Axis Gimbal System,” IEEE/ASME Trans. Mechatronics, pp. 841--852, 2019.
H. Zhang and N. Mohamad Nor, “Control Strategies for Two-Wheeled Self-Balancing Robotic Systems: A Comprehensive Review,” Robotics, vol. 14, no. 8, 2025, doi: 10.3390/robotics14080101.
W. Fadlun and A. Sugiharto, “Pemodelan Dinamika Dan Perancangan Kendali Logika Fuzzy Untuk Robot Self-Balancing Roda Dua,” JITET J. Inform. dan Tek. Elektro Terap., vol. 13, no. 2, 2025, doi: 10.23960/jitet.v13i2.6402.
S. Gupta, K. Ray, and S. Kaiser, “Self-Balancing Mobile Robot with Bluetooth Control: Design, Implementation, and Performance Analysis,” Automation, vol. 6, no. 3, pp. 1–26, 2025, doi: 10.3390/automation6030042.
C.-T. Hsieh, “Development of Proportional-Integral-Derivative Based Self-Balancing Robot Using ESP32 for STEM Education,” in Engineering Proceedings, 2025. doi: 10.3390/engproc2025092024.
W. D. S. Oliveira and E. N. Gonçalves, “Implementação em c: filtro de kalman, fusão de sensores para determinação de ângulos,” ForScience, vol. 5, no. 3, pp. 1–18, 2017, doi: 10.29069/forscience.2017v5n3.e287.
A. F. Albaghdadi and A. A. Ali, “An Optimized Complementary Filter For An Inertial Measurement Unit Contain MPU6050 Sensor,” Iraqi J. Electr. Electron. Eng., vol. 15, no. 2, pp. 71–77, 2019, doi: 10.37917/ijeee.15.2.8.
M. A. Rajitha, “Posture Correction Device Using ESP32 and MPU6050,” Int. J. Res. Appl. Sci. Eng. Technol., vol. 13, no. 10, pp. 1615–1617, 2025, doi: 10.22214/ijraset.2025.74767.
H. Jian, “Design of Angle Detection System Based on MPU6050,” in 7th International Conference on Education, Management, Information and Computer Science (ICEMC 2017), 2017, pp. 7–9. doi: 10.2991/icemc-17.2017.2.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Arya Naradipa Oktaviano, Muhammad Izzata Falliant, Dicky Nabila Hardiansyah, Khusnul Hidayat

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.


