CDS 101/110: Lecture 8.2 PID Control

Similar documents
CDS 101/110: Lecture 9.1 Frequency DomainLoop Shaping

CDS 101/110a: Lecture 8-1 Frequency Domain Design

CDS 101/110a: Lecture 8-1 Frequency Domain Design. Frequency Domain Performance Specifications

Classical Control Design Guidelines & Tools (L10.2) Transfer Functions

Dr Ian R. Manchester

GE420 Laboratory Assignment 8 Positioning Control of a Motor Using PD, PID, and Hybrid Control

Course Outline. Time vs. Freq. Domain Analysis. Frequency Response. Amme 3500 : System Dynamics & Control. Design via Frequency Response

Readings: FC: p : lead compensation. 9/9/2011 Classical Control 1

Linear Control Systems Lectures #5 - PID Controller. Guillaume Drion Academic year

Frequency Response Analysis and Design Tutorial

Lecture 7:Examples using compensators

Loop Design. Chapter Introduction

ECE317 : Feedback and Control

(1) Identify individual entries in a Control Loop Diagram. (2) Sketch Bode Plots by hand (when we could have used a computer

CDS 101/110: Lecture 10-2 Loop Shaping Design Example. Richard M. Murray 2 December 2015

ME451: Control Systems. Course roadmap

Chapter 5 Frequency-domain design

ANNA UNIVERSITY :: CHENNAI MODEL QUESTION PAPER(V-SEMESTER) B.E. ELECTRONICS AND COMMUNICATION ENGINEERING EC334 - CONTROL SYSTEMS

SECTION 6: ROOT LOCUS DESIGN

EC CONTROL SYSTEMS ENGINEERING

7. PID Controllers. KEH Process Dynamics and Control 7 1. Process Control Laboratory

JNTUWORLD. 6 The unity feedback system whose open loop transfer function is given by G(s)=K/s(s 2 +6s+10) Determine: (i) Angles of asymptotes *****

ME 5281 Fall Homework 8 Due: Wed. Nov. 4th; start of class.

Scalar control synthesis 1

Microphonics. T. Powers

EES42042 Fundamental of Control Systems Bode Plots

Magnetic Levitation System

Position Control of DC Motor by Compensating Strategies

Dr Ian R. Manchester Dr Ian R. Manchester Amme 3500 : Root Locus Design

Integrator windup and PID controller design

16.30 Learning Objectives and Practice Problems - - Lectures 16 through 20

Laboratory PID Tuning Based On Frequency Response Analysis. 2. be able to evaluate system performance for empirical tuning method;

Andrea Zanchettin Automatic Control 1 AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Spring Semester, Linear control systems design

Designing PID controllers with Matlab using frequency response methodology

Compensation of a position servo

BUCK Converter Control Cookbook

Rotary Motion Servo Plant: SRV02. Rotary Experiment #03: Speed Control. SRV02 Speed Control using QuaRC. Student Manual

Lecture 10. Lab next week: Agenda: Control design fundamentals. Proportional Control Proportional-Integral Control

JUNE 2014 Solved Question Paper

The Discussion of this exercise covers the following points: Angular position control block diagram and fundamentals. Power amplifier 0.

Comparative Analysis of Controller Tuning Techniques for Dead Time Processes

PERSONALIZED EXPERIMENTATION IN CLASSICAL CONTROLS WITH MATLAB REAL TIME WINDOWS TARGET AND PORTABLE AEROPENDULUM KIT

Chapter 10 Feedback ECE 3120 Microelectronics II Dr. Suketu Naik

Implementation and Simulation of Digital Control Compensators from Continuous Compensators Using MATLAB Software

CDS 110 L10.2: Motion Control Systems. Motion Control Systems

Consider the control loop shown in figure 1 with the PI(D) controller C(s) and the plant described by a stable transfer function P(s).

CHAPTER 9 FEEDBACK. NTUEE Electronics L.H. Lu 9-1

Module 08 Controller Designs: Compensators and PIDs

Automatic Control Motion control Advanced control techniques

Different Controller Terms

and using the step routine on the closed loop system shows the step response to be less than the maximum allowed 20%.

EE 560 Electric Machines and Drives. Autumn 2014 Final Project. Contents

DESIGN AND VALIDATION OF A PID AUTO-TUNING ALGORITHM

Homework Assignment 10

A Comparison And Evaluation of common Pid Tuning Methods

Stabilizing and Robust FOPI Controller Synthesis for First Order Plus Time Delay Systems

PROCEEDINGS OF THE SECOND INTERNATIONAL CONFERENCE ON SCIENCE AND ENGINEERING

Closed-loop System, PID Controller

VECTOR CONTROL SCHEME FOR INDUCTION MOTOR WITH DIFFERENT CONTROLLERS FOR NEGLECTING THE END EFFECTS IN HEV APPLICATIONS

EEL2216 Control Theory CT2: Frequency Response Analysis

1.What is frequency response? A frequency responses the steady state response of a system when the input to the system is a sinusoidal signal.

Microelectronic Circuits II. Ch 9 : Feedback

8.0 Overview 8.1 The frequency response for a stable system

Figure 1: Unity Feedback System. The transfer function of the PID controller looks like the following:

Andrea Zanchettin Automatic Control 1 AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Winter Semester, Linear control systems design Part 1

Another Compensator Design Example

International Journal of Research in Advent Technology Available Online at:

EE 482 : CONTROL SYSTEMS Lab Manual

EE 435. Lecture 16. Compensation Systematic Two-Stage Op Amp Design

Relay Feedback Tuning of Robust PID Controllers With Iso-Damping Property

Comparative Analysis of a PID Controller using Ziegler- Nichols and Auto Turning Method

Analysis and Comparison of Speed Control of DC Motor using Sliding Mode Control and Linear Quadratic Regulator

Outline. Digital Control. Lecture 3

COMPARISON OF TUNING METHODS OF PID CONTROLLER USING VARIOUS TUNING TECHNIQUES WITH GENETIC ALGORITHM

Välkomna till TSRT15 Reglerteknik Föreläsning 8

Spacecraft Pitch PID Controller Tunning using Ziegler Nichols Method

Positive Feedback and Oscillators

The PID controller. Summary. Introduction to Control Systems

The performance of AM and FM receivers. Editor: Xuanfeng Li Teacher: Prof. Xiliang Luo

PYKC 7 March 2019 EA2.3 Electronics 2 Lecture 18-1

Optimal Control System Design

CONTROLLER DESIGN FOR POWER CONVERSION SYSTEMS

Switch Mode Power Conversion Prof. L. Umanand Department of Electronics System Engineering Indian Institute of Science, Bangalore

CHASSIS DYNAMOMETER TORQUE CONTROL SYSTEM DESIGN BY DIRECT INVERSE COMPENSATION. C.Matthews, P.Dickinson, A.T.Shenton

b) discrete-time iv) aperiodic (finite energy)

