Electronic Control Systems Week 7 – PID Control

Slides:



Advertisements
Similar presentations
PID Implementation Issues
Advertisements

PID Control for Embedded Systems
Controllers Daniel Mosse cs1657 cs1567.
ERT 210 Process Control & dynamics
PID Controllers and PID tuning
CHE 185 – PROCESS CONTROL AND DYNAMICS
Chapter 4: Basic Properties of Feedback
PID Control -1 + Professor Walter W. Olson
LECTURE#10 PID CONTROLLER
The Proportional-Integral-Derivative Controller
CHE 185 – PROCESS CONTROL AND DYNAMICS
CHE 185 – PROCESS CONTROL AND DYNAMICS
Process Control Instrumentation II
LECTURE#11 PID CONTROL AUTOMATION & ROBOTICS
بسم الله الرحمن الرحيم PID Controllers
Chapter 7 PID Control.
Lecture 4: Basic Concepts in Control CS 344R: Robotics Benjamin Kuipers.
ME 270 Final Project Presentation Operational Amplifiers.
PID Feedback Controllers PID 反馈控制器
Proportional/Integral/Derivative Control
Chapter 19 Electronics Fundamentals Circuits, Devices and Applications - Floyd © Copyright 2007 Prentice-Hall Chapter 19.
Ch. 6 Single Variable Control
09/16/2010© 2010 NTUST Today Course overview and information.
DYNAMIC BEHAVIOR AND STABILITY OF CLOSED-LOOP CONTROL SYSTEMS
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Feedback Control.
Fuzzy Logic Control of Blood Pressure During Anesthesia
1 Chapter 5 Sinusoidal Input. 2 Chapter 5 Examples: 1.24 hour variations in cooling water temperature Hz electrical noise (in USA!) Processes are.
Feedback Control system
Design Realization lecture 22
PID. The proportional term produces an output value that is proportional to the current error value. Kp, called the proportional gain constant.
PID CONTROLLERS By Harshal Inamdar.
ERT 210/4 Process Control Hairul Nazirah bt Abdul Halim Office: CHAPTER 8 Feedback.
Control systems KON-C2004 Mechatronics Basics Tapio Lantela, Nov 5th, 2015.
Lecture 25: Implementation Complicating factors Control design without a model Implementation of control algorithms ME 431, Lecture 25.
Lecture 17: Introduction to Control (part III)
Objectives Finish DOAS Control Terminology Types of controllers
Features of PID Controllers
Chapter 4 A First Analysis of Feedback Feedback Control A Feedback Control seeks to bring the measured quantity to its desired value or set-point (also.
Feedback Controllers Chapter 8
Flow of signal So you have a sensor, now to process data taken from a sensor you will need a processing unit and that is your controller. sensorcontroller.
Lecture 9: PID Controller.
Time Domain Representations of Linear Time-Invariant Systems
Process Control. Feedback control y sp = set point (target value) y = measured value The process information (y) is fed back to the controller The objective.
EEN-E1040 Measurement and Control of Energy Systems Control I: Control, processes, PID controllers and PID tuning Nov 3rd 2016 If not marked otherwise,
PID Control for Embedded Systems
PID Control Systems (Proportional, Integral, Derivative)
Feedback Controllers Chapter 8
Automatic control systems I. Nonlinearities in Control System
Process Control & Instrumentation MAPUA INSTITUTE OF TECHNOLOGY
Derivative Rules 3.3.
PID Controllers Jordan smallwood.
Feedback Control System
Unit 4:Mathematics Introduce various integration functions Aims
Lec 14. PID Controller Design
Control Loops Nick Schatz FRC 3184.
CSCI1600: Embedded and Real Time Software
Electronic Control Systems Week 5 – Closed Loop Control
Description and Analysis of Systems
Electronic Control Systems Week 1
University of Virginia
Features of PID Controllers
Compensators.
7.1 Introduction to Fourier Transforms
Feedback Controllers Chapter 8
Advanced LabVIEW
PID Controller Design and
Electronic Control Systems Week 7 – Closed Loop Control
Electronic Control Systems II Week 10 – Final Review
Outline Control structure design (plantwide control)
2.5 Basic Differentiation Properties
Presentation transcript:

Electronic Control Systems Week 7 – PID Control EET273 Electronic Control Systems Week 7 – PID Control

PID Control Readings: Ch. 29:6 – 29:9

Review - Controllers

Review – Controllers Error is: the different between the system input (SP) and output (PV) The purpose of feedback is to reduce system error The purpose of a controller to process the system error in such a way that it reduces error quickly and efficiently Proportional controllers work by multiplying the error by some scaling constant 𝐾 𝑃 , this is fairly effective but has limitations (creates offset and/or overshoot)

PID Control P – Proportional I – Integral D – Derivative A controller can consist of 1 or more of these elements together, depending on the type of system/performance required P controller PI controller PD controller PID controller We can use multiple types of controllers in parallel, and sum the outputs of each controller

Integrals An integral describes the area under a function The area “S” describes the integral of the function f(x), integrated from a to b Mathematically, this looks like this: 𝑎 𝑏 𝑓(𝑥) 𝑑𝑥 a and b are the “integration limits”

Integrals Integrals can be computed directly using the methods of calculus, this will not be covered in this class Integrals can also be approximated by dividing the area under a curve into boxes Height of the box is the function value Width of the box is some selected constant Δx The smaller the Δx, the more accurate the approximation

Integral Controllers For our purposes, the word “integral” can be used interchangeably with “accumulated sum” An integral controller accumulates the error over time If there is any steady state error in a system, the integral controller will continue to accumulate this error, and eventually drive it to zero Because integral controllers only operate on accumulated changes in error, they are slower to respond to error than a proportional or derivative controller

Integral Controllers Similar to a Proportional Controller, the amount of integral control is set by a constant 𝐾 𝑖 In some controllers, the constant 𝜏 𝑖 is used, rather than 𝐾 𝑖 𝐾 𝑖 = 1 𝜏 𝑖

Integral Control Highly effective at controlling processes due to its ability to completely remove all system error Slower response than proportional control (accumulating error takes time) Too much integral control can cause oscillation If 𝐾 𝑖 is set too high (or 𝜏 𝑖 too low, in other words), the integral controller’s output can saturate or “windup” Integral “windup” can also occur if some external factor prevents the setpoint from being reached. In this case, the integral controller will continue accumulating, and eventually reach it’s maximum value

Derivatives A derivative is mathematical function that describes the slope of another mathematical function Ex #1: 𝑦=3𝑥 𝑦′=3 Ex #2: 𝑦=5𝑥 + 3 𝑦′=5

Derivatives You can take multiple derivatives of the same function, called 2nd derivative, 3rd derivative, etc. There are several types of notation for the derivative of a function 𝑦= 𝑥 2 𝑦 ′ = 𝑑y 𝑑𝑥 = 𝑦 =2𝑥 𝑦 ′′ = 𝑑 2 y 𝑑 𝑥 2 = 𝑦 =2

Derivatives Several functions can have the same derivative, in fact every derivative has a “family” of anti-derivatives Ex: 𝑦= 𝑥 2 𝑦′=2𝑥 𝑦= 𝑥 2 + 2

Derivatives – sines and cosines Etc.

Derivatives of exponential functions 𝑦= 2 𝑥 𝑦= 3 𝑥

Derivatives of exponential functions 𝑒=2.71828… 𝑦= 𝑒 𝑥 𝑦′= 𝑒 𝑥 𝑦′′= 𝑒 𝑥

Derivatives For our purposes, the word “derivative” can be used interchangeably with the word “slope” Looking at the slope of the error allows our derivative controller to respond if there is a sudden change in error This could be caused by a change in setpoint, a system switching on quickly, or a sudden disturbance in the system

Derivative Controller While a proportional (P) controller is looking at the actual value of the system error, a derivative controller is looking at the slope of the error Error is increasing quickly  lots of derivative control Error is stable  very little derivative control The amount of derivative control is set by the constant 𝐾 𝐷 , (or 𝜏 𝑑 ) Differential controllers are often used to respond to quick changes in error, and prevent the error from changing too quickly This can help reduce overshoot coming from the P or I controller Since the D controller is “keeping an eye out” for sudden changes, we can “get away with” more P and I than we could otherwise (and still avoid overshoot)

Derivative Controller Differential controllers are often used to respond to quick changes in error, and prevent the error from changing too quickly This can help reduce overshoot coming from the P or I controller Since the D controller is “keeping an eye out” for sudden changes, we can “get away with” more P and I than we could otherwise (and still avoid overshoot) Since D controllers respond to the error’s rate of change, they are more susceptible to high frequency noise – so be careful when implementing them!

PID Control A PID controller is really just 3 controllers in parallel, a P, an I, and a D

PID Control Proportional: Integral: Derivatives: Reacts to error in the present Good for performing the bulk of error reduction Results in “proportional-only offset”, which can reduced, but never eliminated with proportional only control Integral: Reacts to error in the past Excellent at removing steady state errors Slow to respond due to time needed to accumulate error Derivatives: Reacts to error in the future (anticipates error by looking at slope) Starts working when error is changing quickly Stops working when error is constant Not good at eliminating steady state errors – if error is constant, D controller doesn’t care

PID Control

PID Control – some frightening math Proportional Controller: PI Controller: PID Controller:

PID controllers – different configurations P: Removes bulk of error, will always have offset (in a loaded system) I: Completely removes offset (eventually), slower response PI: Removes error quickly, and eliminates offset, may overshoot PD: Removes bulk of error, D corrects for overshoot, will have offset PID: Completely removes offset, responds quickly, D corrects for overshoot