09/16/2010© 2010 ntust chapter 8 sine wave fourier series fourier transform

Post on 16-Dec-2015

214 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

09/16/2010 © 2010 NTUST

Chapter 8

• Sine wave

• Fourier series

• Fourier transform

A wave is a disturbance. Unlike water waves, electrical waves cannot be seen directly but they have similar characteristics. All periodic waves can be constructed from sine waves, which is why sine waves are fundamental.

Wave

The sinusoidal waveform (sine wave) is the fundamental alternating current (ac) and alternating voltage waveform.

Electrical sine waves are named from the mathematical function with the same shape.

Sine Waves

Period of a Sine Wave

Sine waves are characterized by the amplitude and period. The amplitude is the maximum value of a voltage or current; the period is the time interval for one complete cycle.

0 V

1 0 V

-1 0 V

1 5 V

-1 5 V

-2 0 V

t ( s )0 2 5 3 7 .5 5 0 .0

2 0 V

The amplitude (A) of this sine wave is 20 VThe period is 50.0 s

A

T

Sine Waves

The period of a sine wave can be measured between any two corresponding points on the waveform.

T T T T

T T

By contrast, the amplitude of a sine wave is only measured from the center to the maximum point.

A

Sine Waves

3.0 Hz

Frequency ( f ) is the number of cycles that a sine wave completes in one second.

Frequency is measured in hertz (Hz).

If 3 cycles of a wave occur in one second, the frequency is

1.0 s

Frequency

Frequency of a Sine Wave

The period and frequency are reciprocals of each other.

Tf

1 and f

T1

Thus, if you know one, you can easily find the other.

If the period is 50 s, the frequency is

0.02 MHz = 20 kHz.

(The 1/x key on your calculator is handy for converting between f and T.)

Period and Frequency

Sinusoidal voltages are produced by ac generators and electronic oscillators.

N S

M o tio n o f c o nd uc to r C o nd uc to r

B

C

D

AA

B

C

D

AB

B

C

D

AC

B

C

D

AD

When a conductor rotates in a constant magnetic field, a sinusoidal wave is generated.

When the conductor is moving parallel with the lines of flux, no voltage is induced.

When the loop is moving perpendicular to the lines of flux, the maximum voltage is induced.

B

C

D

A

Generation of a Sine Wave

Generators convert rotational energy to electrical energy. A stationary field alternator with a rotating armature is shown. The armature has an induced voltage, which is connected through slip rings and brushes to a load. The armature loops are wound on a magnetic core (not shown for simplicity).

N S

slip ring s

a rm a tureb rushe s

Small alternators may use a permanent magnet as shown here; other use field coils to produce the magnetic flux.

AC Generator (Alternator)

By increasing the number of poles, the number of cycles per revolution is increased. A four-pole generator will produce two complete cycles in each revolution.

AC Generator (Alternator)

Function selection

Frequency

Output level (amplitude)

DC offsetCMOS output

Range

Adjust

Duty cycle

Typical controls:

Outputs

Readout

Sine Sq ua re Tria ng le

Function Generator

There are several ways to specify the voltage of a sinusoidal voltage waveform. The amplitude of a sine wave is also called the peak value, abbreviated as VP for a voltage waveform.

0 V

1 0 V

-1 0 V

1 5 V

-1 5 V

-2 0 V

t ( s )0 2 5 3 7 .5 5 0 .0

2 0 V

The peak voltage of this waveform is 20 V.

VP

Sine Wave Voltage and Current

0 V

1 0 V

-1 0 V

1 5 V

-1 5 V

-2 0 V

t ( s )0 2 5 3 7 .5 5 0 .0

2 0 V

The voltage of a sine wave can also be specified as either the peak-to-peak or the rms value. The peak-to-peak is twice the peak value. The rms value is 0.707 times the peak value.

The peak-to-peak voltage is 40 V.

The rms voltage is 14.1 V.

VPP

Vrms

Sine Wave Voltage and Current

0 V

1 0 V

-1 0 V

1 5 V

-1 5 V

-2 0 V

t ( s )0 2 5 3 7 .5 5 0 .0

2 0 V

