EXPERIMENTALLY DETERMINING THE TRANSFER FUNCTION OF A SPRING- MASS SYSTEM

Similar documents
Inverted Pendulum System

Position Control Experiment MAE171a

ECE 320 Linear Control Systems Winter Lab 1 Time Domain Analysis of a 1DOF Rectilinear System

Laboratory handout 5 Mode shapes and resonance

2.004 Dynamics and Control II Spring 2008

MAS107 Control Theory Exam Solutions 2008

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

8.1.6 Quadratic pole response: resonance

Frequency Response of Linear Time Invariant Systems

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

EE 468 Control System Laboratory Supporting Materials and Experiments

Rotary Motion Servo Plant: SRV02. Rotary Experiment #01: Modeling. SRV02 Modeling using QuaRC. Student Manual

State Feedback Controller for Position Control of a Flexible Link

Dynamic circuits: Frequency domain analysis

Laboratory handouts, ME 340

Compensator Design to Improve Transient Performance Using Root Locus

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

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

Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013

Systems Analysis and Control

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

Rotary Motion Servo Plant: SRV02. Rotary Experiment #11: 1-DOF Torsion. 1-DOF Torsion Position Control using QuaRC. Student Manual

ME scope Application Note 28

Frequency Response Analysis

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

Rectilinear System. Introduction. Hardware

Frequency domain analysis

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

Step Response for the Transfer Function of a Sensor

Date: 31 March (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

CHAPTER 7 : BODE PLOTS AND GAIN ADJUSTMENTS COMPENSATION

MAE 143B - Homework 9

MAE106 Laboratory Exercises Lab # 6 - Vibrating systems

The Frequency-Response

Implementation Issues for the Virtual Spring

Topic # Feedback Control Systems

Control of Manufacturing Processes

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual

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

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

Laboratory handouts, ME 340

School of Mechanical Engineering Purdue University

APPLICATIONS FOR ROBOTICS

ECE 203 LAB 1 MATLAB CONTROLS AND SIMULINK

Homework 7 - Solutions

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)

Control for. Maarten Steinbuch Dept. Mechanical Engineering Control Systems Technology Group TU/e

The control of a gantry

Steady State Frequency Response Using Bode Plots

PID Control. Objectives

Class 13 Frequency domain analysis

Systems Analysis and Control

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

