You are on page 1of 7

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/261502242

Speed control of DC motor using PID controller based on artificial intelligence


techniques

Conference Paper · May 2013


DOI: 10.1109/CoDIT.2013.6689543

CITATIONS READS

9 2,770

3 authors, including:

M. A. Fkirin Mohamed Ahmed Moustafa Hassan


Minoufiya University Cairo University
53 PUBLICATIONS   143 CITATIONS    154 PUBLICATIONS   652 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Short Term Load Forecasting View project

The Use Of Neuro Fuzzy Systems In Power Systems And Control View project

All content following this page was uploaded by Mohamed Ahmed Moustafa Hassan on 04 May 2015.

The user has requested enhancement of the downloaded file.


Speed Control of DC Motor Using PID Controller
Based on Artificial Intelligence Techniques
Walaa M. Elsrogy* M. A. Fkirin** M. A. Moustafa Hassan***

*Great Cairo Company for Water, Cairo, Egypt.


**Industrial Electronic and Control Department, Menofia University, Menofia, Egypt.
***Electric Power and Machines Department, Cairo University, Giza, Egypt.
Correspondence E-Mails:
* way_forallah@yahoo.com **mafkirin@yahoo.com *** mmustafa_98@hotmail.com

Abstract— the aim of this paper is to design a speed controller being evaluated for the system every time.
controller of a DC motor by selection of a PID parameters Furthermore, the effective of applying Adaptive Neuro
using genetic algorithm (GA) and Adaptive Neuro-Fuzzy -Fuzzy Inference SYSTEM (ANFIS) based on genetic
Inference System (ANFIS). DC motor could be algorithms will be studied. The objective of this paper
represented by a nonlinear model when nonlinearities such is to show that by employing the GA method with and
as magnetic saturation are considered. To provide effective without ANFIS of tuning a system, an optimization can
control, nonlinearities and uncertainties in the model must be achieved. This can be seen by comparing the results
be taken into account in the control design.The model of a of the GA optimized system against the Ziegler-Nichols
DC motor is considered as a third order system. And this tuned system.
paper compares three kinds of tuning methods of
parameter for PID controller. One is the controller design II. The DC Motor Model
by the Ziegler and Nichols, second is the controller design An electric motor converts electric energy to
by the Genetic Algorithm method and third is the mechanical energy by using interacting magnetic fields.
controller design by Adaptive Neuro-Fuzzy Inference Electric motors are used for a wide variety of
System (ANFIS). The proposed methods could be applied residential, commercial, and industrial operations.
to the higher order systems.
As reference the connection for a shunt-type DC motor
Keywords— DC Motor, Genetic Algorithm, PID is illustrated in Figure (1) a shunt-wound DC motor
Controller, Ziegler Nichols Method, ANFIS. consists of a shunt field connected in parallel with the
armature. The shunt field winding is made up of many
turns of small-gauge wire and has a much higher
I. INTRODUCTION
resistance and lower current flow compared to a series
DC motors have been widely used in industry even field winding. As a result, these motors have excellent
though its maintenance costs are higher than the speed and position control. Hence DC shunt motors are
induction motor. Proportional-Integral Derivative (PID) typically used applications that require five or more
controllers have been widely used for speed and horse power. The equations describing the dynamic
position control of DC motor. The paper achievement is behaviour of the DC motor based on the schematic
to design a control system using Genetic Algorithm diagram on Figure (2) are given by the following
with considering of non linearity effective of the system. equations;.
Genetic Algorithm or in short GA is a stochastic
algorithm based on principles of natural selection and + (1)
genetics. Genetic Algorithms (GAs) are a stochastic
global search method that mimics the process of natural
evolution. Using genetic algorithms to perform the
tuning of the controller will result in the optimum

1
Table: (1) the Specification and Parameters of DC Motor
Specification 2 hp, 230 V, 8.5
Amperes, 1500 rpm
Parameters
2.45Ω (Armature resistance)

0.035H (Armature
inductance)
1.2Vs/rad
(Back emf)

Fig. 1: Diagram of DC Shunt Motor


0.022 kg (Moment of inertia)
0.5* (Nms/rad (Frictional
) constant)

The transfer function of the used DC Motor is:

Fig. 2: the schematic diagram OF DC motor (7)

(2)
III. TUNING OF PID CONTROLLER USING SEVERAL
(3)
METHODS

(4) A. Ziegler-Nichols Tuning Method:


