Professor Fearing EE C128 / ME C134 Problem Set 7 Solution Fall 2010 Jansen Sheng and Wenjie Chen, UC Berkeley

Similar documents
Systems Analysis and Control

Module 5: Design of Sampled Data Control Systems Lecture Note 8

LINEAR CONTROL SYSTEMS. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

ELECTRONICS & COMMUNICATIONS DEP. 3rd YEAR, 2010/2011 CONTROL ENGINEERING SHEET 5 Lead-Lag Compensation Techniques

Professor Fearing EE C128 / ME C134 Problem Set 10 Solution Fall 2010 Jansen Sheng and Wenjie Chen, UC Berkeley

EE 4343/ Control System Design Project LECTURE 10

FREQUENCY-RESPONSE DESIGN

MAS107 Control Theory Exam Solutions 2008

Professor Fearing EE C128 / ME C134 Problem Set 2 Solution Fall 2010 Jansen Sheng and Wenjie Chen, UC Berkeley

EECS C128/ ME C134 Final Thu. May 14, pm. Closed book. One page, 2 sides of formula sheets. No calculators.

Time Response Analysis (Part II)

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

EE C128 / ME C134 Fall 2014 HW 8 - Solutions. HW 8 - Solutions

Professor Fearing EE C128 / ME C134 Problem Set 4 Solution Fall 2010 Jansen Sheng and Wenjie Chen, UC Berkeley. control input. error Controller D(s)

INTRODUCTION TO DIGITAL CONTROL

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

(a) Find the transfer function of the amplifier. Ans.: G(s) =

Outline. Classical Control. Lecture 5

= rad/sec. We can find the last parameter, T, from ωcg new

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

ECE382/ME482 Spring 2005 Homework 8 Solution December 11,

Systems Analysis and Control

EECS C128/ ME C134 Final Wed. Dec. 14, am. Closed book. One page, 2 sides of formula sheets. No calculators.

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

Problem Weight Score Total 100

EE C128 / ME C134 Final Exam Fall 2014

Outline. Classical Control. Lecture 2

AMME3500: System Dynamics & Control

Last week: analysis of pinion-rack w velocity feedback

D(s) G(s) A control system design definition

Controls Problems for Qualifying Exam - Spring 2014

Control Systems. Control Systems Design Lead-Lag Compensator.

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

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

Exercise 1 (A Non-minimum Phase System)

Time Response of Systems

Exercise 1 (A Non-minimum Phase System)

EECS C128/ ME C134 Final Wed. Dec. 15, am. Closed book. Two pages of formula sheets. No calculators.

Loop shaping exercise

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

ME 132, Fall 2017, UC Berkeley, A. Packard 317. G 1 (s) = 3 s + 6, G 2(s) = s + 2

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

ME 475/591 Control Systems Final Exam Fall '99

R10 JNTUWORLD B 1 M 1 K 2 M 2. f(t) Figure 1

NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY Vadapudupatti, Theni

APPLICATIONS FOR ROBOTICS

Systems Analysis and Control

ECE317 : Feedback and Control

Richiami di Controlli Automatici

Dr Ian R. Manchester

Digital Control Systems

Closed Loop Identification Of A First Order Plus Dead Time Process Model Under PI Control

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING. MSc SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2015/2016

Outline. Classical Control. Lecture 1

Introduction to Feedback Control

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

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Frequency Response-Design Method

Boise State University Department of Electrical Engineering ECE461 Control Systems. Control System Design in the Frequency Domain

1 Steady State Error (30 pts)

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

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

9.5 The Transfer Function

Frequency (rad/s)

Stability of CL System

Exercises for lectures 13 Design using frequency methods

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

Systems Analysis and Control

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad ELECTRICAL AND ELECTRONICS ENGINEERING TUTORIAL QUESTION BANK

Dynamic Compensation using root locus method

The requirements of a plant may be expressed in terms of (a) settling time (b) damping ratio (c) peak overshoot --- in time domain

Systems Analysis and Control

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

Frequency Response Analysis

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

Engraving Machine Example

Steady State Errors. Recall the closed-loop transfer function of the system, is

Today (10/23/01) Today. Reading Assignment: 6.3. Gain/phase margin lead/lag compensator Ref. 6.4, 6.7, 6.10

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

2.010 Fall 2000 Solution of Homework Assignment 8

Power System Control

Homework 7 - Solutions

CHAPTER 7 STEADY-STATE RESPONSE ANALYSES

Basic Procedures for Common Problems

