Вы находитесь на странице: 1из 4

International Journal of Research in Computer and ISSN (Online) 2278- 5841

Communication Technology, Vol 3, Issue 3, March- 2014 ISSN (Print) 2320- 5156

Design and implementation of the fuzzy PID controller using


MATLAB/SIMULINK model
Mr. Tushar Upalanchiwar , Prof.A.V.Sakhare
Computer Science & Engineering Department, G.H Raisoni College Of Engineering.
Email Id :- tushuplanchiwar@gmail.com

ABSTRACT For all the problems with the conventional


PID controller, fuzzy is the better way to control
In many industries, various types of motion systems. Fuzzy PID controller method is better
control system used to control various applications. method of controlling to the complex and unclear
These motion control systems are nothing but the DC model systems, it can give simple and effective
Motors. DC motors have high efficiency, high torque control, play fuzzy control robustness, good dynamic
and low volume. This paper proposed PID controller response, rising time, overstrike characteristics.
with fuzzy technology. i.e. fuzzy PID controller, here
we are analyze the performance of the conventional FLC (fuzzy logic control ) control has
PID controller using the MATLAB/SIMULINK proven effective for complex non linear and
model. imprecisely defined process for which standard
model based control techniques are impractical.
Keywords: PID, Fuzzy PID controller Fuzzy logic deals with the problems that have
vagueness uncertainty and membership function
1. INTRODUCTION
between 0 to 1. i.e. if the reliable expert knowledge is
Now a day’s DC motors are widely used in not available or if control system is too complex to
industrial applications, the speed of DC motors can derive the required decision rules, then some efforts
be controlled by various driver circuits. In which the have been made to solve these problems and
drives application mainly involves complex process simplicity the task of tuning parameters and
such as modeling, control, simulation and parameters developing rules for the controller.
tuning etc.
2. PROBLEM DEFINATION
An expert knowledge is required for tuning
Unfortunately, most existing conventional PID
the controller’s parameter to get the optimal
controller fails where industrial process having
performances. However conventional PID controller
degrees of non linearity and parameters variability
algorithm is simple stable easy adjustment and high
and uncertainty of the mathematical model of the
reliability but most of the industrial process with
system, however conventional PID controller
different degrees of non linearity and parameters
algorithm is simple stable easy adjustment and high
variability and uncertainty of the mathematical model
reliability. Tuning parameters of such systems also
of the system.
difficult.
Tuning the parameters of the conventional
3. OBJECTIVES
PID controller is very difficult, poor robustness, so
therefore it’s difficult to achieve optimal state under Fuzzy PID controller method is better method of
field condition in the actual production. controlling to the complex and unclear model
systems. Fuzzy rules can be evaluated from the
human experience and knowledge about the system.

www.ijrcct.org Page 369


International Journal of Research in Computer and ISSN (Online) 2278- 5841
Communication Technology, Vol 3, Issue 3, March- 2014 ISSN (Print) 2320- 5156

The objective is to set fuzzy rules which makes PID


controller reliable for the industrial process having
different degrees of non linearity’s & variation in
parameters.

4. SYSTEM ARCHITECTURE

The typical FIS (fuzzy inference system) inputs


are the signals of error (e(k)) and change of error
(e(k)-e(k-1)). The FIS output is the control action
inferred from the fuzzy rules. Fuzzy Logic
Toolbox™ provides commands and GUI tools to
design a FIS for a desired control surface.
In design of a nonlinear fuzzy PID controller for
a DC motor in Simulink, The plant is a single-input
Fig. implementation of fuzzy PID using matlab
single-output system in discrete time and our design
simulink model.
goal is simply to achieve good reference tracking
performance. The fuzzy controller in this example is
We use the change of measurement -(y(k)-y(k-
in the feedback loop and computes PID-like actions
1)), instead of change of error e(k)-e(k-1), as the
through fuzzy inference. The fuzzy PID controller
second input signal to FIS to prevent the step change
uses a parallel structure. It is a combination of fuzzy
in reference signal from directly triggering the
PI control and fuzzy PD control.
derivative action. Two gain blocks, GCE and GCU in
the feed forward path from r to u, are used to ensure
that the error signal e is used in proportional action
when the fuzzy PID controller is linear.

5. METHODOLOGY

Designing a fuzzy PID controller involves


configuring the fuzzy inference system and setting
the four scaling factors: GE, GCE, GCU and GU.
In this example we followed the following steps,

1. Design a conventional linear PID


controller

The conventional PID controller is a discrete


time PID controller with Backward Euler numerical
integration method used in both the integral and
Fig- implementation of discrete PID controller. derivative actions. The controller gains are Kp, Ki
and Kd. The controller is implemented in Simulink as
below,
PID controller gains can be tuned either
manually or using tuning formulas. In this example,

