Digital twin-oriented two-wheeled inverted pendulum platform for interactive control engineering education

Authors

DOI:

https://doi.org/10.15282/isse.1.2.2026.15700

Keywords:

Digital twin technology, Two-wheeled inverted pendulum, Proportional-integral-derivative, Physical-digital integration, Engineering education

Abstract

This study develops and functionally demonstrates a Digital Twin-oriented physical-digital platform for interactive closed-loop control, using a two-wheeled inverted pendulum. The platform integrates a physical self-balancing robot, an Arduino Mega 2560 controller, an ADXL345 accelerometer, two G15 CubeServo actuators, and a digital dashboard to bidirectional serial communication. A discrete proportional-integral-derivative (PID) controller regulates pitch, while the dashboard provides live visualization of the measured angle, control error, and controller output, together with online adjustment of gains and operating settings. As a first-phase proof-of-concept, the system was assessed through progressive manual PID tuning and manual tilting under critical, disturbed, and stable operating conditions. Among the six tested gain configurations, Kp = 35.0, Ki = 0.0 and Kd = 12.0 provided the most suitable observed balance between corrective action and damping, with the two-wheeled inverted pendulum operating near the calibrated 0.22° reference. The experiments also demonstrated physical-to-digital transfer of measured control variables and digital-to-physical modification of controller parameters. The present system is therefore classified as Digital Twin-oriented rather than a predictive Digital Twin because model-based synchronization and prediction are not yet implemented. Since persistent historical data logging was not included in this development phase, the reported evidence is intentionally limited to functional and qualitative performance observations rather than repeated-trial transient statistics. The platform provides a practical basis for demonstrating the relationship between PID adjustment, unstable plant behavior, and bidirectional physical-digital interaction in control engineering.

Downloads

Download data is not yet available.

References

[1] L. Screpanti, D. Scaradozzi, R. N. Gulesin, and N. Ciuccoli, “Control engineering and robotics since primary school: An infrastructure for creating the digital twin model of the learning class,” IFAC-PapersOnLine, vol. 55, no. 17, pp. 267–272, 2022, doi: 10.1016/j.ifacol.2022.09.290.

[2] M. Čech and M. Vosáhlo, “Digital twins and HIL simulators in control education – Industrial perspective,” IFAC-PapersOnLine, vol. 55, no. 17, pp. 67–72, 2022, doi: 10.1016/j.ifacol.2022.09.226.

[3] C. Blackwell and S. Rocke, “WIP: A review of digital twin technology in undergraduate control engineering education: Applications, challenges, and future directions,” in Proc. 2024 IEEE Frontiers in Education Conf. (FIE), Washington, DC, USA, Oct. 13–16, 2024, pp. 1–5, doi: 10.1109/FIE61694.2024.10893435.

[4] A. T. Ali, A. M. O. Mohamedy, A. S. A. Salimz, E. A. O. M. El-Aminx, and O. M. K. Ahmed, “Design and implementation of two-wheeled self-balancing robot using PID controller,” in Proc. 2020 Int. Conf. Comput., Control, Electr., Electron. Eng. (ICCCEEE), Khartoum, Sudan, Feb. 26–Mar. 1, 2021, pp. 1–5, doi: 10.1109/ICCCEEE49695.2021.9429579.

[5] H. Zhang and N. Mohamad Nor, “Control strategies for two-wheeled self-balancing robotic systems: A comprehensive review,” Robotics, vol. 14, no. 8, Art. no. 101, Aug. 2025, doi: 10.3390/robotics14080101.

[6] O. M. M. Gad, S. Z. M. Saleh, M. A. Bulbul, and S. Khadraoui, “Design and control of two wheeled self balancing robot (TWSBR),” in Proc. 2022 Adv. Sci. Eng. Technol. Int. Conf. (ASET), Dubai, United Arab Emirates, Feb. 21–24, 2022, pp. 1–6, doi: 10.1109/ASET53988.2022.9735004.

