Design and implementation of hardware in the loop simulation for electric ducted fan rocket control system using 8-bit microcontroller and real-time open source middleware

Reza Aulia Yulnandi, Carmadi Machbub, Ary Setijadi Prihatmanto, Egi Muhammad Idris Hidayat


Hardware in the Loop Simulation (HILS) is intended to reduce time and development cost of control system design. HILS systems are mostly built by integrating both controller hardware and simulator software where the software is not an open source. Moreover, implementing HILS by using manufactured system is costly. This paper describes the design and implementation of HILS for Electric Ducted Fan (EDF) rocket by using open-source platform for development with middleware. This middleware system is used to bridge the data flow between controller hardware and simulator software. A low-cost ATMEGA 2560 8-bit microcontroller is used to calculate rocket’s attitude with Direction Cosine Matrix (DCM) algorithm and PID controller is employed to regulate rocket’s dynamics based on desired specifications. X-Plane 10 simulator software is used for generating simulated sensory data. The test results validate that HILS design meets the defined specifications, i.e. angle difference of 0.3 degrees and rise time of 0.149 seconds on pitch angle.


HILS; DCM; open-source platform; X-Plane; middleware; EDF rocket

Full Text:



H. Y. Irwanto, "HILS of auto take off system: For high Speed UAV using booster rocket," 2016 International Seminar on Intelligent Technology and Its Applications (ISITIA), Lombok, 2016, pp. 373-380.

D. Joglekar et al., "Autopilot design for aerospace vehicle using GUI — A user friendly approach," 2013 Annual IEEE India Conference (INDICON), Mumbai, 2013, pp. 1-6.crossref

N. P. Mahalik and K. Kim, "A Prototype for Hardware-in-the-Loop Simulation of a Distributed Control Architecture," in IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews), vol. 38, no. 2, pp. 189-200, March 2008.crossref

H. Min et al., “Thruster Control for Micro-satellite Attitude and Hardware-in-the-loop Demonstration,” in 2012 International Conference on Industrial Control and Electronics Engineering, 2012, pp. 588–591.crossref

A. Bittar and N. M. F. de Oliveira, "Hardware-in-the-loop simulation of an attitude control with switching actuators for SUAV," 2013 International Conference on Unmanned Aircraft Systems (ICUAS), Atlanta, GA, 2013, pp. 134-142.crossref

A. Alsaraj and G. Stuffle, "Investigation of hardware-in-loop simulation (HILS) for guidance system," 2015 IEEE Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), Chongqing, 2015, pp. 704-708.crossref

J. Park et al., "Hardware in-the-loop simulation for ABS using 32-bit embedded system," 2011 11th International Conference on Control, Automation and Systems, Gyeonggi-do, 2011, pp. 575-580.

A. Nurhafid et al., "Modelling and simulation of RKX200 rocket flight dynamics," 2013 3rd International Conference on Instrumentation, Communications, Information Technology and Biomedical Engineering (ICICI-BME), Bandung, 2013, pp. 230-236.crossref

I.-G. Jang et al., "Testing 32-bit embedded system using hardware-in-the-loop-simulation of automatic transmission," 2007 International Conference on Control, Automation and Systems, Seoul, 2007, pp.


Y. W. Hadi and R. T. Bambang, "Development of hardware-in-the-loop simultion for rocket guidance system," 2015 International Conference on Electrical Engineering and Informatics (ICEEI), Denpasar, 2015, pp. 229-234.crossref

B. J. Emran et al., “A cascaded approach for quadrotor’s attitude estimation”, 2nd International Conference on System-integrated Intelligence: Challenges for Product and Production Engineering, 2014, pp. 268 -277.crossref

M. S. Islam et al., "A low cost MEMS and complementary filter based attitude heading reference system (AHRS) for low speed aircraft," 2016 3rd International Conference on Electrical Engineering and Information Communication Technology (ICEEICT), 2016, pp. 1-5.crossref

Article Metrics

Metrics Loading ...

Metrics powered by PLOS ALM


  • There are currently no refbacks.

Copyright (c) 2017 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.