dsp for dummies aka how to turn this (actual raw sonar trace) into this.. (filtered sonar data)

8
DSP for Dummies aka 2530 2540 2550 2560 2570 2580 2590 1 14 27 40 53 66 79 92 105 118 131 144 157 170 183 196 209 222 235 248 261 274 287 300 313 326 339 352 365 378 391 404 417 430 443 456 How to turn this (actual raw sonar trace) Into this .. (filtered sonar data)

Upload: candice-lyons

Post on 25-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DSP for Dummies aka How to turn this (actual raw sonar trace) Into this.. (filtered sonar data)

DSP for Dummiesaka

2530

2540

2550

2560

2570

2580

2590

1 14 27 40 53 66 79 92 105 118 131 144 157 170 183 196 209 222 235 248 261 274 287 300 313 326 339 352 365 378 391 404 417 430 443 456

How to turn this (actual raw sonar trace)

Into this .. (filtered sonar data)

Page 2: DSP for Dummies aka How to turn this (actual raw sonar trace) Into this.. (filtered sonar data)

Fundamental property of all analog signals

complex signals

i.e. audio

i.e. digital bitstream

Decomposeinto summationof sinusoids

amplitude

phase

frequency

properties

Page 3: DSP for Dummies aka How to turn this (actual raw sonar trace) Into this.. (filtered sonar data)

Fourier TransformHow do we analyze the frequency components of a complex signal

Time space x(t) Frequency space X()

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

single frequency signal

t

t

• X() is complex -- complex conjugate encodes phase• Fourier transform is invertable

Some properties

Page 4: DSP for Dummies aka How to turn this (actual raw sonar trace) Into this.. (filtered sonar data)

Digital SignalsSample amplitude at discrete time intervals

.55 .46

1,0

-1.0

-,6

Nyquist limit (http://www.medcyclopaedia.com)

(Harry Nyquist, 18891976, Swedish - American physicist), the maximum frequency of a signal that can be measured with a method that employs sampling of the signal with a specific frequency, the sampling frequency. According to Shannons sampling theorem, a signal must be sampled with a frequency at least twice the frequency of the signal itself. The maximum measurable frequency the Nyquist limit or frequency is thus half the sampling frequency. If the signal frequency is higher than the Nyquist limit, aliasing occurs.

Page 5: DSP for Dummies aka How to turn this (actual raw sonar trace) Into this.. (filtered sonar data)

Discrete Fourier TransformQuickTime™ and a

TIFF (Uncompressed) decompressorare needed to see this picture.

Given a signal represented as a time sequence of samples, the DFT gives us a seqence of

frequency/phase amplitudes

.55 .46

1,0

-1.0

-,6

Page 6: DSP for Dummies aka How to turn this (actual raw sonar trace) Into this.. (filtered sonar data)

Signals and noiseWhat is noise? Any signal other than the one you are interested in!

Sources of Noise (the usual suspects)• statistical signals from active electronic components• crosstalk from other channels or other signals in the same channel• signals sensed from external sources (power supply, EM radiation)

Trival Example

-1.5

-1

-0.5

0

0.5

1

1.5

1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70 73 76 79 82

-1.5

-1

-0.5

0

0.5

1

1.5

1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81

-1.5

-1

-0.5

0

0.5

1

1.5

1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70 73 76 79 82

Signal of interest +

Noise signal =

Noisey Signal

Signal to Noise ratio

The relative amplitude of the signal of interest o the noise signal

Page 7: DSP for Dummies aka How to turn this (actual raw sonar trace) Into this.. (filtered sonar data)

Filtering out the Noise

Finite Impulse response (FIR) filter

Ideal Pulse (time domain)

t

Ideal Pulse (frequency domain)

to inifinityto inifinity

Ideal Pulse (time domain)

Zero rise/fall time

actual rise/fall time finite band of component frequencies

The number and values of the component freqencies is related to the rise/fall time of the pulse

http://www.chem.uoa.gr/Applets/AppletFourAnal/Appl_FourAnal2.html

Page 8: DSP for Dummies aka How to turn this (actual raw sonar trace) Into this.. (filtered sonar data)

How a filter works

-1.5

-1

-0.5

0

0.5

1

1.5

1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70 73 76 79 82

-1.5

-1

-0.5

0

0.5

1

1.5

1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81

-1.5

-1

-0.5

0

0.5

1

1.5

1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70 73 76 79 82

signal

noise

FFT

noise

minus

FFT-1

signal