Transfer func+ons, block diagram algebra, and Bode plots. by Ania- Ariadna Bae+ca CDS Caltech 11/05/15

Similar documents
MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering Dynamics and Control II Fall 2007

EE C128 / ME C134 Fall 2014 HW 9 Solutions. HW 9 Solutions. 10(s + 3) s(s + 2)(s + 5) G(s) =

CHAPTER 7 : BODE PLOTS AND GAIN ADJUSTMENTS COMPENSATION

Transfer function and linearization

MAS107 Control Theory Exam Solutions 2008

MAE143 B - Linear Control - Spring 2018 Midterm, May 3rd

MAE 143B - Homework 9

Introduction to Feedback Control

Radar Dish. Armature controlled dc motor. Inside. θ r input. Outside. θ D output. θ m. Gearbox. Control Transmitter. Control. θ D.

FREQUENCY RESPONSE ANALYSIS Closed Loop Frequency Response

Overview of Bode Plots Transfer function review Piece-wise linear approximations First-order terms Second-order terms (complex poles & zeros)

8.1.6 Quadratic pole response: resonance

Frequency Response Analysis

Response to a pure sinusoid

ME 375 EXAM #1 Friday, March 13, 2015 SOLUTION

Review: transient and steady-state response; DC gain and the FVT Today s topic: system-modeling diagrams; prototype 2nd-order system

MAE 143B - Homework 8 Solutions

1 (20 pts) Nyquist Exercise

Laplace Transform Analysis of Signals and Systems

Automatic Control 2. Loop shaping. Prof. Alberto Bemporad. University of Trento. Academic year

Outline. Classical Control. Lecture 1

Chapter 8: Converter Transfer Functions

Course Outline. Closed Loop Stability. Stability. Amme 3500 : System Dynamics & Control. Nyquist Stability. Dr. Dunant Halim

AMME3500: System Dynamics & Control

Control Systems I. Lecture 9: The Nyquist condition

1 (s + 3)(s + 2)(s + a) G(s) = C(s) = K P + K I

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

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering Dynamics and Control II Fall K(s +1)(s +2) G(s) =.

ECE137B Final Exam. There are 5 problems on this exam and you have 3 hours There are pages 1-19 in the exam: please make sure all are there.

CHAPTER # 9 ROOT LOCUS ANALYSES

School of Mechanical Engineering Purdue University. DC Motor Position Control The block diagram for position control of the servo table is given by:

Stability & Compensation

Frequency methods for the analysis of feedback systems. Lecture 6. Loop analysis of feedback systems. Nyquist approach to study stability

Lecture 5: Linear Systems. Transfer functions. Frequency Domain Analysis. Basic Control Design.

APPLICATIONS FOR ROBOTICS

Analysis and Design of Control Systems in the Time Domain

ROOT LOCUS. Consider the system. Root locus presents the poles of the closed-loop system when the gain K changes from 0 to. H(s) H ( s) = ( s)

EECE 301 Signals & Systems Prof. Mark Fowler

University of Alberta ENGM 541: Modeling and Simulation of Engineering Systems Laboratory #7. M.G. Lipsett & M. Mashkournia 2011

Software Engineering 3DX3. Slides 8: Root Locus Techniques

Course roadmap. Step response for 2nd-order system. Step response for 2nd-order system

An Internal Stability Example

Poles and Zeros and Transfer Functions

R. W. Erickson. Department of Electrical, Computer, and Energy Engineering University of Colorado, Boulder

Frequency response. Pavel Máša - XE31EO2. XE31EO2 Lecture11. Pavel Máša - XE31EO2 - Frequency response

Homework 7 - Solutions

Controls Problems for Qualifying Exam - Spring 2014

Single-Time-Constant (STC) Circuits This lecture is given as a background that will be needed to determine the frequency response of the amplifiers.

Lecture 5: Frequency domain analysis: Nyquist, Bode Diagrams, second order systems, system types

Topic # Feedback Control Systems

Software Engineering/Mechatronics 3DX4. Slides 6: Stability

Compensator Design to Improve Transient Performance Using Root Locus

ECE557 Systems Control

SKEE 3143 CONTROL SYSTEM DESIGN. CHAPTER 3 Compensator Design Using the Bode Plot

EE C128 / ME C134 Fall 2014 HW 6.2 Solutions. HW 6.2 Solutions

Raktim Bhattacharya. . AERO 632: Design of Advance Flight Control System. Preliminaries

Time Response Analysis (Part II)

