Web-Based Virtual Lab for DC Motor Control: Implementing RK4 and Anti-Windup PID Strategies

Authors

DOI:

https://doi.org/10.29103/mjmst.v9i2.25474

Keywords:

Control System, DC Motor Control, PID Anti-Windup, Runge-Kutta 4th Order, Virtual Laboratory

Abstract

Control systems education often faces a dichotomy between costly physical laboratories and accessible but numerically inaccurate simulation platforms, such as web-based simulators. Existing web-solutions typically rely on low-order integration methods, failing to capture realistic non-linear behaviors crucial for industrial applications. This study addresses these limitations by developing a high-fidelity, client-side Virtual Laboratory for DC Motor control. The novelty of this work lies in the integration of the Runge-Kutta 4th Order (RK4) algorithm within a lightweight HTML5/JavaScript architecture, eliminating server-side latency while ensuring superior numerical precision over standard Euler-based applets. Furthermore, the system implements a realistic discrete PID controller with a Conditional Integration (Clamping) Anti-Windup strategy, enabling precise analysis of actuator saturation effects. Validation benchmarks against standard numerical computing software like GNU Octave demonstrate rigorous accuracy. The proposed system achieves a steady-state relative error of less than 0.001% and shows negligible deviation in transient response metrics (rise time, settling time, and overshoot). Additionally, the virtual lab maintains identical closed-loop pole locations up to four decimal places. By integrating real-time Bode Plot and Root Locus analysis, this platform provides a robust, open-access tool that effectively bridges the gap between theoretical design and practical non-linear implementation challenges.

References

[1] Feisel, L. D., & Rosa, A. J. (2005). The role of the laboratory in undergraduate engineering education. Journal of Engineering Education, 94(1), 121-130.

[2] Ogata, K. (2010). Modern Control Engineering (5th ed.). Prentice Hall.

[3] Dorf, R. C., & Bishop, R. H. (2017). Modern Control Systems (13th ed.). Pearson.

[4] Brinson, J. R. (2015). Learning outcome achievement in non-traditional (virtual and remote) versus traditional (hands-on) science labs: A review of the empirical literature. Computers & Education, 87, 218-237.

[5] Gravier, C., Fayolle, J., Bayard, B., Ates, M., & Lardon, J. (2008). State of the art about remote laboratories paradigms, foundations and technologies. International Journal of Online Engineering (iJOE), 4(1), 19-25.

[6] Jara, C. A., Candelas, F. A., Torres, F., Dormido, S., Esquembre, F., & Reinoso, O. (2009). Real-time collaboration of virtual laboratories through the Internet. Computers & Education, 52(1), 126-140.

[7] Franklin, G. F., Powell, J. D., & Emami-Naeini, A. (2019). Feedback Control of Dynamic Systems (8th ed.). Pearson.

[8] Gomes, L., & Bogosyan, S. (2009). Current trends in remote laboratories. IEEE Transactions on Industrial Electronics, 56(12), 4744-4756.

[9] Heradio, R., et al. (2016). Virtual and remote labs in education: A bibliometric analysis. Computers & Education, 98, 14-38.

[10] Dormido, S., Vargas, H., Sanchez, J., et al. (2008). Development of a web-based control laboratory for automation technicians: The three-tank system. IEEE Transactions on Education, 51(1), 35-44.

[11] Guimarães. E. G., Cardozo. E., Moraes. D. H., & Coelho. P. R. (2011). Design and Implementation Issues for Modern Remote Laboratories. IEEE Transactions on Learning Technologies, vol. 4, no. 2, pp. 149-161.

[12] Guzman. J. L., Costa-Castello. R., Dormido. S., & Berenguel. M. (2016). An Interactivity-Based Methodology to Support Control Education: How to Teach and Learn Using Simple Interactive Tools [Lecture Notes]. IEEE Control Systems Magazine, vol. 36, no. 1, pp. 63-76,

[13] Chapra, S. C., & Canale, R. P. (2015). Numerical Methods for Engineers (7th ed.). McGraw-Hill Education.

[14] Åström, K. J., & Hägglund, T. (2006). Advanced PID Control. ISA - The Instrumentation, Systems, and Automation Society.

[15] Butcher, J. C. (2016). Numerical Methods for Ordinary Differential Equations. Wiley.

[16] Visioli, A. (2006). Practical PID Control. Springer-Verlag London.

[17] Eaton, J. W., et al. (2019). GNU Octave version 5.2.0 manual: a high-level interactive language for numerical computations.

[18] Fabregas, E., Farias, G., Dormido-Canto, S., & Dormido, S. (2011). Developing a remote laboratory for engineering education. Computers & Education, 57(2), 1686-1697.

[19] Nise, N. S. (2019). Control Systems Engineering (8th ed.). Wiley.

[20] Kuo, B. C., & Golnaraghi, F. (2010). Automatic Control Systems (9th ed.). Wiley.

[21] Press, W. H., et al. (2007). Numerical Recipes 3rd Edition: The Art of Scientific Computing. Cambridge University Press.

[22] Dormand, J. R., & Prince, P. J. (1980). A family of embedded Runge-Kutta formulae. Journal of Computational and Applied Mathematics, 6(1), 19-26.

[23] Isermann, R. (2013). Digital control systems. Springer Science & Business Media.

[24] Galeani, S., Tarbouriech, S., Turner, M., & Zaccarian, L. (2009). A tutorial on modern anti-windup design. European Journal of Control, 15(3-4), 418-440.

[25] Ang, K. H., Chong, G., & Li, Y. (2005). PID control system analysis, design, and technology. IEEE Transactions on Control Systems Technology, 13(4), 559-576.

[26] Hansen, J. S. (2011). GNU Octave: Beginner's Guide. Packt Publishing Ltd.

[27] Skogestad, S., & Postlethwaite, I. (2005). Multivariable Feedback Control: Analysis and Design (2nd ed.). Wiley.

[28] Dormido, R., Vargas, H., Duro, N., Sánchez, J., Dormido-Canto, S., Farias, G., ... & Dormido, S. (2008). Development of a web-based control laboratory for automation technicians: The three-tank system. IEEE Transactions on education, 51(1), 35-44.

Downloads

Published

2025-12-22

How to Cite

Shaki Saptiadi Putra, Nuzan Rizki, M., & Rahman, A. (2025). Web-Based Virtual Lab for DC Motor Control: Implementing RK4 and Anti-Windup PID Strategies. Malikussaleh Journal of Mechanical Science and Technology, 9(2), 365–371. https://doi.org/10.29103/mjmst.v9i2.25474

Most read articles by the same author(s)

1 2 > >>