Professional Documents
Culture Documents
V.MANIDEEP (08FE1A0229)
J.PRANAVI (08FE1A0235)
G.KARTHIK (08FE1A0224)
C E R T I F I C AT E
This is to certify that this dissertation entitled as AUTOMATIC
TUNING OF PID CONTROLLER USING MODEL REFERENCE ADAPTIVE
CONTROL is the bonafide work of, B.Asha, J.Pranavi, V.Manideep, G.Karthik submitted to
the Department of Electrical and Electronics Engineering, VIGNANS LARA INSTITUTE
OF TECHNOLOGY AND SCIENCE in partial fulfillment of the requirements for the
award of the Degree in Bachelor of Technology in Electrical and Electronics Engineering.
Project Guide
D E C LAR AT I O N
We, the students of Vignans Lara Institute of Technology and Science, Vadlamudi,
Guntur District,
Electrical and
B.Asha (08FE1A0207)
J.Pranavi (08FE1A0235)
V.Manideep (08FE1A0229)
G.Karthik (08FE1A0224)
ACKNOWLEDGEMENT
B. ASHA
J. PRANAVI
V. MANIDEEP
G. KARTHIK
INDEX
Abstract
List of figures
List of tables
CHAPTER 1 INTRODUCTION
1.1Inrtoduction
1.2 Motivation
1.3 Problem identification
1.4 Objective of the project
1.5 Conclusion
CHAPTER 7 CONCLUSION
LIST OF FIGURES
Figure 3.1 Block diagram of MRAC
Figure 4.1 Block diagram of PID controller
Figure 5.1 DC motor
Figure 6.1 Simulation diagram of PID controller
Figure 6.2 Output of PID controller for square wave input
Figure 6.3 Output of various parameters for square wave input
Figure 6.4 Output of PID controller for Sine wave input
Figure 6.5 Output of various parameters for sine wave input
LIST OF TABLES
Table 5.1 Table for various parameters of DC motor
ABSTRACT
This project discusses the application of Model Reference Adaptive Control concepts
to the automatic tuning of PID controllers. The effectiveness of the proposed method is
shown through simulated applications. A Model Reference Adaptive Control algorithm is
proposed. This algorithm preserves all the best features of MRAC such as Lyapunov stability,
and asymptotic convergence of the tracking error. In addition, dynamics of DC motor, load
changes, noises, and disturbances are taken into account and assumed to be completely
unknown. The system is examined under various uncertainties such as load variations, noisy
measurements and field disturbances. Experimental results have shown that the proposed
control algorithm is more robust than Time Delay Control, and conventional PID controller
CHAPTER - 1
INTODUCTION
1.1INTRODUCTION:This chapter gives the information about the motivation, problem definition
and objective of the project
1.2MOTIVATION:Over the past 50 years, several methods for determining PID controller
parameters have been developed for stable processes that are suitable for auto-tuning and
adaptive control, such as Ziegler-Nichols frequency-response method and so on. However,
these tuning methods use only a small amount of information about the dynamic behavior of
the system, and often do not provide good tuning. Performances of controllers play important
roles in process industry, or electromechanical systems.
1.3 PROBLEM IDENTIFICATION:Although the adaptive controllers improve responses of the nonlinear systems
and systems with variable parameters, they are not yet used very often. The obvious reason is
their complexity. The signal adaptation ensures fast adaptation process, but the signal in such
case contains high frequency oscillations, so that the signal adaptation system is more likely
to be realized in analogous technique rather than in digital technique.
In parameter model reference adaptation, the problem of high frequency does
not exist. The idea of the model reference adaptive control (MRAC) is based on forcing the
plant to follow the reference model, i.e. the adaptive controller has to decrease the error
vector between the reference model and plant to zero
1.5 CONCLUSION
This chapter discussed the motivation and the objective of the project
CHAPTER 2
LITERATURE REVIEW
2.2 EXISTING SYSTEM:The time-honored Ziegler-Nichols tuning rule ("Z-N rule"), as introduced in
the 1940s, had a large impact in making PID feedback controls acceptable to control
engineers. PID was known, but applied only reluctantly because of stability concerns. With
the Ziegler-Nichols rule, engineers finally had a practical and systematic way of tuning PID
loops for improved performance.
2.3 DISADVANTAGES OF EXISTING SYSTEM:The disadvantages of existing Ziegler-Nichols method are as follows.
2.4 PROPOSED SYSTEM:The adaptive control process is one that continuously and automatically
measures the dynamic behavior of plant, compares it with the desired output and uses the
difference to vary adjustable system parameters or to generate an actuating signal in such a
way so that optimal performance can be maintained regardless of the system changes. The
nature of the adaption mechanism for controlling the system performance is greatly affected
by the value of adaption gain. As compared to the fixed gain controllers, the adaptive
controllers are very effective to handle the situations where the parameter variations and
environmental changes are frequent.
CHAPTER - 3
3.2.1. Inner loop:This is also called as REGULATOR LOOP. This is an ordinary control loop
consisting of the plant and the regulator.
3.2.2. Outer loop:This is also called as ADAPTATION. This adjusts the parameters of the regulator in
such a way as to drive the error between the model output and the plant output to zero.
The block diagram of the MODEL REFERENCE ADAPTIVE
CONTROL is as shown in below
Reference
Model y Adjustment
Contro
m Mechanism
ller od
uController
u Plant
c
Param
el
eters
y
p
l
a
n
t
3.3 COMPONENTS
The various blocks in the Model Reference Adaptive Controller are:
1. Reference model
2. Controller
3. Adaption mechanism
3.3.1. Reference model:It is used to specify the ideal response of the adaptive control system to
external command. It should reflect the performance specifications in control tasks. The ideal
behavior specified by the reference model should be achievable for the adaptive control
system.
3.3.3 Adaptation mechanism:Adaptive control involves modifying the control law used by the controller to
cope with the fact that the parameters of the system being controlled change drastically due to
change in environmental conditions or in system itself. This technique is based on the
fundamental characteristic of adaptation of living organism. The adaptive control process is
one that continuously and automatically measures the dynamic behavior of plant, compares it
with the desired output and uses the difference to vary adjustable system parameters or to
generate an actuating signal in such a way so that optimal performance can be maintained
regardless of system changes. Nature of adaptation mechanism for controlling the system
performance is greatly affected by the value of adaptation gain. It is observed that for the
lower order system wide range of adaptation gain can be used to study the performance of the
system. As the order of the system increases the applicable range of adaptation gain becomes
narrow. The rule which is used for this application is MIT rule. Simulation is done in
MATLAB and simulink and the results are compared for varying adaptation mechanism due
to variation in adaptation gain.
3.4 CONCLUSION
In this chapter the block diagram of Model Reference Adaptive control is
explained and various blocks are also explained.
CHAPTER - 4
PID CONTROLLER
4.1 INTRODUCTION
This chapter gives the information about the PID (proportional + integral +
derivative) controller and the mathematical analysis of PID controller
4.2 PROPORTIONAL
The proportional term makes a change to the output that is proportional to the
current error value. The proportional response can be adjusted by multiplying the error by a
constant Kp, called the proportional gain. The proportional term is given by:
A high proportional gain results in a large change in the output for a given change in the
error. If the proportional gain is too high, the system can become unstable. In contrast, a small
gain results in a small output response to a large input error, and a less responsive or less
sensitive controller. If the proportional gain is too low, the control action may be too small
when responding to system disturbances.
4.3 INTEGRAL
The integral term is proportional to both the magnitude of the error and the
duration of the error. The integral in a PID controller is the sum of the instantaneous error
over time and gives the accumulated offset that should have been corrected previously. The
accumulated error is then multiplied by the integral gain (Ki) and added to the controller
output. The integral term is given by:
The integral term accelerates the movement of the process towards setpoint and eliminates
the residual steady-state error that occurs with a pure proportional controller. However, since
the integral term responds to accumulated errors from the past, it can cause the present value
to overshoot the setpoint value
4.4 DERIVATIVE
The derivative of the process error is calculated by determining the slope of
the error over time and multiplying this rate of change by the derivative gain Kd. The
magnitude of the contribution of the derivative term to the overall control action is termed the
derivative gain, Kd. The derivative term is given by:
The derivative term slows the rate of change of the controller output. Derivative control
is used to reduce the magnitude of the overshoot produced by the integral component and
improve the combined controller-process stability. However, the derivative term slows
the transient response of the controller. Also, differentiation of a signal amplifies noise
and thus this term in the controller is highly sensitive to noise in the error term, and can
cause a process to become unstable if the noise and the derivative gain are sufficiently
large.
change. 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 supplied to a heating element.
u ( t ) =Kpep ( t ) + Ki ei ( T ) dT + Kd
ded ( t )
dt
In the absence of knowledge of the underlying process, a PID controller is the best controller.
By tuning the three parameters in the PID 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 setpoint and the degree of system oscillation.
4.6 CONCLUSION:In this chapter various types of controllers are discussed and their
mathematical equations are also derived. The block diagram of PID controller is also
explained
CHAPTRE - 5
5.1 INTRODUCTION
This chapter gives the information about the mathematical analysis of the MIT
rule, tuning of the PID controller and the modeling of the DC motor
5.2 MATHEMATICAL ANAYSIS:The idea behind the Model Reference Adaptive Control is to create a closed
loop controller with parameters that can be updated to change the response of the system to
match a desired model. There are many different methods for designing such a controller.
When designing an MRAC using the MIT rule, the designer chooses:
The reference model, the controller structure and the tuning gains for the
adjustment mechanism.
e y plant ymodel
MRAC begins by defining the tracking error, e. This is
simply the difference between the plant output and the reference model output.
Mathematically it is defined as:
Where
e = tracking error,
yplant = output of the plant
ymodel = output of the model
J ( )
1 2
e ( )
2
From this error a cost function of theta (J(theta)) can be formed. J is given as a
function of theta, with theta being the parameter that will be adapted inside the controller. The
choice of cost function will later determine how the parameters are updated. Below, a typical
cost function is taken.
To find out how to update the parameter theta, an equation needs to be formed for the change
in theta. If the goal is to minimize the cost related to error, it is sensible to move in the
direction of the negative gradient of J. The change in J is assumed to be proportional to the
change in theta. Thus, the derivative of theta is equal to the negative change in J. The result
for the cost function chosen above is given as:
d
J
e
e
dt
The error is the difference between the plant output and the reference model output which is
defined mathematically as
Where e = error
y = output of the plant
ym = output of the model
The parameters of the controller which are to be tuned are
5.4 ADAPTIVE MECHANISM:The MIT rule is a gradient scheme that aims to minimize the squared error e2
5.5 MODELLING OF DC MOTOR:A DC motor is an electric motor that runs on direct current (DC) electricity.
DC motors were used to run machinery, often eliminating the need for a local steam engine or
internal combustion engine. DC motors can operate directly from rechargeable batteries,
providing the motive power for the first electric vehicles. Today DC motors are still found in
applications as small as toys and disk drives, or in large sizes to operate steel rolling mills and
paper machines. Modern DC motors are nearly always operated in conjunction with power
electronic devices. Let us consider the DC motor as shown in figure.
5.5.1 Mathematical Analysis:For normal operation, the developed torque must be equal to the friction and the inertia. The
equation for the developed torque is given by:
The various parameters and their values of the given DC motor is as follows.
Parameter
Armature Resistance
Armature Inductance
Back Emf Constant
Torque Constant
Moment of Inertia
Damping Friction
Symbol
Ra
La
Kb
Kt
J
B
Value
0.6
0.012H
0.8 Vs/rad
0.8 Vs/rad
0.0167 Kgm2/S2
0.0167 Kgm2/S
5.6 CONCLUSION
In this chapter MIT rule, tuning of the PID controller and the modeling of the
DC motor are discussed
CHAPTER - 6
SIMULATION AND RESULTS
6.1 INTRODUCTION
In this chapter the simulation diagram and results of the PID controller
using MRAC technique for the DC motor are shown and the different parameter
variations like kp, ki, kd are also shown.
1.2
1
Amplitude
0.8
0.6
0.4
0.2
0
-0.2
50
100
150
200
TIME (Sec)
250
300
350
400
The variation of the different parameters (Kp, Ki, Kd) for the square wave input is given as:
0.5
Kp
K
p
0
-0.5
-1
0
100
200
300
400
500
600
700
800
900 1000
K
i
Ki
-1
-2
5
0 100
-3
x 10
200
300
400
500
600
700
800
900 1000
K
d
Kd
0
-5
100
200
300
400
500 600
Time (sec)
700
800
900 1000
The variation of different parameters for the sinusoidal input is given by:
1
0.8
0.6
Amplitude
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
10
20
30
40
50
60
Time (Sec)
70
80
Fig 6.4 Out put of PID controller for sine wave input
90
100
The variation of different parameters for square wave input is given as:
1
Kp
Kp
0
-1
10
20
30
40
50
60
70
80
90
100
Ki
Ki
-1
-2
10
20
30
40
50
60
70
80
90
100
-3
Kd
x 10
Kd
0
-5
10
20
30
40
50
60
Time (Sec)
70
80
90
100
6.4 CONCLUSION:In this chapter the simulation diagram and the results for various parameters
are shown.
CHAPTER 7
CONCLUSION