Chapter 5 HW Solution

Linear State Feedback Controller Design

Classify a transfer function to see which order or ramp it can follow and with which expected error.

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) IN BIOMEDICAL ENGINEERING SEMESTER 1 EXAMINATION 2017/2018 ADVANCED BIOMECHATRONIC SYSTEMS

EE Experiment 11 The Laplace Transform and Control System Characteristics

Control of Manufacturing Processes

MATHEMATICAL MODELING OF CONTROL SYSTEMS

Control Systems I Lecture 10: System Specifications

ECE382/ME482 Spring 2005 Homework 6 Solution April 17, (s/2 + 1) s(2s + 1)[(s/8) 2 + (s/20) + 1]

Linear Systems Theory

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

Lab 3: Poles, Zeros, and Time/Frequency Domain Response

Solutions to Skill-Assessment Exercises

Lecture 6 Classical Control Overview IV. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

Problem Weight Score Total 100

Frequency Response part 2 (I&N Chap 12)

Control Systems Design

Introduction. Performance and Robustness (Chapter 1) Advanced Control Systems Spring / 31

CDS 101: Lecture 4.1 Linear Systems

The Laplace Transform

100 (s + 10) (s + 100) e 0.5s. s 100 (s + 10) (s + 100). G(s) =

Frequency domain analysis

School of Mechanical Engineering Purdue University

Chapter 2 SDOF Vibration Control 2.1 Transfer Function

Modeling and System Identification for a DC Servo

Systems Analysis and Control

CDS 101/110a: Lecture 10-1 Robust Performance

Dynamic circuits: Frequency domain analysis

ECE 486 Control Systems

Procedure for sketching bode plots (mentioned on Oct 5 th notes, Pg. 20)

Dr Ian R. Manchester

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review

Lecture 1 Root Locus

Transient response via gain adjustment. Consider a unity feedback system, where G(s) = 2. The closed loop transfer function is. s 2 + 2ζωs + ω 2 n

UNIVERSITY OF CALIFORNIA AT BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences. EE105 Lab Experiments

CDS 101: Lecture 8.2 Tools for PID & Loop Shaping

EE3CL4: Introduction to Linear Control Systems

Plan of the Lecture. Goal: wrap up lead and lag control; start looking at frequency response as an alternative methodology for control systems design.

Control Systems. Root Locus & Pole Assignment. L. Lanari

CDS 101/110a: Lecture 2.1 Dynamic Behavior

Control Systems. Frequency domain analysis. L. Lanari

Topic # Feedback Control. State-Space Systems Closed-loop control using estimators and regulators. Dynamics output feedback

Transcription:

Transfer func+ons, block diagram algebra, and Bode plots by Ania- Ariadna Bae+ca CDS Caltech 11/05/15

Going back and forth between the +me and the frequency domain (1) Transfer func+ons exist only for linear systems! If the system is nonlinear and you want to compute its transfer func+on, you must linearize it first. How do we go back and forth between the state space and the frequency domain?

Going back and forth between the +me and the frequency domain (2) The key fact is that the linear system dx/dt = Ax + Bu, y = Cx + Du in the state space has the transfer func+on G(s) = C(sI - A) - 1 B + D. Another possibility is to use the table of Laplace transform func+ons from lecture: dx 1 / dt = x 2 => sx 1 (s) = X 2 (s) dx 2 / dt = 3x 1 + 4x 2 => sx 2 (s) = 3X 1 (s) + 4X 2 (s) Then solve for the Laplace transforms X 1 and X 2. Similarly => s 2 Y(s) + 2sζω n Y(s) + ω n2 Y(s) = U(s) => G yu (s) = Y(s) / U(s) = 1 / (s 2 + 2ζω n s + ω n2 )

Transfer func+on proper+es and MATLAB code (1) G(s) = C(sI A) - 1 B + D (D is usually 0). When deg n < deg d, the transfer func+on is called proper G yu = Y(s) / U(s) > not the same as U(s) / Y(s), make sure you take the correct ra+o of Laplace transforms When presented with a transfer func+on, the informa+on is encoded in the poles and zeros The poles are the roots of d(s) and the zeros are the roots of n(s)

