MAE 143B - Homework 7

Similar documents
MAE 143B - Homework 9

MAE 143B - Homework 9

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

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

Outline. Classical Control. Lecture 5

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

Compensator Design to Improve Transient Performance Using Root Locus

Example on Root Locus Sketching and Control Design

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015

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

APPLICATIONS FOR ROBOTICS

MAE 143B - Homework 8 Solutions

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

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

Positioning Servo Design Example

Topic # Feedback Control

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

Linear State Feedback Controller Design

CHAPTER 7 : BODE PLOTS AND GAIN ADJUSTMENTS COMPENSATION

CDS 101/110 Homework #7 Solution

Inverted Pendulum. Objectives

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

Controls Problems for Qualifying Exam - Spring 2014

Prüfung Regelungstechnik I (Control Systems I) Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

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

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules

sc Control Systems Design Q.1, Sem.1, Ac. Yr. 2010/11

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

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

Video 5.1 Vijay Kumar and Ani Hsieh

Unit 11 - Week 7: Quantitative feedback theory (Part 1/2)

Richiami di Controlli Automatici

Topic # Feedback Control Systems

Bangladesh University of Engineering and Technology. EEE 402: Control System I Laboratory

Massachusetts Institute of Technology Department of Mechanical Engineering Dynamics and Control II Design Project

r + - FINAL June 12, 2012 MAE 143B Linear Control Prof. M. Krstic

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

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

MAE143a: Signals & Systems (& Control) Final Exam (2011) solutions

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Root Locus

6.1 Sketch the z-domain root locus and find the critical gain for the following systems K., the closed-loop characteristic equation is K + z 0.

Systems Analysis and Control

Systems Analysis and Control

Chapter 2. Classical Control System Design. Dutch Institute of Systems and Control

Introduction to Feedback Control

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

Time Response of Systems

CDS 101/110: Lecture 3.1 Linear Systems

Chapter 7 - Solved Problems

1 (20 pts) Nyquist Exercise

Dynamic Response. Assoc. Prof. Enver Tatlicioglu. Department of Electrical & Electronics Engineering Izmir Institute of Technology.

Homework Assignment 3

Control Systems Design

ECE 3793 Matlab Project 3 Solution

ECE 486 Control Systems

State Feedback Controller for Position Control of a Flexible Link

ME 475/591 Control Systems Final Exam Fall '99

Analysis of SISO Control Loops

Control of Manufacturing Processes

ECE 388 Automatic Control

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

PD, PI, PID Compensation. M. Sami Fadali Professor of Electrical Engineering University of Nevada

Control Systems. Design of State Feedback Control.

(b) A unity feedback system is characterized by the transfer function. Design a suitable compensator to meet the following specifications:

Course Outline. Higher Order Poles: Example. Higher Order Poles. Amme 3500 : System Dynamics & Control. State Space Design. 1 G(s) = s(s + 2)(s +10)

a. Closed-loop system; b. equivalent transfer function Then the CLTF () T is s the poles of () T are s from a contribution of a

Laboratory 11 Control Systems Laboratory ECE3557. State Feedback Controller for Position Control of a Flexible Joint

16.31 Homework 2 Solution

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)

MAE143A Signals & Systems - Homework 5, Winter 2013 due by the end of class Tuesday February 12, 2013.

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

Control of Electromechanical Systems

Dr. Ian R. Manchester

DO NOT DO HOMEWORK UNTIL IT IS ASSIGNED. THE ASSIGNMENTS MAY CHANGE UNTIL ANNOUNCED.

Control of Manufacturing Processes

Homework 7 - Solutions

Fast Step-response Evaluation of Linear Continuous-time Systems With Time Delay in the Feedback Loop

Classical Dual-Inverted-Pendulum Control

INTRODUCTION TO DIGITAL CONTROL

Topic # Feedback Control Systems

