Discretization of Continuous Controllers

Similar documents
EEO 401 Digital Signal Processing Prof. Mark Fowler

Brief Introduction to Signals & Systems. Phani Chavali

Analog Lowpass Filter Specifications

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters

ECE503: Digital Filter Design Lecture 9

4. Design of Discrete-Time Filters

UNIT-II MYcsvtu Notes agk

EELE 4310: Digital Signal Processing (DSP)

LECTURER NOTE SMJE3163 DSP

ELEC3104: Digital Signal Processing Session 1, 2013

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

Filters. Phani Chavali

Digital Processing of Continuous-Time Signals

Digital Processing of

Chapter 7 Filter Design Techniques. Filter Design Techniques

Multirate DSP, part 1: Upsampling and downsampling

APPENDIX A to VOLUME A1 TIMS FILTER RESPONSES

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

Spectral Transformation On the unit circle we have

ECE 2713 Design Project Solution

Multirate Digital Signal Processing

Digital Filter Design

Signal Processing of DC/DC converter inductor current measurement

AUDIO SIEVING USING SIGNAL FILTERS

Infinite Impulse Response (IIR) Filter. Ikhwannul Kholis, ST., MT. Universitas 17 Agustus 1945 Jakarta

Design of infinite impulse response (IIR) bandpass filter structure using particle swarm optimization

8: IIR Filter Transformations

16.30 Learning Objectives and Practice Problems - - Lectures 16 through 20

NOVEMBER 13, 1996 EE 4773/6773: LECTURE NO. 37 PAGE 1 of 5

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

Digital Signal Processing

Sampling and Reconstruction of Analog Signals

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

Experiment 4- Finite Impulse Response Filters

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

Figure z1, Direct Programming Method ... Numerator Denominator... Vo/Vi = N(1+D1) Vo(1+D ) = ViN Vo = ViN-VoD

Bode plot, named after Hendrik Wade Bode, is usually a combination of a Bode magnitude plot and Bode phase plot:

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

Classical Control Design Guidelines & Tools (L10.2) Transfer Functions

ECE503 Homework Assignment Number 8 Solution

EEL 3923C. JD/ Module 3 Elementary Analog Filter Design. Prof. T. Nishida Fall 2010

3 Analog filters. 3.1 Analog filter characteristics

Implementation of Sallen-Key and Multi-Feedback (MFB) Architecture for Higher Order Butterworth Filters

EEL2216 Control Theory CT2: Frequency Response Analysis

Plot frequency response around the unit circle above the Z-plane.

Performance Evaluation of Mean Square Error of Butterworth and Chebyshev1 Filter with Matlab

BandPass Sigma-Delta Modulator for wideband IF signals

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

ECE 4213/5213 Homework 10

Computer-Aided Design (CAD) of Recursive/Non-Recursive Filters

Research and design of PFC control based on DSP

Digital Filters IIR (& Their Corresponding Analog Filters) 4 April 2017 ELEC 3004: Systems 1. Week Date Lecture Title

Electric Circuit Theory

1 Connecting a computer to a physical process Analog-to-digital (AD) and Digital-to-analog (DA) conversion 4

Review of Filter Types

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

2.161 Signal Processing: Continuous and Discrete

Design IIR Filter using MATLAB

D94 Series. 1 Hz to 400 khz* Low Noise Fixed Frequency. 4 - Pole Single Power Supply Anti-Aliasing Low-Pass Filters

An Overview of Linear Systems

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS.

ECE 3793 Matlab Project 4

D98 Series. 1 Hz to 400 khz* Low Noise Fixed Frequency. 8- Pole Single Power Supply Anti-Aliasing Low-Pass Filters

D92 Series. 1 Hz to 400 khz* Low Noise Fixed Frequency. 2 - Pole Single Power Supply Anti-Aliasing Low-Pass Filters

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

Comparative Study of RF/microwave IIR Filters by using the MATLAB

Class D audio-power amplifiers: Interactive simulations assess device and filter performance

Classic Filters. Figure 1 Butterworth Filter. Chebyshev

APPLIED SIGNAL PROCESSING

Window Method. designates the window function. Commonly used window functions in FIR filters. are: 1. Rectangular Window:

Digital Filters FIR and IIR Systems

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters

EECE 301 Signals & Systems Prof. Mark Fowler

Using the isppac 80 Programmable Lowpass Filter IC

Active Filter. Low pass filter High pass filter Band pass filter Band stop filter

1. Find the magnitude and phase response of an FIR filter represented by the difference equation y(n)= 0.5 x(n) x(n-1)

Bibliography. Practical Signal Processing and Its Applications Downloaded from

Biosignal filtering and artifact rejection. Biosignal processing I, S Autumn 2017

Octave Functions for Filters. Young Won Lim 2/19/18

Laboratory Assignment 1 Sampling Phenomena

ECSE-4760 Computer Applications Laboratory DIGITAL FILTER DESIGN

1 PeZ: Introduction. 1.1 Controls for PeZ using pezdemo. Lab 15b: FIR Filter Design and PeZ: The z, n, and O! Domains

Platypus (/platypus/)

EE247 Lecture 2. Butterworth Chebyshev I Chebyshev II Elliptic Bessel Group delay comparison example. EECS 247 Lecture 2: Filters

UNIT II IIR FILTER DESIGN

4/14/15 8:58 PM C:\Users\Harrn...\tlh2polebutter10rad see.rn 1 of 1

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2015 Lecture #5

Design IIR Band-Reject Filters

Design of 5 th -Order Low-Pass Switched Capacitor Elliptic Filter Allen Waters, ECE 626

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

2.7.3 Measurement noise. Signal variance

Signals and Filtering

Lab 4 An FPGA Based Digital System Design ReadMeFirst

