Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Design and Simulation of Speed Control of DC Motor by Fuzzy Logic Technique With Matlab/Simulink

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

International Journal of Scientific and Research Publications, Volume 4, Issue 7, July 2014

ISSN 2250-3153

Design and Simulation of Speed Control of DC Motor by


Fuzzy Logic Technique with Matlab/Simulink
Shashi Bhushan Kumar *, Mohammed Hasmat Ali**, Anshu Sinha ***
*

Asstt. Professor, Department of Electronics & Communication Engg., Buddha Institute of Technology, Gaya, India
**
Asstt. Professor, Department of Electrical Engg., National Institute of Technology, Patna, India
**
Asstt. Professor, Department of Electrical Engg., National Institute of Technology, Patna, India

Abstract- The design of intelligent control systems has become


an area of intense research interest. A promising direction in the
design of intelligent systems involves the use of Fuzzy logic
controller to discover the abilities of intelligent control systems
in utilizing experience via rule-based knowledge.
The most commonly used controller in the industry field is
the proportional plus- integral-plus- derivative (PID). PID
controller requires a mathematical model of the system while
Fuzzy logic controller (FLC) provides an alternative to PID
controller, especially when data are not available or partly
available for the system.
For comparison purpose, three controllers PI, PID and FLC
have been designed and implemented in the MATLAB/Simulink
model to examine the performance of DC motor with different
loads. The results show that the FLC give better response
compared to PI &PID controller.
Index Terms- PI, PID, Fuzzy logic controller, DC Motor,

linear model of a simple DC motor consists of a mechanical


equation and electrical equation as determined in the following
equations:

d
Jm dt = Km . .Ia b. - Mload
dI
La dt = Va Ra .Ia Kb. .
Gain4
0.5

-K-

Va

Add

2
T

2
-K0.8
speed

irect current (DC) motors have variable characteristics and


are used extensively in variable-speed drives. DC motor can
provide a high starting torque and it is also possible to obtain
speed control over wide range. Why do we need a speed motor
controller? For example, if we have a DC motor in a robot and
we just apply a constant power to each motor on a robot, then the
poor robot will never be able to maintain a steady speed. It will
go slower over carpet, faster over smooth flooring, slower up
hill, faster downhill, etc. So, it is important to make a controller
to control the speed of DC motor in desired manner.
DC motor plays a significant role in modern industrial.
These are several types of applications where the load on the DC
motor varies over a speed range. These applications may demand
high-speed control accuracy and good dynamic responses.
DC Motor model
The resistance of the field winding and its inductance of the
motor used in this study are represented by Rf and Lf,
respectively. The resistance of the armature and its inductance
are shown by Ra and La respectively in dynamic model. Armature
reactions effects are ignored in the description of the motor. This
negligence is justifiable to minimize the effects of armature
reaction since the motor used has either interlopes or
compensating winding. The fixed voltage Vf is applied to the
field and the field current settles down to a constant value. A

1
Ia

Integrator

1/La

TL

I. INTRODUCTION

1
s

-K-

Gain

1/Jm

s
Integrator2

Add1
Gain5
-K-

Fig 1 Simulink model of separately excited dc motor

Speed Response of DC Motor without any controller is


shown below:

[1]

Fig 2. Speed Response of DC Motor without any controller


The Peak Overshoot and number of oscillations obtained in
above curve are much more and hence undesirable. These

www.ijsrp.org

Omega

International Journal of Scientific and Research Publications, Volume 4, Issue 7, July 2014
ISSN 2250-3153

parameters are controlled by using different controllers discussed


below.

II. PROPORTIONAL PLUS - INTEGRAL (PI)


CONTROLLER
Since most of the process cannot work with an offset, they
must be controlled at their set points and in order to achieve this,
extra intelligence must be added to proportional controller and
this is achieved by providing an integral action to the original
proportional controller. So the controller becomes proportional
integral controller.
Under PI Controller as long as error is present the
controller keeps changing its output and once the error
is zero or it disappears the controller does not change its
output.
Integration is the mode that removes the offset or the
error but sometimes it may make transient response
worse.
In PI Controller the output of the controller is changed
proportional to the integral of the error.
The mathematical expression of the PI Controller is:

almost synonymous with the theory of fuzzy sets, a theory which


