EE 3TP4: Signals and Systems Lab 5: Control of a Servomechanism

Similar documents
EE 3CL4: Introduction to Control Systems Lab 1: Introduction

Rotary Motion Servo Plant: SRV02. Rotary Experiment #02: Position Control. SRV02 Position Control using QuaRC. Student Manual

Lab 11. Speed Control of a D.C. motor. Motor Characterization

Rotary Motion Servo Plant: SRV02. Rotary Experiment #03: Speed Control. SRV02 Speed Control using QuaRC. Student Manual

Sfwr Eng/TRON 3DX4, Lab 4 Introduction to Computer Based Control

Ver. 4/5/2002, 1:11 PM 1

MEM01: DC-Motor Servomechanism


EC CONTROL SYSTEMS ENGINEERING

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

EE 4314 Lab 3 Handout Speed Control of the DC Motor System Using a PID Controller Fall Lab Information

LAB 1: Familiarity with Laboratory Equipment (_/10)

SRV02-Series Rotary Experiment # 3. Ball & Beam. Student Handout

Laboratory Assignment 5 Digital Velocity and Position control of a D.C. motor

EE 210: CIRCUITS AND DEVICES

ME 3200 Mechatronics I Laboratory Lab 8: Angular Position and Velocity Sensors

Ball and Beam. Workbook BB01. Student Version

BSNL TTA Question Paper Control Systems Specialization 2007

Sonoma State University Department of Engineering Science Spring 2017

Module 08 Controller Designs: Compensators and PIDs

Penn State Erie, The Behrend College School of Engineering

This manuscript was the basis for the article A Refresher Course in Control Theory printed in Machine Design, September 9, 1999.

Exercise 2-2. Antenna Driving System EXERCISE OBJECTIVE DISCUSSION OUTLINE DISCUSSION

Motomatic Servo Control

Ideal Op Amps. The Two Golden Rules for circuits with ideal op-amps*

UNIVERSITY OF JORDAN Mechatronics Engineering Department Measurements & Control Lab Experiment no.1 DC Servo Motor

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

Chapter 1: DC circuit basics

Loop Design. Chapter Introduction

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

JUNE 2014 Solved Question Paper

Exp. #2-6 : Measurement of the Characteristics of,, and Circuits by Using an Oscilloscope

Phys Lecture 5. Motors

Course Outline. Time vs. Freq. Domain Analysis. Frequency Response. Amme 3500 : System Dynamics & Control. Design via Frequency Response

ANNA UNIVERSITY :: CHENNAI MODEL QUESTION PAPER(V-SEMESTER) B.E. ELECTRONICS AND COMMUNICATION ENGINEERING EC334 - CONTROL SYSTEMS

ECE 203 LAB 6: INVERTED PENDULUM

POLYTECHNIC UNIVERSITY Electrical Engineering Department. EE SOPHOMORE LABORATORY Experiment 3 The Oscilloscope

5 Lab 5: Position Control Systems - Week 2

LECTURE 2: PD, PID, and Feedback Compensation. ( ) = + We consider various settings for Zc when compensating the system with the following RL:

2 Oscilloscope Familiarization

MCE441/541 Midterm Project Position Control of Rotary Servomechanism

Notes on Experiment #1

EE 201 Function / Arbitrary Waveform Generator and Oscilloscope Tutorial

The University of Jordan Mechatronics Engineering Department Electronics Lab.( ) Experiment 1: Lab Equipment Familiarization

Automatic Control Systems 2017 Spring Semester

Lab 2: Common Base Common Collector Design Exercise

ECE 53A: Fundamentals of Electrical Engineering I

ME451: Control Systems. Course roadmap

EES42042 Fundamental of Control Systems Bode Plots

Resistive Circuits. Lab 2: Resistive Circuits ELECTRICAL ENGINEERING 42/43/100 INTRODUCTION TO MICROELECTRONIC CIRCUITS

GE 320: Introduction to Control Systems

Lab 1: Basic Lab Equipment and Measurements

Filter Design, Active Filters & Review. EGR 220, Chapter 14.7, December 14, 2017

Root Locus Design. by Martin Hagan revised by Trevor Eckert 1 OBJECTIVE

Lecture 9. Lab 16 System Identification (2 nd or 2 sessions) Lab 17 Proportional Control

Laboratory 3 (drawn from lab text by Alciatore)

Electrical Measurements

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

LECTURE FOUR Time Domain Analysis Transient and Steady-State Response Analysis

Operational Amplifier BME 360 Lecture Notes Ying Sun

1.What is frequency response? A frequency responses the steady state response of a system when the input to the system is a sinusoidal signal.

