ECE3510 Lab #5 PID Control

Similar documents
PID Control. Objectives

ECE 5670/ Lab 3. PID Control of a Brush DC Motor. Objectives

ECE 5670/6670 Lab 8. Torque Curves of Induction Motors. Objectives

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

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

State Feedback Controller for Position Control of a Flexible Link

SRV02-Series Rotary Experiment # 1. Position Control. Student Handout

Lab 3: Quanser Hardware and Proportional Control

QNET DC Motor Control

2.004 Dynamics and Control II Spring 2008

DC-motor PID control

EE 4443/5329. LAB 3: Control of Industrial Systems. Simulation and Hardware Control (PID Design) The Torsion Disks. (ECP Systems-Model: 205)

FEEDBACK CONTROL SYSTEMS

Hands-on Lab. Damped Compound Pendulum System ID (Experimental and Simulation) L Bar length m d Pivot to CG distance m m Mass of pendulum kg

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

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

ME 3210 Mechatronics II Laboratory Lab 4: DC Motor Characteristics

Hands-on Lab 3. System Identification with Experimentally Acquired Data

Manufacturing Equipment Control

Electric Field and Electric Potential

Lab 5a: Pole Placement for the Inverted Pendulum

Iterative Learning Control for Tailor Rolled Blanks Zhengyang Lu DCT

EE 380 EXAM II 3 November 2011 Last Name (Print): First Name (Print): ID number (Last 4 digits): Section: DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO

Chapter 5 HW Solution

MAE106 Laboratory Exercises Lab # 6 - Vibrating systems

Example: Modeling DC Motor Position Physical Setup System Equations Design Requirements MATLAB Representation and Open-Loop Response

Digital Control Semester Project

Lecture (20) DC Machine Examples Start of Synchronous Machines

YTÜ Mechanical Engineering Department

Chapter 12. Feedback Control Characteristics of Feedback Systems

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

QNET Experiment #05: HVAC System Identification. Heating, Ventilation, and Air Conditioning Trainer (HVACT) Student Manual

Lab 11 - Free, Damped, and Forced Oscillations

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

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

Introduction to Feedback Control

SRV02-Series Rotary Experiment # 7. Rotary Inverted Pendulum. Student Handout

ECEN 651: Microprogrammed Control of Digital Systems Department of Electrical and Computer Engineering Texas A&M University

System Parameters and Frequency Response MAE 433 Spring 2012 Lab 2

EE 422G - Signals and Systems Laboratory

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

Example: DC Motor Speed Modeling

Double Inverted Pendulum (DBIP)

SOTM LAB: P16 OHM S LAW I. TEACHER NOTES & GUIDELINES TITLE OF LAB: Ohm s Law DEVELOPERS OF LAB:

Mechatronics Engineering. Li Wen

King Saud University

Position Control Experiment MAE171a

EXPERIMENTALLY DETERMINING THE TRANSFER FUNCTION OF A SPRING- MASS SYSTEM

Introduction to Control (034040) lecture no. 2

Lab 6a: Pole Placement for the Inverted Pendulum

MAE106 Homework 2 - Solution DC Motors & Intro to the frequency domain

Inverted Pendulum: State-Space Methods for Controller Design

Physics 208 Fall 2008 Lab 4: Electric Fields and Electric Potentials

Chapter 9: Controller design

Experiment # 5 5. Coupled Water Tanks

The Control of an Inverted Pendulum

Control Systems Design

2016 Kappa Electronics Motor Control Training Series Kappa Electronics LLC. -V th. Dave Wilson Co-Owner Kappa Electronics.

Activity P27: Speed of Sound in Air (Sound Sensor)

DC-motor modelling and parameter identification

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

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

YTÜ Mechanical Engineering Department

Lab 3: Model based Position Control of a Cart

The Control of an Inverted Pendulum