Then, There are two methods for determination of the
parameters of PID controllers called Ziegler-Nichols
(5)
tuning rules. But the widely accepted method for tuning
After simplification and taking the ratio of θ(s)/ v(s). the PID controller is straightforward method. First, set the
controller to P mode only. Next, set the gain of the
The transfer function will be given blew,
controller ( ) to a small value. If is low the response
Θ(s) / v(s)=Kb / [J La S3 + (Ra J+B La)S2 +(Kb2+Ra B)S] should be Sluggish. Increase by a factor of two and
Keep increasing (by a factor of two) until the response
(6)
becomes oscillatory. Finally, adjust until a response is
Where; obtained that produces continuous oscillations. This is
= armature voltage (V), = armature resistance known as the ultimate gain ( ) or . Note that the period of
(Ω), = armature inductance (H), = armature current the oscillations is known as ultimate period ( ).
(A), = back emf (V) = angular speed (rad/s), =
The steps required for the method are given below:-
motor torque (Nm) = angular position of rotor shaft
ƒ The integral and derivative coefficients have to set
(rad), = rotor inertia (kg ) = viscous
(gains) to zero.
friction coefficient (Nms/rad), = torque constant
(Nm/A) = back emf constant (Vs/rad). The DC motor ƒ Gradually increase the proportional coefficient from
under study has the following specifications and zero to until the system just begins to oscillate
parameters are given in Table (1): continuously (sustained oscillation). The proportional
coefficient at this point is called the ultimate gain ( ).

2
ƒ And the period of oscillation at this point is called
ultimate period ( ).

The Ziegler-Nichols Tuning Rule are then obtained from


the following Table (2),

Table: (2) Ziegler-Nichols Tuning Rule Based

Controller
Kp Ki Kd
Type

Ku /1.7 Tu/2 Tu/8


PID

Fig. 4: Response of the system Using PID Controller


Tuning With Ziegler-Nichols
It was found that, the critical gain Ku = 84and the critical
period Tu = 0.15 sec and PID controller is shown in Figure B. Genetic Algorithm Method:
(3), where =49.41, =0.075 and =0.01875 and also
GA has been recognized as an effective and efficient
the out put response of the system is shown in Figure (4).
technique to solve optimization problems. GA starts with
an initial population containing a number of chromosomes
where each one represents a solution of the problem which
performance is evaluated by a fitness function. Basically,
GA consists of three main stages: Selection, Crossover and
Mutation. The application of these three basic operations
allows the creation of new individuals which may be better
than their parents. This algorithm is repeated for many
generations and finally stops when reaching individuals
that represent the optimum solution to the problem. The
Genetic Algorithm Process Architecture is shown in
Figure(5).

The proposed PID controller with applying Genetic


Algorithm Method is given in Figure (6), and also The
genetic algorithm gain values for the tuning is given below
Fig. 3: Block Diagram For The Complete System Using PID Controller in Table(3). The out put response of the system is showen
Tuning With Ziegler-Nichols
in Figure (7), and we can analyze the system for the
previous parameters
From the above response, we can analyze the system. We
can analyze the following parameters: o Maximum Overshoot, Mp
o Settling time, ts
ƒ Maximum Overshoot, Mp
ƒ Settling time, ts The Maximum Overshoot, Mp of the system is
approximately zero. The Settling time, ts is about 0.45 sec.
The Maximum Overshoot, Mp of the system is
we will go for studying the effect of ANFIS for PID
approximately 0.02. The Settling time, ts is about 0.8 sec. controller based on Genetic Algorithm.
From the analysis above, the system has not been tuned to
its optimum. So we have to go for genetic algorithm C. Adaptive Neuro-Fuzzy Inference System (ANFIS)
approach.
method:

3
IS A model that maps input characteristics to input Table: (3) The GA based PID controller gain values
membership functions, input membership function to rules,
rules to a set of output characteristics, output
Gain Parameters Gain Values
characteristics to output membership functions, and the
output membership function to a single-valued output or a Kp 19.88
decision associated with the output.
Ki 0.1376

Kd 0.5578

Fig. 5: Genetic Algorithm Process Architecture

Fig. 7: Response Of Genetic Algorithm Based PID controller

ANFIS TOOL BOX:

These tools apply fuzzy inference techniques to data


modeling
ƒ The shape of the membership functions depends on
parameters
ƒ Membership function parameters were chosen
automatically using these Fuzzy Logic Toolbox
applications
Fuzzy Logic Toolbox software computes the membership
function parameters that best allow the associated fuzzy
inference system to track the given input/output data. The
Fig. 6: Block Diagram For The Complete System Of Genetic
Algorithm based PID ANFIS tool box after training data is shown in Figure (8).

4
Table (4) : Comparison between ZN, GA, and ANFIS
Responses

Tuning Maximum Settling time


method overshoot (sec)

ZN 0.02 0.8

Genetic __ 0.45
Algorithm

__
ANFIS 0.5

Fig 8: ANFIS Tool Box After Training Data


Then, fuzzy logic controller based on ANFIS tool box
became apart of complete PID controller. The block
diagram for the complete system is given below in Figure
(9) and response of Adaptive Neuro-Fuzzy Inference
System (ANFIS) based PID controller is shown in Figure
(10).

Fig.10: Response of Adaptive Neuro-Fuzzy Inference System (ANFIS)