www.ijrcct.org Page 370


International Journal of Research in Computer and ISSN (Online) 2278- 5841
Communication Technology, Vol 3, Issue 3, March- 2014 ISSN (Print) 2320- 5156

we use the pidtune command from Control System


Toolbox to obtain an initial PID design By using this equations, we can implement fuzzy
Ts*z z-1 PID controller by comparison to the conventional
C= Kp + Ki * ------ + Kd * ------ PID controller.
z-1 Ts*z

with Kp = 30, Ki = 28.6, Kd = 6.9, Ts = 0.1 6. RESULTS AND DISCUSSION

2. Design an equivalent linear fuzzy PID


controller
By configuring the FIS and selecting four
scaling factors, we obtain a linear fuzzy PID control
that reproduces the exact control performance as the
conventional PID controller does.
First, configure the fuzzy inference system
so that it produces a linear control surface from
inputs E and CE to output u.
The FIS settings summarized below are
based on design choices described
in:
 Use Mamdani style fuzzy inference system.
 Use algebraic product for AND connective.
 The ranges of both inputs are normalized to
[-10 10].
 The input sets are triangular and cross
neighbor sets at membership value of 0.5.
 The output range is [-20 20]. Fig- simulation results of conventional PID controller
 Use singletons as output, determined by the for speed controlling of dc motor
sum of the peak positions of the input sets.
 Use the center of gravity method (COG) for
defuzzification.

Next, we determine scaling factors GE, GCE,


GCU and GU from the Kp, Ki, Kd gains used by the
conventional PID controller. By comparing the
expressions of the traditional PID and the linear
fuzzy PID, the variables are related as:
 Kp = GCU * GCE + GU * GE
 Ki = GCU * GE
 Kd = GU * GCE

Assume the maximum reference step is 1,


whereby the maximum error e is 1. Since the
input range of E is [-10 10], we first fix GE at
10. GCE, GCU and GCU are then solved from Fig- simulation results of fuzzy PID controller
the above equations. for speed controlling of DC motor
 GE = 10;
 GCE = GE*(Kp-sqrt(Kp^2-4*Ki*Kd))/2/Ki; The comparative assessment based on the speed
 GCU = Ki/GE; controlling of the DC motor between conventional
 GU = Kd/GCE; PID controller and fuzzy PID controller shows that,

www.ijrcct.org Page 371


International Journal of Research in Computer and ISSN (Online) 2278- 5841
Communication Technology, Vol 3, Issue 3, March- 2014 ISSN (Print) 2320- 5156

the performance of fuzzy PID controller is better than [5] Venugopal P, “design of tuning methods of pid
conventional PID controller in controlling speed, and controller using fuzzy logic” International Journal of
time response of specifications. Emerging trends in Engineering and Development
Issue 3, Vol.5 (September 2013)

[6] C.C.Lee, “Fuzzy logic in Control Systems: Fuzzy


Logic controller –Part I”,IEEE Transactions on
systems,Man,and Cybernetics ,Vol.20,No.2,pp.404-
7. CONCLUSION 418,1990

In spite of the fact that PID controllers designed [7]weinjing huang, yuan zhang, xiowei gou and lei
sun “ simulation and realization of servo rocket
by the conventional method give a good
system based on interval fuzzy PID control.” 2012
performance, they create poor robustness and high international conference on electrical and computer
exceeding. It is obvious that in case of few parameter engineering advances in biomedical engineering ,
changes of the plant led to decline of the performance vol.11
of the conventional PID controller drastically.
Thus, it is not enough to control process dynamics
swimmingly although it is a good start to tune PID
parameters. Therefore, in
this paper to overcome problems of conventional
tuning methods, fuzzy base PID approach were
searched.

8. REFERENCES

[1] Afshan Ilyas, Shagufta Jahan, Mohammad


Ayyub,” Tuning Of Conventional PID And Fuzzy
Logic Controller Using Different Defuzzification
Techniques” International Journal of Scientific &
Technology Research Volume 2, Issue 1, January
2013
ISSN 2277-8616 138 IJSTR

[2] Changhua Lu and Jing Zhang, “Design and


Simulation of a Fuzzy-PID Composite Parameters'
Controller with MATLAB” 2010 International
Conference on Computer Design And Applications
(ICCDA 2010).

[3] Afshan llyas,Shagufta Jahan, Mohammad Ayyub


,”Tuning Of Conventional Pid And Fuzzy Logic
Controller using Different Defuzzification
Techniques” international journal of scientific &
technology research volume 2,issue 1,january
2013,issn 2277-8616

[4] Hua Xiongli “A Comparative Design and tuning


for Conventional fuzzy control”IEEE Transaction on
system,man and cybernetics –part B
cybernetics,Vol.24 No.5,October 1995

www.ijrcct.org Page 372

Вам также может понравиться