7 Lab: Motor control for orientation and angular speed

EE 482 : CONTROL SYSTEMS Lab Manual

Lab 1: Simulating Control Systems with Simulink and MATLAB

Check out from stockroom:! Two 10x scope probes

MEM 01 DC MOTOR-BASED SERVOMECHANISM WITH TACHOMETER FEEDBACK

Laboratory Project 1a: Power-Indicator LED's

EE283 Laboratory Exercise 1-Page 1

Goals. Introduction. To understand the use of root mean square (rms) voltages and currents.

of harmonic cancellation algorithms The internal model principle enable precision motion control Dynamic control

SECTION 6: ROOT LOCUS DESIGN

Laboratory Tutorial#1

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

ECE212H1F University of Toronto 2017 EXPERIMENT #4 FIRST AND SECOND ORDER CIRCUITS ECE212H1F

Electronics. RC Filter, DC Supply, and 555

EE 370/L Feedback and Control Systems Lab Section Post-Lab Report. EE 370L Feedback and Control Systems Lab

1. Hand Calculations (in a manner suitable for submission) For the circuit in Fig. 1 with f = 7.2 khz and a source vin () t 1.

Chapter 1: DC circuit basics

Introduction to oscilloscope. and time dependent circuits

EE 241 Experiment #7: NETWORK THEOREMS, LINEARITY, AND THE RESPONSE OF 1 ST ORDER RC CIRCUITS 1

Poles and Zeros of H(s), Analog Computers and Active Filters

1. To study the influence of the gain on the transient response of a position servo. 2. To study the effect of velocity feedback.

Lecture 5 Introduction to control

Introduction to MS150

1. Consider the closed loop system shown in the figure below. Select the appropriate option to implement the system shown in dotted lines using

Dr Ian R. Manchester Dr Ian R. Manchester Amme 3500 : Root Locus Design

Electrical Engineering. Control Systems. Comprehensive Theory with Solved Examples and Practice Questions. Publications

Electric Circuit II Lab Manual Session #1

Chapter 2. Operational Amplifiers

ELECTRICAL ENGINEERING TECHNOLOGY PROGRAM EET 433 CONTROL SYSTEMS ANALYSIS AND DESIGN LABORATORY EXPERIENCES

Dr Ian R. Manchester

Equipment and materials to be checked out from stockroom: ECE 2210 kit, optional, if available. Analog BK precision multimeter or similar.

OHM'S LAW AND RESISTANCE NETWORKS OBJECT

ME 5281 Fall Homework 8 Due: Wed. Nov. 4th; start of class.

ECE 5670/6670 Project. Brushless DC Motor Control with 6-Step Commutation. Objectives

Massachusetts Institute of Technology. Lab 2: Characterization of Lab System Components

Chapter 9: Operational Amplifiers

CHAPTER 6. Motor Driver

Feedback Systems. Many embedded system applications involve the concept of feedback. Sometimes feedback is designed into systems: Actuator

The Discussion of this exercise covers the following points: Angular position control block diagram and fundamentals. Power amplifier 0.

Transcription:

EE 3TP4: Signals and Systems Lab 5: Control of a Servomechanism Tim Davidson Ext. 27352 davidson@mcmaster.ca Objective To identify the plant model of a servomechanism, and explore the trade-off between rise time and overshoot incurred in proportional control of the servo(mechanism). Assessment Your mark for this lab will be assessed on your ability to complete each section. The marks for each section are indicated at the beginning of the section. Please demonstrate your results to the TAs and have your mark recorded. Please attend the lab section to which you have been assigned. 1 Description of Laboratory Equipment In this lab we will deal with an angular positioning system based around a DC motor. Such schemes are often used to position heavy or difficult to move objects using a command tool which is easy to move. For example, moving the control surfaces of an aircraft using the lever in the cockpit. In our system, the plant is the motor (and its associated electronics). The input to the plant is a control signal c(t) and the output of the plant is a voltage which is proportional to the angle of the motor shaft, θ(t). Using information about the structure of the motor and Newtonian mechanics, the operation of the motor can be described by the following differential equation: J d2 θ(t) + B dθ(t) = K dt 2 m c(t), (1) dt where J is the rotational inertia of the motor, B is the damping in the motor structure, and K m is the (internal) gain of the motor. Taking Laplace transforms of both sides of (1) we obtain the transfer function of the plant: s 2 JΘ(s)+sBΘ(s) =K m C(s) (2) = G(s) = Θ(s) C(s) = A s(sτ m +1), (3) where A = K m /B and τ m = J/B. In the first part of this lab we will identify A and τ m, as these are not known in advance in typical industrial applications. Following this system identification phase, we will explore the a design trade-off in proportional control of this system. 1

