E40M RC Filters M. Horowitz, J. Plummer, R. Howe 1 Reading - - PowerPoint PPT Presentation

e40m rc filters
SMART_READER_LITE
LIVE PREVIEW

E40M RC Filters M. Horowitz, J. Plummer, R. Howe 1 Reading - - PowerPoint PPT Presentation

E40M RC Filters M. Horowitz, J. Plummer, R. Howe 1 Reading Reader: The rest of Chapter 7 7.1-7.2 is about log-log plots 7.4 is about filters A & L 13.4-13.5 M. Horowitz, J. Plummer, R. Howe 2 EKG (Lab 4)


slide-1
SLIDE 1
  • M. Horowitz, J. Plummer, R. Howe

1

E40M RC Filters

slide-2
SLIDE 2
  • M. Horowitz, J. Plummer, R. Howe

2

Reading

  • Reader:

– The rest of Chapter 7

  • 7.1-7.2 is about log-log plots
  • 7.4 is about filters
  • A & L

– 13.4-13.5

slide-3
SLIDE 3
  • M. Horowitz, J. Plummer, R. Howe

3

EKG (Lab 4)

  • Concepts

– Amplifiers – Impedance – Noise – Safety – Filters

  • Components

– Capacitors – Inductors – Instrumentation and Operational Amplifiers In this project we will build an electrocardiagram (ECG or EKG). This is a noninvasive device that measures the electrical activity of the heart using electrodes placed on the skin.

slide-4
SLIDE 4
  • M. Horowitz, J. Plummer, R. Howe

4

RC Circuit Analysis Approaches

1. For finding voltages and currents as functions of time, we solve linear differential equations or run EveryCircuit. 2. For finding the response of circuits to sinusoidal signals,* we use impedances and “frequency domain” analysis

*superposition can be used to find the response to any

periodic signals

slide-5
SLIDE 5
  • M. Horowitz, J. Plummer, R. Howe

5

  • All voltages and currents are sinusoidal
  • So we really just need to figure out

– What is the amplitude of the resulting sinewave – And sometimes we need the phase shift too (but not always)

  • These values don’t change with time

– This problem is very similar to solving for DC voltages/currents

Key Ideas on RC Circuit Frequency Analysis - Review

slide-6
SLIDE 6
  • M. Horowitz, J. Plummer, R. Howe

6

Key Ideas on Impedance - Review

  • Impedance is a concept that generalizes resistance:

– For sine wave input

  • Z for a resistor is just R

