SlideShare a Scribd company logo
1 of 13
Download to read offline
PID Controller Tuning: A Short Tutorial
Jinghua Zhong
Mechanical Engineering, Purdue University
Spring, 2006
Outline
This tutorial is in PDF format with navigational control. You
may press SPACE or →, or click the buttons in the lower right
corner to move to the next slide. Clicking on the outlined
items will take you directly to that section.
Goals and Objectives
What are we going to learn?
Introduction
What is a PID controller?
Why do we want to learn the PID Controller?
Tuning Rules
How does the PID parameters affect system dynamics?
The Ziegler-Nichols tuning rule
What are we going to learn?
The goal of the tutorial is for you to learn about the PID
controller and a few basic tuning rules of it. After taking this
lesson, you will be able to
1. relate PID controller parameters to step response
characteristics of the controlled system, and
2. apply the famous Ziegler-Nichols tuning method to come
up with an initial set of working PID parameters for an
unknown system.
What is a PID controller?
A PID controller is a simple three-term controller. The letters
P, I and D stand for:
I P - Proportional
I I - Integral
I D - Derivative
The transfer function of the most basic form of PID controller,
as we use in ME475, is
C(s) = KP +
KI
s
+ KDs =
KDs2
+ KPs + KI
s
where KP = Proportional gain, KI = Integral gain and KD =
Derivative gain.
PID Controller structure
In this tutorial, we assume the controller is used in a
closed-loop unity feedback system. The variable e denotes the
tracking error, which is sent to the PID controller. The control
signal u from the controller to the plant is equal to the
proportional gain (KP) times the magnitude of the error plus
the integral gain (KI ) times the integral of the error plus the
derivative gain (KD) times the derivative of the error.
u = KPe + KI
Z
edt + KD
de
dt
Why learn the PID controller?
Because PID Controllers are everywhere! Due to its simplicity
and excellent if not optimal performance in many applications,
PID controllers are used in more than 95% of closed-loop
industrial processes.1
It can be tuned by operators without
extensive background in Controls, unlike many other modern
controllers that are much more complex but often provide only
marginal improvement. In fact, most PID controllers are tuned
on-site. Although we are learning all the theories in ME475 to
design the controller, the lengthy calculations for an initial
guess of PID parameters can often be circumvented if we
know a few useful tuning rules. This is especially useful when
the system is unknown.
1
Astrom K. J. and Hagglund T. H., “New tuning methods for PID
controllers”, Proceedings of the 3rd European Control Conference, 1995
How do the PID parameters affect system
dynamics?
We are most interested in four major characteristics of the
closed-loop step response. They are
1. Rise Time: the time it takes for the plant output y to rise
beyond 90% of the desired level for the first time.
2. Overshoot: how much the the peak level is higher than
the steady state, normalized against the steady state.
3. Settling Time: the time it takes for the system to
converge to its steady state.
4. Steady-state Error: the difference between the
steady-state output and the desired output.
How do the PID parameters affect system
dynamics?
The effects of increasing each of the controller parameters KP,
KI and KD can be summarized as
Response Rise Time Overshoot Settling Time S-S Error
KP Decrease Increase NT Decrease
KI Decrease Increase Increase Eliminate
KD NT Decrease Decrease NT
NT: No definite trend. Minor change.
You may want to take notes of this table. It will be useful in
the later part of the lesson.
How do we use the table?
Typical steps for designing a PID controller are
1. Determine what characteristics of the system needs to be
improved.
2. Use KP to decrease the rise time.
3. Use KD to reduce the overshoot and settling time.
4. Use KI to eliminate the steady-state error.
This works in many cases, but what would be a good starting
point? What if the first parameters we choose are totally
crappy? Can we find a good set of initial parameters easily
and quickly?
The Ziegler-Nichols tuning rule to the rescue
Ziegler and Nichols conducted numerous experiments and
proposed rules for determining values of KP, KI and KD based
on the transient step response of a plant.
They proposed more than one methods, but we will limit
ourselves to what’s known as the first method of
Ziegler-Nichols in this tutorial. It applies to plants with neither
integrators nor dominant complex-conjugate poles, whose
unit-step response resemble an S-shaped curve with no
overshoot. This S-shaped curve is called the reaction curve.
Using the reaction curve method
The S-shaped reaction curve can be characterized by two
constants, delay time L and time constant T, which are
determined by drawing a tangent line at the inflection point of
the curve and finding the intersections of the tangent line with
the time axis and the steady-state level line.
The Ziegler-Nichols Tuning Rule Table
Using the parameters L and T, we can set the values of KP,
KI and KD according to the formula shown in the table below.
You may want to take notes of the table as we will use it later
in the quiz.
Controller KP KI KD
P T
L
0 0
PI 0.9T
L
0.27 T
L2 0
PID 1.2T
L
0.6 T
L2 0.6T
These parameters will typically give you a response with an
overshoot about 25% and good settling time. We may then
start fine-tuning the controller using the basic rules that relate
each parameter to the response characteristics.
Summary
This concludes the instruction part of our tutorial. We learned
two things about PID controllers.
1. Relationships between KP, KI and KD and important
response characteristics, of which these three are most
useful:
I Use KP to decrease the rise time.
I Use KD to reduce the overshoot and settling time.
I Use KI to eliminate the steady-state error.
2. The Ziegler-Nichols tuning rule (reaction curve method)
for good initial estimate of parameters.
Enough of theories and rules now, let’s move on to some
hands-on experience!