relates to classes of objects with un-sharp boundaries in which
membership is a matter of degree. In this perspective fuzzy logic
in its more narrow definition, fuzzy logic differs both in concept
and substance from traditional multi-valued logical system.
Fuzzy logic is a convenient way to map input space to an output
space. Mapping input to output is the starting point for
everything.
FLC have some advantages compared to other classical
controller such as simplicity of control, low cost and the
possibility to design without knowing the exact mathematical
model of the process. Fuzzy logic incorporates an alternative way
of thinking which allows modeling complex systems using
higher level of abstraction originating from the knowledge and
experience. Fuzzy logic can be described simply as computing
words rather than numbers or control with sentence rather than
equations.

V. STRUCTURE OF FUZZY LOGIC


There are specific components characteristic of a fuzzy
controller to support a design procedure. Figure 3 shows the
controller between the preprocessing block and post processing
block.

Where, Ki = Integral gain of the PI controller.


PI Controller has the following disadvantages:
The response is sluggish at the high value of the integral
time.
The control loop may oscillate at the small value of
integral time.

III. PROPORTIONAL-INTEGRAL-DERIVATIVE (PID)


CONTROLLER
PID Controller includes all the three control actions i.e.
proportional, integral and derivative.
A PID controller calculates and outputs a corrective
action, which corrects the error between the process
output and the desired set point that adjusts the process
accordingly and rapidly.
The output of the controller or the manipulated variable is
obtained by adding P, I and D components and their associated
coefficient.
The mathematical expression of the PID Controller is:

IV. FUZZY LOGIC CONTROLLER


Fuzzy logic has two different meanings, in a narrow sense,
fuzzy logic is a logical system, which is an extension of
multivolumes logic, and however, in a wider sense fuzzy logic is

Fig. 3. Structure of fuzzy logic controller


Fuzzification
The first block inside the controller is fuzzification which
converts each piece of input data to degrees of membership by a
lookup in one or several membership functions. The fuzzification
block matches the input data with the conditions of the rules to
determine. There is degree of membership for each linguistic
term that applies to the input variable. The first step in designing
a fuzzy controller is to decide which state variables represent the
system dynamic performance must be taken as the input signal to
the controller. Fuzzy logic uses linguistic variables instead of
numerical variables. The process of converting a numerical
variable (real number or crisp variables) into a linguistic variable
(fuzzy number) is called Fuzzification. System variables, which
are usually used as the fuzzy controller inputs includes states
error, state error derivative, state error integral or etc.
The membership function is a graphical representation of the
magnitude of participation of each input. There are different
memberships functions associated with each input and output
response. In this study, we use the trapezoidal membership
www.ijsrp.org

International Journal of Scientific and Research Publications, Volume 4, Issue 7, July 2014
ISSN 2250-3153

function for input and output variables. The number of


membership function determines the quality of control which can
be achieved using fuzzy controller. As the number of
membership function increases, the quality of control improves.
As the number of linguistic variables increases, the
computational time and required memory increases. Therefore, a
compromise between the quality of control and computational
time is needed to choose the number of linguistic variables. For
the speed control of DC motor study, five linguistic variables for
each of the input and output variables are used to describe them.
Rule Base
The collection of rules is called a rule base. The rules are in
If Then format and formally the If side is called the conditions
and the Then side is called the conclusion. The computer is able
to execute the rules and compute a control signal depending on
the measured inputs error (e) and change in error (dE). In a rule
based controller the control strategy is stored in a more or less
natural language. A rule base controller is easy to understand and
easy to maintain for a non- specialist end user and an equivalent
controller could be implemented using conventional techniques.

The Figure 4 shows the model of PI controller for DC motor.


The model is simulated with speed vs time of the DC motor with
the fixed load and also with varying load.

Fig 4. Mat Lab/Simulink model for DC motor using PI


Controller
DC MOTOR SPEED CONTROL USING PID CONTROLLER:

Defuzzification
Defuzzification is when all the actions that have been
activated are combined and converted into a single non-fuzzy
output signal which is the control signal of the system. The
output levels are depending on the rules that the systems have
and the positions depending on the non-linearities existing to the
systems. To achieve the result, develop the control curve of the
system representing the I/O relation of the systems and based on
the information; define the output degree of the membership
function with the aim to minimize the effect of the non-linearity.
The reverse of Fuzzification is called Defuzzification. The use of
Fuzzy Logic Controller (FLC) produces required output in a
linguistic variable (fuzzy number). According to real world
requirements, the linguistic variables have to be transformed to
crisp output.
It obtains the center of area occupied by the fuzzy set. It is
given by the expression.
Fig 5. Mat Lab/Simulink model for DC motor using PID
Controller.
The figure 5 shows the MatLab/Simulink model for 11speed
control of DC motor using PID controller.