1 x(k +1)=(Φ LH) x(k) = T 1 x 2 (k) x1 (0) 1 T x 2(0) T x 1 (0) x 2 (0) x(1) = x(2) = x(3) =

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

Control Systems Engineering ( Chapter 8. Root Locus Techniques ) Prof. Kwang-Chun Ho Tel: Fax:

EXAM 2 MARCH 17, 2004

Systems Analysis and Control

1 (30 pts) Dominant Pole

ECE-320: Linear Control Systems Homework 8. 1) For one of the rectilinear systems in lab, I found the following state variable representations:

to have roots with negative real parts, the necessary and sufficient conditions are that:

Engraving Machine Example

Mechanical Systems Part A: State-Space Systems Lecture AL12

ẋ n = f n (x 1,...,x n,u 1,...,u m ) (5) y 1 = g 1 (x 1,...,x n,u 1,...,u m ) (6) y p = g p (x 1,...,x n,u 1,...,u m ) (7)

Often, in this class, we will analyze a closed-loop feedback control system, and end up with an equation of the form

CDS 101/110: Lecture 3.1 Linear Systems

AMME3500: System Dynamics & Control

Lec 6: State Feedback, Controllability, Integral Action

Automatic Control (TSRT15): Lecture 4

] [ 200. ] 3 [ 10 4 s. [ ] s + 10 [ P = s [ 10 8 ] 3. s s (s 1)(s 2) series compensator ] 2. s command pre-filter [ 0.

Software Engineering/Mechatronics 3DX4. Slides 6: Stability

Introduction to Process Control

Systems Analysis and Control

Transcription:

MAE 143B - Homework 7 6.7 Multiplying the first ODE by m u and subtracting the product of the second ODE with m s, we get m s m u (ẍ s ẍ i ) + m u b s (ẋ s ẋ u ) + m u k s (x s x u ) + m s b s (ẋ s ẋ u ) + m s k s (x s x u ) m s b u (ẋ u ẏ) m s k u (x u y) = m s m u ẍ + b s (m u + m s )ẋ + k s (m u + m s )x m s b u ż m s k u z =. Similarly, we can subtract k u y + b u ẏ + m u ÿ from the second ODE to get m u (ẍ u ÿ) + (b u + b s )ẋ u + (k u + k s )x u b s ẋ s k s x s k u y b u ẏ = m u z + b u ż + k u z b s ẋ k s x = m u ÿ 6.8 We can find the transfer function by first setting up a state-space model with input ÿ and output x + z. Notice here that we can choose ÿ as input without affecting the poles since ÿ is just the second time-derivative of y, resulting in two extra zeros at the origin but no extra poles for the transfer function from y to x + z. Given the two coupled second-order ODEs, our state needs to have four elements, which we choose as x 1 = x, x 2 = ẋ, x 3 = z and x 4 = ż. The state-space matrices for this model are then 1 A= k s (m s + m u )/(m s m u ) b s (m s + m u )/(m s m u ) k u /m u b u /m u 1 k s /m u b s /m u k u /m u b u /m u, B = C = [ 1 1 ], D =. We can now choose a set of parameters and compute the poles and thus damping and natural frequencies of the system using Matlab. The following code computes the natural frequency and damping ratio of the dominant poles for the initial guess k s = 16 N/m and b s = 16 Ns/m, respectively. ms = 6; mu = 4; ku = 2; bu = ; ks = 16; bs = 16; A = [ 1 ; -ks*(ms+mu)/(ms*mu), -bs*(ms+mu)/(ms*mu), ku/mu, bu/mu; 1; ks/mu, bs/mu, -ku/mu, -bu/mu]; B = [,,,-1] ; C = [1,,1,]; D = ; 1 1

sys = ss(a,b,c,d); [Wn, Z] = damp(sys); Wn/2/pi Z Using this initial guess, we get a damping ratio ζ.232 and natural frequency f n.8 Hz for the dominant poles. After a few iterations, we get ζ.8 and f n 2.5 Hz for the parameters k s = 464 N/m and b s = 224 Ns/m. The resulting poles are located at p 1 567.27, p 2 27.54 and p 3/4 1.26 ± 15.68j, respectively. 6.9 Given a constant velocity v, it takes the car T = w/v to pass the pothole, which corresponds to a road profile signal y(t) = d1(t) d1(t T ). By linearity and time-invariance of the system, the output x + z is the difference of two scaled step responses, one of which is delayed by T. The resulting plots for v = 1 km/h and v = 1 km/h are shown in Figure 1. For a brief initial period (.36s), the behavior is the same in both cases. At T =.36s, the pothole is passed using the faster velocity, while it takes T =.36s to pass it with the faster velocity. After these two times, both plots show damped oscillations with frequency approximately 1Hz 1. As anticipated, the fourth-order system responds just like a second-order system with the given characteristics, which is caused by the two slow (i.e. dominant) poles being located much closer to the imaginary axis than the remaining two poles. The plots are generated using the following code, which relies on the results from P6.8. You could also use lsim, Simulink or your favorite alternative method provided your plots look like Figure 1. % b) d =.5; w = 1; v = 1/3.6; T = w/v; tf_y2xz = tf(sys)*tf([1 ],1); tvec = :T/1:2; [stp1,~] = step(tf_y2xz,tvec); stp2 = [zeros(1,1) ; stp1(1:end-1)]; xz_out = d*( stp1 - stp2 ); figure; subplot(1,2,1); plot(tvec,xz_out, LineWidth,2) grid on; xlabel( Time, in s ) ylabel( x+z, in m ) title( v = 1 km/h ) v = 1/3.6; T = w/v; tf_y2xz = tf(sys)*tf([1 ],1); 1 Of course, the frequency is slightly lower than 1Hz following the discussion on p.14 of the reader. 2

tvec = :T/1:2; [stp1,~] = step(tf_y2xz,tvec); stp2 = [zeros(1,1) ; stp1(1:end-1)]; xz_out = d*( stp1 - stp2 ); subplot(1,2,2); plot(tvec,xz_out, LineWidth,2) grid on; xlabel( Time, in s ) ylabel( x+z, in m ) ylim([-.5,.5]); title( v = 1 km/h ).5 v = 1 km/h.5 v = 1 km/h x+z, in m x+z, in m.5 1 2 Time, in s.5 1 2 Time, in s Figure 1: Responses to pothole in P6.9. 6.1 Given what we know about responses of second-order systems and dominance of the slow poles in this example, we would expect the worst-case frequency of a sinusoidal input to be ω d = ω n 1 ζ2 15.7 rad/s. We can use the frequency response of our system to confirm this suspicion. Figure 2 shows a Bode plot of our system. These plots visualize magnitude and phase of our frequency response as functions of frequency ω (you will learn much more about them in the coming weeks). As we can see, the magnitude plot has a peak at approximately 15.7 rad/s, confirming our initial guess. There are no noticeable peaks close to the frequencies corresponding to the remaining two poles because they are close to zeros of the transfer function. Conclusively, the worst-case velocity of our car travelling over this sinusoidal road profile is v = λω d 2π 2.5λ/s. 3

2 System: untitled1 Frequency (rad/s): 15.7Bode Diagram Magnitude (db): 16.5 Magnitude (db) 2 4 6 36 Phase (deg) 27 18 9 1 1 1 1 2 1 3 Frequency (rad/s) Figure 2: Bode plot for P6.1. 6.16 Taking Laplace transforms, we find the transfer function of our plant as G(s) = Ω 2(s) Y (s) = r 1Ω 1 (s) r 2 T (s) = r 1r 2 /. s + b r / The transfer function of our controller is K(s) = K/s. The open-loop poles are located at p 1 = b r / and p 2 =. There are no open-loop zeros. Given our experience with root-locus plots, we know that if we increase K >, the closed-loop poles start moving off the open-loop poles towards each other before branching out from the real axis with angles φ = π/2 and φ 1 = 3π/2. The poles branch out at c = b r /(2 ), which constitutes the design point specified in the problem statement. The closed-loop characteristic polynomial is p(s) = s 2 + b r s + r 1r 2 K with roots such that s 1/2 = b r /(2 ) for s 1/2 = b r 2 ± b 2 r 4J 2 r r 1r 2 K, K = b 2 r 4 r 1 r 2 = 12.78. The following code computes K and gives you the root-locus plot in Figure 3. The point marked in the plot is very close to the real axis with gain approximately 12.8, confirming our computation above. Given that the controller K(s) has a pole at the origin, the closed-loop system can track a constant reference input ω 2 (see p.81 in the reader). 4

clear all, close all; % P 6.16 r1 =.5; r2 =.25; m1 = 1; m2 = 1; b1 =.125; b2 = 6.25; J1 = m1*r1^2/2; J2 = m2*r2^2/2; Jr = J1*r2^2 + J2*r1^2; br = b1*r2^2 + b2*r1^2; K = br^2/(4*jr*r1*r2); G = tf(r1*r2/jr,[1 br/jr]); C = tf(1,[1 ]); rlocus(c*g); 8 Root Locus Imaginary Axis (seconds 1 ) 6 4 2 2 4 System: untitled1 Gain: 12.8 Pole: 13.7 1.66e 7i Damping: 1 Overshoot (%): Frequency (rad/s): 13.7 6 8 3 25 2 15 1 5 5 1 Real Axis (seconds 1 ) Figure 3: Root-locus plot for P6.16. 6.17 Using the same transfer function for our plant as in P6.16, our controller now has transfer function K(s) = K p + K i /s. Clearly, our closed-loop system will still be able to track a constant reference input ω 2 as long as K i. However, we have to proceed in a different way to choose our control gains K p and K i to meet the given design specifications. 5

The open-loop poles are independent of the control gains and located at p = b r / (machine pole) and p = (pole of controller). Moreover, the open-loop system has a real-valued zero located at z = K i /K p. We can choose the location of this zero and thus fix the ratio of our control gains, leaving us with only a single degree of freedom for the remaining design process, which in turn allows us to draw a root-locus plot. That is, we get a root-locus plot with the two real-valued open-loop poles and a real-valued zero that we can choose anywhere on the real axis. For the remainder of the problem, we also assume K i, K p >. 2 Under this assumption, we use our rule about the real axis in root-locus plots to conclude that we only have a chance to meet the design specifications if the open-loop zero has real part smaller than the two poles. This is because we are not allowed to cancel the machine pole using the zero and for all greater values of the zero with negative feedback, the open-loop pole at the origin will drift into the right-half plane instantaneously. Choosing a zero with real part smaller than the machine pole, we are guaranteed to meet the given design criteria for all sufficiently large control gains satisfying the ratio satisfied by our placement of the zero. For instance, Figure 4 shows a root locus plot with z = K i /K p = 2b r / in terms of K p. One possible choice for the remaining gain K p is marked with K p 1.9, which in turn yields K i = 2b r K p 595.55. Of course, there are many other options for your control gains, which are perfectly fine as long as the design criteria are met. 5 Root Locus Imaginary Axis (seconds 1 ) System: untitled1 Gain: 1.9 Pole: 93.1 Damping: 1 Overshoot (%): Frequency (rad/s): 93.1 5 2 15 1 5 5 Real Axis (seconds 1 ) Figure 4: Root-locus plot for P6.17 with K i /K p = 2b r /. 2 Without this assumption, we would end up with positive instead of negative feedback in the closed-loop system. In terms of the root-locus discussion in the reader, this means α <, inverting your real-axis rule for drawing root-locus plots. 6