EEE 188: Digital Control Systems

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

An Introduction to Control Systems

Chapter 7. Digital Control Systems

Digital Control System

Analysis and Design of Control Systems in the Time Domain

Lab 3: Quanser Hardware and Proportional Control

EE451/551: Digital Control. Chapter 3: Modeling of Digital Control Systems

Control of Manufacturing Processes

Introduction to Feedback Control

Digital Control System Models. M. Sami Fadali Professor of Electrical Engineering University of Nevada

FEEDBACK CONTROL SYSTEMS

School of Engineering Faculty of Built Environment, Engineering, Technology & Design

Control of Manufacturing Processes

2.004 Dynamics and Control II Spring 2008

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

Video 5.1 Vijay Kumar and Ani Hsieh

Solved Problems. Electric Circuits & Components. 1-1 Write the KVL equation for the circuit shown.

Time Response of Systems

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

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

ME 132, Dynamic Systems and Feedback. Class Notes. Spring Instructor: Prof. A Packard

DESIGN OF CMOS ANALOG INTEGRATED CIRCUITS

UNIT 1. SIGNALS AND SYSTEM

Outline. Classical Control. Lecture 2

CONTROL OF DIGITAL SYSTEMS

Table of Laplacetransform

EE 422G - Signals and Systems Laboratory

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

Automatique. A. Hably 1. Commande d un robot mobile. Automatique. A.Hably. Digital implementation

Control System Design

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

Overview of the Seminar Topic

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

Dr Ian R. Manchester

Methods for analysis and control of. Lecture 6: Introduction to digital control

Electrical Machine & Automatic Control (EEE-409) (ME-II Yr) UNIT-3 Content: Signals u(t) = 1 when t 0 = 0 when t <0

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

Topic # Feedback Control Systems

Feedback Control Systems

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

Time Response Analysis (Part II)

Introduction to Controls

PID controllers. Laith Batarseh. PID controllers

Lecture: Sampling. Automatic Control 2. Sampling. Prof. Alberto Bemporad. University of Trento. Academic year

(Refer Slide Time: 00:01:30 min)

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

ECE317 : Feedback and Control

EE480.3 Digital Control Systems. Part 2. z-transform

PID Control. Objectives

Prüfung Regelungstechnik I (Control Systems I) Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

Control System Design

Signals and Spectra (1A) Young Won Lim 11/26/12

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

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

ECE Circuit Theory. Final Examination. December 5, 2008

Linear Control Systems Solution to Assignment #1

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Root Locus

GATE EE Topic wise Questions SIGNALS & SYSTEMS

2.004 Dynamics and Control II Spring 2008

1 x(k +1)=(Φ LH) x(k) = T 1 x 2 (k) x1 (0) 1 T x 2(0) T x 1 (0) x 2 (0) x(1) = x(2) = x(3) =

Modeling and Control Overview

Modeling and System Identification for a DC Servo

Transient Response of a Second-Order System

EEE105 Teori Litar I Chapter 7 Lecture #3. Dr. Shahrel Azmin Suandi Emel:

Today s goals So far Today 2.004

2.161 Signal Processing: Continuous and Discrete Fall 2008

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

First and Second Order Circuits. Claudio Talarico, Gonzaga University Spring 2015

Digital Control Systems

Discrete Systems. Step response and pole locations. Mark Cannon. Hilary Term Lecture

INSTRUMENTAL ENGINEERING

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

Objective: To study P, PI, and PID temperature controller for an oven and compare their performance. Name of the apparatus Range Quantity

Lecture 25: Tue Nov 27, 2018

Control Systems Design

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

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

Introduction to Modern Control MT 2016

so mathematically we can say that x d [n] is a discrete-time signal. The output of the DT system is also discrete, denoted by y d [n].

Performance of Feedback Control Systems

Basic RL and RC Circuits R-L TRANSIENTS: STORAGE CYCLE. Engineering Collage Electrical Engineering Dep. Dr. Ibrahim Aljubouri

General procedure for formulation of robot dynamics STEP 1 STEP 3. Module 9 : Robot Dynamics & controls

Module 6: Deadbeat Response Design Lecture Note 1

Simon Fraser University School of Engineering Science ENSC Linear Systems Spring Instructor Jim Cavers ASB

Study Material. CONTROL SYSTEM ENGINEERING (As per SCTE&VT,Odisha new syllabus) 4th Semester Electronics & Telecom Engineering

EE C128 / ME C134 Final Exam Fall 2014

Control System. Contents

DIGITAL CONTROLLER DESIGN

Lecture 12. AO Control Theory

Chapter 3 Data Acquisition and Manipulation

AN INTRODUCTION TO THE CONTROL THEORY

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

Chapter 1 Fundamental Concepts

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

Course roadmap. Step response for 2nd-order system. Step response for 2nd-order system

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

Stepping Motors. Chapter 11 L E L F L D

The output voltage is given by,