[7] A. Rabie, D. Thabet, I. Abdellatif, K. Elsayed, M. Elbadawy, and R. Shalaby, “Modelling and control of a self-balancing robot using sensor fusion and LQR controller,” in Proc. 2022 4th Novel Intell. Leading Emerg. Sci. Conf. (NILES), Giza, Egypt, Oct. 22–24, 2022, pp. 155–158, doi: 10.1109/NILES56402.2022.9942364.

[8] G. Baskota, R. Devkota, S. Paneru, S. Yadav, D. Neupane, and O. P. Dhakal, “Analytical and experimental approach for modeling, simulation and validation of two-wheeled self-balancing robot,” in Proc. 2023 Int. Conf. Inventive Comput. Technol. (ICICT), Lalitpur, Nepal, Apr. 26–28, 2023, pp. 1313–1320, doi: 10.1109/ICICT57646.2023.10133983.

[9] H. H. Mohsin, A. A. Aldair, and W. A. Al-Hussaibi, “Robust control design for two-wheel self-balanced mobile robot,” Iraqi J. Electr. Electron. Eng., vol. 19, no. 1, pp. 38–46, Jun. 2023, doi: 10.37917/ijeee.19.1.5.

[10] A. R. Utami, R. J. Yuniar, A. Giyantara, and A. D. Saputra, “Cohen-Coon PID tuning method for self-balancing robot,” in Proc. 2022 Int. Symp. Electron. Smart Devices (ISESD), Bandung, Indonesia, Nov. 8–9, 2022, pp. 1–5, doi: 10.1109/ISESD56103.2022.9980830.

[11] L. Lau, N. Ahmad, and P. Goh, “Self-balancing robot: Modeling and comparative analysis between PID and linear quadratic regulator,” Int. J. Reconfigurable Embedded Syst. (IJRES), vol. 12, no. 3, pp. 351–359, Nov. 2023, doi: 10.11591/ijres.v12.i3.pp351-359.

[12] V.-T. Nguyen, D.-N. Duong, H. Phan, T.-L. Bui, X. Hoangvan, and P. Tan, “Adaptive nonlinear PD controller of two-wheeled self-balancing robot with external force,” Comput., Mater. Continua, vol. 81, no. 2, pp. 2337–2356, Nov. 2024, doi: 10.32604/cmc.2024.055412.

[13] K. D. Papadimitriou, N. Murasovs, M. E. Giannaccini, and S. Aphale, “Genetic algorithm-based control of a two-wheeled self-balancing robot,” J. Intell. Robot. Syst., vol. 111, no. 1, Art. no. 34, Feb. 2025, doi: 10.1007/s10846-025-02236-1.

[14] C.-T. Hsieh, “Development of proportional-integral-derivative based self-balancing robot using ESP32 for STEM education,” Eng. Proc., vol. 92, no. 1, Art. no. 24, 2025, doi: 10.3390/engproc2025092024.

[15] K. Przeczewski and R. Szczepanski, “Open-source tiny two-wheeled inverted pendulum robot for educational purpose,” in Proc. 2025 29th Int. Conf. Methods Models Autom. Robot. (MMAR), Miedzyzdroje, Poland, Aug. 26–29, 2025, pp. 100–105, doi: 10.1109/MMAR65820.2025.11151011.

[16] Z. Wang and M. Fan, “Simulation of automatic control system of self-balancing robot based on MATLAB,” in Advanced Intelligent Technologies for Industry, Y. Chen, Ed., Singapore: Springer, 2022, pp. 299–305, doi: 10.1007/978-981-19-4132-0_33.

[17] H. Tjahyadi, K. Prasetya, and I. Murwantara, “Digital twin based laboratory for control engineering education,” Int. J. Inf. Educ. Technol., vol. 13, no. 4, pp. 704–711, Apr. 2023, doi: 10.18178/ijiet.2023.13.4.1856.

[18] D. M. Botín-Sanabria, A.-S. Mihaita, R. E. Peimbert-García, M. A. Ramírez-Moreno, R. A. Ramírez-Mendoza, and J. de J. Lozoya-Santos, “Digital twin technology challenges and applications: A comprehensive review,” Remote Sens., vol. 14, no. 6, Art. no. 1335, Mar. 2022, doi: 10.3390/rs14061335.

