Introduction to Discrete-Time Control Systems

Similar documents
Chapter-2 SAMPLING PROCESS

Lecture 10. Digital Modulation

EEE 309 Communication Theory

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011

Sampling and Pulse Code Modulation Chapter 6

Time division multiplexing The block diagram for TDM is illustrated as shown in the figure

Pulse Code Modulation


Communications I (ELCN 306)

Analog to Digital Conversion

CHAPTER 4. PULSE MODULATION Part 2

Lecture Schedule: Week Date Lecture Title

Communications IB Paper 6 Handout 3: Digitisation and Digital Signals

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

UNIT III Data Acquisition & Microcontroller System. Mr. Manoj Rajale

EEE 309 Communication Theory

QUESTION BANK. SUBJECT CODE / Name: EC2301 DIGITAL COMMUNICATION UNIT 2

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

10. Chapter: A/D and D/A converter principles

EXPERIMENT 4 PULSE CODE MODULATION

Analogue Interfacing. What is a signal? Continuous vs. Discrete Time. Continuous time signals

CHAPTER 3 Syllabus (2006 scheme syllabus) Differential pulse code modulation DPCM transmitter

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals

In this lecture. System Model Power Penalty Analog transmission Digital transmission

CODING TECHNIQUES FOR ANALOG SOURCES

INTRODUCTION TO COMMUNICATION SYSTEMS LABORATORY IV. Binary Pulse Amplitude Modulation and Pulse Code Modulation

Pulse Code Modulation

Waveform Encoding - PCM. BY: Dr.AHMED ALKHAYYAT. Chapter Two

Chapter-1: Introduction

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

ANALOGUE AND DIGITAL COMMUNICATION

ELG3336 Design of Mechatronics System

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Direct link. Point-to-point.

Communications and Signals Processing

EITF25 Internet Techniques and Applications L2: Physical layer. Stefan Höst

Digital to Analog Conversion. Data Acquisition

Dr. Cahit Karakuş ANALOG SİNYALLER

Cyber-Physical Systems ADC / DAC

Principles of Baseband Digital Data Transmission

Digital Communication Prof. Bikash Kumar Dey Department of Electrical Engineering Indian Institute of Technology, Bombay

UNIT-1. Basic signal processing operations in digital communication

10 Speech and Audio Signals

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.

Comm 502: Communication Theory. Lecture 4. Line Coding M-ary PCM-Delta Modulation

SIGNALS AND SYSTEMS LABORATORY 13: Digital Communication

Lecture 3 Concepts for the Data Communications and Computer Interconnection

Data Converter Fundamentals

Ch 5 Hardware Components for Automation

Digital Communication System

Class 4 ((Communication and Computer Networks))

ITM 1010 Computer and Communication Technologies

EECS 122: Introduction to Computer Networks Encoding and Framing. Questions

System on a Chip. Prof. Dr. Michael Kraft

Chapter-3 Waveform Coding Techniques

EC 2301 Digital communication Question bank

Chapter 3 Data Transmission COSC 3213 Summer 2003

Lecture 9, ANIK. Data converters 1

Measuring and generating signals with ADC's and DAC's

EE482: Digital Signal Processing Applications

Chapter 2 Direct-Sequence Systems

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

Consider the cosine wave. Plot the spectrum of the discrete-time signal g (t) derived by sampling g(t) at the times t n = n=f s, where.

Sampling and Pulse Trains

CT111 Introduction to Communication Systems Lecture 9: Digital Communications

TE 302 DISCRETE SIGNALS AND SYSTEMS. Chapter 1: INTRODUCTION

EE 230 Lecture 39. Data Converters. Time and Amplitude Quantization

Signal Characteristics

Chapter 2: Digitization of Sound

Experiment 8: Sampling

Digital Communication System

UNIT TEST I Digital Communication

Practical Approach of Producing Delta Modulation and Demodulation

Digital Processing of

Fundamentals of Digital Communication

Digital Transceiver using H-Ternary Line Coding Technique

Downloaded from 1

