lecture 4: signal processing een 112: introduction to electrical and computer engineering professor...

36
Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Upload: esther-cross

Post on 17-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Lecture 4: Signal Processing

EEN 112: Introduction to Electrical and Computer Engineering

Professor Eric Rozier, 2/18/13

Page 2: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

MIDTERM RESULTS

Page 3: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Quiz and Midterm

Page 4: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Current Class GradesIncluding homework, participation, and lab grades…

Page 5: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

SIGNAL PROCESSING

Page 6: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

What is a signal?

Page 7: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

What is a signal?

• Functions of one or more independent variables– Often encode/contain information about the

behavior of some phenomenon.– Air pressure inside a trumpet: p(x,t) where x is the

location in the tube, and t is time.

Page 8: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Why do we care about signals?

Page 9: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Why do we care about signals?

• Ways to collect data from sensors in the environment.

Page 10: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Why do we care about signals?

Page 11: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Why do we care about signals?

Page 12: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Why do we care about signals?

Page 13: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Why do we care about signals?

Page 14: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13
Page 15: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Signals Example

Page 16: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Signals Example

Page 17: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Signals Example

Page 18: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Signals Example

Page 19: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Signals Example

Page 20: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Dimensionality

• One dimensional signals– f(x) – single independent variable, “Temperature

at Miami International Airport at time t”– Intensity seen by a Kepler sensor

• Two dimensional signals– V(x,y) – color of an image sensor at position x,y.

Page 21: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Dimensionality

• One-dimensional signals– Amplitude or intensity is described as a function of

time, single dimension.• Audio• Speech• Seismic data• Sonar• etc

Page 22: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Dimensionality

• Three-dimensional signals– Take a picture, add time…– Video, v(x,y,t)

Page 23: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Continuous vs. Discrete

• A variable is continuous if it can assume any real value within a permissible range.– Air temperature in Miami during a day which

ranges from 60F – 80F. What values can it take on?

Page 24: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Continuous vs. Discrete

• A variable is continuous if it can assume any real value within a permissible range.– Air temperature in Miami during a day which

ranges from 60F – 80F. What values can it take on?

• A variable is discrete if it can assume values from a specified set.– Day of the month of February. What values can it

take on?

Page 25: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Continuous vs. Discrete

• Analog signal – continuous in amplitude and time– All signals that occur naturally are analog– Acoustic signals – continuous fluctuations in air

pressure or particle velocity.– If the acoustic signal has energy between 20Hz

and 24 kHz, it is audible to the human ear.

Page 26: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Analog Signals

• Decibel scale – logarithmic response of the human ear to changes in sound intensity/pressure.– Intensity J dB = 10 log (J/J0), where J is the sound

intensity and J0 is the intensity of the faintest audible sound

– Pressure P dB = 20 log (P/P0), where P is the sound pressure and P0 is the sound pressure of the faintest audible sound

Page 27: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Analog Signal

• Acoustic transducers - Microphones and speakers– Microphones convert an acoustic signal into an

electric signal, with corresponding amplitude or variation.

– Speakers convert electric signals into acoustic signals, with corresponding pressure variation.

• Allow us to convert audio signals to and from electrical signals for processing.

Page 28: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

A problem…

• Let’s say we have an 8-bit machine, trying to record audio signals.– What inherent limits are we imposing?

Page 29: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Discrete-time/Digital

• Discrete-time – a signal that is continuous in amplitude and discrete in time.

• Digital – a signal that is discrete in both amplitude and time.

Page 30: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Digital Signals

• Computers have revolutionized our ability to store and manipulate signals.

• But… we have to store them as bits…

Page 31: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Digital SignalsNumber of bits Number of states

1 2

2 4

3 8

4 16

5 32

6 64

7 128

8 256

9 512

10 1024

32 4294967296

64 1.8446744 * 10^19

Page 32: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Digital Signals

• Representing numbers– How can we encode the values from -1 to 1 in 4

bits?

Page 33: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Digital Sampling

Page 34: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Digital Sampling

Page 35: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

WRAP UP

Page 36: Lecture 4: Signal Processing EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/18/13

Upcoming Items of Interest

Lab this week – Matlab, intro to signal processing