2 Familiarize yourself with the Equipment 2.1 Equipment list The laboratory equipment you will require for this laboratory consists of: i) Signal generator ii) Op-amp module: This module will be used to construct the controller for the servomechanism. iii) Servomechanism electronics unit (SEU): This unit contains the circuits which drive the motor and those which process the sensor output. As far as the control design is concerned, the plant is the cascade of the SEU and the motor. Please note that you must always set the motor switch to inhibit before turning the SEU on or off. iv) DC motor: Note that the flange indicates the angle of the shaft. v) Scope vi) Digital multi-meter vii) Components for the op-amp module, including Five 10 kω resistors (orange) Two 100 kω resistors (yellow) One 100 kω potentiometer. Four flat conductors Several cables with banana plug connectors Two ring/banana converters Please identify each component and notify your TA of any missing equipment. 2.2 Familiarization exercises To familiarize yourself with the equipment, perform the following simple tests. i) Set the motor switch on the SEU to inhibit, and set the resolution to one revolution. ii) Switch on the SEU. iii) Rotate the disk on top of the motor one revolution (with your finger) until the red uncal light goes off. You must do this every time you switch on the SEU. iv) Continue to rotate the disk and observe that the LEDs count upwards from 0 to 360. Observe that the range of the counter is 0 to 2399. 2

Figure 1: Unity feedback system with proportional control. v) Connect the ground of the SEU to that of the multi-meter and connect the angle output to the voltage input of the multi-meter. Set the scale to 20V. vi) Rotate the disk again and observe that the output voltage goes from -10V to 10V. vii) Disconnect the angle output from the multi-meter and connect the rate output to the multi-meter. viii) Rotate the disk with your finger in different directions and different speeds and observe the voltage output. ix) Leave the motor switch at inhibit, and connect the +12V supply on the SEU to the command input. Set the motor switch to enable and observe the direction and speed of rotation and the voltage of the rate output. x) Set the motor switch to inhibit. Connect the =12V supply on the SEU to the command input. Set the motor switch to enable and observe. xi) Set the motor switch to inhibit, and set the resolution to two revolutions. Disconnect the multi-meter. 3 Closed Loop System Identification The plant G(s) in (3) is not bounded-input bounded-output stable, because it has a pole at s = 0. Although the system is marginally stable in a certain sense, it is very difficult to identify A and τ m unless the system is stabilized. In this section we will show how to set up a stable closed loop system, and then identify A and τ m. We will construct a stable closed loop by using a simple proportional controller, as shown in Figure 1. 1 Since G(s) = A s(sτ m+1) and H(s) =K, it can be shown that the closed loop 1 The controller is said to be a proportional controller because c(t) e(t). More sophisticated servo control systems tend to use a combination of proportional integral and derivative (PID) control. In that case, c(t) =K P e(t)+k I t e(τ) dτ + K D de(t) dt. 3

