Top Banner
1 "Objectives" of Lecture on DSP Introduction to laboratory #1 The need for DSP Resolution, Aliasing & Windowing Introduction to FFT.
25

Objectives of Lecture on DSP

Dec 18, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Objectives of Lecture on DSP

1

"Objectives" of Lecture on DSP

• Introduction to laboratory #1• The need for DSP• Resolution, Aliasing & Windowing• Introduction to FFT.

Page 2: Objectives of Lecture on DSP

2

Why Digital Signal Processing?

• Allows fast & complex calculations, usuallywithout loss of information.

E.G.– MRIs

– Communication (TV,CD,MP3, etc.)– Signal diagnostics (machine health, “looking” for

hidden details)

Page 3: Objectives of Lecture on DSP

3

A/D converters(Analogue/Digital)

This lecture, 3 concepts & 1 process.

•A/D resolution

•Aliasing (sampling rate)

•Windowing (leakage)

Time domain

Frequency domain

FFT

Page 4: Objectives of Lecture on DSP

4

Getting it into the computer!(A/D)

x(t)

time, t

Page 5: Objectives of Lecture on DSP

5

Getting it into the computer!(A/D)

x(t)

time, t

We now havea sequence ofnumbers, i.e., avector.

Page 6: Objectives of Lecture on DSP

6

Some definitions

Δt

•Sampling rate

fs=1/Δt

•Window length orTime Record length,T.R.

T.R.

x(t)

t

Page 7: Objectives of Lecture on DSP

7

Mention of one other issue:Resolution

For a specific voltage range there will onlybe a certain number of "divisions" available (see later).

Page 8: Objectives of Lecture on DSP

8

Mention of one other issue:Resolution

Δvoltage

For a specific voltage range there will onlybe a certain number of "divisions" available (see next slide).

Page 9: Objectives of Lecture on DSP

9

Example of a A/D spec.

“12bit A/D converter with a sampling rate of 15kHzover a range of -/+ 5 volts”

Voltage increments:Δvoltage = 10/212 = 10/4096 = 2.441mVTime increment:Δt = 1/15,000 sec.

Page 10: Objectives of Lecture on DSP

10

Aliasing

• How fast do we have to sample?• What happens if we don't sample fast

enough?• What can we do about it?

Page 11: Objectives of Lecture on DSP

11

Fast enough?

1Hz analogue signal10Hz sampling frequency

Page 12: Objectives of Lecture on DSP

12

Or is this fast enough?

1Hz analogue signal5 Hz sampling frequency

Page 13: Objectives of Lecture on DSP

13

1Hz analogue signal or a 4Hz analogue signal5 Hz sampling frequency

Aliased signal

Page 14: Objectives of Lecture on DSP

14

We must sample AT LEAST twice as fast as the highestfrequency that is present.e.g. here, 4Hz signal therefore sample 8Hz.

!

>

“Onset” of aliasing

Page 15: Objectives of Lecture on DSP

15

• To avoid aliasing, the analogue signal isfirst FILTERED (anti-aliasing filters) toensure that all frequencies higher than 1/2the sampling frequency have been removed.

• The maximum detectable frequency issometimes called the Nyquist frequency.

SUMMARY

Page 16: Objectives of Lecture on DSP

16

WindowingThere must be a finite record length.

Page 17: Objectives of Lecture on DSP

17

Windowing

T.R.

Finite record length,hence “stop” and “start”.

Page 18: Objectives of Lecture on DSP

18

Windowing

The Fourier series algorithim believes thisfinite record, of length T.R., to be thefundamental part of a periodic function. Itattempts to recreate a function as sketchedbelow. The sudden “stop” and “start”,shown in red, causes the creation ofadditional components in the frequencydomain. These additional frequencies areknown as LEAKAGE. This can beminimized by tapering the beginning andending of each T.R. to zero.

Page 19: Objectives of Lecture on DSP

19

*

Windowing function

Time record

Windowed time record

Page 20: Objectives of Lecture on DSP

20

Quick introduction toFast Fourier Transform (FFT)

Page 21: Objectives of Lecture on DSP

21

Recap Fourier series.

x t( ) =1

Ta0

+ ancos !

nt( ) + b

nsin !

nt( )

n=1

"

#$ % &

' &

( ) &

* &

Periodic signal of period τ, x(t) = x(t + !)

where !n=2n"

#n = 1,2, 3,.....

an=2

!x(t)cos("

nt)dt

#! / 2

! / 2

$

bn=2

!x(t)sin("

nt)dt

#! / 2

! / 2

$

and where

See eq(1.2.1-3)

Page 22: Objectives of Lecture on DSP

22

Fourier series and FFT

x(t) =4

!sin("1t) +

4

3!sin(3"1t) +

4

5!sin(5"1t) + ....

Recall that for the following square wave:

x(t)

t

1

Page 23: Objectives of Lecture on DSP

23

Another way of viewing this:x(t)

t

frequency

4

!

4

3!4

5!

!12!

13!

1

Magnitude of Sine component

Time domain

Frequency domain

FFT

Page 24: Objectives of Lecture on DSP

24

Lab. Example

Page 25: Objectives of Lecture on DSP

25

FFT summary

T.R.

Δt

time

frequency

Mag.1/T.R.

0

1/2Δt

N data points N/2 Mag. data pointsN/2 Phase. data points

** *

**

*

FFT