SlideShare a Scribd company logo
3
Most read
15
Most read
20
Most read
ASHEESH K. SHAHI
asheeshshahiece@gmail.com
Department of Electronics and Comm.,
Amity School of Engineering & Technology (ASET), Amity
University, Uttar Pradesh, India
1
Feedback Control
 Say you have a system controlled by an actuator
 Hook up a sensor that reads the effect of the actuator
(NOT the output to the actuator)
 You now have a feedback loop and can use it to control
your system!
2
Actuator Sensor
Introduction to PID
 Stands for Proportional, Integral, and Derivative
control
 Form of feedback control
3
Simple Feedback Control (Bad)
double Control (double setpoint, double current) {
double output;
if (current < setpoint)
output = MAX_OUTPUT;
else
output = 0;
return output;
}
 Why won't this work in most situations?
4
Simple Feedback Control Fails
 Moving parts have
inertia
 Moving parts have
external forces
acting upon them
(gravity, friction,
etc)
5
Proportional Control
 Get the error - the distance between the setpoint
(desired value) and the actual value
 Multiply it by Kp, the proportional gain
 That's your output!
double Proportional(double setpoint, double
current, double Kp) {
double error = setpoint - current;
double P = Kp * error;
return P;
}
6
Proportional Tuning
 If Kp is too large, the
sensor reading will
rapidly approach the
setpoint, overshoot, then
oscillate around it
 If Kp is too small, the
sensor reading will
approach the setpoint
slowly and never reach it
7
What can go wrong?
 When error nears zero, the output of a P controller
also nears zero
 Forces such as gravity and friction can counteract a
proportional controller and make it so the setpoint is
never reached (steady-state error)
 Increased proportional gain (Kp) only causes jerky
movements around the setpoint
8
Proportional-Integral Control
 Accumulate the error as time passes and multiply by
the constant Ki. That is your I term. Output the sum of
your P and I terms.
double PI(double setpoint, double current,
double Kp, double Ki) {
double error = setpoint - current;
double P = Kp * error;
static double accumError = 0;
accumError += error;
double I = Ki * accumError;
return P + I;
}
9
PI controller
 The P term will take
care of the large
movements
 The I term will take
care of any steady-
state error not
accounted for by the
P term
10
Limits of PI control
 PI control is good for most embedded applications
 Does not take into account how fast the sensor
reading is approaching the setpoint
 Wouldn't it be nice to take into account a prediction
of future error?
11
Proportional-Derivative Control
 Find the difference between the current error and the error
from the previous timestep and multiply by the constant
Kd. That is your D term. Output the sum of your P and D
terms.
double PD(double setpoint, double current, double
Kp, double Kd) {
double error = setpoint - current;
double P = Kp * error;
static double lastError = 0;
double errorDiff = error - lastError;
lastError = error;
double D = Kd * errorDiff;
return P + D;
}
12
PD Controller
 D may very well stand for
"Dampening"
 Counteracts the P and I
terms - if system is
heading toward setpoint,
 This makes sense: The
error is decreasing, so
d(error)/dt is negative
13
PID Control
 Combine P, I and D terms!
double PID(double setpoint, double current,
double Kp, double Ki, double Kd) {
double error = setpoint - current;
double P = Kp * error;
static double accumError = 0;
accumError += error;
double I = Ki * accumError;
static double lastError = 0;
double errorDiff = error - lastError;
lastError = error;
double D = Kd * errorDiff;
return P + I + D;
}
14
Effects of increasing a parameter
independently
PARAMETER
Kp Ki Kd
RISE TIME DECREASE DECREASE MINOR
CHANGE
OVERSHOOT INCREASE INCREASE DECREASE
SETTLING TIME SMALL
CHANGE
INCREASE DECREASE
STEADY STATE
ERROR
DECREASE INCREASE NO EFFECT
STABILITY DEGRADE DEGRADE IMPROVE IF Kd
IS SMALL
15
PID Tuning
 Start with Kp = 0, Ki = 0, Kd = 0
 Tune P term - System should be at full power unless
near the setpoint
 Tune Ki until steady-state error is removed
 Tune Kd to dampen overshoot and improve
responsiveness to outside influences
 PI controller is good for most embedded applications,
but D term adds stability
16
Effects of varying PID parameters
on the step response of a system
17
PID Applications
 Robotic arm movement (position control)
 Temperature control
 Speed control (ENGR 151 TableSat Project)
18
Conclusion
 PID uses knowledge about the present, past, and
future state of the system, collected by a sensor, to
control
 In PID control, the constants Kp, Ki, and Kd must be
tuned for maximum performance
19
Questions?
20

More Related Content