Date: 1 April (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

Outline. Classical Control. Lecture 1

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

Analysis and Design of Control Systems in the Time Domain

EEE 480 LAB EXPERIMENTS. K. Tsakalis. November 25, 2002

agree w/input bond => + sign disagree w/input bond => - sign

Problem Value Score Total 100/105

EE Experiment 11 The Laplace Transform and Control System Characteristics

Control Systems I. Lecture 9: The Nyquist condition

EEL2216 Control Theory CT1: PID Controller Design

Modeling and System Identification for a DC Servo

Experiment 5. Simple Harmonic Motion

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

Digital Control Semester Project

2.010 Fall 2000 Solution of Homework Assignment 1

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

Linear Circuit Experiment (MAE171a) Prof: Raymond de Callafon

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

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

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

Department of Electrical and Computer Engineering. EE461: Digital Control - Lab Manual

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

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

1 (20 pts) Nyquist Exercise

University of TN Chattanooga Physics 1040L 8/18/2012 PHYSICS 1040L LAB LAB 4: R.C. TIME CONSTANT LAB

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

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

Introduction to Feedback Control

Modeling General Concepts

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

FEEDBACK CONTROL SYSTEMS

DC-motor PID control

Singular Value Decomposition Analysis

ECE3510 Lab #5 PID Control

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

YTÜ Mechanical Engineering Department

Control Systems I Lecture 10: System Specifications

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

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.

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL & COMPUTER ENGINEERING FINAL EXAM. COURSE: ECE 3084A (Prof. Michaels)

YTÜ Mechanical Engineering Department

1-DOF Forced Harmonic Vibration. MCE371: Vibrations. Prof. Richter. Department of Mechanical Engineering. Handout 8 Fall 2011

FATIMA MICHAEL COLLEGE OF ENGINEERING & TECHNOLOGY

Lab 3: Quanser Hardware and Proportional Control

Lab 5: Harmonic Oscillations and Damping

Time Response Analysis (Part II)

CDS 101/110: Lecture 3.1 Linear Systems

Transcription:

EXPERIMENTALLY DETERMINING THE TRANSFER FUNCTION OF A SPRING- MASS SYSTEM Lab 8 OBJECTIVES At the conclusion of this experiment, students should be able to: Experimentally determine the best fourth order transfer function model for the DOF system. Collect experimental frequency response data. Understand the significance of the Bode plot for predicting system behavior, and determining non-parametric system models. DELIVERABLES The deliverables of this experiment are: A memo style report including, but not limited to the following: -introduction, results/discussion, conclusion, and appropriate appendices -Show your best fit transfer function, and the location of its poles. -A Bode magnitude plot showing the experimental data, and best fit. An example is shown on the last page of this handout, your results may vary significantly. -List any suggestions for improving the lab. THEORY By frequency response, we mean the response of a system to a harmonic input. A linear system cannot change the frequency from input to output. Thus, as we have seen earlier, the output will be the a sinusoid of frequency identical to that of the input, only amplified or attenuated, and shifted in phase: x(t) X(s) PlantG(s) y(t) Y(s) Figure 1, Physical Meaning of Frequency Response 1 of 7 004 RHIT

xt ()= X sinωt ( ( ) yt ()= Gjω ( )X sin ωt + Gjω A Pole-Zero Map is the easiest way to visualize the magnitude and phase of a Transfer Function. The figure below shows the pole zero map of the transfer function: Gs ()= s +.1s + 0. ss 3 + 3s + 93.5s + 91.5 ( ) We have drawn the vectors from each pole and zero to the point s = j9.5, which is the 'resonant' frequency of the system. Figure, Graphical Evaluation of Frequency Response Note that the magnitude of the transfer function at this point is given as the product of the lengths of the vectors from the zeros over the product of the lengths of the vectors from the poles: Gjω ( ) = i j z i p j (1) of 7 004 RHIT

The transfer function argument (angle) is the sum of the zero vector angles minus the sum of the pole vector angles. In each case the angles are defined as counter-clockwise from a segment parallel to the real axis to the vector. G( jω)= z i p j The closer a complex pole is to the jω axis, (less system damping) the higher a resonant peak will be. Likewise, the closer a zero, the lower the 'notch'. i The Bode plot is a mapping of the entire + jω axis (the entire positive frequency spectrum) through the system transfer function to Gain and Phase plots. We typically plot Gain and Phase together on a semilog axis. The abscissa (x-axis) for the Bode plot is log frequency. The distance between a frequencies 1 and 10, 0.1 and 1, 10 and 100, etc. is termed a 'decade'. Gain is plotted in 'decibels' (db) where the conversion from magnitude to db is given by Gjω ( ) ( db)= 0log 10 Gjω ( ) This week in class we are investigating how to determine the Bode plot knowing the system transfer function. In this lab we will explore the inverse problem, that is, knowing the frequency response, can we determine an appropriate transfer function? We will base our transfer function estimate on the experimental Bode magnitude plot only. As illustrated in Fig, and Eqn 1, without considering the Bode phase plot, the poles and zeros could lie on either side of the jω axis (right or left half plane) and we would observe the same Bode magnitude plot. With this in mind, you may find it necessary to arbitrarily change unstable system poles to their stable equivalents after tuning your model. The system we are trying to identify is a two mass, three spring system as shown to the right. The input is a voltage to a DC motor connected to a rack and pinion, then directly connected to the first mass. We will neglect the motor dynamics. Since we have some insight into the physical characteristics, this is a gray box problem, rather than a black box problem, where we have no inkling as to what connects input to output. The output is the position of the second mass x. From first principles, we would expect the system transfer function to be fourth order. Thus, we begin with the following transfer function, and try to identify the unknown parameters. Kω1 ω () G () s = s + ζ ω s + ω s + ζ ω s + ω ( )( ) 1 1 1 j 3 of 7 004 RHIT

THE ADVENTURE BEGINS During the adventure you will set out to accomplish the following: 1. Set up the environment. a. Each station should be set up in DOF mode with two 500g brass masses on each carriage. If your station is not configured properly, ask your instructor to fix it. b. Log on to the computer (username=student, password=student) and start the ECP executive program under Programs/ECP. Select Setup/Control Algorithm... In the dialog box, select the State Feedback radio button, and press Implement Algorithm. Press OK. Push the black button of the ECP control box. You might hear the system rattle a bit due to sensor noise in the feedback loop.. Recording Frequency response data: For each frequency of interest, do the following steps: a. Select Command/Trajectory... In the dialog select the Sinusoidal radio button and press Setup. Now select Open Loop Move. The Amplitude should be set to 0.5v. Select a frequency of interest. You will need to run the following set of frequencies: [1 3 4 5 6 7 8 9 10] Hz Set the number of reps equal to 10 times the frequency (in Hz) and click OK. Click OK on the Trajectory Configuration dialog. b. Under Utility, select Zero Position c. Select Command/Execute and press Run. d. Watch the response. After the Upload successful dialog completes, click OK. e. (Optional) To look at an individual data set, select Plotting/Setup Plot. In the dialog, add Commanded Position and Encoder Position to the Left Axis, the click Plot Data. You might want to do this for some of the higher frequencies to insure that the system has reached steady state. f. Export your data. Select Data/Export Raw Data... Browse to a convenient directory, floppy disks are recommended for storing this data. Save as type All files (*.*). Choose a name with meaning, like 'inixx.m' where ini is a group member's initials, xx is the frequency in Hz. g. Repeat for the remaining frequencies of interest. h. You can use Secure FX to move your data to your afs space. A shortcut is provided on the lab computer desktop. 3. Analysis: a. Each exported data file will have the following format. 4 of 7 004 RHIT

Each row of the array is a sample and the columns are, respectively: Sample, Time, Commanded Pos, Encoder 1 Pos, Encoder Pos, Encoder 3 Pos. Change the file so that you have an array assignment. Extract the Encoder Position data and subtract the mean:»enccm = dat4(:,5)-mean(dat4(:,5)); Convert Encoder Postion to centimeters. The encoder sensitivity is 1604.1 counts/cm.»enccm = enccm/1604.1; Now determine the ratio of output to input amplitude. You might want to plot the data to determine where the oscillations have reached steady state. Output amplitude can then be determined by taking the maximum value from several steady state oscillations. Since the input amplitude was specified to be 0.5 volts, we divide by 0.5 to get the ratio of output magnitude over input magnitude. For example: Magy(10) = max(encm(500:1000))/0.5; Note, the array indices in this statement need to be adjusted to that you consider only oscillations after the system has reached steady state. It is probably easiest to do these calculations inside each data file. b. Write a top-level script that 1) executes each data file. ) Converts the Magy vector to db, and plots the experimental data on a semilog plot. 3) Uses fminsearch to find the fourth order transfer function that best fits the data. Use a transfer function form with no finite zeros. You should field an initial guess based on where the resonant peaks appear to be in the experimental 5 of 7 004 RHIT

