pid control: a tutorial for physicists › wp-content › uploads › 2016 › 04 › ...control...

57
PID Control: A Tutorial for Physicists Mudassar Ejaz Lab Engineer (Control Systems Lab) Department of Electrical Engineering LUMS April 23, 2016 Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 1 / 31

Upload: others

Post on 24-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Control: A Tutorial for Physicists

Mudassar Ejaz

Lab Engineer (Control Systems Lab)Department of Electrical Engineering

LUMS

April 23, 2016

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 1 / 31

Page 2: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Overview

1 Motivation

2 Control System

3 Feedback Control Systems

4 Time Domain Analysis

5 ON-OFF Controller

6 PID Controller

7 Conclusion

8 References

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 2 / 31

Page 3: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation

Want to learn about a PID controller ? But what are control systemsin general ?

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 3 / 31

Page 4: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation

Want to learn about a PID controller ? But what are control systemsin general ?

”Control systems” is an awesome field which should be taught tophysicists as well ! ,

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 3 / 31

Page 5: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation

Want to learn about a PID controller ? But what are control systemsin general ?

”Control systems” is an awesome field which should be taught tophysicists as well ! ,

Why ? See it has a lot of multi-disciplinary applications ! Like inElectrical Engineering, Communications Engineering, MechanicalEngineering, Civil Engineering, Industrial Engineering, AerospaceEngineering etc.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 3 / 31

Page 6: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation

Want to learn about a PID controller ? But what are control systemsin general ?

”Control systems” is an awesome field which should be taught tophysicists as well ! ,

Why ? See it has a lot of multi-disciplinary applications ! Like inElectrical Engineering, Communications Engineering, MechanicalEngineering, Civil Engineering, Industrial Engineering, AerospaceEngineering etc.

And obviously in Physics as well ! ,

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 3 / 31

Page 7: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation: Electrical Engineering

Designing of sophisticated switching power regulators which arealmost in every electrical device.

Rely heavily on feedback and can be unstable if designed incorrectly.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 4 / 31

Page 8: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation: Communications Engineering

Designing of antenna azimuth position control for satellite trackingand automatic gain controllers (AGC).

Obviously feedback control applications.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 5 / 31

Page 9: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation: Mechanical Engineering

Designing of isolation systems for vibration and damping control in astructure.

Control applications include absorbing motor vibrations usingpowertrain mounts to reduce fuel consumption in hybrid and electricvehicles.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 6 / 31

Page 10: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation: Civil Engineering

Designing structures located in environments where earthquakes orlarge wind forces are common.

May require active or semi-active control systems.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 7 / 31

Page 11: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation: Industrial Engineering

Designing robotic assembly lines for cooperative control ofmanipulators.

Or tunning of PID loops for individual robotic arms.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 8 / 31

Page 12: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation: Aerospace Engineering

Solving the air-craft flutter problem for smooth flights.

Various control strategies can be applied to tackle it.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 9 / 31

Page 13: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

Motivation: And in Physics as well ,, for the control of

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 10 / 31

Page 14: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Motivation

And many other systems which are the core of physics !

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 11 / 31

Page 15: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System

A control system is a mechanism that alters the future behavior/stateof the system.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 12 / 31

Page 16: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System

A control system is a mechanism that alters the future behavior/stateof the system.

The outcome must tend towards a state that is desired.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 12 / 31

Page 17: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System

A control system is a mechanism that alters the future behavior/stateof the system.

The outcome must tend towards a state that is desired.

Control theory is a branch of mathematics that is concerned with thestrategy to select the appropriate input. Or it deals with how to goabout generating that outcome.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 12 / 31

Page 18: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System

A control system is a mechanism that alters the future behavior/stateof the system.

The outcome must tend towards a state that is desired.

Control theory is a branch of mathematics that is concerned with thestrategy to select the appropriate input. Or it deals with how to goabout generating that outcome.

Without control theory, the designer is relegated to selectingappropriate actions through trial and error.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 12 / 31

Page 19: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System

A control system is a mechanism that alters the future behavior/stateof the system.

The outcome must tend towards a state that is desired.

Control theory is a branch of mathematics that is concerned with thestrategy to select the appropriate input. Or it deals with how to goabout generating that outcome.

Without control theory, the designer is relegated to selectingappropriate actions through trial and error.

The system to be controlled is also called plant.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 12 / 31

Page 20: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System

Sometimes plant is decomposed into actuator and process formathematical analysis.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 13 / 31

Page 21: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System : Open Loop Control System