1 (20 pts) Nyquist Exercise

An Introduction to Control Systems

20.6. Transfer Functions. Introduction. Prerequisites. Learning Outcomes

Automatic Control Systems (FCS) Lecture- 8 Steady State Error

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

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

ECE382/ME482 Spring 2005 Homework 7 Solution April 17, K(s + 0.2) s 2 (s + 2)(s + 5) G(s) =

Lecture 11. Frequency Response in Discrete Time Control Systems

Definition of the Laplace transform. 0 x(t)e st dt

ECEN 605 LINEAR SYSTEMS. Lecture 20 Characteristics of Feedback Control Systems II Feedback and Stability 1/27

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

LABORATORY INSTRUCTION MANUAL CONTROL SYSTEM I LAB EE 593

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015

EE3CL4: Introduction to Linear Control Systems

ECE 388 Automatic Control

Analysis and Design of Control Systems in the Time Domain

Systems Analysis and Control

Transcription:

Professor Fearing EE C8 / ME C34 Problem Set 7 Solution Fall Jansen Sheng and Wenjie Chen, UC Berkeley. 35 pts Lag compensation. For open loop plant Gs ss+5s+8 a Find compensator gain Ds k such that the unity gain feedback system has steady state error lim t et <. for a ramp input rt tut. b With the gain k above, use a MATLAB Bode plot to determine phase margin. c Use MATLAB to find a lag compensator Ds k lag α s+/t s+/αt with appropriate gain k lag so as to obtain phase margin of 45 and unity gain frequency ω c > rad/sec, with steady state error from ramp input <.. d Using MATLAB, plot the steady state error for a ramp input for the closed-loop gain compensated and lag compensated systems. a. For Ds k, the closed loop transfer function from input rt to the error et is Es Rs +GD k + ss+5s+8 s3 +3s +4s s 3 +3s +4s+k Thus, the steady state error for a ramp input rt tut is given by lim t et lim ses s Rs Rs lim s s s 3 +3s +4s s 3 +3s +4s+k s 4 k The steady state error criteria yields k > 4.. Pick k 5 as the final choice. b. The Bode plot of the above gain compensated system with k 5 is shown in Fig.. The phase margin is given as o at 4. rad/sec. 5 Bode Diagram Gm 6.36 db at 6.3 rad/sec, Pm deg at 4. rad/sec Magnitude db 5 5 9 Phase deg 35 8 5 7 3 Frequency rad/sec Figure : Bode Plot of Gain Compensated System c. The design of lag compensator can follow the procedure given in FPE6e P36-36.