Outline. Discrete time signals. Impulse sampling z-transform Frequency response Stability INF4420. Jørgen Andreas Michaelsen Spring / 37 2 / 37

Lab 2: Designing a Low Pass Filter

EES42042 Fundamental of Control Systems Bode Plots

EE247 - Lecture 2 Filters. EECS 247 Lecture 2: Filters 2005 H.K. Page 1. Administrative. Office hours for H.K. changed to:

Introduction (cont )

Transcription:

Discretization of Continuous Controllers Thao Dang VERIMAG, CNRS (France)

Discretization of Continuous Controllers One way to design a computer-controlled control system is to make a continuous-time design and then make a discrete-time approximation of this controller Analog Design Digital Implementation The computer-controlled system should now behave as the continuoustime system

Discretization of Continuous Controllers One way to design a computer-controlled control system is to make a continuous-time design and then make a discrete-time approximation of this controller Analog Design Digital Implementation The computer-controlled system should now behave as the continuoustime system

Discretization of Continuous Controllers One way to design a computer-controlled control system is to make a continuous-time design and then make a discrete-time approximation of this controller Analog Design Digital Implementation The computer-controlled system should now behave as the continuoustime system This is crucially dependent on choosing fairly short sampling periods.

Difference Approximations (1) When the continuous-time controller is specified as a transfer function C(s), it is natural to look for methods that will transform the continuous transfer function C(s) to a pulse transfer function C d (z) so that the corresponding behaviors of the two systems are close to each other. z and s are related as z = exp(st ), where T is the sampling period.

Difference Approximations (2) The difference approximations correspond to the series expansions z = e st 1 + st (Forward difference or Euler s method) z = e st 1 1 st z = e st 1+sT/2 1 st/2 (Backward difference) (Trapezoidal method, or Tustin s approximation)

Computing transfer function C d (z) To calculate C d (z) we substitute s in C(s) with the following: s z 1 T s z 1 s 2 T zt z 1 z + 1 (Forward difference or Euler s method) (Backward difference) (Trapezoidal method, or Tustin s approximation)

Stability the stability region (corresponding to the left half-plane Re(s) 0) in the s-plane is mapped on the z-plane.

Stability - Remarks Forward-difference approximation: it is possible that a stable continuous-time system is mapped into an unstable discrete-time system. Backward approximation: a stable continuous-time system will always give a stable discrete-time system. Tustin s approximation: has the advantage that the left half s-plane is transformed into the unit disc in the z-plane.

Selection of Sampling Period and Anti-aliasing Filters Choice of sampling rates and anti-aliasing flters are important Preserve stability Preserve performance

Anti-aliasing Filters: Example Example of a second order Butterwworth filter G(s) = ω 2 o s 2 + 2 2ω o s + ω 2 o ω o is the cut-off frequency. The Butterworth filter: no ripple in the pass band or the stop band (maximally flat filter), at the expense of a relatively wide transition region from pass band to stop band

Anti-aliasing Filters: Example The stop band frequency is generally 1 2 the sample rate, i.e. 1 2T e

Designing Digital Anti-Aliasing Filters using Bilinear Transformation Given a second order Butterworth filter, ω o is the cut-off frequency: G(s) = ω 2 o s 2 + 2 2ω o s + ω 2 o To discretize the filter, we can use the bilinear transformation from the s-domain to the z -domain, T e is the sampling period.: s = 2 T e 1 z 1 1 + z 1 Relation between the analogue frequency ω a and digital frequency ω d : ω a = 2 T e tan( ω dt e 2 ) If we want the cutoff frequency after discretization to be ω do, then from the above formula we can calculate the corresponding (analogue) ω o. Then we apply the relation between s and z to compute the transfer function in z from G(s)

Designing Digital Anti-Aliasing Filters using matlab Matlab offers functions to design digital digital anti-aliasing filter directly W p: Passband corner frequency W p, the cutoff frequency, is a scalar or a two-element vector with values between 0 and 1, with 1 corresponding to the normalized Nyquist frequency, π radians per sample. (the Nyquist frequency ω N = 2ω e ) W s: Stopband corner frequency W s, is a scalar or a two-element vector with values between 0 and 1, with 1 corresponding to the normalized Nyquist frequency. Rp: Passband ripple in decibels. Rs: Stopband attenuation in decibels. This value is the number of decibels the stopband is down from the passband.

Designing Digital Anti-Aliasing Filters using matlab http://www.mathworks.fr/fr/help/signal/ref/buttord.html Ex: For a signal sampled at ω e = 1/T e = 1000 Hz, design a lowpass filter with no more than 3 db of ripple in the passband from 0 to 40 Hz, and at least 60 db of attenuation in the stopband. Plot the filter s frequency response. Wp = 40/500; Ws = 150/500; [n,wn] = buttord(wp,ws,3,60); % Returns n = 5; Wn=0.0810; [b,a] = butter(n,wn); freqz(b,a,512,1000); title( n=5 Butterworth Lowpass Filter ) G(z) = b(1) + b(2)z 1 +... b(n + 1)z n 1 + a(2)z 1 +... a(n + 1)z n

Implementing in Simulink Same principle for transfer functions in z!

Exercise: Application to LEGO robots 1. Compute the continuous-time transfer function of the open loop F BO (s) 2. Estimate the crossover frequency ω c of F BO (s) using the function margin in matlab. 3. Choose sampling period T e according to the rule: ω c T e is between 0.05 and 0.14 4. Discretize the controllers using one of the approximation methods and the chosen sampling period. (Note that instead of replacing the whole continuous-time controller with its discretized version, we can replace only its components containing continuous-time blocs, such as the integrators 1 s ) 5 Add the digital anti-aliasing filter