Sometimes plant is decomposed into actuator and process formathematical analysis.

In an open loop control system, input does not depend on output.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 13 / 31

Page 22: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System : Open Loop Control System

Sometimes plant is decomposed into actuator and process formathematical analysis.

In an open loop control system, input does not depend on output.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 13 / 31

Page 23: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System : Open Loop Control Systems

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 14 / 31

Page 24: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System : Open Loop Control Systems

This type of control systems are designed only for relatively simpleapplications which have well defined input-output behaviors.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 15 / 31

Page 25: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System : Open Loop Control Systems

This type of control systems are designed only for relatively simpleapplications which have well defined input-output behaviors.

So there are many drawbacks of open loop control systems asdiscussed recently.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 15 / 31

Page 26: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Control System

Control System : Open Loop Control Systems

This type of control systems are designed only for relatively simpleapplications which have well defined input-output behaviors.

So there are many drawbacks of open loop control systems asdiscussed recently.

Solution lies in making input depend on previous outputs.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 15 / 31

Page 27: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Feedback Control Systems

Feedback Control Systems

This type of control systems are designed only for relatively simpleapplications which have well defined input-output behaviors.

So there are many drawbacks of open loop control systems asdiscussed recently.

Solution lies in making input depend on previous outputs.

This type of system is called close loop control system or feedbackcontrol system or automatic control system.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 15 / 31

Page 28: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Feedback Control Systems

Feedback Control Systems

This type of control systems are designed only for relatively simpleapplications which have well defined input-output behaviors.

So there are many drawbacks of open loop control systems asdiscussed recently.

Solution lies in making input depend on previous outputs.

This type of system is called close loop control system or feedbackcontrol system or automatic control system.

Feedback control systems are very robust against internal or externaldisturbances.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 15 / 31

Page 29: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Feedback Control Systems

Feedback Control Systems

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 16 / 31

Page 30: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Feedback Control Systems

Feedback Control Systems

All the systems discussed in open-loop category can also be designedin close-loop way if there be suitable sensors available.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 17 / 31

Page 31: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Feedback Control Systems

Feedback Control Systems

All the systems discussed in open-loop category can also be designedin close-loop way if there be suitable sensors available.

Doing so will definitely increase complexity of design and result inhigh cost and hard maintenance.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 17 / 31

Page 32: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Feedback Control Systems

Feedback Control Systems

All the systems discussed in open-loop category can also be designedin close-loop way if there be suitable sensors available.

Doing so will definitely increase complexity of design and result inhigh cost and hard maintenance.

Sometimes feedback causes instability issue in the overall system.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 17 / 31

Page 33: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Feedback Control Systems

Feedback Control Systems

All the systems discussed in open-loop category can also be designedin close-loop way if there be suitable sensors available.

Doing so will definitely increase complexity of design and result inhigh cost and hard maintenance.

Sometimes feedback causes instability issue in the overall system.

So both have pros and cons. But we prefer feedback control systemsfor sophisticated applications.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 17 / 31

Page 34: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Time Domain Analysis

Time Domain Analysis

Actual output of the system is also called its response.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 18 / 31

Page 35: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Time Domain Analysis

Time Domain Analysis

Actual output of the system is also called its response.

The constituent of a system response that disappears with time iscalled transient response.

The constituent of a system response when time approaches infinity iscalled steady-state response.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 18 / 31

Page 36: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Time Domain Analysis

Time Domain Analysis

Actual output of the system is also called its response.

The constituent of a system response that disappears with time iscalled transient response.

The constituent of a system response when time approaches infinity iscalled steady-state response.

Total response of the system is the sum of both of these.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 18 / 31

Page 37: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Time Domain Analysis

Time Domain Analysis

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 19 / 31

Page 38: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

ON-OFF Controller

ON-OFF Controller

1 Simplest type of feedbackcontroller is an ON-OFFcontroller.

2 Temperature control of achamber using a thermostatis a good example.

3 An on-off controller willswitch the output only whenthe output crosses thesetpoint.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 20 / 31

Page 39: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

ON-OFF Controller

ON-OFF Controller

1 Simplest type of feedbackcontroller is an ON-OFFcontroller.

2 Temperature control of achamber using a thermostatis a good example.

3 An on-off controller willswitch the output only whenthe output crosses thesetpoint.

4 A common problem withsuch type of controllers isoscillations in output.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 20 / 31

Page 40: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

The drawbacks of an on-off controller can be overcome if we couldreplace it with an analog controller with all available values instead oftwo.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 21 / 31

Page 41: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

