EE 422G - Signals and Systems Laboratory

Similar documents
Lecture 25: Tue Nov 27, 2018

Feedback Control of Linear SISO systems. Process Dynamics and Control

Laboratory Exercise 1 DC servo

YTÜ Mechanical Engineering Department

PID Control. Objectives

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

Introduction to Controls

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

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

EEE 184 Project: Option 1

YTÜ Mechanical Engineering Department

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

EEL2216 Control Theory CT1: PID Controller Design

Analysis and Design of Control Systems in the Time Domain

AN INTRODUCTION TO THE CONTROL THEORY

Problem Value Score Total 100/105

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

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

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering 2.04A Systems and Controls Spring 2013

Contents. PART I METHODS AND CONCEPTS 2. Transfer Function Approach Frequency Domain Representations... 42

PID controllers. Laith Batarseh. PID controllers

Feedback Control part 2

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

Chapter 9: Controller design

Step input, ramp input, parabolic input and impulse input signals. 2. What is the initial slope of a step response of a first order system?

Controls Problems for Qualifying Exam - Spring 2014

Course Summary. The course cannot be summarized in one lecture.

FEEDBACK CONTROL SYSTEMS

Index. Index. More information. in this web service Cambridge University Press

1 An Overview and Brief History of Feedback Control 1. 2 Dynamic Models 23. Contents. Preface. xiii

CYBER EXPLORATION LABORATORY EXPERIMENTS

Alireza Mousavi Brunel University

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

Time Response Analysis (Part II)

IMPROVED TECHNIQUE OF MULTI-STAGE COMPENSATION. K. M. Yanev A. Obok Opok

CONTROL SYSTEMS ENGINEERING Sixth Edition International Student Version

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

CHAPTER 3 TUNING METHODS OF CONTROLLER

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

ME 304 CONTROL SYSTEMS Spring 2016 MIDTERM EXAMINATION II

Lab 3: Model based Position Control of a Cart

State Feedback Controller for Position Control of a Flexible Link

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

Video 5.1 Vijay Kumar and Ani Hsieh

Experiment 81 - Design of a Feedback Control System

Power System Operations and Control Prof. S.N. Singh Department of Electrical Engineering Indian Institute of Technology, Kanpur. Module 3 Lecture 8

Control Systems. University Questions

Transient Response of a Second-Order System

DC-motor PID control

Feedback Control of Dynamic Systems

R a) Compare open loop and closed loop control systems. b) Clearly bring out, from basics, Force-current and Force-Voltage analogies.

Digital Control: Summary # 7

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

Dr Ian R. Manchester

Feedback design for the Buck Converter

Inverted Pendulum: State-Space Methods for Controller Design

ET3-7: Modelling II(V) Electrical, Mechanical and Thermal Systems

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

Professional Portfolio Selection Techniques: From Markowitz to Innovative Engineering

The output voltage is given by,

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.

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Problem Set 3: Solution Due on Mon. 7 th Oct. in class. Fall 2013

Linear State Feedback Controller Design

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

Chapter 3. State Feedback - Pole Placement. Motivation

MAS107 Control Theory Exam Solutions 2008

CONTROL * ~ SYSTEMS ENGINEERING

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BSC (HONS) MECHATRONICS TOP-UP SEMESTER 1 EXAMINATION 2017/2018 ADVANCED MECHATRONIC SYSTEMS

ECE317 : Feedback and Control

Control 2. Proportional and Integral control

Example: DC Motor Speed Modeling

Application Note #3413

Chapter 3 AUTOMATIC VOLTAGE CONTROL

Proportional plus Integral (PI) Controller

Chapter 15 - Solved Problems

Chapter 7 Control. Part Classical Control. Mobile Robotics - Prof Alonzo Kelly, CMU RI

Dynamics and control of mechanical systems

Performance of Feedback Control Systems

Table of Laplacetransform

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

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

Multivariable Control Laboratory experiment 2 The Quadruple Tank 1

Control of Electromechanical Systems

Time Response of Systems

Mechatronics Engineering. Li Wen

King Saud University

Task 1 (24%): PID-control, the SIMC method

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

CHAPTER 7 FRACTIONAL ORDER SYSTEMS WITH FRACTIONAL ORDER CONTROLLERS

Dynamic Compensation using root locus method

EECE 460 : Control System Design

Example on Root Locus Sketching and Control Design

Integrator Windup

Introduction to Process Control

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

B1-1. Closed-loop control. Chapter 1. Fundamentals of closed-loop control technology. Festo Didactic Process Control System

The LR Series Circuit Tutorial Sheet 2 circuits with applied ramp voltages

Compensator Design to Improve Transient Performance Using Root Locus

FATIMA MICHAEL COLLEGE OF ENGINEERING & TECHNOLOGY

Transcription:

