Hardware-in-the-loop simulation of DC motor as an instructional media for control system design and testing

Muhammad Zakiyullah Romdlony, Fakih Irsyadi


Instructional media in control systems typically requires a real plant as an element to be controlled. However, this real plant, which is costly to be implemented, can be replaced by a virtual plant implemented in a computer and modelled in such a way that it resembles the behavior of a real plant. This kind of set-up is widely termed as hardware-in-the-loop (HIL) simulation. HIL simulation is an alternative way to reduce the development cost. A virtual plant is easy to adjust to represent various plants or processes that are widely used in industry. This paper proposes a simple HIL simulation set-up designed as instructional media for design and testing a simple control system. The experimental result on DC motor control shows that HIL simulation dynamical response is similar to the real hardware response with a small average error on measured transient response, represented in 0.5 seconds difference in settling time and 7.43 % difference in overshoot. This result shows the efficacy of our HIL simulation set-up.


control systems; hardware-in-the-loop (HIL); instructional media

Full Text:



K. Gamage et.al., “Online Delivery of Teaching and Laboratory Practices: Continuity of University Programmes during COVID-19 Pandemic,” Education Science, 2020.

S. Usenmez et.al., “A New Hardware-in-the-Loop Simulator for Control Engineering Education,” in IEEE Global Engineering Education Conference (EDUCON), 2014.

A. Gambier, “Real-time Control and Hardware-in-the-loop Simulation for Educational Purposes of Wind Energy Systems,” ScienceDirect, vol. 53, issue 2, pp. 17344–17349, 2020.

M. Goubej and M. Langmajer, “Experience with use of HIL simulators in control engineering course,” IFAC-PapersOnLine, vol. 53, no. 2, pp. 17308–17313, 2020.

O. L. Osen, “On the use of hardware-in-the-loop for teaching automation engineering,” in IEEE Glob. Eng. Educ. Conf. EDUCON, vol. April-2019, pp. 1308–1315, 2019.

A. Soltani et.al., “A Hardware-in-the-Loop Facility for Integrated Vehicle Dynamics Control System Design and Validation,” 7th IFAC Symposium on Mechatronic Systems MECHATRONICS, Leicestershire, UK, 2016.

A. Taksale et.al, “Low cost Hardware-in-Loop for Automotive Application,” in International Conference on Industrial Instrumentation and Control (ICIC), India, 2015.

L. Heidrich et.al., “Hardware-in-the-loop test rig for integrated vehicle control systems,” 7th IFAC Symposium on Advances in Automotive Control, Tokyo, Japan, 2013.

S. Raikwar et.al., “Hardware-in-the-Loop test automation of embedded systems for agricultural tractors,” Measurement, 133, pp. 271–280, 2019.

G. Gambino et al., “A low-cost HIL platform for testing professional refrigerators controllers,” vol. 19, no. 3. IFAC, 2014.

I. Tejado, J. Serrano, E. Pérez, D. Torres, and B. M. Vinagre, “Low-cost Hardware-in-the-loop Testbed of a Mobile Robot to Support Learning in Automatic Control and Robotics,” IFAC-PapersOnLine, vol. 49, no. 6, pp. 242–247, 2016.

S. Biswas, “Real-time arduino based simulator enabled hardware-in-the-loop electric DC machine drive system,” in IEEE Region 10 Humanitarian Technology Conference, Dhaka, Bangladesh, 2017.

J. Sobota, “Raspberry Pi-based HIL simulators for control education,” IFAC PapersOnLine, pp.52-9 68–73, 2019.

R. Isermann, J. Schaffnit, and S. Sinsel, “Hardware-in-the-Loop Simulation for the Design and Testing of Engine-Control Systems,” in IFAC Proc., vol. 31, no. 4, pp. 1–10, 1998.

X. Wang, Yin T, Chen J, et al., “Rapid design of Motor DC speed control system based on Matlab[J],” Applied Mechanics & Materials, 2015, 743:168-171.

Tang, Wei-Jie, Zhen-Tao Liu, and Qian Wang. "DC motor speed control based on system identification and PID auto tuning." in Chinese Control Conference (CCC), 2017 36th Chinese. IEEE, 2017.

Ismeal, Godem A., Karol Kyslan, and Viliam Fedák. "DC motor identification based on Recurrent Neural Networks." in Mechatronics-Mechatronika (ME), 2014 16th International Conference on. IEEE, 2014.

L. Ljung, “Prediction error estimation methods,” Circ. Syst. Signal Process. 21 (2002) 11–21.

Article Metrics

Metrics Loading ...

Metrics powered by PLOS ALM


  • There are currently no refbacks.

Copyright (c) 2021 Journal of Mechatronics, Electrical Power, and Vehicular Technology

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



1. Performance analysis of State-Estimator Implementation on Hardware-In-The-Loop of Ball and Beam System
Muhammad Zakiyullah Romdlony, Fakih Irsyadi, Dien Rahmawati, Handika Yulma Kristiawan
TEKNIK  vol: 43  issue: 1  first page: 36  year: 2022  
doi: 10.14710/teknik.v43i1.41681