The drawbacks of an on-off controller can be overcome if we couldreplace it with an analog controller with all available values instead oftwo.

A well-known controller for this category is PID controller which isequally popular both in academia and industry.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 21 / 31

Page 42: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

The drawbacks of an on-off controller can be overcome if we couldreplace it with an analog controller with all available values instead oftwo.

A well-known controller for this category is PID controller which isequally popular both in academia and industry.

PID is an acronym for Proportional, Integral and Derivative.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 21 / 31

Page 43: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

The drawbacks of an on-off controller can be overcome if we couldreplace it with an analog controller with all available values instead oftwo.

A well-known controller for this category is PID controller which isequally popular both in academia and industry.

PID is an acronym for Proportional, Integral and Derivative.

Mathematically, it can be expressed as:

u(t) = Kpe(t) +Ki ∫t

0e(t)dt +Kd

d

dte(t)

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 21 / 31

Page 44: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

The drawbacks of an on-off controller can be overcome if we couldreplace it with an analog controller with all available values instead oftwo.

A well-known controller for this category is PID controller which isequally popular both in academia and industry.

PID is an acronym for Proportional, Integral and Derivative.

Mathematically, it can be expressed as:

u(t) = Kpe(t) +Ki ∫t

0e(t)dt +Kd

d

dte(t)

It is simply the sum of three parallel controllers operating on errorsignal to generate a combined control output.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 21 / 31

Page 45: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 22 / 31

Page 46: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

Proportional control

It is used when the controller action is to be proportional to the size of theprocess error signal.

Integral control

It is used when it is required that the controller correct for any steadyoffset from a constant reference signal value. Integral control overcomesthe shortcoming of proportional control by eliminating offset without theuse of excessively large controller gain.

Derivative control

If a controller can use the rate of change of an error signal as an input,then this introduces an element of prediction into the control action.Derivative control uses the rate of change of an error signal.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 23 / 31

Page 47: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

For practical purposes, it is almost always recommended to use alow-pass filter with derivative controller.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 24 / 31

Page 48: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

For practical purposes, it is almost always recommended to use alow-pass filter with derivative controller.

For a given control task, it is obviously not necessary to adopt all thethree actions of PID controller.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 24 / 31

Page 49: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

For practical purposes, it is almost always recommended to use alow-pass filter with derivative controller.

For a given control task, it is obviously not necessary to adopt all thethree actions of PID controller.

This gives rise to variations of original PID controller by settingrespective gains to be zero, viz. P, PI, PD and PID.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 24 / 31

Page 50: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

For practical purposes, it is almost always recommended to use alow-pass filter with derivative controller.

For a given control task, it is obviously not necessary to adopt all thethree actions of PID controller.

This gives rise to variations of original PID controller by settingrespective gains to be zero, viz. P, PI, PD and PID.

PID controllers can be implemented with both analog and digitalcomponents.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 24 / 31

Page 51: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 25 / 31

Page 52: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

Algorithm for digital implementation on a micro-controller:

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 26 / 31

Page 53: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

The selection of the PID gains (Kp, Ki and Kd), i.e., the tuning ofthe PID controllers, is obviously the crucial issue in the overallcontroller design.

Simplest way of PID tuning is through hit and trial using followingtable:

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 27 / 31

Page 54: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

PID Controller

PID Controller

Sophisticated methods do exist for PID tuning like Ziegler-Nichols(Z-N) method:

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 28 / 31

Page 55: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

Conclusion

Conclusion

The PID control algorithm is a robust and simple algorithm that iswidely used in the industry.

The algorithm has sufficient flexibility to yield excellent results in awide variety of applications and has been one of the main reasons forthe continued use over the years.

PID controller can be implement with NI LabVIEW and NI plug-indata acquisition devices with higher accuracy and better performance.

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 29 / 31

Page 56: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

References

References

Norman S. Nise, ”Control Systems Engineering”, 2007

Michael A. Johnson & Mohammad H. Moradi, ”PID Control”, 2005.

Graham Clifford Goodwin, Stefan F. Graebe, and Mario E. Salgado,”Control System Design” Prentice Hall, 2001.

Lecture notes of my Professor (Dr Kashif Saeed, UET, Lahore) ,

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 30 / 31

Page 57: PID Control: A Tutorial for Physicists › wp-content › uploads › 2016 › 04 › ...Control theoryis a branch of mathematics that is concerned with the strategy to select the

References

Thank You & Questions If Any?

Mudassar Ejaz ([email protected]) PID Controller: A Tutorial for Physicists April 23, 2016 31 / 31