RC Circuits. Equipment: Capstone with 850 interface, RLC circuit board, 2 voltage sensors (no alligator clips), 3 leads V C = 1

Laboratory Exercise 1 DC servo

Computer Aided Control Design

Lab 5 RC Circuits. What You Need To Know: Physics 212 Lab

Class #12: Experiment The Exponential Function in Circuits, Pt 1

Assignment 6: A/D-Converters and PID Controllers

Project Lab Report. Michael Hall. Hao Zhu. Neil Nevgi. Station 6. Ta: Yan Cui

Laboratory handouts, ME 340

CYBER EXPLORATION LABORATORY EXPERIMENTS

C(s) R(s) 1 C(s) C(s) C(s) = s - T. Ts + 1 = 1 s - 1. s + (1 T) Taking the inverse Laplace transform of Equation (5 2), we obtain

EL2450: Hybrid and Embedded Control Systems: Homework 1

Feedback Control of Linear SISO systems. Process Dynamics and Control

Texas A & M University Department of Mechanical Engineering MEEN 364 Dynamic Systems and Controls Dr. Alexander G. Parlos

Spontaneous Speed Reversals in Stepper Motors

UNIVERSITY OF WASHINGTON Department of Aeronautics and Astronautics

Mo de ling, Ide nti cat ion, and Control of a DC-Servomotor

3 Lab 3: DC Motor Transfer Function Estimation by Explicit Measurement

VELA. Getting started with the VELA Versatile Laboratory Aid. Paul Vernon

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

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

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

Appendix A: Exercise Problems on Classical Feedback Control Theory (Chaps. 1 and 2)

QFT Framework for Robust Tuning of Power System Stabilizers

Automatic Control (TSRT15): Lecture 7

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.02 Spring 2003 Experiment 17: RLC Circuit (modified 4/15/2003) OBJECTIVES

System Modeling: Motor position, θ The physical parameters for the dc motor are:

Lab 1a Wind Tunnel Testing Principles & Drag Coefficients of Golf balls

Automatic Control II Computer exercise 3. LQG Design

ISSP User Guide CY3207ISSP. Revision C

EEE 188: Digital Control Systems

EE 474 Lab Part 2: Open-Loop and Closed-Loop Control (Velocity Servo)

IfA Fachpraktikum - Experiment 3.7A : Flexible Shaft A

Chapter 7 - Solved Problems

Project 1: Analysis of an induction machine using a FEM based software EJ Design of Electrical Machines

Dynamic Characterization Results. Table of Contents. I. Introduction

Transcription:

ECE3510 Lab #5 ID Control Objectives The objective of this lab is to study basic design issues for proportionalintegral-derivative control laws. Emphasis is placed on transient responses and steady-state errors. The first control problem consists in the regulation of velocity for brush DC motors and is solved using proportional-integral control. The second problem consists in the regulation of position and requires derivative compensation in the form of velocity feedbac. Introduction In the lab on first-order systems, the response of a brush DC motor with the voltage v ( V or volts ) considered as an input and the angular velocity (rad/s or s 1 ) considered as an output was found to be approximately described by a model A proportional control law () consists in having (s) = =. (8.16) v(s) s+ a v = (r p (8.17) where r is the reference input for the velocity, in rad/s. is called the proportional gain. The resulting closed-loop transfer function is given by CL (s) (s) = ω = (8.18) r(s) s + ( a + ) Note that the closed-loop pole is given by ( a+ ). In theory, it would appear that the closed-loop pole could be moved arbitrarily far in the left-half plane through the use of a sufficiently large proportional gain. The response of the system could be made arbitrarily fast in that manner. As this lab will show, there are limits on the gains that can be applied, however, these limits are due to effects that are neglected in the model (such as the inductance of the motor and the limit on the voltage), but are nevertheless present in the physical system. roportional-integral control for velocity tracing The DC gain in (8.18) is equal to / ( a+ ). or large, this gain approaches 1, but large gains are impractical. Therefore, it is useful to modify the control law in order to adjust the DC gain. Specifically, replacing (8.17) by v = ( r (8.19) p

