what is “signal”? - eie | home › ~nflaw › eie2106sem12017-18 › lecture3.pdf · what is...

14
SIGNALS AND ACQUISITION 1 What is “signal”? Patterns of variations that carry information Financial data: Change of $ against time 2 What is “signal”? Patterns of variations that carry information Variation (Earthquake) 3 What is “signal”? Patterns of variations that carry information Heart beat 4

Upload: others

Post on 23-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

SIGNALS AND ACQUISITION

1

What is “signal”? Patterns of variations that carry

information Financial data:

Change of $ against time

2

What is “signal”? Patterns of variations that carry

information Variation (Earthquake)

3

What is “signal”? Patterns of variations that carry

information Heart beat

4

Page 2: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

What is “signal”? Patterns of variations that carry

information Speech signal

Variations of air pressure in the vocal tract Signal representation: 1D x(t): function: varies with time

5

What is “signal”? Patterns of variations that carry

information Image:

Change of color/intensity f(x,y) x, y: spatial coordinates Intensity changes with the spatial positions

6

7

Signals and Electricity

wave

change of voltage

mic

Light

Lens

CCD

Object

change of voltage

Signals can convert to other physical form, e.g., electricity

8

Microphones

Acoustic to electric transducer Sensor: converts sound into an electrical

signal Different types of microphone have

different ways of converting energy but they all share one thing in common: The diaphragm. a thin piece of material (such as paper, plastic or

aluminum) which vibrates when it is struck by sound waves.

In a typical hand-held mic, the diaphragm is located in the head of the microphone

Page 3: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

9

Microphone

When the diaphragm vibrates, it causes other components in the microphone to vibrate. These vibrations are converted into an electrical current which becomes the audio signal.

10

diaphragm vibratesCoil move backward and forward past the magnetCreates a voltage

11

1. Speak create sound waves (vibration in the air)

2. Inside the microphone: diaphragm: moves back and forth when the sound

waves hit it

3. Coil: attached to the diaphragm Moves back and forth

12

4. magnet: produces a magnetic field.coil moves back and forth through the magnetic field an electric current flows

5. electric current flows out from the microphone

• To an amplifier / sound recording device

Page 4: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

13

Characteristics of signals

Speech signals Time variant Most signal structures change smoothly,

not abruptly Quasi-periodic in individual segments. In

other segments, has the temporal structure of noise

Pauses in the course of the speech signal

14

15

Images

Image: variation of light intensity or rate of reflection as a function of position on a plane

Image capture: Convert info contained in an image to

corresponding signals that can be stored in a reproducible way

Sensor: conversion device Convert to electronic signals

16

Images

Need a memory device to store the captured image data

Page 5: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

17

Case 3: Images

Sensors are produced on silicon wafers(30 to 50 units per wafer)

Let’s see how a pixel of image sensor looks like

Let’s see how a pixel of image sensor looks like

18

15 cm

Zooming on the sensor makes the pixels visible

0.5 millimeters

19

Working principle Photodiode

Works in much the same way as a solar cell

Uses two differently charged elements to chemically dope silicon wafers to create a N-type and P-type semiconductor

Light hits the semiconductor Allow free electrons to move from

N0Type to P-Type: create a current The strength of light determines

how much electricity is produced20

Color Images?

Sensor color: Color filter is put on the surface of every pixel Only the specific color of light can go thru the

filter

20

Red color filter only passes red light

Page 6: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

21

Color images

Every photodiode: can only sense one color of a pixel

Need: Red, Green, Blue colors 4 photodiodes with different color filters

to compose one pixel Color Filter array (CFA)

Each two-by-two photodiodes contains 2 green, 1 blue and 1 red filter, each covering one pixel sensor

22

Color images

The raw image data captured by sensor Convert to a full color image by a so-

called demosaicing algorithm

Bayer CFA

Color images

Page 7: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

25

Characteristics of signals Images

Two-dimensional Magnitude changing in spatial position Not periodic generally Abrupt changes + smooth regions

Edge -abrupt change in magnitude

Smooth region

26

Summary

Different kinds of signals Speech, ECG, image

Natural signals – not artificially synthesized by human Acquire by different devices Speech (air pressure) – microphones

(electro-mechanical device) Image (light) – photodiodes

(optoelectronic device)

27

Summary

