Design and implementation of a low-cost, modular two-wheeled balancing vehicle with bluetooth gesture interface
DOI:
https://doi.org/10.56294/dm2026826Keywords:
Gesture control, Cascaded PID, Adaptive mechanical median, Wireless transmissionAbstract
Two-wheeled self-balancing vehicles have attracted considerable attention due to their compact structure and high maneuverability. However, conventional designs typically restrict the payload to the vertical axis in order to maintain mechanical centering, and most remote-control schemes rely on button-based interfaces; research on non-contact, gesture-based control remains insufficient. This study aims to develop a gesture-controlled self-balancing vehicle capable of adapting to lateral load variations. A gesture sensor is employed to recognize nine predefined gestures-forward, backward, left, right, approach target, retreat from target, clockwise rotation, counter-clockwise rotation, and wave. A cascaded PID control architecture combined with an adaptive mechanical-centering compensation algorithm dynamically adjusts the balance set-point according to the position of the counterweight. Attitude data are acquired at 100 Hz via the I²C interface from the MPU6050’s built-in DMP unit, while gesture commands are transmitted over Bluetooth at a baud rate of 9600 baudios. Experimental results demonstrate that, even with a lateral load offset of 3 cm and a mass of 150 g, the system maintains stable equilibrium, with attitude oscillations confined within ±2°, and gesture response latency below 120 ms. The nine predefined gestures successfully enable forward/backward motion, turning in various directions, in-place rotation in both directions, assessment of obstacle proximity, and stopping. The proposed method effectively expands control and load flexibility while preserving stability, providing a feasible reference for research on non contact gesture-controlled intelligent mobile platforms.
References
1. Tian, L.; Hong, G.; Li, W. Fuzzy Self-adaptive PID Controller in Profile Bending Machine with the Application of Feed Mechanism. Hydraul. Pneum. Seals 2011, 31, 10-13. doi:10.3969/j.issn.1008-0813.2011.01.004.
2. Altinkaya, H.; Khamees, A.; Yaghoubi, E.; Yaghoubi, E. Control of Heat Exchanger Liquid Temperature Using PID Control and first Order Sliding Mode Control System. In Proceedings of the 2024 International Conference on Electrical, Computer and Energy Technologies (ICECET), Paris, France, 3–6 July 2024; pp. 1-6. doi:10.1109/ICECET61485.2024.10698052.
3. Eltag, K.; Zhang, B. Design Robust Self-tuning FPIDF Controller for AVR System. Int. J. Control Autom. Syst. 2021, 19, 910-920. doi:10.1007/s12555-019-1071-8.
4. Chakraborty, S.; Mondal, A.; Das, C. Fuzzy Fractional Order PID Controller Design for AVR System. In Proceedings of the 2024 3rd International Conference on Control, Instrumentation, Energy and Communication (CIEC), Kolkata, India, 2-4 May 2024. doi:10.1109/CIEC59440.2024.10468513.
5. ZHAO, P.,ZHANG, Y, JIANG, L.L. Research on the design scheme and control strategy of smart car with multi-sensor fusion[J].Industrial Instrumentation & Automation,2024(06):81-87. doi:10.19950/j.cnki.CN61-1121/TH.2024.06.015.
6. YU J.T., SUN Y.T., ZHU Y.M., et al. Design of indoor navigation on method based on fusion of LiDAR and vision[J]. Transducer and Microsystem Technologies, 2023,42(8):69-72. doi:10.16526/j.cnki.11-4762/tp.2023.08.022.
7. Ekinci S, Hekimoğlu B, Kaya S. Tuning of PID controller for AVR system using salp swarm algorithm. In: 2018 International conference on artificial intelligence and data processing. IEEE; 2018,p.1-6. doi.org/10. 1109/IDAP.2018.8620809.
8. CHU, K.B., GUO J.J. Tracking algorithm of intelligent vehicle movement trajectory[J]. JOURNAL OF ELECTRONIC MEASUREMENT AND INSTRUMENTATION, 2020,34(6): 131-135. doi:10.16526/j.cnki.11-4762/tp.2023.08.022.
9. ZHAN H.B., WANG J.,FAN H.R. Design of autonomous tracking intelligent vehicle based on electromagnetic induction[J]. Automation & Instrumentation, 2023,38(10):16-19,23. doi:10.16526/j.cnki.11-4762/tp.2023.08.022.
10. T. Dogruer, M.S. Can, Desgn and robustness analysis of fuzzy PID controller for automatic voltage regulator system using genetic algorithm, Trans. Inst. Meas. Control 44 (2022) 1862–1873. doi.org/10.1177/01423312211066758.
11. YI Y.L. Design of robot remote control system based on sensor fusion technology[J].Computer Measurement & Control, 2023,31(8):142-147,182. doi:10.16526/j.cnki.11-4762/tp.2023.08.022.
12. LI L., XIAO S.D., LI X.K., et al. Design of intelligent vehicle positioning and navigation systembased on multi-sensor fusion[J]. Chinese Journal of Engineering Design,2019,26(2):182-189. doi :10.3785/j.issn.1006-754X.2019.02.009.
13. WANG W.S, LI S.J. Design of smart car based on monocular vision sensor obstacle avoidance[J].Transducer and Microsystem Technologies, 2023,42(4):119-122. doi:10.16526/j.cnki.11-4762/tp.2023.08.022.
14. LU Y.N.,LU X.,FANG F.C. Design and research of intelligence vehicle based on machine vision[J]. Modern Electronics Technique,2022,45(2):177-182. doi:10.16652/j.issn.1004-373x.2022.02.034.
15. XU N, YAN J.M., XING Y.H., et al. Design of self-Calibration system for sensor position offset based on micro vibration[J]. CHINESE JOURNAL OF SENSORS AND ACTUATORS,2022,35(9):1174-1181. doi:10.3969/j.issn.1004-1699.2022.09.003.
16. LI F, LI Y, YAN C, et al. Swing speed control strategy of fuzzy PID roadheader based on PSO-BP algorithm[C]//2022 IEEE6th Information Technology and Mechatronics Engineering Conference(ITOEC). New York:IEEE,2022:827-833. doi:10.1109/ITOEC53115.2022.9734429.
17. WANG R, QIN J.M. Fuzzy PID control method of air conditioning supply air temperature based on multi-sensing features fusion[J].CHINESE JOURANL OF SENSORS AND ACTUATORS, 2023,36(6):943-948. doi:10.3969/j.issn.1004-1699.2023.03.014.
18. SHEN Y.J., XING H.Y., WANG S.Z. UAV flight control system of cascade fuzzy PID based on particle swarm optimization[J]. Electronic Measurement Technology, 2022,45(1):96-103.doi:10.19651/j.cnki.emt.2107821.
19. Izci, D.; Ekinci, S. An improved RUN optimizer based real PID plus second-order derivative controller design as a novel method to enhance transient response and robustness of an automatic voltage regulator. e-Prime Adv. Electr. Eng. Electron. Energy 2022, 2, 100071. doi.org/10.1016/j.prime.2022.100071.
20. Briones, O.; Alarcón, R.; Rojas, A.J.; Sbarbaro, D. Tuning Generalized Predictive PI controllers for process control applications. ISA Trans. 2022, 119, 184–195. doi:10.1016/j.isatra.2021.02.040.
21. Al Gizi, A.J.H. A particle swarm optimization, fuzzy PID controller with generator automatic voltage regulator. Soft Comput. 2019, 23, 8839–8853. doi:10.1007/s00500-018-3483-4.
22. ZHOU W, HOU J. A new adaptive robust unscented Kalman filter for improving the accuracy of target tracking[J]. IEEE Access, 2019, 7: 77476-77489. doi:10.1109/ACCESS.2019.2921794,IEEE Access
23. Bitriá, R.; Palacín, J. Optimal PID control of a brushed DC motor with an embedded low-cost magnetic quadrature encoder for improved step overshoot responses in a mobile robot application. Sensors 2022, 22, 7817. doi:10.3390/s22207817.
24. Gozde H, Taplamacioglu MC (2011) Comparative performance anal-ysis of artificial bee colony algorithm for automatic voltage regulator (AVR) system. J Frankl Inst 348(8):1927–1946. doi.org/10.1016/j.jfranklin.2011.05.012
25. Qin, H.; Wang, L.; Wang, S.; Ruan, W.; Jiang, F. A Fuzzy Adaptive PID Coordination Control Strategy Based on Particle Swarm Optimization for Auxiliary Power Unit. Energies 2024, 17, 5311. doi:10.3390/en17215311.
26. Control Tutorials for MATLAB and Simulink. Available online: https://ctms.engin.umich.edu/CTMS (accessed on 2 May 2024). doi:10.3390/electronics11233886
27. Wati, T.; Subiyanto, S. Simulation model of speed control DC motor using fractional order PID controller. J. Phys. Conf. Ser. 2020, 1444, 012022. doi:10.1088/1742-6596/1444/1/012022.
28. Wu, T.-Y.; Jiang, Y.-Z.; Su, Y.-Z.; Yeh, W.-C. Using Simplified Swarm Optimization on Multiloop Fuzzy PID Controller Tuning Design for Flow and Temperature Control System. Appl. Sci. 2020, 10, 8472. doi:10.3390/app10238472.
29. Liu, Z.; Dong, H.; Ma, X. Temperature Control Strategy for Hydrogen Fuel Cell Based on IPSO-Fuzzy-PID. Electronics 2024, 13, 4949. doi:10.3390/electronics13244949.
30. Suid, M.H.; Ahmad, M.A. Optimal tuning of sigmoid PID controller using Nonlinear Sine Cosine Algorithm for the Automatic Voltage Regulator system. ISA Trans. 2022, 128, 265–286. doi:10.1016/j.isatra.2021.11.037.
31. Chatterjee, S.; Mukherjee, V. PID controller for automatic voltage regulator using teaching–learning based optimization technique. Electr. Power Energy Syst. 2016, 77, 418–429. doi:10.1016/j.ijepes.2015.11.010.
32. Mosaad, A.M.; Attia, M.A.; Abdelaziz, A.Y. Whale optimization algorithm to tune PID and PIDA controllers on AVR System. Ain Shams Eng. J. 2019, 10, 755–767. doi:10.1016/j.asej.2019.07.004.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Songjie Wu, Yang Yang, Jipeng Mo (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
The article is distributed under the Creative Commons Attribution 4.0 License. Unless otherwise stated, associated published material is distributed under the same licence.