– It does not depend on frequency, it is simply a number.

  • What about a capacitor?

) ( ) ( i mag V mag Z = ZC = V i = V CdV /dt = VOsin 2πFt

( )

2πFCVOcos 2πFt

( )

ZC = V i = 1 j∗2πFC

Add j to represent 90o phase shift

slide-7
SLIDE 7
  • M. Horowitz, J. Plummer, R. Howe

7

  • The circuit used to couple sound into your

Arduino is a simple RC circuit.

  • This circuit provides a DC voltage of Vdd/2 at

the output.

  • For AC (sound) signals, the capacitor will

block low frequencies but pass high

  • frequencies. (High pass filter).
  • For AC signals, the two resistors are in

parallel, so the equivalent circuit is shown on the next page.

Analyzing RC Circuits Using Impedance - Review

slide-8
SLIDE 8
  • M. Horowitz, J. Plummer, R. Howe

8

Analyzing RC Circuits Using Impedance – Review (High Pass Filter) vin vout

R=110kW C=0.1µF

Vout Vin = R R + 1 j∗2πFC = j∗2πFRC 1+ j∗2πFRC

RC = 11ms; 2pRC about 70ms

0.2 0.4 0.6 0.8 1 50 100 150 200

Vout/Vin F (Hz)

slide-9
SLIDE 9
  • M. Horowitz, J. Plummer, R. Howe

9

RC FILTERS

slide-10
SLIDE 10
  • M. Horowitz, J. Plummer, R. Howe

10

RC Circuits Can Make Other Filters

  • Filters are circuits that change the relative strength of different

frequencies

  • Named for the frequency range that passes through the filter

– Low pass filter:

  • Passes low frequencies, attenuates high frequency

– High pass filter

  • Passes high frequencies, attenuates low frequencies

– Band pass filter

  • Attenuates high and low frequencies, lets middle frequencies pass
slide-11
SLIDE 11
  • M. Horowitz, J. Plummer, R. Howe

11

RC Low Pass Filters vin vout

C=0.1 µF

  • Let’s think about this before we do any

math

  • Very low frequencies à
  • Very high frequencies à

R=11 kW RC = 11 x 103 x 0.1 x 10-6 s = 1.1 ms 2π RC = 6.9 ms 1/(2π RC ) = 145 Hz

slide-12
SLIDE 12
  • M. Horowitz, J. Plummer, R. Howe

12

RC Low Pass Filters vin vout

C=0.1µF

0.2 0.4 0.6 0.8 1 500 1000 1500 2000

Vout Vin = 1 j∗2πFC R + 1 j∗2πFC = 1 1+ j∗2πFRC

Vout/Vin

F (Hz)

RC = 1.1 ms Fc = 1/[2pRC] =145 Hz

R=11KW

= 1 + jF/Fc 1 FC = 1/[2pRC]

slide-13
SLIDE 13
  • M. Horowitz, J. Plummer, R. Howe

13

RC Filters – Something a Little More Complicated

Vout/Vin F

  • Let’s think about this before we

do any math

  • Very low frequencies à
  • Very high frequencies à

capacitive divider vin vout R C 10C

slide-14
SLIDE 14
  • M. Horowitz, J. Plummer, R. Howe

14

RC Filters – Something More Complicated

Z1 = 1 j∗2πFC

Z2 = 1 1 R + j∗2πF10C = R 1+ j∗2πF10RC

Vout Vin = R 1+ j∗2πF10RC R 1+ j∗2πF10RC + 1 j∗2πFC = j∗2πFRC j∗2πFRC+ 1+ j∗2πF10RC

( )

= j∗2πFRC 1+ j∗2πF11 RC

vin vout R C 10C Z2 Z1

slide-15
SLIDE 15
  • M. Horowitz, J. Plummer, R. Howe

15

RC Filters – Something More Complicated

Vout/Vin F (Hz)

0.02 0.04 0.06 0.08 0.1 100 200 300 400 500

C = 0.1µF, R =11 kW Vout Vin

= à Simplify using Fc = 1 / [2π R11C] = 13 Hz

slide-16
SLIDE 16
  • M. Horowitz, J. Plummer, R. Howe

16

What If We Combine Low Pass and High Pass Filters?

  • What do you think it will

do?

  • We’ll use a filter that
  • perates like this in the

ECG lab project.

vin

R1=11K C2=0.1µF

vout

R4=110K C3=0.1µF Vout/Vin F

slide-17
SLIDE 17
  • M. Horowitz, J. Plummer, R. Howe

17

Analysis Options: Nodal Analysis

  • Let’s first solve it using Z1-Z4 and nodal

analysis vin

Z1 Z2

vout

Z4 Z3

v1

i1 i2 i3 i4

i3 = i4 ∴ Vout − V

1

Z3 = Vout Z4 ∴Vout = V

1

Z4 Z3 + Z4

i1 = i2 +i3 ∴ V

1− Vin

Z1 = V

1

Z2 + V

1− Vout

Z3

  • We have 2 equations in 2 unknowns (V1 and Vout). So we could solve this

for Vout/Vin in terms of the impedances.

slide-18
SLIDE 18
  • M. Horowitz, J. Plummer, R. Howe

18

Analysis Options: Using R, C and Voltage Dividers

v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C3) + j∗2πF

( )

2R1C2R4C3

Vout V1 V1 Vin

slide-20
SLIDE 20
  • M. Horowitz, J. Plummer, R. Howe

20

Output Response

0.2 0.4 0.6 0.8 1 1.2 200 400 600 800 1000

Gain of Filters

Low Pass High Pass Band Pass

Vout/Vin F (Hz)

vin

R1=11K C2=0.1µF

vout

R4=110K C3=0.1µF

v1

Vout Vin = j∗2πFR4C3 1+ j∗2πF(R4C3 +R1C2 +R1C3) + j∗2πF

( )

2R1C2R4C3

slide-21
SLIDE 21
  • M. Horowitz, J. Plummer, R. Howe

21

So What Are The Answers To These Questions?

How do we design circuits that respond to certain frequencies? What determines how fast CMOS circuits can work? Why did you put a 200 µF capacitor between Vdd and Gnd

  • n your Arduino?
slide-22
SLIDE 22
  • M. Horowitz, J. Plummer, R. Howe

22

Learning Objectives

  • Become more comfortable using impedance

– To solve RC circuits

  • Understand how to characterize RC circuits

– Which are low pass, high pass and bandpass filters

  • Be able to sketch the frequency dependence of an RC circuit by

reasoning about how capacitors behave at low and high frequencies