For some purposes, the average value (actually the half-wave average) is used to specify the voltage or current. By definition, the average value is as 0.637 times the peak value.

The average value for the sinusoidal voltage is 12.7 V.

Vavg

Sine Wave Voltage and Current

Sine Wave Voltage and Current

Sine Wave Voltage and Current

Sine Wave Voltage and Current

Sine Wave Voltage and Current

Sine Wave Voltage and Current

Sine Wave Voltage and Current

Angular measurements can be made in degrees (o) or radians. The radian (rad) is the angle that is formed when the arc is equal to the radius of a circle. There are 360o or 2 radians in one complete revolution.

R

R

1 .0

-1 .0

0 .8

-0 .8

0 .6

-0 .6

0 .4

-0 .4

0 .2

-0 .2

00 2

24

4

3 2

34

5 4

7

Angular Measurement

Angular Measurement

Angular Measurement

Because there are 2 radians in one complete revolution and 360o in a revolution, the conversion between radians and degrees is easy to write. To find the number of radians, given the number of degrees:

degrees360

rad 2 rad

radrad 2

360 deg

To find the number of degrees, given the radians:

Angular Measurement

Sine Wave Equation

Instantaneous values of a wave are shown as v or i. The equation for the instantaneous voltage (v) of a sine wave is

where

If the peak voltage is 25 V, the instantaneous voltage at 50 degrees is

sinpVv

Vp = =

Peak voltageAngle in rad or degrees

19.2 V

Sine Wave Equation

Sine Wave Equation

Examples

Examples

v = = 19 .2 V V p sinVp

90

50 0= 50

V p

V p

= 25 V

A plot of the example in the previous slide (peak at 25 V) is shown. The instantaneous voltage at 50o is 19.2 V as previously calculated.

Sine Wave Equation

Examples

Examples

00 9 0

9 0

1 801 80 3 60

The sine wave can be represented as the projection of a vector rotating at a constant rate. This rotating vector is called a phasor. Phasors are useful for showing the phase relationships in ac circuits.

Phasor

where = Phase shift

The phase of a sine wave is an angular measurement that specifies the position of a sine wave relative to a reference. To show that a sine wave is shifted to the left or right of this reference, a term is added to the equation given previously.

sinPVv

Phase Shift

Volta

ge

(V)

2 70 360 0 90 180

40

45 135 225 3150

Ang le ( )

30

20

10

-20

-30

- 40

405

Pe a k vo lta g e

Re fe re nc e

Example of a wave that lags the reference

v = 30 V sin ( 45o)

Phase Shift

Volta

ge

(V)

2 70 3600 90 180

40

45 135 225 3150

Ang le ( )

30

20

10

-20

-30

-40

Pe a k vo lta g e

Re fe re nc e

- 45 -10

Example of a wave that leads the reference

v = 30 V sin ( + 45o)

Phase Shift

The power relationships developed for dc circuits apply to ac circuits except you must use rms values when calculating power. The general power formulas are:

rms rms

2

2rms

rms

P V I

VP

R

P I R

Power in Resistive AC Circuits

Assume a sine wave with a peak value of 40 V is applied to a 100 resistive load. What power is dissipated?

2 228.3 V

100 rmsV

PR

Volta

ge (V

)

40

0

30

20

10

-10

-20

-30

- 40

Vrms = 0.707 x Vp = 0.707 x 40 V = 28.3 V

8 W

Power in Resistive AC Circuits

Instantaneous Value

Frequently dc and ac voltages are together in a waveform. They can be added algebraically, to produce a composite waveform of an ac voltage “riding” on a dc level.

Superimposed DC and AC Voltage

Superimposed DC and AC Voltage

Examples

Examples

Examples

Examples

Am p litu d e

Pu lsewid th

Ba se line

Am p litu d e

Pu lsewid th

Ba se line

(a ) Po sitive -g o ing p u lse (b ) N e g a tive -g o ing p u lse

Le a d ing (rising ) e d g e

T ra ilin g (fa lling ) e d g e

Le a d ing (fa lling ) e d g e

T ra ilin g (rising ) e d g e

Ideal pulses

Pulse Definitions