Fourier series. XE31EO2 - Pavel Máša. Electrical Circuits 2 Lecture1. XE31EO2 - Pavel Máša - Fourier Series

0 t < 0 1 t 1. u(t) =

Transcription:

EEE 88: Digital Control Systems Lecture summary # the controlled variable. Example: cruise control. In feedback control, sensors and measurements play an important role. In discrete time systems, the control is updated at discrete time instants. erminology Plant: system/process to be controlled Reference input: desired value for the output. Control error: the difference between the reference input and the measured value of the output Disturbance: undesired input. Controller: a system used to regulate, correct or change the behavior of the controlled system. Measured output: Measurable characteristics of the plant Control input: variable allowing to regulate or change the behavior of the plant Sensor: a transducer allowing to obtain the numerical value of the output so that it is compared with the reference input. Fig.. Open loop vs closed loop control systems his class is about digital controls: we want to regulate the characteristics or behavior of a given system using a feedback controller. he main idea behind feedback control is to use measurements of the system s output to achieve the desired goals. Control systems are an important part of our daily life, they are used every where: In cars In industrial processes In homes... Examples: Cruise control achieves the desired speed by adjusting the acceleration based on the speed measured from the speedometer. A thermostat achieves the desired temperature by adjusting the furnace cycle and fan. An important part of control systems is about understanding the effects of the controller and disturbance on the output of the system. here are two formulations to solve control problems: Open loop control systems: no feedback loop is used. An open-loop controller is usually used to control simple processes because of its simplicity and low cost. Example: conventional washing machine. Closed loop control systems (feedback): the system is self adjusting based on the measured change of CONROL OBJECIVES he most common objectives of a control system are: Regulatory control: ensure that the measured output is equal (or near) to the reference input. Stability, steady state error, and transients are among the most important factors to consider, as illustrated in figures 2, 3, and 4. he goal is to obtain a reasonable settling time, reduce overshoot and steady state error, and guarantee stability. Disturbance rejection: ensure disturbance does not affect the system output. Optimization: achieve the best response with respect to some predefined criteria. Example: minimize the settling time, minimize fuel, etc... his class deals mainly with regulatory control. Most controllers use negative feedback where the controlled variable is compared to the reference value, that is error= desired value- actual value () his error plays an important role in controller design. Car-following problem EXAMPLES OF CONROL SYSEMS Consider a car-following problem where we want vehicle 2 to follow vehicle at constant distance assuming that vehicle moves in a straight line. he block diagram is shown in figure 5 where Reference is r, the desired constant distance

Digital Control Systems, spring 28 Summary.8.7.6.5.4.3.2 Step response Step response 2..5.5 2 2.5 3 3.5 ime (seconds) Fig. 2. ime response illustrating problems in regulatory control: different settling times. Ideally, we want to get a reasonable value for the settling time. hat reasonable value is dictated by the application..8 Steady state error Fig. 5. A simple control problem Output variable (measured output): r(t) Control input: speed of vehicle 2..6.4.2.5.5 2 2.5 3 3.5 ime (seconds) Fig. 3. ime response illustrating problems in regulatory control: non-zero steady state error. Ideally, we want to achieve zero steady state error 2.5.5 DC motor angle control We want to control the angle of a DC motor; the control input is the voltage and the output variable is the angle. A simple proportional controller is used. he block diagram is shown in figure 3 bottom Desired angle position: 42 o. Encoder or potentiometer: sensors that can be used to measure the angle. Proportional controller: v = K(42 θ). As θ 42, v he plant (motor) has a transfer function: transfer function = output input = Θ(s) V (s) How can we obtain the transfer function of a DC motor? he transfer function is a mathematical model that can be obtained using extensive experiments. Several methods exist to approximate the transfer function of a system. Match the mathematical models with the motor s parameters obtained from the manufacturer. Apply a step input and obtain the time response. he type and the characteristics of the response are used to get the frequency domain open loop transfer function. (2).5.5 2 2.5 3 3.5 ime (seconds) Fig. 4. ime response illustrating problems in regulatory control: high percent overshoot. Ideally, damping has to be reduced to a reasonable value I. COMPARISON BEWEEN DIGIAL AND ANALOG CONROLLERS: In a digital control problem, the controller and the controlled process to not speak the same language, for this reason we have the DAC (D/A) and the ADC (A/D) to translate. 2