Transfer func+on proper+es and MATLAB code (2) The poles of the transfer func+on determine the stability of the closed loop system - > more about that later The zeros of the transfer func+on hide certain inputs and can mask fragility - > more about that later too When poles and zeros cancel each other, the system is poorly designed, though algebraically valid. MATLAB commands: 1. func+on >: num = [1 2]; den = [1 2 3]; d(num, dem) - > (s + 2) / (s^2 + 2s + 3) 2. func+on bode plots the frequency plot: bode(d(num, dem)) The magnitude is plo@ed in db by default! You can convert the magnitude from absolute units to decibels using: magnitude_db = 20*log10(magnitude). Many other func+ons in MATLAB for studying the frequency domain. If you can think about it, it probably exists.

Block diagram algebra General principles of block reduc+on You can reduce blocks according to the rules: u G1 * G2 y There are other block manipula+on rules

Block diagram algebra Example system Reduce the blocks to compute the input- output func+on for the system:

Block diagram algebra Example system solu+on 1 Proceed in the 4 steps below, working on the smaller loops first. 3 2 4

Block diagram algebra Working with signals (1) Label the arrows on the block diagram with signal names and then derive the algebraic rela+onships between the Laplace transforms. u 1 u 1 w w = θ * (- mg) θ = u 1 * r / (Js 2 ) x = v * 1 / (ms 2 + cs) v = w + u 1

Main idea: Algebraic manipula+on allows you to compute transfer func+ons between any signals. Block diagram algebra Working with signals (2) Let s compute the transfer func+ons 1. G xu1 and 2. G θv. 1. We use: x = v / (ms 2 + cs) = (w + u 1 ) / (ms 2 + cs) = (θ * (- mg) + u 1 ) / (ms 2 + cs) = u 1 * (1 + r/ (Js 2 ) * (- mg)) / (ms 2 + cs) = u 1 * (Js 2 - mgr / (Jm s 4 + cj s 3 )) Hence, G xu1 = x / u 1 = (Js 2 - mgr) / (Jm s 4 + cj s 3 ). It has a triple pole at 0. What value does the forth pole have? What are the values of the zeros? 2. We use: v = w + u 1 = θ * (- mg) + θ / r * Js 2 = θ * (- mg + J/r * s 2 ) Hence, G θv = θ / v = 1 / (- mg + J/r * s 2 ). What are the values of the poles of this transfer func+on?

Block diagram algebra Example system Find the transfer func+on G(s) from T d (s) to Ω(s) and the transfer func+on H(s) from V a (s) to Ω(s). Simplify your answer as much as possible.

Block diagram algebra Solu+on (1) We first label all the signals: u v Ω w y Ω

Block diagram algebra Solu+on (2) We write down the algebraic rela+ons between signals: u = V a - y, I a = u / (L a s + R a ), v = k 5 I a, w = v - T d, Ω = w / (Js + F), y = k 4 Ω. We ignore the input V a when we compute the transfer func+on G(s) = Ω(s) / T d (s) = (L a s + R a ) / (JL a s 2 + (R a J + FL a )s + FR a + k 4 k 5 ). We ignore the disturbance T d when we compute the transfer func+on H(s) = Ω(s) / V a (s) = k 5 / (JL a s 2 + (FL a + JR a )s + FR a + k 4 k 5 ).

Bode plots of transfer func+ons General approach (1) The magnitude of the transfer func+on G(jω) is plored on a log- log plot The phase <G(jω) is plored on a log- linear plot When we draw bode plots by hand, it s always an approxima+on The magnitude plot starts at G(0) The magnitude plot of a transfer func+on can always be broken up in a sum due to the fact that log G(jω) becomes a sum of logarithms What are the parts that you should you break it up in?

Bode plots of transfer func+ons General approach (2) How do you break up a complicated transfer funcoon into parts you can actually plot? The transfer func+on G(s) = (s + 1) / (s 3 +4s) has a zero at s = - 1 and three poles at s = 0, s = - 2j, s = 2j. You break it up as G(jω) = (s + 1) * 1/s * 1/((s - 2j)*(s + 2j)) => log G(jω) = log jω + 1 - log jω - log (jω) 2 + 4 <G(jω) = <(jω + 1) - <(jω) - <(jω - 2j) - <(jω + 2j) In general, you separate the numerator and denominator in products of: Constants, Poles at the origin, Zeros at the origin, Real Poles, Real Zeros Complex conjugate poles Complex conjugate zeros Then you plot them separately and the magnitude and phase plots will be the sum of their magnitudes.

