Sensors. Chapter Signal Conditioning

Similar documents
ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals. 1. Sampling and Reconstruction 2. Quantization

Review of Discrete-Time System

Tutorial Sheet #2 discrete vs. continuous functions, periodicity, sampling

ECE-700 Review. Phil Schniter. January 5, x c (t)e jωt dt, x[n]z n, Denoting a transform pair by x[n] X(z), some useful properties are

EE422G Homework #9 Solution

FROM ANALOGUE TO DIGITAL

Frequency Domain Representations of Sampled and Wrapped Signals

Discrete-Time David Johns and Ken Martin University of Toronto

Signals, Instruments, and Systems W5. Introduction to Signal Processing Sampling, Reconstruction, and Filters

2A1H Time-Frequency Analysis II

NAME: ht () 1 2π. Hj0 ( ) dω Find the value of BW for the system having the following impulse response.

Chapter 5 Frequency Domain Analysis of Systems

ENSC327 Communications Systems 2: Fourier Representations. Jie Liang School of Engineering Science Simon Fraser University

ELEG 305: Digital Signal Processing

EE 224 Signals and Systems I Review 1/10

Review: Continuous Fourier Transform

IB Paper 6: Signal and Data Analysis

Experimental Fourier Transforms

Chapter 5 Frequency Domain Analysis of Systems

ECE 301 Division 1 Final Exam Solutions, 12/12/2011, 3:20-5:20pm in PHYS 114.

Module 3 : Sampling and Reconstruction Lecture 22 : Sampling and Reconstruction of Band-Limited Signals

INTRODUCTION TO DELTA-SIGMA ADCS

ECE 350 Signals and Systems Spring 2011 Final Exam - Solutions. Three 8 ½ x 11 sheets of notes, and a calculator are allowed during the exam.

Chap 4. Sampling of Continuous-Time Signals

ELEN 4810 Midterm Exam

Digital Signal Processing. Midterm 1 Solution

MEDE2500 Tutorial Nov-7

ESE 531: Digital Signal Processing

Lecture Schedule: Week Date Lecture Title

2 Fourier Transforms and Sampling

Recursive Gaussian filters

Bridge between continuous time and discrete time signals

Grades will be determined by the correctness of your answers (explanations are not required).

The Johns Hopkins University Department of Electrical and Computer Engineering Introduction to Linear Systems Fall 2002.