X=
Where, X=crisp value;x = support value at which the
membership function reaches the maximum value; (x)=
maximum value of membership function corresponding to the
quantization level.

DC MOTOR SPEED CONTROL USING FUZZY LOGIC


CONTROLLER (FLC)

Post processing
The post processing block often contains an output gain that
can be tuned and also become as an integrator.

VI. CONTROLLER DESIGN


DC MOTOR SPEED CONTROL USING PI CONTROLLER:

www.ijsrp.org

International Journal of Scientific and Research Publications, Volume 4, Issue 7, July 2014
ISSN 2250-3153

VIII. CONCLUSION
From Simulation results it may be concluded as:
FLC have better performance by reducing, ess (Steady
state error), Mp (maximum overshoot), Tr (rise time) and
Ts (settling time).
FLC have more sensitive responses against load
disturbances to classical PI & PID controller.
FLC is better than conventional PI & PID controller.

REFERENCES
[1]

Figure 6 MatLab/Simulink model for DC motor using Fuzzy


Controller.
The figure 6 gives the MatLab/Simulink model for control of
speed of DC motor using fuzzy logic controller.

VII. RESULT AND DISCUSSION


Simulation result of DC motor without using any controller
is shown in fig 1. That fig may be compared with fig 7 for speed
control.
COMPARISON OF SPEED CONTROL USING PI, PID AND
FUZZY LOGIC CONTROLLER:
All these controllers are simulated on MATLAB and their
Speed Vs Time characteristic is studied. The Characteristic is
shown below:

Wood, A.J. and B.F. Wollenberg,(2007) Power Generation, Operation, and


Control, 2nd ed., Wiley India (P.) Ltd., 4435/7, Ansari Road, Daryaganj,
New Delhi 110 002, India, Chapter 9, pp. 328-360.
[2] H. Bevrani,(2009) Robust Power System Frequency Control, Springer
Science + Business Media, LLC, 233 Spring Street, New York, NY-10013,
USA, Chapter 2, pp.15-30.
[3] Dorf, Richard C. and Robert H. Bishop,(2001) Modern Control Systems,
9th ed., PrenticeHall Inc., New Jersey-07458, USA, Chapters 1, 5, pp. 123, pp. 173-206.
[4] Skogestad, S. and I. Postlethwaite,(2001) Multivariable Feedback Control,
John Wiley & Sons Ltd., Baffins lane, Chicester, West Sussex PO19 1UD,
England, Chapters 2, 7, pp. 15-62, pp. 253-290.
[5] Bhattacharyya, S.P., Chapellat, H., and L.H. Keel, (1995) Robust Control:
The Parametric Approach, Prentice Hall, N.J.,
[6] Ho., K.W., Datta, A., and S.P. Bhattacharya, (1999) Generalizations of the
Hermite-Biehler theorem, Linear Algebra and its Applications, Vol. 302303, pp. 135-153.
[7] Ho., K.W., Datta, A., and S.P. Bhattacharya, (2003) PID stabilization of
LTI plants with time-delay, Proc. 42nd IEEE Conf. on Decision and
Control, Maui, Hawaii.
[8] C. C. Lee, Fuzzy Logic in Control Systems: Fuzzy Logic Controller- Part I,
IEEE Trans. On Syst. Man Cybern., vol. 20, no. 2, pp. 404-418,
March/April 1990.
[9] C. C. Lee, Fuzzy Logic in Control Systems: Fuzzy Logic Controller- Part II,
IEEE Trans. On Syst. Man Cybern., vol. 20, no. 2, pp. 419-435,
March/April 1990.
[10] P. J. Costa Branco, J. A. Dente, Automatic Modeling of an Electrical Drives
System Using Fuzzy Logic, Industrial Fuzzy Control and Intelligent
Systems Conference, and the NASA joint Technology Workshop on Neural
Networks and Fuzzy Logic (NAFIPS/IFIS/NASA94), pp.441-443, 1994.

AUTHORS

Fig 7. Simulation Result for DC motor using PI, PID and


Fuzzy Logic Controller.

First Author Shashi Bhushan Kumar, Asstt. Professor,


Department of Electronics & Communication Engg., Buddha
Institute of Technology, Gaya, India,
Email:shashigotmail@gmail.com
Second Author Mohammed Hasmat Ali, Asstt. Professor,
Department of Electrical Engg., National Institute of Technology
Patna, India, Email:hashmatalig@gmail.com
Third Author Anshu Sinha, Asstt. Professor, Department of
Electrical Engg., National Institute of Technology, Patna, India
Email:anshu.sinha.meena14@gmail.com

www.ijsrp.org

You might also like