Non-ideal pulses

A0 .9 A

0 .1A

tr tt

fW

t t

0 .5 A

A

(a ) (b )Rise a nd fa ll tim e s Pu lse w id th

Notice that rise and fall times are measured between the 10% and 90% levels whereas pulse width is measured at the 50% level.

Pulse Definitions

Repetitive Pulses

Examples

Examples

Triangular and sawtooth waveforms are formed by voltage or current ramps (linear increase/decrease)

Triangular waveforms have positive-going and negative-going ramps of equal duration.

The sawtooth waveform consists of two ramps, one of much longer duration than the other.

Triangular and Sawtooth Wave

All repetitive non-sinusoidal waveforms are composed of a fundamental frequency (repetition rate of the waveform) and harmonic frequencies.

Odd harmonics are frequencies that are odd multiples of the fundamental frequency.

Even harmonics are frequencies that are even multiples of the fundamental frequency.

Harmonics

A square wave is composed only of the fundamental frequency and odd harmonics (of the proper amplitude).

Harmonics

C h 1

Exte rna ltrig g e r

C o nve rsio n/sto ra g e(Dig ita l sc o p e s o nly)

Sig na l c o up ling

A CDC G ND Am p

C h 2 C o nve rsio n/sto ra g e(Dig ita l sc o p e s o nly)

A CDC G ND Am p

Vo lts/Di v

Ve rtic a lp o sitio n

A CDC

Ext

Trig g e rso urc e

Exte rna l trig g e rc o up ling

C h 1C h 2

Line

Trig g e rc irc uits

Trig g e rleve l a ndslo p e

Tim e b a se

Se c /Div

Ho rizo nta lp o sitio n

C o ntro l a nd p ro c e ss(Dig ita l sc o p e s o nly)

Inte nsity

A C

DC to a ll se c tio nsPo we r sup p ly

Vertical section

D isp lay section

H orizon ta l sectionTrigger section

Dig ita lo nly

Ana lo go nly

The oscilloscope is divided into four main sections.

C h 1 C o nve rsio n/sto ra g e(Dig ita l sc o p e s o nly)

Signa l c o up ling

A CDC G ND Am p

C h 2 C o nve rsio n/sto ra g e(Dig ita l sc o p e s o nly)

A CDC G ND Am p

Vo lts/Di v

Ve rtic a lp o sitio n

Vertic a l s ec tio n

Exte rna ltrig g e r

A CDC

Ext

Trig g e rso urc e

Exte rna l trig g e rc o up ling

C h 1C h 2

Line

Trig g e rc irc uits

T rig g e rleve l a ndslo p e

AC

T r ig g e r s ec tio n

Fro m ho rizo n ta l se c tio n

Fro mve rtic a l se c tio n

Inte nsity

Ana lo go nly

D isp la y se c t io n

Tim e b a se

Se c /D iv

Ho rizo nta lp o sitio n

C o ntro l a nd p ro c e ss(D ig ita l sc o p e s o n ly)

D ig ita lTo d isp la y se c tio no n ly

H orizon ta l sec tion

Oscilloscope

C h 1

Exte rna ltrig g e r

C o nve rsio n/sto ra g e(Dig ita l sc o p e s o nly)

Sig na l c o up ling

A CDC G ND Am p

C h 2 C o nve rsio n/sto ra g e(Dig ita l sc o p e s o nly)

A CDC G ND Am p

Vo lts/D i v

Ve rtic a lp o sitio n

A CDC

Ext

Trig g e rso urc e

Exte rna l trig g e rc o up ling

C h 1C h 2

Line

Trig g e rc irc uits

T rig g e rleve l a ndslo p e

Tim e b a se

Se c /Div

Ho rizo nta lp o sitio n

C o ntro l a nd p ro c e ss(Dig ita l sc o p e s o nly)

Inte nsity

A C

DC to a ll se c tio nsPo we r sup p ly

Vertical section

D isp lay section

H orizon ta l sectionTrigger section

Dig ita lo nly

Ana lo go nly

© Copyright 2007 Prentice-Hall

Oscilloscope

HO RIZO N TALVERTIC A L TRIG G ER