Based PID Controller

V. Conclusions
The designed PID with Adaptive Neuro-Fuzzy Inference
System based GA has much faster response than response
Fig. 9: block diagram for the complete system of ANFIS based PID of the classical method. The classical method is good for
giving us as the starting point of what are the PID values.
However Adaptive Neuro-Fuzzy Inference System based
Also, the system for the previous parameters could be GA designed PID is much better in terms of the rise time
analyzed based on: and the settling time than the conventional method. Finally
the Artificial Intelligence Techniques provides much better
o Maximum Overshoot, Mp results compared to the conventional methods. And also
o Settling time, ts the error associated with the Adaptive Neuro-Fuzzy
Inference System based GA is much lesser than the error
The Maximum Overshoot, Mp of the system is calculated in the conventional scheme.
approximately zero. The Settling time, ts is about 0.5
sec.

5
References: [9] K Ogata, Modern Control Systems, University of
Minnesota, Prentice Hall, 1987.
[1] Michael J. Burridge a, Zhihua Qu b,* a Logicon RDA, An [10] T. O..Mahony, C J Downing and K Fatla, “Genetic
improved nonlinear control design for series DC motor Algorithm for PID Parameter Optimization: Minimizing
12151 Research Parkway, Orlando, FL 32826, USA b Error Criteria”, Process Control and Instrumentation 2000
School of Electrical Engineering and Computer Science, 26-28 July 2000, University of Stracthclyde, pg 148- 153.
University of Central Florida, Orlando, FL 32816, USA [11] Chipper field, A. J., Fleming, P. J., Pohlheim, H. and
[2] A M. Sharaf, SM Mark Masry; Non linear Speed Control of Fonseca, C. M., A Genetic Algorithm Toolbox for
large Industrial DC Motor Drives with an Energy MATLAB, Proc. “International Conference on Systems
Efficiency Enhancement Loop, , Box 4400, Fredericton NB, Engineering, Coventry, UK”, 6-8 September, 1994.
e3B 5A3 CANADA [12] O. Dwyer,.PI And PID Controller Tuning Rules For Time
[3] Sarah Deif, Mohammad Tawfik and Hanan A. Kamal, Delay Process: A Summary. Part 1: PI Controller Tuning
Vibration and Position Control of a Flexible Manipulator Rules.. , Proceedings Of Irish Signals And Systems
using a PD-tuned Controller with Modified Genetic Conference, June 1999.
Algorithm, ICCTA 2011, 15-17 October 2011,Alexandria, [13] K. Krishnakumar and D. E. Goldberg, Control System
Egypt. Optimization Using Genetic Algorithms, Journal of
[4] M. I. Mahmoud, B. A. Zalam, M. A. Bardiny, E. A. Guidance, Control and Dynamics, Vol. 15, No. 3,
pp. 735-740, 1992.
Gomah,A Simplification Technique for an Adaptive Neural
[14] MATLAB , ANFIS Tool Box
Network Based Speed Controller for Implementation on
[15] Chipper field, A. J., Fleming, P. J., Pohlheim, H. and
PLC for DC drive, AIML 06 International Conference, 13 -
Fonseca, C. M., .A Genetic Algorithm Toolbox for
15 June 2006, Sharm El Sheikh, Egypt.
MATLAB ., Proc. International Conference on Systems
[5] M. Azizur Rahman, Fellow, IEEE, and M. Ashraful Hoque;
Engineering, Coventry, UK, 6-8 September, 1994.
On-Line Self-Tuning ANN-Based Speed Control of a PM
[16] Varsek A, Urbancic T, Filipic B. Genetic algorithms in
DC Motor, IEEE/ASME TRANSACTIONS ON
controller design and tuning. IEEE Trans Systems, Man
MECHATRONICS, VOL. 2, NO. 3, SEPTEMBER 1997
and Cybernetics, 1993,23(5): 1330-1339.
[6] D a r r e l l W h i t l e, A Genetic Algorithm Tutorial, S t a
[17] Q.Wang, P Spronck and R Tracht, An Overview Of
t ist i c s a n d C o m p u t i n g ( 1 9 9 4 ) 4 , 6 5 - 8 5
Genetic Algorithms Applied To Control Engineering
[7] J. M. Zurada, Artificial Neural Networks, copy right 1992
Problems, Proceedings of the Second International
by west publishing company in the United States of
Conference on Machine Learning And Cybernetics, 2003.
America, pp. 185-208.
[18] David E. Goldberg, “Genetic Algorithms in Search,
[8] J. Bates and M.E. Elbuluk and D.S. Zinger, "Neural
Optimization and Machine Learning.” The University of
Network Control of a Chopper Fed DC Motor, 24th Annual
Alabama, Addison-Wesley Publishing Company Inc, 1989.
IEEE 20-24 June 1993, pp. 893-899.

View publication stats

You might also like