More Related Content

Similar to PIDtutorial.pdf

Design and optimization of pid controller using genetic algorithm
Design and optimization of pid controller using genetic algorithmDesign and optimization of pid controller using genetic algorithm
Design and optimization of pid controller using genetic algorithm
eSAT Journals
 
Optimal tuning of pid power system stabilizer in simulink environment
Optimal tuning of pid power system stabilizer in simulink environmentOptimal tuning of pid power system stabilizer in simulink environment
Optimal tuning of pid power system stabilizer in simulink environment
IAEME Publication
 
Pid controller tuning using fuzzy logic
Pid controller tuning using fuzzy logicPid controller tuning using fuzzy logic
Pid controller tuning using fuzzy logic
Roni Roshni
 

Similar to PIDtutorial.pdf (20)

Analysis and Design of PID controller with control parameters in MATLAB and S...
Analysis and Design of PID controller with control parameters in MATLAB and S...Analysis and Design of PID controller with control parameters in MATLAB and S...
Analysis and Design of PID controller with control parameters in MATLAB and S...
 
Tuning for PID Controllers.pdf
Tuning for PID Controllers.pdfTuning for PID Controllers.pdf
Tuning for PID Controllers.pdf
 
Pid control by Adarsh singh
Pid control  by Adarsh singhPid control  by Adarsh singh
Pid control by Adarsh singh
 
Controller tuning.pptx
Controller tuning.pptxController tuning.pptx
Controller tuning.pptx
 
4470838.ppt
4470838.ppt4470838.ppt
4470838.ppt
 
Design and optimization of pid controller using genetic algorithm
Design and optimization of pid controller using genetic algorithmDesign and optimization of pid controller using genetic algorithm
Design and optimization of pid controller using genetic algorithm
 
5_2018_12_17!10_45_47_AM.ppt
5_2018_12_17!10_45_47_AM.ppt5_2018_12_17!10_45_47_AM.ppt
5_2018_12_17!10_45_47_AM.ppt
 
PID controller in control systems
PID controller in control systemsPID controller in control systems
PID controller in control systems
 
anas.pdf
anas.pdfanas.pdf
anas.pdf
 
Optimal tuning of pid power system stabilizer in simulink environment
Optimal tuning of pid power system stabilizer in simulink environmentOptimal tuning of pid power system stabilizer in simulink environment
Optimal tuning of pid power system stabilizer in simulink environment
 
Di34672675
Di34672675Di34672675
Di34672675
 
Pid controller tuning using fuzzy logic
Pid controller tuning using fuzzy logicPid controller tuning using fuzzy logic
Pid controller tuning using fuzzy logic
 
V13I1006.pdf
V13I1006.pdfV13I1006.pdf
V13I1006.pdf
 
Week 14 pid may 24 2016 pe 3032
Week  14 pid  may 24 2016 pe 3032Week  14 pid  may 24 2016 pe 3032
Week 14 pid may 24 2016 pe 3032
 
1578385.ppt
1578385.ppt1578385.ppt
1578385.ppt
 
Design and optimization of pid controller using genetic algorithm
Design and optimization of pid controller using genetic algorithmDesign and optimization of pid controller using genetic algorithm
Design and optimization of pid controller using genetic algorithm
 
Pid logix wp008--en-p
Pid logix wp008--en-pPid logix wp008--en-p
Pid logix wp008--en-p
 
Pi dfor dummies
Pi dfor dummiesPi dfor dummies
Pi dfor dummies
 
PID Control
PID ControlPID Control
PID Control
 
Mechatroincs universitty for students .ppt
Mechatroincs universitty for students .pptMechatroincs universitty for students .ppt
Mechatroincs universitty for students .ppt
 

Recently uploaded

Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 

Recently uploaded (20)

BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 

