ECE382/ME482 Spring 2005 Homework 1 Solution February 10,

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

Homework Assignment 3

Solution to Homework Assignment 1

ECE 3793 Matlab Project 3 Solution

ECE382/ME482 Spring 2004 Homework 4 Solution November 14,

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

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

Problem Weight Score Total 100

ECE 3793 Matlab Project 3

ECE382/ME482 Spring 2005 Homework 8 Solution December 11,

Numeric Matlab for Laplace Transforms

16.31 Homework 2 Solution

APPLICATIONS FOR ROBOTICS

MATHEMATICAL MODELING OF CONTROL SYSTEMS

EE Experiment 11 The Laplace Transform and Control System Characteristics

Control System. Contents

Time Response Analysis (Part II)

Chap. 3 Laplace Transforms and Applications

CHAPTER 5 : REDUCTION OF MULTIPLE SUBSYSTEMS

Systems Analysis and Control

Dr Ian R. Manchester

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

EE -213 BASIC CIRCUIT ANALYSIS LAB MANUAL

The Laplace Transform

Fundamental of Control Systems Steady State Error Lecturer: Dr. Wahidin Wahab M.Sc. Aries Subiantoro, ST. MSc.

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

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

Lab Experiment 2: Performance of First order and second order systems

MODELING OF CONTROL SYSTEMS

EE -213 BASIC CIRCUIT ANALYSIS LAB MANUAL

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

Laplace Transforms Chapter 3

Time Response of Systems

CHAPTER 1 Basic Concepts of Control System. CHAPTER 6 Hydraulic Control System

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

Alireza Mousavi Brunel University

06 Feedback Control System Characteristics The role of error signals to characterize feedback control system performance.

EEE 184 Project: Option 1

Last week: analysis of pinion-rack w velocity feedback

The Laplace Transform

PID controllers. Laith Batarseh. PID controllers

Lesson 11: Mass-Spring, Resonance and ode45

Course Background. Loosely speaking, control is the process of getting something to do what you want it to do (or not do, as the case may be).

Lecture 5b: Starting Matlab

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

9. Introduction and Chapter Objectives

Control Systems, Lecture 05

INTRODUCTION TO DIGITAL CONTROL

Due Wednesday, February 6th EE/MFS 599 HW #5

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

(a) Torsional spring-mass system. (b) Spring element.

EEE 184: Introduction to feedback systems

Test 2 SOLUTIONS. ENGI 5821: Control Systems I. March 15, 2010

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Basic Feedback Analysis & Design

Chapter 7. Digital Control Systems

SECTION 2: BLOCK DIAGRAMS & SIGNAL FLOW GRAPHS

2 Solving Ordinary Differential Equations Using MATLAB

SFG and Mason s Rule : A revision

LABORATORY INSTRUCTION MANUAL CONTROL SYSTEM I LAB EE 593

OKLAHOMA STATE UNIVERSITY

Exercise 1 (MC Questions)

Chapter 5 HW Solution

9.5 The Transfer Function

MAE 143B - Homework 9

Chapter 6 Steady-State Analysis of Continuous-Time Systems

AN INTRODUCTION TO THE CONTROL THEORY

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Dynamic Response

EE 3CL4: Introduction to Control Systems Lab 4: Lead Compensation

Input and Output Impedances with Feedback

Compensator Design to Improve Transient Performance Using Root Locus

EE/ME/AE324: Dynamical Systems. Chapter 7: Transform Solutions of Linear Models

Control Systems Engineering (Chapter 2. Modeling in the Frequency Domain) Prof. Kwang-Chun Ho Tel: Fax:

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

Unit 2: Modeling in the Frequency Domain Part 2: The Laplace Transform. The Laplace Transform. The need for Laplace

MATH 2050 Assignment 8 Fall [10] 1. Find the determinant by reducing to triangular form for the following matrices.

Modeling. Transition between the TF to SS and SS to TF will also be discussed.

CHAPTER 7 STEADY-STATE RESPONSE ANALYSES

Basic Procedures for Common Problems

Laplace Transforms. Chapter 3. Pierre Simon Laplace Born: 23 March 1749 in Beaumont-en-Auge, Normandy, France Died: 5 March 1827 in Paris, France