Module 4. Signal Representation and Baseband Processing. Version 2 ECE IIT, Kharagpur

7.1 Introduction 7.2 Why Digitize Analog Sources? 7.3 The Sampling Process 7.4 Pulse-Amplitude Modulation Time-Division i i Modulation 7.

Encoding and Framing

Analog-Digital Interface

SAMPLING AND RECONSTRUCTING SIGNALS

Embedded Systems Lecture 2: Interfacing with the Environment. Björn Franke University of Edinburgh

EXPERIMENT WISE VIVA QUESTIONS

PULSE SHAPING AND RECEIVE FILTERING

Electronics A/D and D/A converters

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Encoding and Framing. Questions. Signals: Analog vs. Digital. Signals: Periodic vs. Aperiodic. Attenuation. Data vs. Signal

Digital Communication - Analog to Digital

SEN366 Computer Networks

Digital Processing of Continuous-Time Signals

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC

Laboratory Manual 2, MSPS. High-Level System Design

Lab.3. Tutorial : (draft) Introduction to CODECs

An Overview of Linear Systems

Telecommunication Electronics

Based with permission on lectures by John Getty Laboratory Electronics II (PHSX262) Spring 2011 Lecture 9 Page 1

EC6501 Digital Communication

Transcription:

Chapter 1 Introduction to Discrete-Time Control Systems 1-1 INTRODUCTION The use of digital or discrete technology to maintain conditions in operating systems as close as possible to desired values despite changes in the operating environment. Traditionally, control systems have utilized analog components, that is, controllers which generate time-continuous outputs (volts, pressure, and so forth) to manipulate process inputs and which operate on continuous signals from instrumentation measuring process variables (position, temperature, and so forth). In the 1970s, the use of discrete or logical control elements, such as fl uidic components, and the use of programmable logic controllers to automate machining, manufacturing, and production facilities became widespread. In parallel with these developments has been the accelerating use of digital computers in industrial and commercial applications areas, both for logic-level control and for replacing analog control systems. The development of inexpensive miniand microcomputers with arithmetic and logical capability orders of magnitude beyond that obtainable with analog and discrete digital control elements has resulted in the rapid substitution of conventional control systems by digital computer-based ones. With the introduction of computer-based control systems into major consumer products areas (such as automobiles and video and audio electronics), it is clear that the digital computer will be widely used to control objects ranging from small, personal appliances and games up to large, commercial manufacturing and production facilities. Types of signals: Continuous Time Signal : A signal is called continuous-time if it is defi ned at every time t. A system is a continuous-time system if it takes a continuous-time input signal, and outputs a continuous-time output signal. 1

2 Continuous time signal is defined over a continuous range of time. Analog Signal : Continuous range of time & continuous range of values in amplitude Analog signal is a special case of continuous-time signal Fig. 1.1(a): Continuous-time analog signal Fig. 1.1(b): Continuous-time quantized signal Discrete time signals are further divided in two parts namely sampled data signal and digital signal. Sampled data signal are pulse amplitude modulated signals and are obtained by some means of sampling an analog signal. A pulse amplitude modulated signals is presented in the form of a pulse train with signal information carried by the amplitudes of the pulses.digital signals are a discrete time signal with quantized amplitude such a signal can be represented by a sequence of numbers. It is a signal quantized both in amplitude and in time. Fig. 1.2(a): Sampled data signal

