A Speed Control of DC Motor with PWM Using Microcontroller in Hardware in Loop


  • S Reeba Rex
  • Mary Synthia Regis Praba






Boost converter, duty cycle, pulse width modulation, proportional integral derivative.


This paper presents an implementation of a microcontroller based boost converter to maintain constant speed of a DC motor. The optimised values namely kp,ki,kd  of the  Boost Converter  are taken from firefly algorithm[10] and implemented using microcontroller. Pulse width modulation (PWM) is a procedure to generate changeable pulse width with different duty cycle. The PWM signal reduces the switching losses. This paper presents a DC motor speed controller where PID Controller is used where the optimized values of kp,ki,kd are taken from firefly algorithm[10]. The PWM pulse width will alter the speed of the motor.  The motor voltage and revolutions per seconds (RPS) obtained at different duty cycle rates. With increase in duty cycle, further voltage is applied to the motor. This gives stronger magnetic flux in the armature windings and to enhance revolutions per seconds. The characteristics and concert of the DC motor speed control system was discussed. In this paper, a PIC microcontroller is designed with a DC-DC boost converter for the motor speed controller system. Finally to improve the graphical result we design the hardware in loop method using matlab.




[1] Sundareswaran K & Sreedevi VT, “Boost Converter Controller Design Using Queen-Bee-Assisted GAâ€, IEEE Trans. Ind. Electron., Vol.56, No.3, (2009), pp.779–783.

[2] Copeland BR, “The design of PID Controllers using Ziegler Nichols Tuningâ€, (2008).

[3] Taeed F, Salam Z & Ayob SM, “Implementation of Single Input Fuzzy Logic Controller for Boost DC to DC Power Converterâ€, IEEE International Conference on Power and Energy (PECon2010), (2010), pp.797-802.

[4] Tan SC, Lai YM & Tse CK, “Implementation of pulse-width-modulation based sliding mode controller for boost convertersâ€, IEEE Power Electronics Letters, Vol.3, No.4,(2005), pp.130-135.

[5] Mohan N, Undeland TM & Robbins WP, Power Electronics, 2nd ed. New York: Wiley, (2003).

[6] Raviraj VSC & Sen PC, “Comparative study of proportional–integral, sliding mode, and fuzzy logic controllers for power convertersâ€, IEEE Trans. Ind. Appl., Vol.33, No.2, (1997), pp.518–524.

[7] Zaitsu R, “Voltage mode boost converter small signal control loop analysis using the TPS61030â€, Texas Instruments, Appl. Report SLVA274A, (2009).

[8] Tang KL & Mulholland RJ, “Comparing Fuzzy logic with classical controller designâ€, IEEE Transactions on systems, Man and cybernetics, Vol.6, (1987), pp.1085-1087.

[9] Vorperian V, “Simplified Analysis of PWM Converters Using the Model of the PWM Switch,Parts I (CCM) and II (DCM)â€, IEEE Transactions on Aerospace and Electronic Systems, Vol.26, No.3, (1990).

[10] Reeba Rex S & Mary Synthia Regis Praba DM “Modern Optimization based Controller Design for Boost Converter Using Soft Computing Techniquesâ€, Jour of Adv Research in Dynamical & Control Systems, Vol.10, No.2, (2018).

[11] Iskakova, M Sarsembayev, Z Kakenova (2018). Can Central Asia be integrated as asean? Opción, Año 33. 152-169.

[12] G Cely Galindo (2017) Del Prometeo griego al de la era-biós de la tecnociencia. Reflexiones bioéticas Opción, Año 33, No. 82 (2017):114-133

View Full Article: