Speed control of a DC motor using Controllers
Md Akram Ahmad^{1}, Kamal Kishor^{2}, Pankaj Rai^{3}
^{1}Electronics and Communication Engineering Department, Maryland Institute of Technology and Management, Jamshedpur, India
^{2}Electronics and Communication Engineering Department, Ramgovind Institute of Technology, Koderma, India
^{3}Electrical Engineering Department, BIT Sindri, Dhanbad, India
Email address:
To cite this article:
Md Akram Ahmad, Kamal Kishor, Pankaj Rai. Speed Control of a DC Motor Using Controllers. Automation, Control and Intelligent Systems. Special Issue: Impact of Gesture Recognition in the Technological Era. Vol. 2, No. 61, 2014, pp. 19. doi: 10.11648j.acis.s.2014020601.11
Abstract: This paper describes the speed control of a DC shunt motor using conventional controllers (PID, IMC) and Fuzzy Logic controller based on Matlab Simulation program. A mathematical model of the process has been developed using real plant data and then conventional controllers and Fuzzy logic controller has been designed. A comparative analysis of performance evaluation of all controllers has been done.
Keywords: PID Controller, IMC, FLC, DC Motor
1. Introduction
DC motors are widely used in industrial applications, robot manipulators and home appliances, because of their high reliability, flexibility and low cost, where speed and position control of motor are required. This paper deals with the performance evaluation of different types of conventional controllers and intelligent controller implemented with a clear objective to control the speed of separately excited DC motor.
PID controllers are commonly used for motor control applications because of their simple structures and intuitionally comprehensible control algorithms. Controller parameters are generally tuned using ZieglerNichols frequency response method [1]. ZieglerNichols frequency response method is usually used to adjust the parameters of the PID controllers. However, it is needed to get the system into the oscillation mode to realize the tuning procedure. But it’s not always possible to get most of the technological plants into oscillation [2].
In process control, model based control systems are mainly used to get the desired set points and reject small external disturbances. The internal model control (IMC) design is based on the fact that control system contains some representation of the process to be controlled then a perfect control can be achieved. So, if the control architecture has been developed based on the exact model of the process then perfect control is mathematically possible [3].
Fuzzy logic control (FLC) is one of the most successful applications of fuzzy set theory, introduced by L.A Zadeh in 1973 and applied (Mamdani 1974) in an attempt to control system that are structurally difficult to model. Since then, FLC has been an extremely active and fruitful research area with many industrial applications reported [4]. In the last three decades, FLC has evolved as an alternative or complementary to the conventional control strategies in various engineering areas.
Analysis and control of complex, nonlinear and/or timevarying systems is a challenging task using conventional methods because of uncertainties. Fuzzy set theory [5] which led to a new control method called Fuzzy Control which is able to cope with system uncertainties. One of the most important advantages of fuzzy control is that it can be successfully applied to control nonlinear complex systems using an operator experiences or control engineering knowledge without any mathematical model of the plant [6].
2. DC Motor
Direct current (DC) motors convert electrical energy into mechanical energy through the interaction of two magnetic fields. One field is produced by a magnet of poles assembly, the other field is produced by an electrical current flowing in the motor windings. These two fields result in a torque which tends to rotate the rotor.
_{}
The armature voltage equation is given by:
(1)
Equation for back emf of motor will be
(2)
Now the torque balance equation will be given by:
(3)
(4)
Where,
Torque constant (Nm/A)
back emf constant (Vs/rad)
Let us combine the upper equations together:
(5)
(6)
Taking Laplace Transform of (5) & (6), we get
(7)
(8)
If current is obtained from (8) and substituted in (7) we have…
(9)
Then the relation between rotor shaft speed and applied armature voltage is represented by transfer function:
(10)
This is the transfer function of the DC motor.
Consider the following values for the physical parameters [7,8]
Armature inductance () = 0.5 H
Armature resistance () = 1Ω
Armature voltage () = 200 V
Mechanical inertia (J) = 0.01 Kg.m2
Friction coefficient (B) = 0.1 Nm/rad/sec
Back emf constant= 0.01 V/rad/sec
Motor torque constant= 0.01N.m/A
Rated speed = 1450 rpm
Based on the data book, the transfer function is as
(11)
3. ProportionalIntegralDerivative (PID) Controller
PID controllers are probably the most widely used industrial controller. In PID controller Proportional (P) control is not able to remove steady state error or offset error in step response. This offset can be eliminated by Integral (I) control action. Integral control removes offset, but may lead to oscillatory response of slowly decreasing amplitude or even increasing amplitude, both of which are error, initiates an early correction action and tends to increase stability of system.
Ideal PID controller in continuous time is given as
(12)
Laplace domain representation of ideal PID controller is
(13)
Ziegler and Nichols proposed rules for determining values ofbased on the transient response characteristics of a given plant. Closed loop oscillation based PID tuning method is a popular method of tuning PID controller. In this kind of tuning method, a critical gainis induced in the forward path of the control system. The high value of the gain takes the system to the verge of instability. It creates oscillation and from the oscillations, the value of frequency and time are calculated. Table 1 gives experimental tuning rules based on closed loop oscillation method [2,9].
Type of Controller  
P 



PI 



PID 



From the Closed loop oscillation method,and T = 2 sec, which implies, and
Usually, initial design values of PID controller obtained by all means needs to be adjusted repeatedly through computer simulations until the closed loop system performs or compromises as desired. These adjustments are done in MATLAB simulation.
4. Internal Model Control (IMC)
The theory of IMC states that "control can be achieved only if the control system encapsulates, either implicitly or explicitly, some representation of the process to be controlled".
The Internal Model Controller is based on the inverse of the process model we are trying to control. If we cascade the process transfer function with a controller which is the exact inverse of the process, then effectively the gain becomes unity and we have perfect setpoint tracking [10]. The main feature of internal model controller is that the process model is in parallel with the actual process.
Figure (2) shows the scheme of IMC. Internal model controller provides a transparent framework for control system design and tuning.
_{}
A controllerhas been used to control the process. Suppose is a model of[10].
Where
(14)
And if
(15)
the model is an exact representation of process, then it is clear that the output will always equal to set point. Notice that this ideal control performance is achieved without feedback.
Designed the IMC controller as
(16)
Whereis a low pass function defined as
(17)
Here we consider 2^{nd} order low pass filter (n = 2).
Thus,,
Where λ is closed loop time constant[10].
Now,
(18)
A good rule of thumb is to choose λ to be twice fast as open loop response.
λ=0.9 implies,
Thus, becomes,
(19)
Hence, from equation (14)
Implies,
(20)
5. Fuzzy Logic Controller (FLC)
NB  NM  NS  Z  PB  PM  PS 
Big negative  Medium negative  Small negative  Zero  Big positive  Medium positive  Small positive 
ce e  NB  NM  NS  Z  PS  PM  PB 
NB  NB  NB  NB  NB  NM  NS  Z 
NM  NB  NB  NB  NM  NS  Z  PS 
NS  NB  NB  NM  NS  Z  PS  PM 
Z  NB  NM  NS  Z  PS  PM  PB 
PS  NM  NS  Z  PS  PM  PB  PB 
PM  NS  Z  PS  PM  PB  PB  PB 
PB  Z  PS  PM  PB  PB  PB  PB 
The fuzzy controllers are designed with two input variables, error and change of error and one output variable. The Mamdani based fuzzy inference system uses linear membership function for both inputs and outputs [11]. For the fuzzy logic controller the input variables are errorand rate (change) of error, and the output variable is controller output. Triangular membership functions are used for input variables and the output variable. Each variable has 7 membership functions. Thus, there were total 49 rules generated. The universe of discourse of error, rate of error and output are [120,120], [120,120] and [180,180] respectively. The rule base framed for DC motor is tabulated in Table 3[12].
The structure of the rule base provides negative feedback control in order to maintain stability under any condition. Linguistic variables for error, rate of error and controller output are tabulated in table 2[13].
Fig 4, 5 and 6 shows membership functions of different variables implemented in FIS editor in MATLAB toolbox.
6. Simulation
The simulations for different control mechanism discussed above were carried out in Simulink in MATLAB and simulation results have been obtained.
7. Result and Discussion
To evaluate the performance of the different controllers, the maximum overshoot, the settling time and the rise time of step response has been analyzed.
Table 4 shows the comparison of parameters calculated from unit step response
Controllers  Maximum Overshoot (%)  Settling time (sec)  Rise time (sec) 
PID  2.1  7.2  3.65 
IMC  0  6.9  2.5 
FLC  0  2.3  1.8 
The feedback controller (PID controller) gives 2.1% peak overshoot with settling time of7.2 sec. The peak overshoot is in a higher side. To compensate the high peak overshoot, model based controller (internal model controller) was designed. The internal model controller (IMC) reduces the peak overshoot to 0% and reduces the settling time to 6.9 sec. To further improve the response, Fuzzy logic controller having seven membership functions has been designed. The designed fuzzy logic controller gives a peak overshoot of 0% (no overshoot) and reduces the settling time to 2.3 sec.
8. Conclusion
In this paper, comparative studies of performance of different conventional controllers and fuzzy logic controller has been studied. According to the comparison of results of the simulations, it is found that the Fuzzy Logic Controller is better than conventional controllers namely PID and IMC.
Hence it is concluded that the proposed Fuzzy Logic Controller provides better performance characteristics and improve the control of DC motor.
References