5 s 5 ns

PO SITIO N

C H 1 C H 2 EXT TRIG

A C -DC -G ND

5 V 2 m V

VO LTS/D IV

C O UPLIN G

C H 1 C H 2 BO TH

PO SITIO N

A C -DC -G ND

5 V 2 m V

VO LTS/D IV

C O UPLIN G

SEC /D IV

PO SITIO N

SLO PE

Ð +

LEVEL

SO URC E

C H 1

C H 2

EXT

LINE

TRIG C O UP

DC A C

D ISPLAY

IN TEN SITY

PRO BE C O M P5 V

HO RIZO N TALVERTIC A L TRIG G ER

5 s 5 ns

PO SITIO N

C H 1 C H 2 EXT TRIG

AC -DC -G ND

5 V 2 m V

VO LTS/D IV

C O UPLIN G

C H 1 C H 2 BO TH

PO SITIO N

A C -DC -G ND

5 V 2 m V

VO LTS/D IV

C O UPLIN G

SEC /D IV

PO SITIO N

SLO PE

Ð +

LEVEL

SO URC E

C H 1

C H 2

EXT

LINE

TRIG C O UP

DC A C

D ISPLAY

IN TEN SITY

PRO BE C O M P5 V

Vertical

HO RIZO N TALVERTIC A L TRIG G ER

5 s 5 ns

PO SITIO N

C H 1 C H 2 EXT TRIG

AC -DC -G ND

5 V 2 m V

VO LTS/D IV

C O UPLIN G

C H 1 C H 2 BO TH

PO SITIO N

A C -DC -G ND

5 V 2 m V

VO LTS/D IV

C O UPLIN G

SEC /D IV

PO SITIO N

SLO PE

Ð +

LEVEL

SO URC E

C H 1

C H 2

EXT

LINE

TRIG C O UP

DC A C

D ISPLAY

IN TEN SITY

PRO BE C O M P5 V

Horizontal

HO RIZO N TALVERTIC A L TRIG G ER

5 s 5 ns

PO SITIO N

C H 1 C H 2 EXT TRIG

A C -DC -G ND

5 V 2 m V

VO LTS/D IV

C O UPLIN G

C H 1 C H 2 BO TH

PO SITIO N

A C -DC -G ND

5 V 2 m V

VO LTS/D IV

C O UPLIN G

SEC /D IV

PO SITIO N

SLO PE

Ð +

LEVEL

SO URC E

C H 1

C H 2

EXT

LINE

TRIG C O UP

DC A C

D ISPLAY

IN TEN SITY

PRO BE C O M P5 V

Trigger

HO RIZO N TALVERTIC A L TRIG G ER

5 s 5 ns

PO SITIO N

C H 1 C H 2 EXT TRIG

A C -DC -G ND

5 V 2 m V

VO LTS/D IV

C O UPLIN G

C H 1 C H 2 BO TH

PO SITIO N

A C -DC -G ND

5 V 2 m V

VO LTS/D IV

C O UPLIN G

SEC /D IV

PO SITIO N

SLO PE

Ð +

LEVEL

SO URC E

C H 1

C H 2

EXT

LINE

TRIG C O UP

DC A C

D ISPLAY

IN TEN SITY

PRO BE C O M P5 V

Display

Oscilloscopes

Sine wave

Alternating current

Period (T)

Frequency (f)

Hertz

Current that reverses direction in response to a change in source voltage polarity.

The time interval for one complete cycle of a periodic waveform.

A type of waveform that follows a cyclic sinusoidal pattern defined by the formula y = A sin

A measure of the rate of change of a periodic function; the number of cycles completed in 1 s.

The unit of frequency. One hertz equals one cycle per second.

Selected Key Terms

Instantaneous value

Peak value

Peak-to-peak value

rms value

The voltage or current value of a waveform at its maximum positive or negative points.

The voltage or current value of a waveform measured from its minimum to its maximum points.

The voltage or current value of a waveform at a given instant in time.

The value of a sinusoidal voltage that indicates its heating effect, also known as effective value. It is equal to 0.707 times the peak value. rms stands for root mean square.

Selected Key Terms

Radian