Digital Control Systems, spring 28 Summary Fig. 6. op: digital controllers and bottom: DC motor example block diagram Fig. 7. Illustration of digital controllers Frequency Domain ransfer function Laplace transform z transform ime Domain State space models differential equations difference equations wo formulations to study control systems: time domain and frequency domain as shown in the table. he z transform is plays important role in digital control and digital signal processing. SAMPLING Continuous controllers are built using analog electronics such as resistor, capacitors, and operational amplifiers. Digital controllers use digital computers (including micro controllers) here exist two representations for signals: ime domain: the system is represented by difference or differential equations Frequency domain: the system is represented by the z-transform or the Laplace transform. Continuous x(t) Laplace transform Digital x(k) z transform Analog to digital conversion (ADC) allows to convert the analog signal x(t) to a discrete signal x(k) as illustrated in figures 8 and 9. he conversion occurs at discrete times where: is the sampling period is the sampling frequency A sampler is basically a switch that closes every seconds, where is the sampling period. he switch closure time is c. In practice and control applications, the switch closure time (3) Fig. 8. Illustration of the ADC c is very small and therefore is neglected. his leads to the ideal sampler. he sampling theorem: he sampling frequency should be at least twice the highest frequency contained in the signal, that is: ω s > 2ω m (4) for band limited signals. In this case, the spectrum of the Fig. 9. Sampling process 3

Digital Control Systems, spring 28 Summary continuous time waveform can be recovered using an ideal low pass filter. A rule of thumb is to choose ω s as ω s = Kω m (5) with 5 K. he choice of K depends on the application and is constrained by the hardware. he samples need to provide good representation of the continuous time signal APPROXIMAION OF HE DERIVAIVE his method uses the definition of the derivative to obtain discrete time models from the continuous models. What is the derivative? ẋ = lim δx as δt (6) δt which can be written as: x(k + ) x(k) ẋ = (7) where k is an integer representing the discrete time. x(k) is the value of x(t) at time k x(k + ) is the value of x(t) at time (k + ) his approximation allows to transform a differential equation to a recursive algebraic equation. Example Convert the following systems to discrete time systems ẋ(t) = 3x(t) + 3u(t) (8) ẋ(t) = sin(x(t)) (9) ) For the first system: Recall that: x(k + ) x(k) ẋ(t) = () from which we can write: x(k + ) x(k) = 3x(k) + 3u(k) () x(k + ) = [ 3x(k) + 3u(k)] + x(k) (2) 2) For the second system: x(k + ) x(k) = sin(x(k)) (3) x(k + ) = [ sin(x(k))] + x(k) (4) Equations (2) and (4) are called difference equations. Can you solve these equations? For example, find x()? No, you need an initial condition. his is an initial value problem. Difference equations can be easily solved numerically: calculate the current sample using the previous ones. How to algebraically solve linear differential equations? One way is to use Laplace transform. In a similar way, linear difference equations can be solved algebraically using the z-transform. HE z-ransform he z-transform is a mathematical operator used for digital systems and signals. It can be seen as the discrete version of the Laplace transform. Difference equations can be solved using the z-transform. he z-transform is an important tool in the analysis and design of discrete time control systems. What is the advantage of the z-transform from system s point of view? In the frequency domain, the convolution becomes a multiplication. Definition Causal system: signal has zero value for negative time. Definition Given a causal sequence {u(), u(), u(2),..., u(k),...}, its z-transform is defined as U(z) = u() + u()z + u(2)z 2 +... + u(k)z k (5) U(z) = k= k= u(k)z k (6) In this case, z can be seen as some kind of delay. Example Obtain the z-transform of the sequence: u(k) = {, 3, 2,, 4} (7) Using the definition of the z-transform, it is possible to write Example 2: Unit impulse U(z) = + 3z + 2z 2 + 4z 4 (8) he unit impulse is given by { for k = u(k) = δ(k) = for k Using the definition again, we get Example 3: Sampled step he sampled step is given by (9) U(z) = (2) u(k) = {,,,,...} (2) 4

Digital Control Systems, spring 28 Summary FINAL VALUE HEOREM We are interested in the final value of the sequence, that is f( ). heorem If a sequence approaches a constant limit as k approaches infinity, then the limit is given by f( ) = lim f(k) = lim k z A. Questions z F (z) = lim(z )F (z) z z (28) What is the keyword in the theorem? he answer is: the limit needs to exist. Does the theorem apply to an oscillatory signal (sine wave for example)? No, because the limit does not exist. Fig.. Some common discrete time signals Using the definition again, we get REMARK How did we get equation (26) from equation (25)? with x < x = + x + x2 + x 3 +... (29) which can be simplified to Example 4: Exponential with a <. u(k) = U(z) = z k (22) U(z) = z (23) { a k for k for k < (24) Proof S = + x + x 2 + x 3 +... (3) S = + x( + x + x 2 + x 3 +...) (3) S = + xs (32) S = x (33) We have U(z) = + az + a 2 z 2 + a 3 z 3 +... + a k z k +... (25) which can be simplified to U(z) = a z = z z a (26) Let then SOME PROPERIES OF HE Z RANSFORM Z{f(k)} = F (z) (27) Linearity: Z{αf (k) + βf 2 (k)} = αf (z) + βf 2 (z) ime delay: Z{f(k n)} = z n F (z) ime advance: Z{f(k + )} = zf (z) zf() Multiplication by an exponential: Z{a k f(k)} = F (a z) 5