Lab 11. Speed Control of a D.C. motor. Motor Characterization

LECTURE FOUR Time Domain Analysis Transient and Steady-State Response Analysis

Introduction to PID Control

Experiment 1: Amplifier Characterization Spring 2019

Procidia Control Solutions Dead Time Compensation

CHAPTER 2 PID CONTROLLER BASED CLOSED LOOP CONTROL OF DC DRIVE

Chapter 2 Non-parametric Tuning of PID Controllers

UAV: Design to Flight Report

LECTURE 2: PD, PID, and Feedback Compensation. ( ) = + We consider various settings for Zc when compensating the system with the following RL:

Motomatic via Bode by Frank Owen, PhD, PE Mechanical Engineering Department California Polytechnic State University San Luis Obispo

Application Note #2442


Advanced Servo Tuning

EE3079 Experiment: Chaos in nonlinear systems

PID Tuner (ver. 1.0)

Transcription:

CDS 11/11: Lecture 8.2 PID Control November 16, 216 Goals: Nyquist Example Introduce and review PID control. Show how to use loop shaping using PID to achieve a performance specification Discuss the use of integral feedback and anti-windup compensation Reading: Åström and Murray, Feedback Systems 2-3, Sections 11.1 11.3

Nyquist Example (unstable system) kk Consider LL ss = PP ss CC ss = ss(ss 1) Pole at the origin, and unstable pole at ss = 1 Q: Does unity gain negative feedback stabilize this system? Q: Does closed loop stability depend upon gain, kk? Analysis of Closed Loop Poles GG yyyy ss = kk ss 2 ss+kk characteristic equation roots: ss = 1 2 ± 1 2 1 4kk Closed loop system is always unstable for any kk Nyquist Plot Analysis Aside: magnitude and phase (bode plot) of unstable pole: Let HH ss = 1 1. HH iiii = (ss aa) iiii aa iiii aa = iiii aa ( iiii aa) ωω 2 +aa 2 Magnitude: GG iiii = ωω2 +aa 2 = 1 ωω 2 +aa 2 ωω 2 +aa 2 Phase: arg GG iiii = aaaaaaaaaaaa ωω = aa ±18oo + arctan ωω aa