Phase

Amplitude

Pulse

Harmonics

The maximum value of a voltage or current.

A type of waveform that consists of two equal and opposite steps in voltage or current separated by a time interval.

A unit of angular measurement. There are 2 radians in one complete 360o revolution.

The frequencies contained in a composite waveform, which are integer multiples of the pulse repetition frequency.

The relative angular displacement of a time-varying waveform in terms of its occurrence with respect to a reference.

Selected Key Terms

1. In North America, the frequency of ac utility voltage is 60 Hz. The period is

a. 8.3 ms

b. 16.7 ms

c. 60 ms

d. 60 s

Quiz

2. The amplitude of a sine wave is measured

a. at the maximum point

b. between the minimum and maximum points

c. at the midpoint

d. anywhere on the wave

Quiz

3. An example of an equation for a waveform that lags the reference is

a. v = 40 V sin ()

b. v = 100 V sin ( + 35o)

c. v = 5.0 V sin ( 27o)

d. v = 27 V

Quiz

4. In the equation v = Vp sin , the letter v stands for the

a. peak value

b. average value

c. rms value

d. instantaneous value

Quiz

5. The time base of an oscilloscope is determined by the setting of the

a. vertical controls

b. horizontal controls

c. trigger controls

d. none of the above

Quiz

6. A sawtooth waveform has

a. equal positive and negative going ramps

b. two ramps - one much longer than the other

c. two equal pulses

d. two unequal pulses

Quiz

7. The number of radians in 90o are

a. /2

b.

c. 2/3

d. 2

Quiz

8. For the waveform shown, the same power would be delivered to a load with a dc voltage of

a. 21.2 V

b. 37.8 V

c. 42.4 V

d. 60.0 V

0 V

3 0 V

-3 0 V

4 5 V

-4 5 V

-6 0 V

t ( s )0 2 5 3 7 .5 5 0 .0

6 0 V

Quiz

9. A square wave consists of

a. the fundamental and odd harmonics

b. the fundamental and even harmonics

c. the fundamental and all harmonics

d. only the fundamental

Quiz

10. A control on the oscilloscope that is used to set the desired number of cycles of a wave on the display is

a. volts per division control

b. time per division control

c. trigger level control

d. horizontal position control

Quiz

Answers:

1. b

2. a

3. c

4. d

5. b

6. b

7. a

8. c

9. a

10. b

Quiz

Fourier Series

Jean Baptiste Joseph Fourier(French)(1763~1830)

Fourier Series

• 任一週期 (periodic)函數可以分解成許多不同振幅 (amplitude),不同頻率 (frequency)的

– 正弦 (sinusoidal)諧波 (harmonic)

– 餘弦 (cosinusoidal)諧波 (harmonic)

的合成 (composition)

Fourier Series

• A function f(x) can be expressed as a series of sines and cosines:

• where:

方形波

Adding Harmonics

三種諧波 (harmonic )

三個諧波的合成

Square Wave

• Any periodic function can be expressed as the sum of a series of sines and cosines (of varying amplitudes)

頻譜比較

Sawtooth Wave

Fourier Series

• 尤拉公式 :

eiφ = cosφ + isinφ

其概念與複數平面之極式相通

Fourier Series

• 以複數型式表示傅立葉級數,將更為簡潔

Discrete Fourier Transform (DFT)

• 在處理信號時,常藉由離散傅立葉轉換 (Discrete Fourier Transform, DFT)來取得信號所對應的頻譜;再由頻譜來讀取信號的參數。

• 但由於離散傅立葉所做的計算量過於龐大,當處理大量的資料時,需要快速計算的演算法。

Discrete Fourier Transform (DFT)

• 以數位方式對連續信號取樣,週期時間T之內,可取樣 N 個取樣點的數位信號

• DFT 可表為

• 式中m為頻域上的第m個刻度, n 為時域上的第 n 個刻度

• X(m) 為頻域上第m個刻度向量, x(n) 為時域上第 n 個刻度純量

Discrete Fourier Transform

• Forward DFT:

• Inverse DFT:

The complex numbers f0 … fN are transformed into complex numbers F0 … Fn

