Genetic Algorithm Based Speed Control of PMDC Motor Using Low Cost PIC 16F877A Microcontroller ()
Received 17 March 2016; accepted 20 April 2016; published 8 June 2016
1. Introduction
DC motors are in general much more adaptable to adjustable speed drives than ac motors which are associated with a constant speed rotating fields. Indeed this susceptibility of dc motors to adjustment of their operating speed over wide ranges and by a variety of methods is one of the important reasons for strong competitive position of dc motors in modern industrial drives. There are different methods of speed control strategies and controllers for the dc motor. The DC drive system consists of a chopper circuit for the control of input voltage to the armature. The speed of the DC motor in turn is decided by the armature input voltage [1] - [4] . These controllers include both the conventional controllers like PI (Proportional Integral) and different modern intelligent controllers. The tuning of the PI, PID or PD controller employed in this drive for efficient operation is assisted with the help of Ziegler-Nichol’s method [5] . Self-tuning of the PID controllers is addressed in [6] , whereas the adaptive tuning method for HVAC system is defied in [7] .
A PI controller to minimize the speed error of servo motor has been focused [8] . Several comparative analyses of P, PI and PID controllers with their modern counterparts have been studied [9] - [12] . A Fuzzy logic based DC motor drive has been suggested for accurate drilling which uses current control method [13] . The performance of anti-windup PI controller tuned using fuzzy logic was designed, developed and analyzed experimentally [14] . However, in all the aforementioned speed control techniques, tuning of P, PI and/or PID controllers that have been addressed doesn’t provide good and efficient performance. To enhance the system performance in steady state and transient state conditions, this paper proposes, a Genetic Algorithm (GA) based tuning of PI controller for chopper driven PMDC motor. The proposed system has been simulated using Matlab/Simulink and experimentally validated.
2. Modelling of the PMDC Motor
The PMDC motors are the low power motors that are used in the medical treatment for orthopaedic surgical simulators which requires less input power and its operation is quite and better for this application. The speed of the motor can be controlled by varying the armature voltage. The following is the basic armature voltage equation of the PMDC motor. The mathematical model of the PMDC motor is as given by Equation (1) [15] [16] . From the above authors analysis the following mathematical model of the motor is derived from the equivalent circuit as shown in Figure 1.
(1)
where Va is the armature voltage in Volts,
Ia is the armature current in A,
La is the armature inductance in H,
E is the back emf in Volts.
The following figure shows the Simulink block diagram of a PMDC motor.
The various advantages of PMDC motors are
・ Higher efficiency since no loss in field circuit
・ Linear torque speed characteristics
・ Higher magnetic flux density in air gap and so better dynamic performance
・ Compact size
・ Simplified construction
・ Free from maintenance
・ Wide operating speed range
・ Ability to adapt a range of power sources.
3. PI Controller Based PMDC Motor
The PI controller calculation (algorithm) involves two separate parameters, and is accordingly the proportional, and the integral values, denoted P, I. The proportional value determines the reaction to the current error, the integral value determines the reaction based on the sum of recent errors, and the derivative value determines the reaction based on the rate at which the error has been changing.
The weighted sum of these three actions is used to adjust the process via a control element such as the position of a control valve or the power supply of a heating element. Heuristically, these values can be interpreted in terms of time: P depends on the present error, I on the accumulation of past errors. By tuning the two constants in the PI controller algorithm, the controller can provide control action designed for specific process requirements.
The response of the controller can be described in terms of the responsiveness of the controller to an error, the degree to which the controller overshoots the set point and the degree of system oscillation. It is to be noted that the use of the PI algorithm for control does not guarantee optimal control of the system or system stability. Figure 2 shows the block diagram for the speed control of PMDC motor.
Figure 3 shows the Simulink output obtained for the PMDC motor control using PI controller.
4. GA optimized Controller for PMDC Motor
In order to achieve an effective control of PMDC motor, the GA optimization technique is used to tune the parameters of the PI controller. Genetic algorithm is a biological inspired algorithm used [17] [18] . It helps in optimizing the various gain functions of PI controllers. The Simulink response of the GA tuned PI controller for a set speed of 500 RPM has been depicted in Figure 4.
The various genetic parameters used are given in Table 1.
5. Experimental Setup of Chopper Controller Drive
An experimental setup has been designed and the hardware has been realized using a Peripheral Interface Controller (PIC) microcontroller. The block diagram and circuit of the hardware is shown in Figure 5 & Figure 6. It comprises of a PIC 16F877A microcontroller, which has an inbuilt PWM generator and an Analog to Digital Converter (ADC) unit. The MOSFET IRF840 is used as the switching device. The variations in the pulse width
Figure 2. Block diagram of PI controller based PMDC motor.
Figure 3. Response of PI controlled PMDC motor for 500 RPM.
Figure 4. Response of GA Tuned PI controller for set speed of 500 RPM.
have been observed for the speed values of 500 rpm and 1500 rpm. The experimental results are portrayed in Figure 7 and Figure 8 for the speed values of 500 and 1500 rpm respectively.
6. Results and Discussions
Table 2 elucidates the comparative analysis of simulated results of conventional PI controller and the proposed
Figure 6. Circuit diagram of chopper controlled drive using PIC.
Figure 7. PWM pulse generated for 500 rpm.
Figure 8. PWM pulses generated for 1500 rpm.
Table 2. Comparative analysis of proposed and conventional drive system.
Genetic Algorithm based chopper drive circuit. For a low speed of 500 rpm, the proposed system resulted in less peak overshoot of 0.2% whereas the conventional system offered 26.2%. Similar results were found for medium and high speed values. For instance, at 1000 rpm, the peak overshoot was 1% in proposed system and 1.33% for 1500 rpm. These values are very low compared to the conventional system which offered 9.4% and 4.7% for 1000 and 1500 set rpm values.
The other control system parameter which is taken up for study is steady state error. The steady state error of conventional system is 0.5% at 500 rpm and 0.71% at 1500 rpm. For these two set speed values, the proposed drive systems offered very low and even zero steady state error. For 500, 1000 and 1200 rpm, the steady state error of the proposed system is zero whereas for the high speed of 1500 rpm, it offered 0.12%. Alike results have been portrayed for the other parameters viz. rise time, settling time and fall time. All these results infer the superiority of the proposed genetic algorithm based chopper drive for PMDC motors.
7. Conclusion
Thus it can be concluded that the proposed controller using GA optimization helps in achieving an effective control for the PMDC motor when compared to the conventional PI controller. Also from the tables in Section 4 and 5, it is clear that the performance parameters of the motor operation like settling time, rise time, fall time and peak overshoot are better and there is no steady state error in case of the proposed intelligent controller. The experimental results validate the simulation results.
NOTES
*Corresponding author.