[19] T. Kaarlela, H. Arnarson, T. Pitkäaho, B. Shu, B. Solvang, and S. Pieskä, “Common educational teleoperation platform for robotics utilizing digital twins,” Machines, vol. 10, no. 7, Art. no. 577, Jul. 2022, doi: 10.3390/machines10070577.

[20] M. I. P. Azahar, A. Irawan, and R. M. T. Raja Ismail, “Adjustable convergence rate prescribed performance with fractional-order PID controller for servo pneumatic actuated robot positioning,” Cognit. Robot., vol. 3, pp. 93–106, 2023, doi: 10.1016/j.cogr.2023.04.004.

[21] A. Irawan, M. M. Alam, and Y. Y. Tan, “PD-FLC with admittance control for hexapod robot's leg positioning on seabed,” in Proc. 2015 10th Asian Control Conf. (ASCC), Kota Kinabalu, Malaysia, May 31–Jun. 3, 2015, pp. 1–6, doi: 10.1109/ASCC.2015.7244804.

[22] M. C. Kotecha, T. M. Dandridge, and T. Reid Smith, “Digital twins in engineering and design education: A systematized review,” in Proc. 2025 ASEE Annu. Conf. Expo., Montreal, QC, Canada, Jun. 22–25, 2025, Paper ID #56296, doi: 10.18260/1-2--56296.

[23] K. Boettcher, C. Terkowsky, M. Schade, D. Brandner, S. Grünendahl, and B. Pasaliu, “Developing a real-world scenario to foster learning and working 4.0 – On using a digital twin of a jet pump experiment in process engineering laboratory education,” Eur. J. Eng. Educ., vol. 48, no. 5, pp. 949–971, Sep. 2023, doi: 10.1080/03043797.2023.2182184.

[24] G. Liang, X. Pang, S. Li, B. Shi, and D. Liu, “Application of a digital twin in virtual simulation experiment teaching of the control course,” Exp. Technol. Manage., vol. 41, no. 3, pp. 175–183, Mar. 2024, doi: 10.16791/j.cnki.sjg.2024.03.021.

[25] W. Tarng, M.-C. Lin, T.-Y. Lin, K.-L. Ou, and K.-R. Chang, “Application of virtual reality in developing the digital twin for an integrated robot learning system,” Electronics, vol. 13, no. 14, Art. no. 2848, Jul. 2024, doi: 10.3390/electronics13142848. (Note: IEEE prefers listing up to 6 authors before using et al.)

[26] M. Heeney, K. Androutsopoulos, and F. Raimondi, “Implementing a digital twin for a robotic platform to support large-scale coding classes,” in Proc. 5th Int. Comput. Program. Educ. Conf. (ICPEC 2024), OpenAccess Series in Informatics (OASIcs), vol. 122, pp. 15:1–15:12, Jun. 2024, doi: 10.4230/OASIcs.ICPEC.2024.15.

[27] G. Korsoveczki, T. Vasváry, A. V. Szarka, and K. Sarvajcz, “Digital twin design of a 5 degrees of freedom industrial robotic arm for engineering education purposes,” Meas.: Sensors, vol. 38, Art. no. 101323, May 2025, doi: 10.1016/j.measen.2024.101323.

[28] V. de M. Freires, A. M. Lucas, R. H. P. Silva, and E. S. Almeida, “Development of a didactic solution for teaching concepts related to digital twins using educational robot,” Int. J. Ind. Eng. Manage., vol. 16, no. 4, pp. 444–458, Dec. 2025, doi: 10.24867/IJIEM-398.

[29] D. Bolaños, C. Caizaluisa, D. Zapata-Hidalgo, and D. Loza-Matovelle, “Design and implementation of a digital twin-enhanced collaborative robot for applied robotics education in STEM environments,” IEEE Revista Iberoamericana de Tecnologias del Aprendizaje, vol. 21, pp. 194–203, 2026, doi: 10.1109/RITA.2026.3675117.

Downloads

Published

2026-12-03

Issue

Section

Articles

How to Cite

Digital twin-oriented two-wheeled inverted pendulum platform for interactive control engineering education. (2026). Intelligent Systems and Sustainable Energy, 1(2), 112-125. https://doi.org/10.15282/isse.1.2.2026.15700