transfer function T (s) = Θ(s) Θ d (s) = G(s)H(s) 1+G(s)H(s) = KA/τ m s 2 +(1/τ m )s + KA/τ m. (4) This is a second order system and it can be written in the standard form T (s) =, (5) s 2 +2ζω n s + ωn 2 KA where ω n = τ m and ζ = 1 2ω nτ m. If the input θ d (t) is a unit step function, then the output is the step response, { } T (s) θ step (t) =Lt 1, (6) s where x(t) =Lt 1 {X(s)} denotes the inverse Laplace Transform of X(s) written as a function of t. Now assume that K is chosen so that T (s) is under-damped. That is, K is chosen such that s 2 +(1/τ m )s + KA/τ m has complex roots. Equivalently, K is chosen such that ζ<1. In that case, we have that for t 0, θ step (t) =1 ω 2 n 1 1 ζ 2 e ζωnt sin ( ) ω n 1 ζ 2 t + φ, (7) ) ( 1 ζ where φ =atan 2 = acos(ζ). A plot of a generic step response from an under-damped ζ second-order system is given in Figure 2. A convenient value of K for closed-loop system identification is that which generates about 40% overshoot; that is the value of K for which max θ step (t) 1.4 lim θ step (t). (8) t t If the closed loop is under-damped, the values of A and τ m can be identified from the peak of the frequency response of T (s) in (5) in the following way: Observe that T (jω) 2 ωn 4 = ωn 2 ω2 + j2ζω n ω. (9) 2 Sketches of T (jω) on a log-log scale for different values of ζ areprovidedinfigure3. By differentiating the denominator with respect to ω and setting the derivative to zero, we see that the denominator reaches a minimum, and hence T (jω) reaches a maximum, when ω = ω p,where ω p = ω n 1 2ζ 2. (10) The value of the peak is Mp 2 =max T ω (jω) 2 = T (jω p ) 2 1 = 4ζ 2 (1 ζ 2 ). (11) Once we have M p we can solve (11) for ζ, and then we can solve (10) for ω n.oncewehave ζ and ω n, we can find A and τ m using the equations which follow (5). 4

Figure 2: Step response of an under-damped second-order system (Figure 9.20 of Haykin and Van Veen, Signals and Systems, Wiley, 1999). Figure 3: Bode plots of T (jω) in (9) for various values of ζ with a normalized frequency axis (Figure 8.10 of Dorf and Bishop, Modern Control Systems, Ninth Edition, Prentice Hall, 2001). 5

Figure 4: Summing amplifier with one inverted input. Figure 5: Closed loop circuit for experiments. 4 Perform Closed Loop Identification We will perform the above closed loop identification using two steps. First we will observe that by choosing K = 1 in Figure 1 we obtain an appropriate overshoot. Then we will identify the peak frequency and peak gain. Before we begin, we must determine how to construct e(t) andc(t) in practice. To do so, consider the circuit in Figure 4. Using nodal analysis and an assumption that the op-amp is ideal it can be shown that V o (s) = R 2 ( Vi,2 (s) V i,1 (s) ). (12) R 1 Therefore, this circuit can be used to implement the summer and the proportional gain in Figure 1, as shown in Figure 5. 4.1 Overshoot (2 marks) To obtain the marks for this question, demonstrate the scope trace to your TA. Use the following procedure to show that by choosing K = 1 in Figure 1 we obtain an overshoot that is appropriate for the identification of the motor parameters. 6

i) Connect the ground of the op-amp module to the ground of the scope. Connect the ground of the signal generator (black) to the ground of the op-amp module and connect the ground of the op-amp module to the ground of the SEU. ii) Connect the active (red) output of the signal generator to an isolated terminal on the op-amp module. Switch on the signal generator, and set it to produce a 6V peak-to-peak square wave of frequency 0.1 Hz. iii) Switch on the scope and set the vertical axis to 5V/div and the horizontal axis to 2s/div. Main Set the coupling to DC. Put the scope in roll mode by pressing the button Delayed above the Time/div knob and choosing Roll from the on-screen menu. iv) Using the ring/banana plug converters, obtain a plot of your square wave on the scope. Confirm that it is indeed 6V peak-to-peak and 0.1 Hz. v) Turn off the signal generator and construct the circuit in Figure 5 with R 1 = R 2 = 10 kω. Test the resistances of the orange components you have been given using the multi-meter as an Ohmmeter and verify that they have 10 kω resistance. You will need five resistors, four flat connectors and several cables to construct this circuit. (Do you really have to construct the inverter to produce θ d (t) for the purposes of this experiment?). vi) Set the motor to inhibit. Set the resolution to 2 revs. Switch on the op-amp module, reset the module and then set to compute. Turn on the signal generator. Set the motor to enable and observe the angle output on the scope. Observe that the overshoot is approximately 40%. vii) Set the motor to inhibit. 4.2 Peak frequency and peak gain (2 marks) To obtain your marks for this question you must show your TA the scope trace for input frequency ω p and provide the corresponding values of A and τ m. Use the following procedure to determine the peak frequency and peak gain of your motor, and hence obtain A and τ m. i) Set the motor to inhibit. ii) Set the signal generator to generate a sinusoidal signal of 6V peak-to-peak at frequency 1Hz. iii) Leave the scope in roll mode and set the vertical axis to 2V/div and the time axis to 1 sec/div. Display the generated signal on the scope and confirm that it is as required. iv) Apply the generated signal to the circuit in Figure 5 and set the motor to enable. Display the angle output on the scope and measure the peak-to-peak output voltage θ(t). Hence calculate peak-to-peak output voltage T (j2πf) f=1 = peak-to-peak input voltage = 6V. (13) 7