Introduction to Discrete-Time Control Systems 3 Fig. 1.2(b): Digital data signal 1.2 SAMPLED DATA SYSTEMS A control system where the continuous-time plant is controlled with a digital device is a sampled-data system. Under periodic sampling, the sampled-data system is time-varying but also periodic, and thus it may be modeled by a simplifi ed discrete-time system obtained by discretizing the plant. However, this discrete model does not capture the inter sample behavior of the real system, which may be critical in a number of applications. r (t) e (t) e*(t) c (t) Sampler Filter Controlled process Fig. 1.3: Closed loop sampled data control system. The Fig. 1.3 shows the basic elements of a typical closed loop control system with sampled data. The sampler represents a device that outputs a pulse train. No information is transmitted between two consecutive pulses. The magnitude of the pulses at the sampling instant represents the values of the input signal ( et ( )) at the sampling instants. The fi lter is used for the purpose of smoothing. 1.3 DIGITAL CONTROL SYSTEMS The rapid increase in the use of digital controller in the controlled system is due to its achievement in the optimum performance. Digital control system provides optimal performance in the form of maximum productivity, maximum profit, minimum cost or minimum energy use etc. The application of computer control has made possible the intelligent motion in industrial robots, the optimization of the fuel economy in automobiles and refinement in the operations of house hold appliances and machines such as microwave ovens, washing machine, Air-conditioning. Decision making capability and flexibility in the control

4 programs are major advantages of digital control system. The current trend towards rather then analog control system is mainly due do the availability of low cost digital computers and the advantages found in working with digital signals rather then continuous time signals. S/H and ADC Digital Control System DAC Hold Circuit Actuator Plant or Process Clock Digital Control Transducer Fig. 1.4: Block diagram of digital control systems. The controller operation is performed or controlled by the clock. In such a DCS points of the systems pass signals of varying amplitude either in continuous time or discrete time or in numerical code. Sample and Hold (S/H): It is the circuit that receives an analog input signal and holds these signals at a constant value for a specified period of time. Usually the signal is electrical but it may be optical or mechanical. ADC: ADC also called an encoder is a device that converts an analog signal into a digital signal, usually a numerically coded signal in binary form. Such a converter is need as an interface between an analog component and the digital component. Basically ADC involves sampling, quantizing and encoding. Digital Computer: The digital computer processes the sequences of numbers by mean of an algorithm and produces new sequences of numbers. DAC: DAC also called a decoder is a device that converts a digital signal (Numerically coded data) into an analog signal. It acts as an the interfacing device between the digital component and an analog component. The real time clock in the computer synchronizes the events. The output of the hold circuit which is continuous time signal is fed the plant either directly or through the actuator which controls the dynamics of the system (i.e. it smoothes the slope of the signal). Plant or Process: A plant is a physical object to be controlled. The examples are a furnace, chemical reactors and a set of machine parts functioning together to perform a particular operations such as servo system etc.

Introduction to Discrete-Time Control Systems 5 Transducer/Sensor: A transducer is a device that converts an input signal into an output signal of another form such as device that converts a temperature into a voltage output (thermistor or thermocouple) and an optical signal into voltage (phototransistor). Discrete Time Control System: Discrete time control system is control system in which one or more variable can change only at discrete instants of time. These instants which are denoted by KT or tk ( k = 0, 1, 2...), specify the times at which some physical measurements are performed. The time interval between two discrete instants is taken to be suffi ciently short that the data for the time between them can be approximated by simple interpolation. 1.4 DATA ACQUISITION, CONVERSION AND DISTRIBUTION Data Acquisition System Amplifier Low pass Filter Physical Variable Transducer Multiplexer Sample and Hold ADC To digital Controller Fig. 1.5: Basic block diagram of data acquision system. Fig. 1.5 shows the diagram of data acquisition system. The basic parameters are explained below: 1. Physical Variable: The input to the system is a physical variable such as position, velocity, acceleration, temperature, pressure etc. 2. Transducer Amplifier and Low Pass Filter: The physical variables (which are generally in non-electrical form) is fi rst converted into an electrical signal (a voltage or a current signal) by a suitable transducer. Amplifi er then amplifi es the voltage output of the transducer (i.e. the signal have rises to the necessary level). The LPF follows the amplifi er which attenuates the high frequency signal components such as noise signals which are random in nature. The o/p of LPF is an analog signal. The signal is then fed to an analog multiplexer. 3. Analog Multiplexer: It is a device that performs the function of time sharing and ADC among many analog channels. It is a multiple switch (usually an electronic switch) that switches sequentially among many analog input channels in some prescribed fashion. The no of channels may be 4,8,16. 4. Sample and Hold Circuit: A simpler in a digital system converts an analog signal into a train of amplitude modulated pulses. The hold circuit holds the value of the sampled pulse signal over a specifi ed