Different signals Different characteristics Speech: quasi-periodic, noisy Image: 2D, smooth region + abrupt

changes region Need different tools for analyzing,

processing and recording these signals Mathematical Representation of Signals

28

Page 8: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

29

Signals

Speech: propagate with time varying magnitude

x(t)

x: a symbol represents this signal

t: a real number variable which refers to time

x(t) is the magnitude of the signal x received at time t, e.g. x(0) = 0; x(70.5) = -90.5; x(100.25) = 80

t = 100.25

t = 70.5t = 0

Sound: sum of sinusoidal waves at different frequencies

Water sound wave

30

31

Why Sinusoids?

Interested in sinusoidal signals Signals that have their magnitude

changed according to a sine function In 1807, a famous mathematician, Joseph

Fourier, showed that

Almost all signals can be constructed by the summation of sinusoids of different frequencies, amplitudes and phase shifts

32

Sinusoids almost all signals can be constructed

by sinusoidal signals of different magnitudes and frequencies (i.e. how fast the sinusoidal waves are changing)

The sum of sinusoidal waves of fundamental frequency fo and 3fo

The sum of sinusoidal waves of fo, 3fo, 5fo, and 7fo

The sum of sinusoidal waves of fo, 3fo, 5fo, 7fo, 9fo, 11fo, 13fo, 15fo, 17fo

Page 9: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

Approximation to a square

33 34

Sinusoids? Not just a mathematical function Are generated by real instrument Tuning fork

35

Sinusoids: Clay whistle

36

Sinusoids Basis of all signals A sinusoid is a signal that has its

magnitude changes in time according to a sine function sin()

sin

(in degree)

https://www.youtube.com/watch?v=pEXdTLsEAjk

Page 10: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

37

Sinusoids Radian

Standard unit of angular measure Equal to the length of the arc of a unit

circle 2/360

38

Sinusoids Radian:

2/360

39

Sinusoids sin() repeats itself for every 2 change in

A sin (2ft + )= A sin (t + )

amplitude frequency Phase shiftPeak = 1

sin(2t)

40

Change of Amplitude

sin(x)

5 sin(x)

10 sin(x)

A sin (t + )How large the sine wave is

Page 11: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

Change of Amplitude

41 42

Frequency Number of cycles that a sine wave has

changed per second Unit: Hertz (Hz) Sine wave of f Hz:

Changes at a rate of f cycles per second or 2f radian per second

Takes 32 seconds to change one cycle, frequency = 1/32

32 sec32 secTime t (sec)

Frequency The smaller the frequency is,

the slower the change is

43

43

60 sec60 secTime t (sec)

44

Change of Frequencysin(x)

sin(2x)

Sin(3x)

A sin(t + )How fast the sine wave is changing

Page 12: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

45

Sinusoids Radian frequency, 0=2f0

Period = inverse of frequency Time that the signal repeats itself

T0= 1/f0

00

00

2and2T

T

46

Example Sin(2 t)

Period =?, freq=?, radian freq=?

2and1,1

0 fT

47

Example Sin(5 t)

48

Phase angle The magnitude of a sine function must

start at 0 Some signals do not start at 0 A sin (t + )

Page 13: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

49

Change of Phase

10sin(2t+ 0.5)

10sin(2t + 1.5)

A sin (t + )

50

Time shift and phase shift x(t) is the received signal If this signal is received t0 seconds

later x(t+ t0)

51

Time shift and phase shift

A time shift of 15 seconds = a phase angle shift of /2

52

Exercise

Sketch the waveform of the following sine wave signals

x(t) = 5sin(210t+1.5), for t from 0 to 200 msec

x(t) = 10sin(220t+1), for t from 0 to 200 msec

Page 14: What is “signal”? - EIE | Home › ~nflaw › EIE2106Sem12017-18 › Lecture3.pdf · What is “signal”? Patterns of variations that carry information Speech signal Variations

53

Summary

Signal representation Sinusoids:

Model real signals Almost all signals can be constructed by

the summation sinusoids of different frequencies, amplitudes and phase shifts

Use of complex numbers to simplify operations in sinusoids

54

References

M.J. Roberts, Fundamentals of Signals & Systems,McGraw-Hill, 2008. (Chapter 2)

James H. McClellan, Ronald W. Schafer and Mark A. Yoder, Signal Processing First, Prentice-Hall, 2003. (Chapter 2)