PIDtutorial.pdf

  • 1. PID Controller Tuning: A Short Tutorial Jinghua Zhong Mechanical Engineering, Purdue University Spring, 2006
  • 2. Outline This tutorial is in PDF format with navigational control. You may press SPACE or →, or click the buttons in the lower right corner to move to the next slide. Clicking on the outlined items will take you directly to that section. Goals and Objectives What are we going to learn? Introduction What is a PID controller? Why do we want to learn the PID Controller? Tuning Rules How does the PID parameters affect system dynamics? The Ziegler-Nichols tuning rule
  • 3. What are we going to learn? The goal of the tutorial is for you to learn about the PID controller and a few basic tuning rules of it. After taking this lesson, you will be able to 1. relate PID controller parameters to step response characteristics of the controlled system, and 2. apply the famous Ziegler-Nichols tuning method to come up with an initial set of working PID parameters for an unknown system.
  • 4. What is a PID controller? A PID controller is a simple three-term controller. The letters P, I and D stand for: I P - Proportional I I - Integral I D - Derivative The transfer function of the most basic form of PID controller, as we use in ME475, is C(s) = KP + KI s + KDs = KDs2 + KPs + KI s where KP = Proportional gain, KI = Integral gain and KD = Derivative gain.
  • 5. PID Controller structure In this tutorial, we assume the controller is used in a closed-loop unity feedback system. The variable e denotes the tracking error, which is sent to the PID controller. The control signal u from the controller to the plant is equal to the proportional gain (KP) times the magnitude of the error plus the integral gain (KI ) times the integral of the error plus the derivative gain (KD) times the derivative of the error. u = KPe + KI Z edt + KD de dt
  • 6. Why learn the PID controller? Because PID Controllers are everywhere! Due to its simplicity and excellent if not optimal performance in many applications, PID controllers are used in more than 95% of closed-loop industrial processes.1 It can be tuned by operators without extensive background in Controls, unlike many other modern controllers that are much more complex but often provide only marginal improvement. In fact, most PID controllers are tuned on-site. Although we are learning all the theories in ME475 to design the controller, the lengthy calculations for an initial guess of PID parameters can often be circumvented if we know a few useful tuning rules. This is especially useful when the system is unknown. 1 Astrom K. J. and Hagglund T. H., “New tuning methods for PID controllers”, Proceedings of the 3rd European Control Conference, 1995
  • 7. How do the PID parameters affect system dynamics? We are most interested in four major characteristics of the closed-loop step response. They are 1. Rise Time: the time it takes for the plant output y to rise beyond 90% of the desired level for the first time. 2. Overshoot: how much the the peak level is higher than the steady state, normalized against the steady state. 3. Settling Time: the time it takes for the system to converge to its steady state. 4. Steady-state Error: the difference between the steady-state output and the desired output.
  • 8. How do the PID parameters affect system dynamics? The effects of increasing each of the controller parameters KP, KI and KD can be summarized as Response Rise Time Overshoot Settling Time S-S Error KP Decrease Increase NT Decrease KI Decrease Increase Increase Eliminate KD NT Decrease Decrease NT NT: No definite trend. Minor change. You may want to take notes of this table. It will be useful in the later part of the lesson.
  • 9. How do we use the table? Typical steps for designing a PID controller are 1. Determine what characteristics of the system needs to be improved. 2. Use KP to decrease the rise time. 3. Use KD to reduce the overshoot and settling time. 4. Use KI to eliminate the steady-state error. This works in many cases, but what would be a good starting point? What if the first parameters we choose are totally crappy? Can we find a good set of initial parameters easily and quickly?
  • 10. The Ziegler-Nichols tuning rule to the rescue Ziegler and Nichols conducted numerous experiments and proposed rules for determining values of KP, KI and KD based on the transient step response of a plant. They proposed more than one methods, but we will limit ourselves to what’s known as the first method of Ziegler-Nichols in this tutorial. It applies to plants with neither integrators nor dominant complex-conjugate poles, whose unit-step response resemble an S-shaped curve with no overshoot. This S-shaped curve is called the reaction curve.
  • 11. Using the reaction curve method The S-shaped reaction curve can be characterized by two constants, delay time L and time constant T, which are determined by drawing a tangent line at the inflection point of the curve and finding the intersections of the tangent line with the time axis and the steady-state level line.
  • 12. The Ziegler-Nichols Tuning Rule Table Using the parameters L and T, we can set the values of KP, KI and KD according to the formula shown in the table below. You may want to take notes of the table as we will use it later in the quiz. Controller KP KI KD P T L 0 0 PI 0.9T L 0.27 T L2 0 PID 1.2T L 0.6 T L2 0.6T These parameters will typically give you a response with an overshoot about 25% and good settling time. We may then start fine-tuning the controller using the basic rules that relate each parameter to the response characteristics.
  • 13. Summary This concludes the instruction part of our tutorial. We learned two things about PID controllers. 1. Relationships between KP, KI and KD and important response characteristics, of which these three are most useful: I Use KP to decrease the rise time. I Use KD to reduce the overshoot and settling time. I Use KI to eliminate the steady-state error. 2. The Ziegler-Nichols tuning rule (reaction curve method) for good initial estimate of parameters. Enough of theories and rules now, let’s move on to some hands-on experience!