Nyquist Example (unstable system) Bode Plots of Open Loop LL ss = PP ss CC ss = kk ss(ss 1) 5-225 Magnitude (db) -5 Phase (deg) -1-27 -18 1-2 1-1 1 1 1 1 2 1-2 1-1 1 1 1 1 2 Nyquist Contour and Plot Must account for pole on the iiii axis +iii (a) Frequency (rad/s) (b) a) ωω = + + b) ωω = + cc) ωω = ωω = dd) ωω = ωω = + Frequency (rad/s) (d) ωω = + IIII (a) (b) RRRR (d) (c) iii ωω = εεee iiii for [ 9 oo, 9 oo ] GG ss = εεee iiii kk kkee iiii = εεeeiiii εε ωω = (c)

Nyquist Example (unstable system) Nyquist Contour and Plot (d) +iii (a) (c) iii Accounting: (b) (dd) ωω = ωω = + ωω = εεee iiii for [ 9 oo, 9 oo ] GG ss = εεee iiii kk εεee iiii = kkee iiii εε = kk εε One open loop pole in RHP: PP = 1 ( cos φφ + ii sin φφ) One clockwise encirclement of -1 point: NN = 1 ωω = + ωω = ZZ = NN + PP = 1 + 1 = 2 two unstable poles in closed loop system (a) IIII (b) (c) RRRR Homework: show that kk 1(1+kk 2 ss) ss(ss 1) is stable for kk 1 kk 2 > 1

Overview: PID control r e u + PID P(s) y -1 Parametrized by: kk pp, the proportional gain kk ii, the integral gain kk dd, the derivative gain kk pp, Alternatively: TT ii = kk pp kk ii, TT dd = kk dd kk pp Intuition Proportional term: provides inputs that correct for current errors Integral term: insures steady state error goes to zero Derivative term: provides anticipation of upcoming changes (also provides damping ) Controller specified in time domain, but can be analyzed in frequency domain A bit of history on three term control First appeared in 1922 paper by Minorsky: Directional stability of automatically steered bodies under the name three term control 5

Utility of PID PID control is most common feedback structure in engineering systems For many systems, only need PI or PD (special case) Many tools for tuning PID loops and designing gains

Proportional Feedback Simplest controller choice: u = kpe Effect: lifts gain with no change in phase Good for plants with low phase up to desired bandwidth Bode: shift gain up by factor of kp Step response: better steady state error, but with decreasing stability r + - e kp u kp > P(s) y 5-5 -1-15 -1-2 -3 1-1 1 1 1 1 2 Steady State error removed by feedforward: uu = kk pp ee + uu ffff 7

Frequency Domain Performance Specifications Specify bounds on the loop transfer function to guarantee desired performance d + e C(s) + u P(s) y -1 Steady state error: SS Tracking PC > 1/X BW zero frequency ( DC ) gain Bandwidth: assuming ~9 phase margin sets crossover freq Tracking: X% error up to frequency ωω t determines gain bound (1 + PC > 1/X) 8

Proportional + Integral Compensation Use to eliminate steady state error Effect: lifts gain at low frequency Gives zero steady state error Handles modeling error Bode: infinite SS gain + phase lag Step response: zero steady state error, with smaller settling time, but more overshoot r + - e u P(s) y 1 5-5 -1-1 -2-3 1-2 1-1 1 1 1 1 2 9

Proportional + Integral + Derivative (PID) r e u + C(s) P(s) y -1 Bode Diagrams Phase (deg); Magnitude (db) 5 4 3 2 1 1 5-5 -1 1-3 1-2 1-1 1 1 1 1 2 1 3 Frequency (rad/sec) Derivative Action: dddd uu = kk pp ee + kk dd ee = kk pp ee + TT dd = kk dddd pp ee PP ee pp is 1 st order (linearized) prediction error at time tt + TT dd TT dd is the derivative time constant 1