6 period of time. It is necessary in the AD converter to produce a number that accurately represents the i/p signal at the sampling instant. 5. ADC: The output of sample and hold is then fed to the AD converter. The o/p of the converter is the signal in digital form which is fed to the digital controller. In this way data acquisition system is held. Data Distribution: From Digital Controller Register Demultiplexer DAC Hold Actuator To Plant or Process Fig. 1.6: Basic block diagram of data distribution system. 1. Register: The o/p of digital controller is then stored for a certain period of time in a memory device called register. 2. Demultiplexer: The demultiplexer, which is synchronized with the i/p sampling signal, separates the composite o/p signal which is in the from of digital data from the digital controller into the original channels. Each channel is connected to DAC to produce the o/p analog signal for that channel. 3. DAC: At the o/p of the digital controller, the digital must be converted to an analog signal by the process called D/A conversion. For the full range of digital i/p, there are 2n different analog values, including zero. 4. Hold: The sampling operation produces an amplitude modulated pulse signal. The function of hold operation is to reconstruct the analog signal that has been transmitted as a train of pulse samples. The purpose of hold operation is to fi ll the spaces between the sampling periods and thus roughly reconstruct the original analog input signal which is then fed to the actuator which smoothens the slope of signal. 5. Plant or Process: A plant is a physical object to be controlled. The examples are a furnace, chemical reactors and a set of machine parts functioning together to perform a particular operations such as servo system etc. Data Conversion Process: Signal Sampling, Quantizing and Encoding Signal sampling is the fi rst step of transmission of analog signal over digital signal.

Introduction to Discrete-Time Control Systems 7 Sampling is the process of conversion of continuous time analog signal into discrete time analog signal. The discrete signal obtained after sampling is called sampled signal. Sampling Theorem: It states Analog signal can be reproduced from an appropriate set of its samples taken at some fi xed intervals of time. This theorem has made possible to transmit only samples of analog signal by changing or encoding this samples into block of code words suitable for digital control systems. If fs fx = = sampling frequency maximum frequency component of the i/p signal, then the distortion less recovery of the signal fs 2fx If the signal x () t to be sampled is band limited, then the sampled signal can be represented as: xs () t = x() t g () t where, g () t is the sampling function (rectangular pulse train) which be represented as shown below. g(s) T S /2 /2 Fig. 1.7: Rectangular pulse train where, T s = Sapling period. τ = duration of sampling pulse = pulse width. Sampler can be implemented as: x(t) x (t)= x(t) g(t) s g(t) Fig. 1.8: Implementation of sampler

8 g () t can be ex- Proof of sampling theorem: The gate function pressed in terms of Fourier Series as gt () c 2c cos( nwt) = + o n s n= 1 where, co = τ / Ts = τfs [ τ ] [ τ] Cn = fs τ sin c nfs = co sinc nfs ωs = 2 πfs The signal xs() t can be expressed as () () xs = x t g t = xt ( ) co + 2cncos( nwt s ) n= 1 () () ω () () ω = coxt+ 2cxt 1 cos nt+ 2c2xtcos2 ωst +... + 2cnx t cos n st +... The Fourier transform of above series as xs() f = co() f + 2c1x ( f fs) + 2c2x ( f 2 fs) +... + 2 cn x( f + nfs) +... The above series can be graphically represented as: x(f) -fx fx Fig. 1.9: Message spectrum

Introduction to Discrete-Time Control Systems 9 Fig. 1.10: Spectrum of the sampler It is clear from Fig. 1.10 that the spectrum of the sampled signal contains the spectrum of the sampled signal contains the spectrum of the original message signal.it is evident that for distortion less recovery of original message signal, from the spectrum of the sampled signal, the following condition should be met, fs fx. In this case the original message signal spectra can be recovered by passing the sampled signal through low pass fi lter with bandwidth equaling to ± fx.. Distortion will occur while recovering the message spectrum if fs fx. The distortion in the above case is caused by the overlapping of side bands and message spectra. as shown in Fig. 1.11. Xs(f) Xs(f) o aliasign ditortion (fs<2fx) Fig. 1.11(a): Overlapping of side bands and message spectra. o Fig. 1.11(b):