Module 03 Modeling of Dynamical Systems

MAS107 Control Theory Exam Solutions 2008

CYBER EXPLORATION LABORATORY EXPERIMENTS

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

Introduction to Controls

Identification Methods for Structural Systems. Prof. Dr. Eleni Chatzi System Stability - 26 March, 2014

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

( ) ( = ) = ( ) ( ) ( )

Homework 7 - Solutions

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015

YTÜ Mechanical Engineering Department

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

A single-formula approach for designing positive summing amplifiers. By Max Bernhardt, Lange Sales

School of Mechanical Engineering Purdue University. ME375 Feedback Control - 1

CHBE320 LECTURE V LAPLACE TRANSFORM AND TRANSFER FUNCTION. Professor Dae Ryook Yang

10ES-43 CONTROL SYSTEMS ( ECE A B&C Section) % of Portions covered Reference Cumulative Chapter. Topic to be covered. Part A

EE 321 Analog Electronics, Fall 2013 Homework #3 solution

INFINITE-IMPULSE RESPONSE DIGITAL FILTERS Classical analog filters and their conversion to digital filters 4. THE BUTTERWORTH ANALOG FILTER

Notice the minus sign on the adder: it indicates that the lower input is subtracted rather than added.

Laplace Transform Part 1: Introduction (I&N Chap 13)

Chemical Engineering 436 Laplace Transforms (1)