v) Decrease the input frequency using the dial, and observe the peak-to-peak output voltage of θ(t). Hence calculate T (j2πf) for f =0.9, 0.7, 0.5, 0.3, 0.1 Hz. Note that you may have to adjust the horizontal scale on the scope. Observe that at low frequencies some of the non-linearities of the motor become significant. (If the system were perfectly linear, the output would be a perfect sinusoid at the same frequency as the input.) vi) Return the input frequency to 1 Hz. Increase the input frequency using the dial, and observe the peak-to-peak output voltage of θ(t). Hence calculate T (j2πf) for f = 2, 3, 5, 7, 10 Hz. Note that you may have to adjust the horizontal scale on the scope. Observe that the output signal becomes quite noisy and that the some different nonlinear effects become significant at higher frequencies. vii) From the above measurements it should be clear that the peak of the frequency response lies somewhere between 1 Hz and 3 Hz. Set the horizontal axis of the scope to 200 msec/div and the vertical axis to 2V/div or 5V/div. Slowly increase the frequency of the signal generator from 1 Hz (using the dial) and search for the frequency at which the peak gain occurs. Try to obtain an accuracy of at least 0.05 Hz in your estimation of the peak frequency. viii) Record your values of ω p and T (jω p ) and hence determine A and τ m using the theory in Section 3. ix) Set the motor to inhibit. 5 Trade-offs in the Design of a Proportional Controller When designing a simple proportional controller for a servomechanism we often consider the following two performance criteria: 1. the 10% to 90% rise time, T r 2. the percentage overshoot. The step response of a typical under-damped second-order system was given in Figure 2, where the concepts of rise time and overshoot were implicitly defined. We would like to make the rise time small while simultaneously keeping the overshoot small. Unfortunately these are conflicting objectives, as we will now show. 2 To determine that our performance criteria conflict, we observe from Example 9.5 in Haykin and Van Veen, Signals and Systems, Wiley, 1999, that for a general second order system of the form in (5) the percentage overshoot is given by ( ) percentage overshoot = 100 exp πζ. (14) 1 ζ 2 2 This is one of the reasons why practical controllers for servomechanisms tend to involve some form of integral and derivative action, as well as just proportional action. 8

It can also be shown that for 0.3 ζ 0.8, For our servomechanism, ω n = 2.16ζ +0.6 T r. (15) ω n KA τ m and ζ = 1 2ω nτ m. Hence ( ) π percentage overshoot = 100 exp 4KAτm 1 and T r 2.16 + 1.2 KAτ m. (17) 4KA Therefore, to reduce the rise time we must increase K, but this will increase the overshoot. 6 Observe the rise-time/overshoot trade-off (2 marks) To obtain your marks for this question you must show your TA the scope trace for several values of R 2. Observe the rise-time/overshoot trade-off using the following procedure: i) Set the motor to inhibit. ii) Switch off the op-amp module. iii) Replace the resistor R 2 by the 100 kω potentiometer. Connect one lead to a yellow terminal and the other to the black tap. iv) Set up the signal generator and scope in the same way as in items ii) and iii) of Section 4.1. v) Turn on the op-amp module, reset it and the set it to compute. vi) Set the motor to enable. (16) vii) Adjust the resistance of the potentiometer and observe that by increasing R 2 increasing K), we reduce the rise time but increase the overshoot. (i.e., viii) Set the motor to inhibit. 7 Design of a Proportional Servo Controller In practice, one would typically specify a maximum tolerable overshoot and employ the largest K which satisfies that constraint. The task of this section is to design a proportional controller for your servomechanism which generates no more than 25% overshoot. 9

7.1 Computation of required gain (2 mark) To obtain your marks for this section, show your TA your computation of R 2 and the value you obtained. Recall that K = 1 generates 40% overshoot. If we specify a maximum tolerable overshoot of 25% then K must be reduced. Hence the value of the resistor R 2 in Figure 5 must be less than R 1. Use (16) to determine the value of K required. Hence determine the value of R 2 when R 1 = 100 kω. 7.2 Implementation and verification (2 mark) To obtain your marks for this section your must show your TA that the overshoot is less than 25%. You must also compare the value of R 2 which you implemented to that which you calculated. Now verify that your design does indeed have less than 25% overshoot via the following procedure: i) Set the motor to inhibit and Turn off the op-amp module. ii) Remove the inverting amplifier on the left of Figure 5 and apply the signal generator to the point marked θ d (t). iii) Replace the current resistors marked R 1 by 100 kω resistors (yellow). iv) Disconnect the potentiometer from the circuit at connect it to the multi-meter configured as an Ohmmeter. Set its resistance to the desired value. v) Disconnect the multi-meter and connect the potentiometer as R 2. vi) Switch on the op-amp module, reset it, then set it to compute. generator in its previous configuration and set the motor to enable. Leave the signal vii) Measure the overshoot. viii) How accurate was your design? Did you achieve an overshoot of less than 25%? If not, adjust the value of R 2 (online) until the desired overshoot is obtained. Then remove the potentiometer from the circuit and measure its resistance. How far off were you? 10