PPTX
Pid controllers
PDF
pid controller
PPTX
Pid controller
PPTX
PID Controller and its design
PPTX
Pid controller
PPTX
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PPTX
Pid controller
PPTX
Pid controllers
Pid controllers
pid controller
Pid controller
PID Controller and its design
Pid controller
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
Pid controller
Pid controllers

What's hot (20)

PPTX
08 pid.controller
PPTX
Time response analysis
PPTX
P, PI AND PID CONTROLLER
PPTX
Simulation and Comparison of P, PI, PID Controllers on MATLAB/ Simulink
PPTX
Pid control by Adarsh singh
PDF
Modern Control - Lec 02 - Mathematical Modeling of Systems
PPTX
Chapter 4 time domain analysis
PPTX
Proportional integral and derivative PID controller
PPTX
Lag lead compensator design in frequency domain 7th lecture
PPTX
PID Control Basics
PDF
Bode Plots
PDF
Modern Control - Lec 06 - PID Tuning
PPTX
Discrete state space model 9th &10th lecture
PPTX
Unit- 3 DC-DC Converter
PDF
Frequency response analysis I
PDF
Modern Control - Lec 01 - Introduction to Control System
PDF
Dcs lec03 - z-analysis of discrete time control systems
PDF
Ch7 frequency response analysis
PDF
PPT
Interfacing delta v to motorized actuators addressing control applications
08 pid.controller
Time response analysis
P, PI AND PID CONTROLLER
Simulation and Comparison of P, PI, PID Controllers on MATLAB/ Simulink
Pid control by Adarsh singh
Modern Control - Lec 02 - Mathematical Modeling of Systems
Chapter 4 time domain analysis
Proportional integral and derivative PID controller
Lag lead compensator design in frequency domain 7th lecture
PID Control Basics
Bode Plots
Modern Control - Lec 06 - PID Tuning
Discrete state space model 9th &10th lecture
Unit- 3 DC-DC Converter
Frequency response analysis I
Modern Control - Lec 01 - Introduction to Control System
Dcs lec03 - z-analysis of discrete time control systems
Ch7 frequency response analysis
Interfacing delta v to motorized actuators addressing control applications
Ad

Viewers also liked (10)

PPTX
Document control system with iot help (rfid &amp; raspberry pi)
PDF
تصنيف أنظمة التحكم
PDF
Control system
PPTX
PID Control system for Dummies
PPTX
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
Document control system with iot help (rfid &amp; raspberry pi)
تصنيف أنظمة التحكم
Control system
PID Control system for Dummies
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
Ad

Similar to PID Control System (20)

PDF
Lecture9.pdf
PDF
PID controller in control systems
PPTX
p i d controller
PPTX
P I D CONTOLLER
PPTX
CH 9 LEC 3_NCT Control PID proportional ID
PPTX
Chapter3 control system characteristics solution.pptx
PPT
4470838.ppt
PPT
Pid controller by Mitesh Kumar
PPTX
Control project
PPT
controller details are given as power point
PPT
Controlador clásico PID - Control de lazo cerrado
PPTX
Pid control
PPT
1578385.ppt
PPTX
Vivek mishra197
PDF
TIME RESPONSE ANALYSIS OF SECOND ORDER SYSTEMS
PDF
Control tutorials for matlab and simulink introduction pid controller desig...
PPTX
Tuning of pid controller
PPT
Mechatroincs universitty for students .ppt
PPT
Mechatroincs universitty for students .ppt
Lecture9.pdf
PID controller in control systems
p i d controller
P I D CONTOLLER
CH 9 LEC 3_NCT Control PID proportional ID
Chapter3 control system characteristics solution.pptx
4470838.ppt
Pid controller by Mitesh Kumar
Control project
controller details are given as power point
Controlador clásico PID - Control de lazo cerrado
Pid control
1578385.ppt
Vivek mishra197
TIME RESPONSE ANALYSIS OF SECOND ORDER SYSTEMS
Control tutorials for matlab and simulink introduction pid controller desig...
Tuning of pid controller
Mechatroincs universitty for students .ppt
Mechatroincs universitty for students .ppt

Recently uploaded (20)

PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PPT
Total quality management ppt for engineering students
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
UNIT - 3 Total quality Management .pptx
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PPTX
communication and presentation skills 01
PPT
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
PPTX
Fundamentals of Mechanical Engineering.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
737-MAX_SRG.pdf student reference guides
PPTX
Artificial Intelligence
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Safety Seminar civil to be ensured for safe working.
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
Total quality management ppt for engineering students
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
UNIT - 3 Total quality Management .pptx
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Nature of X-rays, X- Ray Equipment, Fluoroscopy
communication and presentation skills 01
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
Fundamentals of Mechanical Engineering.pptx
UNIT 4 Total Quality Management .pptx
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Categorization of Factors Affecting Classification Algorithms Selection
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
Automation-in-Manufacturing-Chapter-Introduction.pdf
737-MAX_SRG.pdf student reference guides
Artificial Intelligence
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Safety Seminar civil to be ensured for safe working.