EE 4G - Signals and Systems Laboratory Lab 9 PID Control Kevin D. Donohue Department of Electrical and Computer Engineering University of Kentucky Lexington, KY 40506 April, 04 Objectives: Identify the components of a PID controller and derive its impact on the transfer function of a total feedback system. Derive state-space models of systems and understand their relationship to transfer functions. Simulate a feedback control system in LabVIEW and use it to verify a design of PID controller.. Background This laboratory exercise requires the design of a PID controller for changing the response of a second order plant. LabVIEW software will be used to simulate performance of the controller to compare performances. PID stands for Proportional, Integral, and Derivative. Controllers are designed to eliminate the need for continuous operator attention. Examples of common controllers include cruise control for maintaining a constant automobile velocity and a thermostat for maintaining a constant temperature. These controllers automatically adjust a system input (i.e. flow of fuel, on-off state, ) based on feedback from the output to hold the measurement and maintain the process at the desired set-point. For a constant reference input (such as speed or temperature), the error is defined as the difference between setpoint and measurement: e R Y () where e is the error, R is the desired set-point (reference), and Y is the measurement of the output being controlled. The variable being adjusted is called the manipulated variable (u) which usually equals the output of the controller (or input to the system to be controlled). The relationship between these variables and a feedback control system is illustrated in Fig..

Figure. A plant controlled in a feedback system. The output of PID controllers will change in response to changes in the set-point. So for the cruise control example, the measurement Y is the speedometer reading, R is the value the driver sets through the cruise control unit (desired speed), E is the difference between the desired and actual. The controller input, e, will dynamically increase and decrease based on other system inputs (such as change incline, weight, wind friction, and driver setting a different velocity value) in addition to known properties of the system, such as the system inertia. The e value is processed to dynamically modify the variable u (i.e. the flow of fuel or pressure on the break depending on the size, direction, and dynamic of e). The three-term controller The transfer function of the PID controller can be modeled in the Laplace domain as: K K d s K ps K i i K p K d s () s s where the following values must be determined to meet the design criteria: K p = Proportional gain K i = Integral gain K d = Derivative gain Consider the PID controller in a closed-loop system using the schematic shown in Fig.. The variable e represents the tracking error, which is the difference between the desired input value R and measured output Y. This error signal e is the input for the PID controller, and the controller computes both the derivative and the integral of this error signal. The controller output u is given by: de u K pe K I edt K d (3) dt where the t variable denoting the dependence of e and u on time t is dropped to simplify notation. The plant accepts input u (Fig. ), which modifies output Y and sends result back through the feedback loop to compute the new e. This process continues with the objective to drive e toward 0.

Response The characteristics of P, I, and D controllers While there are several ways to consider control system performance, this laboratory assignment only considers performance metrics associated with a step response/disturbance. The step function models the case when the desired value changes or a disturbance pushes the system away from the desired response. The performance metrics in this case describe how well the system returns to the desired behavior after a disturbance or change. These metrics are illustrated in Fig.. Three metrics deal with the speed of the response. The delay time t d, is the amount of time it takes the system to achieve 50% of its steady-state value. The definition of rise time t r can vary with the application. Here it is taken as the time for the system response to go between 0% and 90% of the steady-state value. The settling time t s can also vary with the application. In Fig. it is defined as the time it takes for the system to remain within 5% of the steady-state response. Lastly, metrics deal with the deviation of the dynamic response from the ideal step response. The steady-state response may not converge on the desired value. In that case a steady-state error E ss occurs, which is the difference between the desired and steady-state value of the system response. The overshoot error is the maximum deviation resulting from the system overshooting the steady-state response. Note that only under-damped systems will have overshoot. Criticallydamped and over-damped systems will not have an overshoot error..8.6.4. Overshoot Steady-State Error Settling Time (Response within 5% of Steady-State) 0.8 0.6 t r Rise Time (0 to 90% of Steady-State) Time Delay (50% of Steady-State) 0.4 Dynamic Response 0. Desired Response Steady-State Ressponse 0 0 0.05 0. 0.5 0. 0.5 0.3 0.35 0.4 0.45 0.5 t d Seconds Figure. Performance metrics to describe the systems ability to return to or achieve the desired response. These include the time delay t d, rise time t r, settling time t s, and steady-state error E ss. t s

A proportional controller K p has the ability to reduce the rise time and reduce (but never totally eliminate) the steady-state error. An integral control K i can eliminate the steady-state error, but it may make the system more inertial (slowing it down and taking longer to settle). A derivative control K d can impact the stability of the system, reduce overshoot, and improve speed of the response. Effects of each of controller components on a closed-loop system are summarized in Table. Table. General impact of controller parameters Controller Parameter Rise Time Overshoot Settling Time SS Error K p Decrease Increase Small Change Decrease K i Decrease Increase Increase Eliminate K d Small Change Decrease Decrease Small Change Note that the correlation between the change in parameter and response may not be exact because these parameters are dependent of each other. In fact, changing one of these variables can change the effect of the other two. For this reason, the table should only be used as a reference for approximate or general behavior when determining the values for K i, K p, and K d.. Pre-Laboratory Exercises This lab considers the plant modeled as a second order system represented by (implemented) the circuit of Fig. 3. R U L 3 4 V in C V out 0 Figure 3. A circuit modeling the system to be controlled