data. The system is very lightly damped, so guess each damping ratio to be 0.1. Reduce the transfer function of Eqn () to the following form, and use the x i s for your initial guess. Gs ()= x 1 x s 4 + x 3 s 3 + x 4 s + x 5 s + x 6 Then put the coefficients of your guess into a column vector to serve as the initial guess for fminsearch. Use the following syntax to run your optimization:»options = optimset(@fminsearch)»options = optimset(options,'display','iter');»coeffs = fminsearch(@lab8,x0,options) You will need to write a function 'lab8' that computes the sum squared error between experimental magnitudes and theoretical magnitudes along the Bode plot. You are encouraged to use the features of the control toolbox, including, in particular, the bode command. Here are a few lines of code to get you started: function J = lab8(x) num = x(1); den = x(:6); sys = tf(num,den); ww = *pi*[1:10]; % be sure to convert freqs. to rad/sec mag = [% put your experimental data here %]'; maggie = bode(sys,ww); maggie = 0*log10(maggie(:)); % Comparison should be done in mag = 0*log10(mag); % db for proper weighting J = norm(mag - maggie); Plot the magnitude of your best fit transfer function, and determine the resonant frequencies. (You will need to re-run the bode function with the best transfer function coefficients, and use a fine frequency vector like ww=logspace(0,,100)). Time permitting, try exciting the system at the resonant frequencies. You will probably need to reduce the input amplitude to 0.5 volts to avoid exceeding the travel limits of the device. Incorporate this data into your analysis, and re-do the numerical fit analysis. Check the stability of your tuned transfer function. If any of the poles lie in the right half plane (have positive real parts) you should arbitrarily change the real parts to be negative, and recalculate the transfer function. Be sure to report a stable transfer function as your final answer. A sample plot of experimental and theoretical best fit Bode magnitude data is provided below, your results may be significantly different depending on which set-up you use for the analysis. 6 of 7 004 RHIT

Figure 3, Experimental Bode Magnitude Data with best fit theoretical transfer function. 7 of 7 004 RHIT