Bode plots of transfer func+ons General approach (3) General guidelines for drawing bode plots: A simple zero with nega+ve real part pushes magnitude up with slope +1 and pushes phase up by (up to) +90 degrees - > transfer func+on s+a, a>0 A simple pole with nega+ve real part pushes magnitude down with slope - 1 phase down by (up to) - 90 degrees - > transfer func+on 1/(s+a), a>0 A double pole with roots with nega+ve real parts pushes magnitude down with slope - 2 and pushes phase down by (up to) - 180 degrees - > 1/(s 2 + 2s+2); the analogous double zero pushes phase up by (up to) +180 degrees The (up to) accounts for the existence of other poles and zeros close by that might influence if you actually get to +90 degrees (you might only get up to +80 before a nearby pole or zero forces you to come down). The influence of a pole/zero of value v on the phase is visible on the interval (v/10, 10v). It might push the phase up or down. Don t forget to account for (ω ~ 0) and (ω - > infinity) in your bode plot.

Bode plots A complicated func+on (1) H(s) = (100s + 100) / (s 2 + 110s + 1000). So H(s) = 100 * (s + 1) / ((s + 10) * (s + 100)) It has a zero at s = - 1 and two poles at s = - 10 and s = - 100. Let s consider the magnitude plot first. It starts with H(0) = 0.1. We go up at frequency 10 0 with slope 1, then stay close to slope 0 around 10 1 and go down at 10 2 with slope - 1. At very large frequency, we go to 0. The phase plot starts at 0 degrees. The zero causes it to go up 90 degrees (between 1/10 and 10). The poles bring it down 90 degrees each (the first between 1 and 100, the second between 10 and 1000).

Bode plots A complicated func+on (2) adsf slope 0 slope 1 slope 0 slope - 1 zero at 10 0 pole at 10 1 pole at 10 2

Bode plots A pair of complex conjugate poles (1) The magnitude of H(jω) log 10 H(jω)

Bode plots A pair of complex conjugate poles (2) There are 3 cases to consider for the approxima+on: 1. When ω << ω 0, then log 10 H(jω) ~ 0. This is the low frequency case. 2. When ω >> ω 0, then log 10 H(jω) ~ - log 10 ((ω/ ω 0 ) 2 ). This is the high frequency case. 3. When ω = ω r = ω 0 * sqrt(1-2ζ 2 ) ~ ω 0 for ζ < 1/sqrt(2) ~ 0.5. This is the resonant frequency of the underdamped second order system.

Bode plots A pair of complex conjugate poles (3) The peak at the resonant frequency ω r has height ~ 1/(2ζ). The value of the transfer func+on at the resonant frequency is

Bode plots A pair of complex conjugate poles (4)

Bode plots A pair of complex conjugate poles (5) Please no+ce how the peak changes wrt the value of ζ. For a pair of complex conjugate zeros, at the resonant frequency, there will be a dip and not a peak. The magnitude will be the same as for the peak. If the transfer func+on has the expression s 2-2ζω 0 s + ω 0 2 instead of s 2 + 2ζω 0 s + ω 02, then amplify it by its conjugate to apply the same reasoning.

Bode plots A pair of complex conjugate plots (6) This is how to plot the phase:

Other comments about bode plots 360 degrees = 0 degrees on the phase portraits - 270 degrees = 90 degrees on the phase portraits The magnitude of transfer func+ons s- 1 and s+1 is the same, but their zeros are in different places: at 1 and respec+vely - 1. On the hand drawn magnitude bode plot, they should look the same. However, the phases should be different. The phase changes by +90 degrees for s- 1 and by - 90 degrees for s+1. The way to make sense of this is that s+1 = (s 2-1)/(s- 1). So jω+1 = - (ω 2 +1)/ (jω- 1). This func+on has a constant on the numerator and a pole at value 1 on the denominator. Hence, the effect of a zero with posiove real part on the numerator is the same as the effect of a pole with negaove real part on the denominator. WARNING: Do not actually do this for control design problems because it introduces fragility. This is just to give you intui+on for drawing bode plots.

Code to change your axes from db to absolute value on the magnitude plot in MATLAB h=bodeplot(d(num, den)); a=getop+ons(h); a.magunits='abs'; setop+ons(h,a);

Useful materials hrp://faculty.mu.edu.sa/public/uploads/ 1415021770.8406Block_Diagram_Reduc+on_ Rules.pdf - > block diagram reduc+on hrp://lpsa.swarthmore.edu/bode/bode.html - > all about bode plots hrp://lpsa.swarthmore.edu/bode/ BodeReviewRules.html - > table of rules for how to plot bode plots

References The course textbook Feedback Systems by K. J. Astrom and R. M. Murray. Midterm for MAE 143B, Prof. M. Krs+c, May 1, 2007.