yields a closed-loop transfer function (s) CL(s) = ω = (8.20) r(s) s + ( a + ) The closed-loop pole is equal to the original one, but the DC gain can now be adjusted to 1 by setting ( a + ) = (8.21) We will call the feedforward gain. Despite the capability of adjusting the feedforward gain in order to obtain a DC gain of 1, perfect tracing of reference inputs is usually not achieved because the parameters of the system are not exactly nown or may vary, and because disturbances may affect the response of the system. These problems can be resolved through the use of a proportional-integral (I) control law of the form v = p(r + I ( r ω )dt, (8.22) where and I are called the proportional gain and the integral gain, respectively. Then, the closed-loop transfer function becomes I ( s + ) (s) CL(s) = ω = 2 r(s) s + ( a + )s + I (8.23) The DC gain is equal to 1, regardless of what the parameters of the system or of the control law are. Of course, it should be remembered that the DC gain reflects the steady-state conditions only if the closed-loop system is stable, i.e., if the poles of (8.23) are all in the open left-half plane. Generally, the responses cannot be made as fast for a I control law, so that the benefit of a zero steady-state error has to be weighted against that of the speed of response. roportional-integral-derivative control for position tracing To control position, instead of velocity, it is common to use proportional-integralderivative (ID) control law d v = p(r + I (r dt + D (r. (8.24) dt Note that the derivative term can be viewed as a proportional feedbac acting on the velocity error. In general, derivative feedbac improves the stability and the damping of the closed-loop system. In practice, the control law (8.24) is often modified in two ways. irst, the derivative action is applied only to the output, and not to the reference input. This is done because reference inputs often change in steps, and the derivative is then either zero or not defined (infinite). Second, a feedforward gain is often applied to the reference input. This is not done to adjust the DC gain (as for the control law without integral term), but

rather to place the zero of the closed-loop transfer function. This will be explained shortly. The modified control law is given by v d = p( r + I (r dt D. (8.25) dt The closed-loop transfer function for the system with transfer function (s) = =, (8.26) v(s) s( s + a ) and the ID control law (8.25), is given by CL (s) (s) = θ r(s) = s 3 + ( a + I ( s + D )s 2 + ) s + I (8.27) Note that the closed-loop transfer function (8.27) has three poles. There is also a zero at I / ( ). or the original control law with = 1, the zero may have a small magnitude compared to the closed-loop poles, yielding overshoot in the step response even if the closed-loop poles were well-damped. Reducing the value of allows one to push the zero farther in the left-half plane and to improve the step response. re-lab Derive equation (8.20) and calculate values of and such that the closedloop pole is at an arbitrary location b and such that the DC gain is 1. Specialize the results to the cases b = 2a, b = 6a, and b = 11a. Calculate the specific values of the gains for the DC motor ( a = 100, = 1000 ) for all three cases. Derive equation (8.23) and calculate values of and I such that the closed-loop poles are both at an arbitrary location b. Specialize the results to the case where b = a, and to the specific values of the DC motor. Derive the transfer function given in (8.27) and calculate the values of the ID parameters such that all three poles are placed at some b. Calculate the parameters that correspond to b = a, and also for the specific motor parameters (a = 100, = 1000). Experiments Equipment needed: 1. Brush DC motor 2. Dual power amplifier 3. Voltmeter 4. Cable rac 5. DSpace it which includes an encoder cable and I/O breaout box.

reliminary testing Carry out the same testing procedure as in the lab on first-order systems. Lab overview or this experiment control of the velocity of the motor will be explored using roportional and roportional-integral (I) control. Control of the motor position will be explored using roportional-integral-differential (ID) control. The dspace experiment designed to perform this lab is setup to allow a choice between the different control types. Values for each of the proportional gains can also be entered into the Layout. A reference value of either speed or position is available to be used with the control law type. In the case of the ID controller, you will implement the equation for the control law by modifying the underlying C/C++ code and rebuilding the software that will be provided to the board. roportional Control Load the experiment ID_control_DC_motor, It should open with the proportional control type selected. The reference input for the roportional control is a reference speed, given in RM. It should be noted that any gains not used for the selected control law are ignored. irst, experiment with proportional control by setting and according to the pre-lab calculations, and apply a reference input that steps from 0 to 1000 rpm and then to 2000 rpm and then bac to zero. Repeat the experiment for all three cases, capture the data and plot the results. Discuss what happens when the gain becomes large? roportional-integral Control Change the control type to I and apply the values calculated for the I control law, setting = 1 in the experiment. You may also experiment with other values of and I, in particular those resulting in faster responses. lot the results for your best experiment. Woring with Dspace software Design The programs used by the dspace board to implement experiments are created using C/C++ code and a compiler/liner provided with the system. or each of the labs the code for an experiment is available in main.c and driver.c. All of the control algorithms and the main loop are found in the main.c file, which will be referred to as the lab code. Any code that supports the hardware interface to the system is found in driver.c file, which will be called the driver code. Looing at the lab code it can be broen down in to three sections. The first section contains global variables that are used for connection to the buttons, plot windows and displays in the layout window. The next section is the main() function that is processed when the board is loaded. Last is a function called

user_isr(), this function contains the logic and equations that implement the control laws for the experiments. or an embedded system, lie dspace, most of the code that does the wor is not located in the main() function. The main includes initializations for the system that sets up the framewor of hardware interrupts or ISR s. An ISR is a signal that tells the system that data is ready to be sent/received or that a certain function should be performed. In the case of the lab experiments, a built-in timer provides an ISR every 2 msec to perform the operations of getting the current position for the incremental encoder (INC1) and setting the output value of ADCH1. The function isr_srt() in the driver code performs the commands to read and write the encoder and ADC respectively. Isr_srt() also runs the function from the lab code user_isr() which performs the control processing. The system sits and waits for the next ISR. The lab code and driver code must be compiled/lined to be used by the system. This requires a MSDOS prompt window. A shortcut to MSDOS is provided in the directory with the lab experiments. rom the DOS prompt the program down1104.exe can be used to compile/lin and load the program for the system. The syntax for this command is: > down1104 filename1.c fileaname2.c All the.c files created to implement the experiment software must be listed as arguments to down1104.exe. In turn, they are used to generate a.ppc file that contains the machine code used on the board. Because of how the experiments are set up the first filename argument should be main.c followed by driver.c. With a valid execute of down1104 the board should be loaded and ready to perform experiments. roportional-integral-derivative (ID) Control Adjust the file main.c in order to implement the ID control law for position. All of the required variables and the location of the control law are outlines inside the user_isr() function of the.c file. As a hint, you should remember the relations between position and velocity. Both position and velocity are provided with radian measure by the encoder. or the case of integration in a discrete system, thin of it as a Riemann Sum. Loo at the control law for the I controller to get an idea of how integration is performed in that case. Once the experiment is compiled, lined and downloaded, you may apply the calculated values of the ID parameters, with = 1, and a reference input step of 90 degrees. The settling time should be approximately 100ms, with an overshoot response. Adjusting the parameter should yield a better response. lot the results for a few values of on a single graph. Indicate what value of that gives the best response (minimum settling time with negligible overshoot). DEMONSTRATE YOUR INAL EXERIMENT TO THE TA

Report at a glance or this lab a written formal report will be required. Be sure to include: re-lab calculations. lots of the responses with the proportional control law, for the three cases. lot of the response with the proportional-integral control law, with the values of the gains that were used. lot of responses with ID control law, and a few values of. Written note from the TA that the program wored. Comments.