Bode Diagram Gm 4.3 db at 6.3 rad/sec, Pm 5.8 deg at. rad/sec 5 Magnitude db 5 5 9 Phase deg 35 8 5 7 3 Frequency rad/sec Figure : Bode Plot of System kg G Step. Fig. shows the Bode plot of k G with open-loop gain k, which meets the phase margin criteria 45 o and crossover frequency criteria ω c > rad/sec. Step. In this open loop system k G, the crossover frequency is. rad/sec, and the phase margin is 5.8 o. The steady state error of ramp input given by this gain k is 4 k.4. Step 3. From the steady state error requirement, the gain k should be raised by a factor of at least α >. Pick α.5. Then k lag k α 5. Step 4. Choose the corner frequency for the zero to be approximately a factor of 8 slower than the expected crossover frequency. So, T. 8 rad/sec, or T 3.699 sec. Step 5. We then have the value for the other corner frequency: ω The lag compensator is thus αt.5 3.699 9.498 rad/sec. Ds k lag α s+/t s+/αt s+/3.699 s+/9.498 3 Step 6. Fig.3 shows the Bode plot of GD. The phase margin is given by 46.4 o and the crossover frequency is ω c. rad/sec. It meets the design criteria and no iteration is needed. d. The error response from ramp input for the closed-loop gain compensated and lag compensated systems are shown in Fig.4 and Fig.5, respectively. The MATLAB codes for this problem is attached below: %% a,b G tf, convconv[,[ 5, [ 8; D 5; figure ; marging D; %% c klag D; k ; figure ; marging k; alpha klag/k; wc.; T /wc/8; D klag/alpha tf [, /T,[, /alpha/t;

Bode Diagram Gm 3.8 db at 6.5 rad/sec, Pm 46.4 deg at. rad/sec 5 Magnitude db 5 5 9 Phase deg 35 8 5 7 3 3 Frequency rad/sec Figure 3: Bode Plot of System GD Error Response of Ramp Input for Gain Compensated System Error Response of Ramp Input for Lag Compensated System.35.5.3.45.4.5.35 Amplitude..5 Amplitude.3.5...5..5.5 3 4 5 6 7 Time sec 4 6 8 4 6 Time sec Figure 4: left Error Response from Ramp Input for the Closed-loop Gain Compensated System Figure 5: right Error Response from Ramp Input for the Closed-loop Lag Compensated System figure 3; marging D; %% d s tf s ; E /+G D/sˆ; figure 4; impulsee; title Error Response of Ramp Input for Gain Compensated System, FontSize,; E /+G D/sˆ; figure 5; impulsee; title Error Response of Ramp Input for Lag Compensated System, FontSize,;

. pts State Space For the following transfer function, give state space description with state variable x in controllable canonical form: Ys Us s3 +4s +6s+8 s 3 +8s +3s+6 Define the state variable x with the Laplace form as Xs Us s 3 +8s +3s+6, Ys s3 +4s +6s+8Xs 4 Thus, following the controllable canonical form, the state space description is given by ẋ Ax+Bu ẋ ẋ ẋ 3 6 3 8 y Cx+Du [ 8 6 6 3 4 8 x x x + ut 5 x +u [ 4 x +ut6 x 3. pts State space Convert the following differential equation to state space in controllable canonical form with state variable x, where u is the input and y is the output. d y dt +5dy du +6y u+ dt dt We can put the equation into the form we are familiar with by taking the Laplace transform. s Ys+5sYs+6Ys Us+sUs 7 s +5s+6Ys s+us 8 Ys Us s+ s +5s+6 From this, we can easily convert into state space form using the methods outlined in the Lecture #6 handout. Since the power of our denominator is, we will need states in our equation. ẋ Ax+Bu [ [ x x 6 5 [ x x + [ 9 ut [ x y Cx+Du [ x 4. pts State space to transfer function Given ẋ Ax+Bu x x 3 5 x x + ut and y [ x 3 3 x x

Figure 6: left Part a: Initial block diagram Figure 7: right Part b: After block diagram manipulations a Draw a block diagram for this system with input u and output y. We have three states so we need three integrators in our block diagram. This is also a single input single output system so in our block diagram there is only one U and one Y. This is shown in Fig. 6. b Starting from the block diagram, determine the transfer function Ys Us. First we simplify by using block diagram manipulations on the feedback loops. The result is shown in Fig. 7. The final transfer function is a weighted sum of the three individual components: Ys Us s+3 + 3 s+5 + s+ 5. 5 pts State space solutions Given the following ẋ Ax+Bu [ 3 [ x+ [ ut, y [3 x x Solve for the state transition matrix e At, xt, and yt, where ut is the unit step. We will use L {si A } to solve for e At : { [ e At L { si A } } L s+3 s { L ss+3+ {[ L L {[ s s+s+ s+s+ s+ + s+ s+ + s+ [ s s+3 s+s+ s+3 s+s+ s+ + s+ s+ + s+ [ e t +e t e t e t e t +e t e t e t } } } 3 4 5 6 7

Now, we can calculate xt from the formula: t xt e At x+ e At τ Buτdτ 8 [ t [ e At + e At τ uτdτ 9 [ e t +e t t [ e e t +e t + t τ e t τ e t τ e t τ uτdτ [ [ [ e t +e t e e t +e t + t τ e t τ e e t τ t τ e t τ e t τ e t τ τt e t τ τ [ e t +e t [ +[ e t +e t e 3 t e t e t e t [ e t + 5 e t 3 4e t + 5 3 e t Finally, we can calculate yt from xt: yt [ 3 xt 4 3 e t + 5 3 e t + 4e t + 5 e t 5 9 4e t + 5 e t 6 Note: You could also solve this using Laplace transforms instead of integration by solving: 7 ẋ Ax+Bu 8 sxs X AXs+B s Xs si A X+B s 9 3 and then taking the inverse Laplace transform. Another note: If the original values are used instead of the new values - instead of - in the bottom left of A we would have the following: e At xt [ yt 9+ + 3 5 9 3+ 5 e rt + 5 5 ert e rt + 3 5 3 8 5 3 5 where r 3 5 and r 3+ 5. 3 5 5 e rt e rt e rt + 9 5 e rt + 8 5 5 e rt 5 5 ert e rt e rt + 3 3 3 5 e rt + 3 5 e rt 3 3 e rt 33