. Verify that the transfer function with outputv out and input V in in the system for Fig. 3 is given by: V V out in L C R s / R R C s 3 You must show your work, i.e. start with nodal equation and derive the transfer function indicated above.. Derive the state-space representation for the system in the previous problem. Let the state-vector consist of the voltage on the capacitor (first element) and the current in the inductor (second element). 3. For the system in the previous problems let R,, 3, L H, C. Substitute in these numbers and express the transfer function and state-space expression in terms of numbers. Verify the poles of the transfer function are equal to the eigenvalues of the state-space representation. 4. Derive the transfer function for the system in Fig. where the controller is given by Eq. () and the plant is given by the system derived in the previous problem. Express the transfer function in terms of a monic rational polynomial with coefficients being a function of K i, K p, and K d. 5. Use the expression in the previous problems to compute the transfer functions for the case of unity feedback (no controller, i.e. let K i = 0, K p =, and K d = 0). Comment on the stability of this system without the controller. 6. Repeat problems through 5 given R,,, L 0H, C (i.e. no inductor and an active element for R 3 ) and use K i =5, K p =, and K d = 0 for the controller. If you derived the transfer function in terms of the components, you can just substitute in to get the new numerical transfer function. The state-space model is a little more involved since setting the inductor to 0 reduces the system to a first order system and the matrices will reduce in dimension. You may want to rederive from the circuit again, if this confuses you.

3. Laboratory Exercises (just demonstrate results to TA). Read and do the tutorial in LabVIEW for using its simulation module. When LabVIEW is launched click on the List of All New Features link to get the help screen to appear. Then under Contents expand the Control Design and Simulation Module then click on link Tutorial: Getting Started with Simulation. You can also access this directly from National Instrument via their web page: http://zone.ni.com/reference/en-xx/help/37894f-0/lvsimhowto/sim_h_gs/. It is expected that the module requires about 30 minutes. Demonstrate to the TA the final simulation result in the tutorial (plots of position and velocity using the modularized block). Credit for this exercise is solely based on showing the TA the final example. 3. Given R,, 3, L H, C (same numbers as in first set of prelab problems) for the transfer function (plant), use the LabVIEW simulator to generate a unit step response for the feedback system shown below in Fig. 4 (where R is the unit step). In the LabVIEW simulation module there is a step function under signal generation and a system transfer function implementation under linear systems. Let the step start at t= seconds where its amplitude jumps from 0 to volt. Let the simulation run initially from 0 to 0 seconds. You can reduce or increase that depending on how long the transient lasts after the step so you can get a better view of the system dynamics. Plot the output Y and the error signal e. Show results to TA and comment on this response. Is this what you would expect from the transfer function computed in problem of the prelab (i.e. for unity feedback K i = 0, K p =, and K d = 0). R + - PLANT Y Figure 4. Block diagram for system of Exercise 3. 4. Create a proportional (P) gain controller (K i = 0 and K d = 0) in the close loop system as shown in Fig. 5. Try several values for K p. Indicate the range for K p values where the system is unstable. Record the error plot for this case. Find the range of K p values where the system is stable, but with real poles, and find the range of K p values where the system has complex poles. Show the TA how these ranges were found and plot the error and output for examples of the 3 ranges (unstable, stable with real poles, stable with complex poles). Also find the value of K p to drive the steady-state error to

0, if it exists. Use the transfer function to support you claim (Hint: use final value theorem in Laplace)). Also for the systems where oscillations can occur, indicate to the TA whether increasing the frequency of the oscillatory behavior changes the settling time. R + K p PLANT Y - Fig. 5. Block diagram for system of Exercise 3. 5. Create a proportional and integral (PI) gain controller (K d = 0) in the close loop system (extension of the system in Fig. 5). Set K i so that the constant coefficient in the denominator of the compensated system is and try several values for K p. Determine the approximate value for K p where the system transitions between stable and unstable. Show figures to the TA associated with these values to support the ranges you determined. Clearly indicate to the TA what features of the graphs suggest stability/instability and what this implies for the pole placements. 6. For the PI controller plot the error output for several values of K p. How should the steady-state error differ between the controller of this exercise and the proportional one in the previous (P) system? Create a couple of plots comparing the error from the P to PI controller to show this difference (Hint. Keep the poles near the critically damped response). Determine the range of values for K p where the dominate poles become complex. Show the TA plots that correspond to these cases and indicate the K p values used. 7. Repeat 3 through 6 for R,,, L 0H, C (same numbers as in second set of pre-lab problems)