The complex numbers F0 … Fn are transformed into complex numbersf0 … fN

DFT Example

• Interpreting a DFT can be slightly difficult, because the DFT of real data includes complex numbers.

• Basically:– The magnitude of the complex number

for a DFT component is the power at that frequency.

– The phase θ of the waveform can be determined from the relative values of the real and imaginary coefficents.

• Also both positive and “negative” frequencies show up.

DFT Example

DFT Examples

DFT Examples

Fast Fourier Transform

• Discrete Fourier Transform would normally require O(n2) time to process for n samples:

• Don’t usually calculate it this way in practice.– Fast Fourier Transform takes O(n log(n)) time.

– Most common algorithm is the Cooley-Tukey Algorithm.

Fast Fourier Transform

• FFT (Fast Fourier Transform),大幅提高頻譜的計算速度• FFT使用條件:

– 信號必須是週期性的。– 取樣週期必須為信號週期的整數倍。– 取樣速率 (Sampling rate)必須高於信號最高頻率的 2 倍以上。

– 取樣點數 N 必須為 2k個資料。

快速傅利葉轉換原理

•A complex nth root of unity is a complex number z such that zn = 1.

– n = e 2 i / n = principal n th root of unity.

– e i t = cos t + i sin t.

– i2 = -1.

– There are exactly n roots of unity: n

k, k = 0, 1, . . . , n-1.

n2= n/2

nn+k= n

k

0 = 1

1

2 = i3

4 = -1

5 6 = -

i

7

Fourier Cosine Transform

• Any function can be split into even and odd parts:

• Then the Fourier Transform can be re-expressed as:

Discrete Cosine Transform (DCT)

• When the input data contains only real numbers from an even function, the sin component of the DFT is 0, and theDFT becomes a Discrete Cosine Transform (DCT)

• There are 8 variants however, of which 4 are common.

DCT Types

• DCT Type II– Used in JPEG, repeated for a 2-D transform.

– Most common DCT.

DCT Types

• DCT Type IV– Used in MP3.

– In MP3, the data is overlapped so that half the data from one sample set is reused in the next.

• Known as Modified DCT or MDCT

• This reduces boundary effects.

Why do we use DCT for Multimedia?

• For audio:– Human ear has different dynamic range for different frequencies.

– Transform to from time domain to frequency domain, and quantize different frequencies differently.

• For images and video:– Human eye is less sensitive to fine detail.

– Transform from spacial domain to frequency domain, and quantize high frequencies more coarsely (or not at all)

– Has the effect of slightly blurring the image - may not be perceptable if done right.

Why use DCT/DFT?

• Some tasks are much easier to handle in the frequency domain that in the time domain.

• Eg: graphic equalizer. We want to boost the bass:1. Transform to frequency domain.

2. Increase the magnitude of low frequency components.

3. Transform back to time domain.

Fourier Transform

• Fourier Series can be generalized to complex numbers, and further generalized to derive the Fourier Transform.

Forward Fourier Transform:

Inverse Fourier Transform:

Note:

Fourier Transform

• Fourier Transform maps a time series (eg audio samples) into the series of frequencies (their amplitudes and phases) that composed the time series.

• Inverse Fourier Transform maps the series of frequencies (their amplitudes and phases) back into the corresponding time series.

• The two functions are inverses of each other.

Basic Properties

• Linearity: h(x) = aƒ(x) + bg(x) • Translation: h(x) = ƒ(x − x0)   

• Modulation: h(x) = e2πixξ0ƒ(x)

• Scaling: h(x) = ƒ(ax)

• Conjugation: • Duality: • Convolution:

  .

FjdeFjF

dt

dedFF

dt

deFd

Fdt

tdfFtfF

deFtfFF

dtetfFtfF

tj

tj

tj

tj

jxt

21

21

2

111

21

2

2

'

Derivative Properties

Basic Properties

• Linearity: h(x) = aƒ(x) + bg(x) • Translation: h(x) = ƒ(x − x0)   

• Modulation: h(x) = e2πixξ0ƒ(x)

• Scaling: h(x) = ƒ(ax)

• Conjugation: • Duality: • Convolution:

  .

top related