10 The minimum sampling rate: fs min = 2fs is called Nyquists s sampling rate for distortion less recovery of one message spectrum. The minimum interval of the sampling for a real signal is ( min ) ( ) Ts min = 1/ 2fx min where, fx = maximum frequency in the message spectrum. Quantizing and Quantization Error Quantization is the process of representing the analog sample values by a fi nite set of levels. The sampling process coverts a continuous time signal to a discrete time signal with amplitude and that can take any values from zero to maximum level and the quantization process converts continuous amplitude samples to a fi nite set of discrete amplitude values. The output states of each quantized sample are then described by a numerical code. The process of representing a sampled value by a numerical code is called encoding. Thus encoding is a process of assigning a digital word to each discrete state. In uniform quantization it is assumed that the range of input sample is x max to x and the number of quantization level, known as Q-level, max N = 2 n. Where, n = is the number of bits per source sample is the number of bits per source sample, then the step size Δ on length of the Q Level is assumed to be, x(t) (a) 1 2 3 4 5 6 7 t Xs(n) (b) 0.9 1.8 0.9 0.5 1.7 1.8 1.7 1 2 3 4 5 6 7 n sampling

Introduction to Discrete-Time Control Systems 11 Xq(n) 2 1 (c) 1 2 3 4 5 6 7 n Quantization Fig. 1.12(a): Continuous- continuous value signal 1.12(b): Discrete time- continuous value signal 1.12(c): Discrete time- discrete value signal. Δ= 2 x / N = 2 x /2 Δ= x max max /2 n 1 max n 1 The step size ' Δ ' is also called quantum. Quantization Error: Since the number of bits in the digital word is fi nite, ie the digital output can assume only a fi nite number of levels and therefore analog number must be round off to the nearest digital level. Hence any ADC involves quantization error. It is evident that the maximum Q error could be only Δ /2. In uniform quantization the steps size Δ is constant for the entire dynamic range of the input discrete signal level. Q error depends on the fi neness of the quantization level and can be made as small as desire by making the quantization level smaller or by increasing the number of bits n. In practice there is a maximum for n and so there is always some error due to quantization. The uncertainty present in the quantization process results quantization noise. Signal to Quantization Noise Ratio (SQNR): It is evident that the Q-error (i.e. qe) lies Between Δ / 2 to Δ /2 in random manner, the average power of Q-noise is therefore given by, P Δ 2 1 2 q = qe dqe Δ Δ 2 2 Δ = Pq = 12 ( )... 1.1

12 It is seen from Eq. (1.1) that Q-noise is dependent on step-size Δ only. Reducing the Step-size or increasing the no of representation level, we can reduce pq and hence Q-error. From Eq. (1) P =Δ 2 /12 q But, n 1 Δ= xmax /2 n P = ( x / 2 )/12 = x / 3 * 4... 1.2 q max n 1 2 max x 2, SQNR, for uniform quan- Assume that the average signal power is tization will be, SQNR = QSNR = ( ) average power of signal / average power of noise. ( ) 2 n xˆ 3 4... 1.3 where, 2 2 2 xˆ x / x Normalized signal power. = =. Again, Eq. (1.3) can be reproduced in db, as ( QSNR) = P ( db) + 10log + 10log (4) db x 3 10 10 = P ( db) + 4.8 + 10nlog x 10 n where, P ( ) 10(log ( ) x db = x db 2 ˆ 10 Thus, ( QSNR) db = Px + 4.8 + 6 n... ( 1.4) Also, ( ) = + 4.8 + 20 log10 N... ( 1.5) SQNR db Px [ since, N = 2n] And for N >> 1 for uni- SQNR = 20 log10 N... Which is approximated SQNR form quantization in terms of level of quantization N.