ECE 301 Fall 2011 Division 1 Homework 10 Solutions. { 1, for 0.5 t 0.5 x(t) = 0, for 0.5 < t 1

Final Exam 14 May LAST Name FIRST Name Lab Time

Continuous Fourier transform of a Gaussian Function

The Discrete-Time Fourier

1 Understanding Sampling

Up-Sampling (5B) Young Won Lim 11/15/12

X. Chen More on Sampling

Homework 4. May An LTI system has an input, x(t) and output y(t) related through the equation y(t) = t e (t t ) x(t 2)dt

2A1H Time-Frequency Analysis II Bugs/queries to HT 2011 For hints and answers visit dwm/courses/2tf

EE5713 : Advanced Digital Communications

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING

Discrete-Time Signals and Systems. Efficient Computation of the DFT: FFT Algorithms. Analog-to-Digital Conversion. Sampling Process.

Solution 7 August 2015 ECE301 Signals and Systems: Final Exam. Cover Sheet

Lecture 8: Signal Reconstruction, DT vs CT Processing. 8.1 Reconstruction of a Band-limited Signal from its Samples

[ ], [ ] [ ] [ ] = [ ] [ ] [ ]{ [ 1] [ 2]

DIGITAL SIGNAL PROCESSING UNIT III INFINITE IMPULSE RESPONSE DIGITAL FILTERS. 3.6 Design of Digital Filter using Digital to Digital

A.1 THE SAMPLED TIME DOMAIN AND THE Z TRANSFORM. 0 δ(t)dt = 1, (A.1) δ(t)dt =

Vibration Testing. an excitation source a device to measure the response a digital signal processor to analyze the system response

a k cos kω 0 t + b k sin kω 0 t (1) k=1

DCSP-2: Fourier Transform

UNIVERSITY OF OSLO. Please make sure that your copy of the problem set is complete before you attempt to answer anything.

Cast of Characters. Some Symbols, Functions, and Variables Used in the Book

Convolution. Define a mathematical operation on discrete-time signals called convolution, represented by *. Given two discrete-time signals x 1, x 2,

Analog Digital Sampling & Discrete Time Discrete Values & Noise Digital-to-Analog Conversion Analog-to-Digital Conversion

13. Power Spectrum. For a deterministic signal x(t), the spectrum is well defined: If represents its Fourier transform, i.e., if.

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EC2314- DIGITAL SIGNAL PROCESSING UNIT I INTRODUCTION PART A

E : Lecture 1 Introduction

Practical Spectral Estimation

CHAPTER 2 RANDOM PROCESSES IN DISCRETE TIME

Lecture 6 January 21, 2016

DISCRETE FOURIER TRANSFORM

GATE EE Topic wise Questions SIGNALS & SYSTEMS

Communication Signals (Haykin Sec. 2.4 and Ziemer Sec Sec. 2.4) KECE321 Communication Systems I

Grades will be determined by the correctness of your answers (explanations are not required).

Time and Spatial Series and Transforms

Overview of Sampling Topics

Convolution and Linear Systems

EE Homework 13 - Solutions

Solutions to Problems in Chapter 4

An Information Theoretic Approach to Analog-to-Digital Compression

An Information Theoretic Approach to Analog-to-Digital Compression

EC Signals and Systems

Digital Signal Processing Lecture 8 - Filter Design - IIR

An Introduction to Discrete-Time Signal Processing

The Discrete-time Fourier Transform

Chirp Transform for FFT

LINEAR SYSTEMS. J. Elder PSYC 6256 Principles of Neural Coding

J. McNames Portland State University ECE 223 Sampling Ver

Discrete Time Fourier Transform

A system that is both linear and time-invariant is called linear time-invariant (LTI).

Discrete-time signals and systems

Theory and Problems of Signals and Systems

ENSC327 Communications Systems 2: Fourier Representations. School of Engineering Science Simon Fraser University

Review of Analog Signal Analysis

Quadrature-Mirror Filter Bank

EE538 Final Exam Fall :20 pm -5:20 pm PHYS 223 Dec. 17, Cover Sheet

Discrete Time Fourier Transform (DTFT)

Fourier transform. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Digital Communications

G52IVG, School of Computer Science, University of Nottingham

Topic 3: Fourier Series (FS)

ENT 315 Medical Signal Processing CHAPTER 2 DISCRETE FOURIER TRANSFORM. Dr. Lim Chee Chin

Shift-Variance and Nonstationarity of Generalized Sampling-Reconstruction Processes

Digital Filters Ying Sun

Nyquist sampling a bandlimited function. Sampling: The connection from CT to DT. Impulse Train sampling. Interpolation: Signal Reconstruction

6.003: Signals and Systems. Sampling and Quantization

Transcription:

Chapter 2 Sensors his chapter, yet to be written, gives an overview of sensor technology with emphasis on how to model sensors. 2. Signal Conditioning Sensors convert physical measurements into data. Invariably, they are far from perfect, in that the data they yield gives information about the physical phenomenon that we wish to observe and other phenomena that we do not wish to observe. Removing or attenuating the effects of the phenomena we do not wish to observe is called signal conditioning. Suppose that a sensor yields a continuous-time signal x. We model it as a sum of a desired part x d and an undesired part x n, x(t) = x d (t) + x n (t). (2.) he undesired part is called noise. o condition this signal, we would like to remove or reduce x n without affecting x d. In order to do this, of course, there has to be some meaningful difference between x n and x d. Often, the two parts differ considerably in their frequency content. Example 2.: Consider using an accelerometer to measure the orientation of a slowly moving object. he accelerometer reacts to changes in orientation because they change the direction of the gravitational field with respect to its axis. But it will also report acceleration due to vibration. Let x d be the signal due to orientation and x n be the signal due to vibration. We will assume that x n has higher frequency content than x d. hus, by frequency-selective filtering, we can reduce the effects of vibration. Analysis of the degree to which frequency selective filtering helps requires having a model of both the desired signal x d and the noise x n. Reasonable models are usually statistical, and analysis of the signals requires using the techniques of random processes. Although such analysis is beyond the scope of this text, we can gain insight that is useful in many practical circumstances through a purely deterministic analysis. 5

6 CHAPER 2. SENSORS Our approach will be to condition the signal x = x d + x n by filtering it with an LI system S called a conditioning filter. Let the output of the conditioning filter be given by y = S(x) = S(x d + x n ) = S(x d ) + S(x n ), where we have used the linearity assumption on S. Let the error signal be defined to be r = y x d. his signal tells us how far off the filtered output is from the desired signal. he energy in the signal r is defined to be We define the signal to noise ratio (SNR) to be Z r 2 (t)dt. SNR = x d 2 r 2. Combining the above definitions, we can write this as SNR = x d 2 S(x d ) x d + S(x n ) 2. (2.2) It is customary to give SNR in decibels, written db, defined as follows, SNR db = 0log 0 (SNR). Note that for typical signals in the real world, the energy is effectively infinite if the signal goes on forever. A statistical model, therefore, would use the power, defined as the expected energy per unit time. But since we are avoiding using statistical methods here, we will stick to energy as the criterion. A reasonable design objective for a conditioning filter is to maximize the SNR. Of course, it will not be adequate to use a filter that maximizes the SNR only for particular signals x d and x n. We cannot know when we design the filter what these signals are, so the SNR needs to be maximized in expectation. hat is, over the ensemble of signals we might see when operating the system, weighted by their likelihood, the expected SNR should be maximized. Although determination of this filter requires statistical methods beyond the scope of this text, we can draw some intuitively appealing conclusions by examining (2.2). he numerator is not affected by S, so we can ignore it and minimize the denominator. It is easy to show that the denominator is bounded as follows, r 2 S(x d ) x d 2 + S(x n ) 2 (2.3) which suggests that we may be able to minimize the denominator by making S(x d ) close to x d (i.e. make S(x d ) x d 2 small) while making S(x n ) 2 small. hat is, the filter S should do minimal damage to the desired signal x d while filtering out as much as much as possible of the noise. his, of course, is obvious.

2.2. SAMPLING 7 As illustrated in Example 2., x d and x n often differ in frequency content. We can get further insight using Parseval s theorem, which relates the energy to the Fourier transform, Z where R is the Fourier transform of r. (r(t)) 2 dt = 2π Z R() 2 d = 2π R 2 he filter S is an LI system. It is defined equally well by the function S:(R R) (R R), by its impulse response h:r R, a continuous-time signal, or by its transfer function H:R C, the Fourier transform of the impulse response. Using the transfer function and Parseval s theorem, we can write X d 2 SNR = HX d X d + HX n 2, (2.4) where X d is the Fourier transform of x d and X n is the Fourier transform of x n. In Problem, we explore a very simple strategy that chooses the transfer function so that H() = in the frequency range where x d is present, and H() = 0 otherwise. his strategy is not exactly realizable in practice, but an approximation of it will work well for the problem described in Example 2.. Note that it is easy to adapt the above analysis to discrete-time signals. If r:z R is a discrete-time signal, its energy is n= (r(n)) 2. If its discrete-time Fourier transform is R, then Parseval s relation becomes n= (r(n)) 2 = 2π Z π π R() 2 d. Note that the limits on the integral are different, covering one cycle of the periodic DF. All other observations above carry over unchanged. 2.2 Sampling Almost every embedded system will sample and digitize sensor data. In this section, we review the phenomenon of aliasing. We use a mathematical model for sampling by using the Dirac delta function δ. Define a pulse stream by t R, p(t) = k= δ(t k ). Consider a continuous-time signal x that we wish to sample with sampling period. hat is, we define a discrete-time signal y:z R by y(n) = x(n ). Construct first an intermediate continuoustime signal w(t) = x(t)p(t). We can show that the Fourier transform of w is equal to the DF of y. his gives us a way to relate the Fourier transform of x to the DF of its samples y.

8 CHAPER 2. SENSORS Recall that multiplication in the time domain results in convolution in the frequency domain, so W() = X() P() = 2π 2π Z X(Ω)P( Ω)dΩ. It can be shown (see box on page 9) that the Fourier transform of p(t) is so W() = 2π = = P() = 2π Z k= k= X(Ω) 2π Z δ( k 2π ), k= δ( Ω k 2π )dω X(Ω)δ( Ω k 2π )dω X( k 2π k= ) where the last equality follows from the sifting property of Dirac delta functions. he next step is to show that Y () = W(/ ), which follows easily from the definition of the DF Y and the Fourier transform W. From this, the basic Nyquist-Shannon result follows, Y () = ( ) 2πk X. k= his relates the Fourier transform X of the signal being sampled x to the DF Y of the discrete-time result y. his important relation says that the DF Y of y is the sum of the Fourier transform X with copies of it shifted by multiples of 2π/. Also, the frequency axis is normalized by dividing by. here are two cases to consider, depending on whether the shifted copies overlap. First, if X() = 0 outside the range π/ < < π/, then the copies will not overlap, and in the range π < < π, Y () = ( ) X. (2.5) In this range of frequencies, Y has the same shape as X, scaled by /. his relationship between X and Y is illustrated in figure 2., where X is drawn with a triangular shape. In the second case, illustrated in figure 2.2, X does have non-zero frequency components higher than π/. Notice that in the sampled signal, the frequencies in the vicinity of π are distorted by the overlapping of frequency components above and below π/ in the original signal. his distortion is called aliasing distortion. From these figures, we get the guideline that we should sample continuous time signals at rates at least twice as high as the largest frequency component. his avoids aliasing distortion.

2.2. SAMPLING 9 Probing further: Impulse rains Consider a signal p consisting of periodically repeated Dirac delta functions with period, t R, p(t) = his signal has the Fourier series expansion t R, p(t) = k= m= δ(t k ). ei 0mt, where the fundamental frequency is 0 = 2π/. he Fourier series coefficients can be given by m Z, P m = Z /2 /2 [ δ(t k ) k= ] e i 0mt dt. he integral is over a range that includes only one of the delta functions. he kernel of the integral is zero except when t = 0, so by the sifting rule of the Dirac delta function, the integral evaluates to. hus, all Fourier series coefficients are P m = /. Using the relationship between the Fourier series and the Fourier ransform of a periodic signal, we can write the continuous-time Fourier transform of p as R, P() = 2π k= δ ( 2π ) k.

20 CHAPER 2. SENSORS X() π/ π/ Y()... 3π π / π 3π... Figure 2.: Relationship between the Fourier transform of a continuoustime signal and the DF of its discrete-time samples. he DF is the sum of the Fourier transform and its copies shifted by multiples of 2π/, the sampling frequency in radians per second. he frequency axis is also normalized. X() π/ π/ Y() / π π Figure 2.2: Relationship between the Fourier transform of a continuous-time signal and the DF of its discrete-time samples when the continuous-time signal has a broad enough bandwidth to introduce aliasing distortion.

2.2. SAMPLING 2 Exercises. Consider the accelerometer problem described in Example 2.. Suppose that the change in orientation x d is a low frequency signal with Fourier transform given by { 2 for < π X d () = 0 otherwise his is an ideally bandlimited signal with no frequency content higher than π radians/second, or 0.5 Hertz. Suppose further that the vibration x n has higher frequency components, having Fourier transform given by { for < 0π X d () = 0 otherwise his is again an ideally bandlimited signal with frequency content up to 5 Hertz. (a) Assume there is no frequency conditioning at all, or equivalently, the conditioning filter has transfer function R, H() =. Find the SNR in decibels. (b) Assume the conditioning filter is an ideal lowpass filter with transfer function { for < π H() = 0 otherwise Find the SNR in decibels. Is this better or worse than the result in part (a)? By how much? (c) Find a conditioning filter that makes the error signal identically zero (or equivalently makes the SNR infinite). Clearly, this conditioning filter is optimal for these signals. Explain why this isn t necessarily the optimal filter in general. (d) Suppose that as in part (a), there is no signal conditioning. Sample the signal x at Hz and find the SNR of the resulting discrete-time signal. (e) Describe a strategy that minimizes the amount of signal conditioning that is done in continuous time in favor of doing signal conditioning in discrete time. he motivation for doing this is analog circuitry can be much more expensive than digital filters.