PID Control System

  • 1. ASHEESH K. SHAHI asheeshshahiece@gmail.com Department of Electronics and Comm., Amity School of Engineering & Technology (ASET), Amity University, Uttar Pradesh, India 1
  • 2. Feedback Control  Say you have a system controlled by an actuator  Hook up a sensor that reads the effect of the actuator (NOT the output to the actuator)  You now have a feedback loop and can use it to control your system! 2 Actuator Sensor
  • 3. Introduction to PID  Stands for Proportional, Integral, and Derivative control  Form of feedback control 3
  • 4. Simple Feedback Control (Bad) double Control (double setpoint, double current) { double output; if (current < setpoint) output = MAX_OUTPUT; else output = 0; return output; }  Why won't this work in most situations? 4
  • 5. Simple Feedback Control Fails  Moving parts have inertia  Moving parts have external forces acting upon them (gravity, friction, etc) 5
  • 6. Proportional Control  Get the error - the distance between the setpoint (desired value) and the actual value  Multiply it by Kp, the proportional gain  That's your output! double Proportional(double setpoint, double current, double Kp) { double error = setpoint - current; double P = Kp * error; return P; } 6
  • 7. Proportional Tuning  If Kp is too large, the sensor reading will rapidly approach the setpoint, overshoot, then oscillate around it  If Kp is too small, the sensor reading will approach the setpoint slowly and never reach it 7
  • 8. What can go wrong?  When error nears zero, the output of a P controller also nears zero  Forces such as gravity and friction can counteract a proportional controller and make it so the setpoint is never reached (steady-state error)  Increased proportional gain (Kp) only causes jerky movements around the setpoint 8
  • 9. Proportional-Integral Control  Accumulate the error as time passes and multiply by the constant Ki. That is your I term. Output the sum of your P and I terms. double PI(double setpoint, double current, double Kp, double Ki) { double error = setpoint - current; double P = Kp * error; static double accumError = 0; accumError += error; double I = Ki * accumError; return P + I; } 9
  • 10. PI controller  The P term will take care of the large movements  The I term will take care of any steady- state error not accounted for by the P term 10
  • 11. Limits of PI control  PI control is good for most embedded applications  Does not take into account how fast the sensor reading is approaching the setpoint  Wouldn't it be nice to take into account a prediction of future error? 11
  • 12. Proportional-Derivative Control  Find the difference between the current error and the error from the previous timestep and multiply by the constant Kd. That is your D term. Output the sum of your P and D terms. double PD(double setpoint, double current, double Kp, double Kd) { double error = setpoint - current; double P = Kp * error; static double lastError = 0; double errorDiff = error - lastError; lastError = error; double D = Kd * errorDiff; return P + D; } 12
  • 13. PD Controller  D may very well stand for "Dampening"  Counteracts the P and I terms - if system is heading toward setpoint,  This makes sense: The error is decreasing, so d(error)/dt is negative 13
  • 14. PID Control  Combine P, I and D terms! double PID(double setpoint, double current, double Kp, double Ki, double Kd) { double error = setpoint - current; double P = Kp * error; static double accumError = 0; accumError += error; double I = Ki * accumError; static double lastError = 0; double errorDiff = error - lastError; lastError = error; double D = Kd * errorDiff; return P + I + D; } 14
  • 15. Effects of increasing a parameter independently PARAMETER Kp Ki Kd RISE TIME DECREASE DECREASE MINOR CHANGE OVERSHOOT INCREASE INCREASE DECREASE SETTLING TIME SMALL CHANGE INCREASE DECREASE STEADY STATE ERROR DECREASE INCREASE NO EFFECT STABILITY DEGRADE DEGRADE IMPROVE IF Kd IS SMALL 15
  • 16. PID Tuning  Start with Kp = 0, Ki = 0, Kd = 0  Tune P term - System should be at full power unless near the setpoint  Tune Ki until steady-state error is removed  Tune Kd to dampen overshoot and improve responsiveness to outside influences  PI controller is good for most embedded applications, but D term adds stability 16
  • 17. Effects of varying PID parameters on the step response of a system 17
  • 18. PID Applications  Robotic arm movement (position control)  Temperature control  Speed control (ENGR 151 TableSat Project) 18
  • 19. Conclusion  PID uses knowledge about the present, past, and future state of the system, collected by a sensor, to control  In PID control, the constants Kp, Ki, and Kd must be tuned for maximum performance 19