Transcription:

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 1 Solution to HW1 P2.33 For the system shown in Figure P2.33 on p. 119 of the text, find T(s) = Y 2 (s)/r 1 (s). Determine a relationship that will make Y 2 (s) independent of R 1 (s). Solution: We apply Mason s signal-flow gain formula (2.96), p. 74 of the text, to the signal flow graph in the figure, which has paths and loops P 121 = G 1 G 8 G 6 (1) P 122 = G 2 G 5 G 6 (2) P 123 = G 2 G 7 G 4 H 2 G 1 G 8 G 6 (3) L 1 = G 1 G 3 G 4 H 2 (4) L 2 = G 2 G 5 G 6 H 1 (5) L 3 = G 2 G 7 G 4 H 2 G 1 G 8 G 6 H 1. (6) Since all loops touch paths P 121 and P 123, the corresponding path cofactors are 121 = 123 = 1. Path P 122 does not touch loop L 1 so 122 = 1 L 1 = 1 + G 1 G 3 G 4 H 2. Using (2.97), p. 74, the determinant of the graph is = 1 L 1 L 2 L 3 + L 1 L 2 (7) = 1 + G 1 G 3 G 4 H 2 + G 2 G 5 G 6 H 1 G 1 G 2 G 4 G 6 G 7 G 8 H 1 H 2 + G 1 G 2 G 3 G 4 G 5 G 6 H 1 H 2. Substituting into the formula (2.96) we then have T 12 = P 121 121 + P 122 122 + P 123 123 = G 1G 8 G 6 + ( G 2 G 5 G 6 )(1 + G 1 G 3 G 4 H 2 ) + G 2 G 7 G 4 H 2 G 1 G 8 G 6 where we have not substituted for only because there is no efficient way to simplify it and it is too long to fit in the available space. To decouple Y 2 (s) from R 1 (s), we need T 12 =, which is achieved if the numerator of the expression for T 12 is set equal to zero. For this we need G 1 G 6 G 8 = G 2 G 5 G 6 + G 1 G 2 G 3 G 4 G 5 G 6 H 2 + G 1 G 2 G 4 G 6 G 7 G 8 H 2. P2.34 Find the transfer function Y (s)/r(s) for the block diagram given in Figure P2.34, p. 119. Solution: The block diagram can be transformed by simple transformations to obtain the desired transfer function. 1. Duplicate the fuel gain block K 6 and the summer that follows it so that we can separate the loops through it. 2. Eliminate the feedback loop consisting of the forward path through the dynamics block G 3 (s) and feedback path through spark gain H 1 (s), using transformation 6. The resulting block will have transfer function G 3 (s)/(1 G 3 (s)h 1 (s)) because the feedback is positive. Call this new block G I (s). (8)

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 2 3. Eliminate the feedback loop consisting of the forward path through G I (s) and feedback path through (one copy of the) constant fuel gain K 6, using transformation 6. The resulting block will have transfer function G I (s)/(1 G I (s)k 6 ) because the feedback is positive. 4. Combine the feedforward paths through K 5 K 6 and G 2 (s) to obtain a block G II (s) = K 5 K 6 + G 2 (s) between the manifold block G 1 (s) and the block G I obtained earlier. 5. Eliminate the remaining two loops (one with feedback path through K 4 and one with feedback path through the air bypass H 2 (s) by applying transformation 6 twice more. The resulting transfer function is Y (s) R(s) = G 1 (s)g 3 (s)(k 5 K 6 + G 2 (s)) 1 G 3 (s)h 1 (s) K 6 G 3 (s) + G 1 (s)g 3 (s)(k 4 + H 2 (s))(k 5 K 6 + G 2 (s)). (9) P2.37 We are given a system whose transfer function is T(s) = Y (s) R(s) = 12 s 3 + 8s 2 + 19s + 12 and asked to use partial fraction expansions to determine the responses to ramp and impulse inputs, including the output values at t = 1.5 s, and to check our work with Matlab. We are also asked to use the tf and parallel commands to obtain the transfer function from the partial fraction expansion. This will be done in part (e) below. Solution: We will use L to indicate the Laplace transform operator. (a) First we must obtain the Laplace transform of the ramp input R(s) = L {r(t)} = L {t} = 1 s 2 (1) and factor the denominator of the transfer function to obtain s 3 + 8s 2 + 19s + 12 = (s + 1)(s + 3)(s + 4). (11) We then use residues to find the coefficients A, B, C, D, and E of the partial fraction expansion ( ) ( ) 1 12 s 2 (s + 1)(s + 3)(s + 4) = A s 2 + B s + C s + 1 + D s + 3 + E s + 4. (12) We obtain A = s2 T(s) s 2 = 1, (13) s= B = d ( ) s 2 T(s) ds s 2 = 12(19) s= 12 2 = 19 12, (14) C = s + 1 s 2 T(s) = = 2, (15) s= 1

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 3 and similarly, D = 2/3 and E = 1/4. Thus and, inverse transforming, Y (s) = 1 s 2 + 19/2 s + 2 s + 1 + 2/3 s + 3 + 1/4 s + 4 (16) y(t) = t 19/12 + 2e t 2 3 e 3t + 1 4 e 4t, t (17) (b) To generate the plot of y(t) corresponding to a ramp input, we use the Matlab code below to generate the the plot. We use that fact that the ramp response of the original system is the same as the impulse response of the system obtained by multiplying the Laplace transform of the input with the transfer function. tf2_37 = tf([12],[1 8 19 12]) rs2_37 = tf([1],[1 ]) ys2_37 = series(rs2_37,tf2_37) t = [:.1:1]; y = impulse(ys2_37,t); t(16) y(16) plot(t,y) title( Ramp Response of P2.37 ) xlabel( Time (s) ) ylabel( y(t) ) grid print -deps p2_27b.eps The plot obtained is shown in Figure 1. We find the value y(1.5) =.3561 using the commands above. (c) In the case of the impulse response, R(s) = 1 so we obtain a partial fraction expansion for T(s) itself, obtaining Y (s) = 2 s + 1 + 6 s + 3 + 4 s + 4 (18) and inverse transform y(t) = 2e t 6e 3t + 4e 4t (19) (d) [y,t]=impulse(t2_37,t); y(16) plot(t,y) title( Impulse Response of P2.37 ) xlabel( Time (s) ) ylabel( y(t) ) grid print -deps p2_27d.eps The plot obtained is shown in Figure 1. We find the value y(1.5) =.3895 using the commands above.

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 4 9 Figure 1: Plot of response of transfer function of P2.37 to a ramp input Ramp Response of P2.37 8 7 6 5 y(t) 4 3 2 1 1 2 3 4 5 6 7 8 9 1 Time (s) (e) This procedure yields a cautionary tale, as show in the Matlab transcript below. The result of reconstructing the transfer function after obtaining the partial fraction expansion is incorrect. Somehow the numerator and denominator have both been multiplied by s. As usual, we must be careful in how we use software tools. >> s2_37 = tf([12],[1 8 19 12 ]) 12 ----------------------------- s^5 + 8 s^4 + 19 s^3 + 12 s^2 >> [n2_37,d2_37]=tfdata(s2_37, v ) n2_37 = 12

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 5.7 Figure 2: Plot of impulse response of transfer function of P2.37 Impulse Response of P2.37.6.5.4 y(t).3.2.1 1 2 3 4 5 6 7 8 9 1 Time (s) d2_37 = 1 8 19 12 >> [r,p,k]=residue(n2_37,d2_37) r =.25 -.6667 2. -1.5833 1.

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 6 p = -4. -3. -1. k = [] >> t1 = tf([r(1)],[1 -p(1)]).25 ----- s + 4 >> t2 = tf([r(2)],[1 -p(2)]) -.6667 ------- s + 3 >> t3 = tf([r(3)],[1 -p(3)]) 2 ----- s + 1 >> t4 = tf([r(4)],[1 -p(4)]) -1.583 ------ s >> t5 = tf([r(5)],[1 -p(5) ]) 1

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 7 --- s^2 >> tf = parallel(t1,parallel(t2,parallel(t3,parallel(t4,t5)))) 1.86e-15 s^5 + 9.215e-15 s^4 + 6.439e-15 s^3-8.882e-16 s^2 + 12 s ----------------------------------------------------------------------- s^6 + 8 s^5 + 19 s^4 + 12 s^3 Notice also the four coefficients in the numerator that should be zero, but aren t quite. DP2.4 We are asked to find the transfer function from input voltage V 1 to output voltage V for the operational amplifier circuit shown in Figure DP2.4 on page 126 of the textbook, assuming an ideal op amp. We are then asked to find the output voltage corresponding to an input voltage v 1 (t) = At, t. We assume that v 1 (t) =, t <. Solution: The ideal op amp has input voltages v + = v and input currents i + = i =. (a) Accordingly, when we apply Kirchoff s current law at the negative and positive terminals we obtain, respectively, in the frequency domain V 1 V = V V o R 1 R 1 (2) V 1 V + = V + R 2 1/Cs. (21) Then from (2), V = V 1 + 2V + and from (21), V + = V 1 /(R 2 Cs + 1) so ( ) 2V 1 V = V 1 + R 2 Cs + 1 = R2 Cs 1 V 1 (22) R 2 Cs + 1 and T(s) = V ( ) (s) V 1 (s) = R2 Cs 1 R 2 Cs + 1 (b) The Laplace transform of the input voltage is A/s 2 so we find the partial fraction expansion of ( ) ( ) R2 Cs 1 A V (s) = T(s)V 1 (s) = R 2 Cs + 1 s 2. (24) We let β = 1/(R 2 C) and solve for B, C, and D in B s 2 + C s + D s + β = A(s β) s 2 (s + β) to obtain B = A, C = 2A/β, and D = 2A/β so that ( 1 V (s) = A s 2 2/β s + 2/β ) s + β and, inverse transforming, v (t) = A (23) (25) (26) (t 2β + 2β e βt ), t (27)

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 8 MP2.1 We are given a block diagram and asked to simplify it by hand and using Matlab. Simplification by hand is straightforward but results in a very messy expression. We are then asked to use the commands pzmap and pole and zero to identify the locations of the poles and zeros of the transfer function. Finally we are asked to plot the step response and use the final value theorem to verify that our result has the correct behavior as t becomes large. Solution: First we have three feedback loops to transform. The one with a double integrator 1/s 2 in the forward path and a gain of 5 in the backward path becomes a single block with transfer function 1/(s 2 5). The loop with a series connection of 1/(s + 1) and s/(s 2 +2) in the forward path and (4s+2)/(s+1) 2 in the backward path reduces to a single block with transfer function (s 3 +2s 2 +s)/(s 5 +3s 4 +5s 3 +11s 2 +8s+2). Simplifying the resulting loop whose forward path consists of these first two resulting blocks in series and whose backward path contains the block with transfer function (s 2 + 2)/(s 3 + 14) and taking into account the constant gain of 4 in the block multiplying the input R(s) we obtain the transfer function T(S) = = Y (s) R(s) 4s 6 + 8s 5 + 4s 4 + 56s 3 + 112s 2 + 56s s 1 + 3s 9 45s 8 125s 7 2s 6 1177s 5 2344s 4 3485s 3 7668s 2 5598s 14 (28) If you obtained that by hand, you are truly to be commended. I gave up and used Matlab about half way through as shown below. >> rfblock = tf([1],[1-5]) 1 -------- s^2-5 >> lfblock = feedback(tf([1 ],[1 1 2 2]),tf([4 2],[1 2 1])) s^3 + 2 s^2 + s -------------------------------------- s^5 + 3 s^4 + 5 s^3 + 11 s^2 + 8 s + 2 >> fbblock = tf([1 2],[1 14]) s^2 + 2 -------- s^3 + 14

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 9 >> mp26tf = 4*feedback(series(lfblock,rfblock),fbblock) 4 s^6 + 8 s^5 + 4 s^4 + 56 s^3 + 112 s^2 + 56 s ------------------------------------------------------------------------ s^1 + 3 s^9-45 s^8-125 s^7-2 s^6-1177 s^5-2344 s^4-3485 s^3-7668 s^2-5598 s - 14 (a) To reduce the block diagram using Matlab alone we would calculate the transfer functions of the forward path blocks using the following commands. >> rfblock = feedback(tf([1],[1 ]),tf([5],[1]),1) 1 -------- s^2-5 >> lfblock = feedback(series(tf([1],[1 1]),tf([1 ],[1 2])),... tf([4 2],[1 2 1])) s^3 + 2 s^2 + s -------------------------------------- s^5 + 3 s^4 + 5 s^3 + 11 s^2 + 8 s + 2 Note that we use a third argument, 1 to indicate to the feedback command that the feedback is positive rather than (the default) negative. (b) The output generated by the command pzmap(mp26tf) is shown in Figure 3. (c) The poles and zeros obtained using the pole and zero commands are shown in the transcript fragment below. Note that although the pole-zero map found in the previous part of the problem appears to indicate that some poles and zeros coincide, the listings below indicate that they do not, so care must be taken in interpreting the output of the pzmap command. >> pole(mp26tf) ans = 7.79-7.713 1.251 + 2.863i

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 1 Figure 3: Pole-Zero Map generated using the Matlab command pzmap for Problem MP2.6 2.5 Pole Zero Map for MP2.6 2 1.5 1.5 Imaginary Axis.5 1 1.5 2 2.5 8 6 4 2 2 4 6 8 Real Axis 1.251-2.863i.1219 + 1.8374i.1219-1.8374i -2.3933-2.3333 -.4635 +.1997i -.4635 -.1997i >> zero(mp26tf) ans = 1.251 + 2.872i 1.251-2.872i -2.411-1.

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 11-1. We were also asked to plot the step response and determine whether the behavior for large t agreed with that predicted by the final value theorem. The final value theorem (page 5) states that lim y(t) = lim sy (s) (29) t s so long as there is not more than one pole at the origin, no poles on the imaginary axis, no poles in the right-half plane, and no repeated poles. In other words, this was a trick question. The list of poles above shows that the transfer function does have poles in the right half plane in fact it has five of them so we cannot apply the final value theorem. Not surprisingly, given the poles in the right half plane, the step response appears to increase without bound, as shown in Figure 4, which was generated using the following commands. t=[:.1:1]; [y,t]=step(mp26tf,t); plot(t,y) title( Step Response for System of MP2.6 ) xlabel( Time (s) ) ylabel( y(t) ) print -deps mp2_6s.eps If the conditions of the final value theorem had not been violated by the transfer function, we would have multiplied T(s) by R(s) = 1/s for the unit step to obtain Y (s).

ECE382/ME482 Spring 25 Homework 1 Solution February 1, 25 12.8 Figure 4: Plot of step response of the system of MP2.6 Step Response for System of MP2.6.7.6.5 y(t).4.3.2.1.1.2.3.4.5.6.7.8.9 1 Time (s)