Implementing Derivative Action Problems with derivatives High frequency noise amplified by derivative term Step inputs in reference can cause large inputs Σ kp C(s) Σ P(s) Solution: modified PID control Use high frequency rolloff in derivative term - 1 st -order filter gives finite gain at high frequency - use higher order filter if needed Don t feed reference signal through derivative block - Useful when reference has unwanted high frequency content - Better solution: reference shaping via two DOF design (F(s) block) Many other variations (see text + refs) Magnitude (db) kd s 8 6 4 2-1 Bode Diagrams GG ss = kk dd aa ss ss + aa 1-4 1-2 1 1 2 1 4 Frequency (rad/sec) 11

Choosing PID gains ( tuning ) First order system: PP ss = bb ss+aa PI controller has char. poly: ss 2 + aa + bbkk pp ss + bbkk ii Closed loop poles can be set arbitrarily: ωω2 Second Order System: PP ss = ss 2 +2ζζωω ss+ωω2 PID controller allows closed loop poles to be set arbitrarily Higher Order Systems: Use PID to controller a reduced order (simplified system) Use PID knobs to set performance for dominant modes Zeigler-Nichols step response method Design PID gains based on step response Measure maximum slope + intercept Works OK for many plants (but underdamped) Maybe useful way to get a first cut controller, especially for higher order, or unknown order Response to bump test 12

PID "Tuning" Ziegler-Nichols frequency response method Increase proportional gain (with zero derivative and integral gain) until system goes unstable kk cc Use critical gain and frequency as parameters Based on Nyquist plot Variations Modified formulas (see text) give better response Relay feedback: provides automated way to obtain critical gain, frequency 12 13

PID Controllers are easy to implement Galil Controller Board Built in Discrete Time PID Built in gain tuning procedures

Example: Cruise Control using PID - Specification Phase (deg); Magnitude (db) 5-5 -1-15 -5-1 -15-2 1-2 1-1 1 1 1 1 2 Frequency (rad/sec) Performance Specification 1% steady state error - Zero frequency gain > 1 1% tracking error up to 1 rad/sec - Gain > 1 from -1 rad/sec 45 phase margin - Gives good relative stability - Provides robustness to uncertainty Observations Purely proportional gain won t work: to get gain above desired level will not leave adequate phase margin Need to increase the phase from ~.5 to 2 rad/sec and increase gain as well 15

Example: Cruise Control using PID - Design Phase (deg); Magnitude (db) 15 1 5-5 -1 1 Approach Use integral gain to make steady state error small (zero, in fact) Use derivative action to increase phase lead in the cross over region Use proportional gain to give desired bandwidth Controller Ti = 1/.1; Td = 1/1; k = 2-1 -2 1-3 1-2 1-1 1 1 1 Frequency (rad/sec) Closed loop system Very high steady state gain Adequate tracking @ 1 rad/sec ~8 phase margin Verify with Nyquist 16

Example: Cruise Control using PID - Verification 1 Nyquist Diagrams From: U(1) 8 6 4 Imaginary Axis To: Y(1) 2-2 Phase (deg); Magnitude (db) 15 1 5-5 -1 1-1 -2 1-3 1-2 1-1 1 1 1 Frequency (rad/sec) Amplitude To: Y(1) -4-6 -8 1.4 1.2-1 -8-6 -4-2 2 1.8.6.4.2 Real Axis Step Response From: U(1) Observations Very fast response (probably too aggressive) Back off on Ti to get something more reasonable.5 1 1.5 2 2.5 3 3.5 4 4.5 5 Time (sec.) 17

Example: PID cruise control.5.4.3 step Ziegler-Nichols design for cruise controller Plot step response, extract τ and a, compute gains Bode Diagrams.2.1 slope -.1 1 2 3 4 5 1 5 1.5 Step Response Phase (deg); Magnitude (db) -5-1 1 Amplitude 1.5-1 -2 1-3 1-2 1-1 1 1 1 Frequency (rad/sec) 1 2 3 4 5 6 Time (sec.) Result: sluggish increase loop gain + more phase margine (shift zero) 19

Windup and Anti-Windup Compensation r e uc ua + PID P(s) y -1 Problem Limited magnitude input (saturation) Integrator winds up => overshoot Solution Compare commanded input to actual Subtract off difference from integrator 2

Summary: Frequency Domain Design using PID Loop Shaping for Stability & Performance Steady state error, bandwidth, tracking 15 1 5 Main ideas Performance specs give bounds on loop transfer function Use controller to shape response Gain/phase relationships constrain design approach Standard compensators: proportional, PI, PID Phase (deg); Magnitude (db) -5-1 1-1 -2 1-3 1-2 1-1 1 1 1 Frequency (rad/sec) 21