Docsity

electronics lab reports, Summaries of Electronics

Toggle sidebar
bg1
Department of Physics
Indian Institute of Science
Lab Manual โ€” Experiment 9
Experiment Name:
Design and performance analysis of first-order active low-
pass and high-pass filters using OP AMP
Course:
PH 207: Electronics-I
Group:
Studentsโ€™ Names:
S/R Nos.:
Programme:
Course Instructor:
Dr. Shubhadeep Biswas
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download electronics lab reports and more Summaries Electronics in PDF only on Docsity!

Department of Physics

Indian Institute of Science

Lab Manual โ€” Experiment 9

Experiment Name:

Design and performance analysis of first-order active low-

pass and high-pass filters using OP AMP

Course: PH 207: Electronics-I

Group:

Studentsโ€™ Names:

S/R Nos.:

Programme:

Course Instructor: Dr. Shubhadeep Biswas

Objectives

  • To understand how a resistorโ€“capacitor (๐‘…๐ถ) network distinguishes between frequencies,

and how an OP AMP turns it into an active filter with gain.

  • To design and construct first-order active low-pass (LPF) and high-pass (HPF) filters with a

cut-off frequency of 5 kHz and a pass-band gain of 2.

  • To measure the frequency response (gain and phase) of each filter and determine its pass-

band gain, cut-off frequency and roll-off rate.

  • Just for fun: to watch how the two filters change the shape of a square wave.

Apparatus required

Sl. no. Apparatus Quantity

1. OP AMP IC MCP6294 (four op-amps in a 14-pin DIP) 1 2. Dual regulated power supply, set to ยฑ2.5 V 1 3. Function generator (sine, 10 Hz โ€“ 1 MHz) 1 4. Digital storage oscilloscope (two channel) with probes 1 5. Multimeter (with capacitance range) 1 6. Resistors: 3.3 kฮฉ (ร—1), 10 kฮฉ (ร—2) 3 7. Capacitor: 10 nF (= 10 000 pF, marked โ€œ103โ€) 1 8. Breadboard 1 9. Connecting wires as required

Theory

What a filter does

A filter is a circuit whose gain depends on frequency. It transmits signals in one range of frequencies,

the pass band , and attenuates them in another, the stop band ; the boundary is the cut-off frequency ๐‘“ ๐‘

A low-pass filter passes 0 < ๐‘“ < ๐‘“ ๐ป

and a high-pass filter passes ๐‘“ > ๐‘“

๐ฟ

. An ideal (โ€œbrick-wallโ€) filter

would switch from full transmission to zero exactly at ๐‘“ ๐‘

; a real filter has a gradual transition whose

steepness is measured by the roll-off rate.

Why is it enough to study sinusoids? By Fourierโ€™s theorem any signal is a superposition of sinusoids,

and for a linear circuit each sinusoid passes through independently. A sinusoidal input ๐‘ฃ

in

in

cos๐œ”๐‘ก produces, in the steady state, an output at the same frequency,

๐‘œ

in

cos(๐œ”๐‘ก + ๐œ™

so the circuit is completely described by two functions of frequency: the gain |๐ป| and the phase shift

๐œ™. Together they form the complex transfer function ๐ป(๐‘—๐œ”) = ๐‘‰ ๐‘œ

in

, written with phasors (๐‘ฃ =

Re[๐‘‰๐‘’

๐‘—๐œ”๐‘ก

]). Measuring |๐ป| and ๐œ™ against ๐‘“ is the purpose of this experiment.

The capacitor: a frequency-dependent resistor

For a capacitor ๐‘– = ๐ถ ๐‘‘๐‘ฃ/๐‘‘๐‘ก. With ๐‘ฃ = ๐‘‰๐‘’

๐‘—๐œ”๐‘ก

this gives ๐‘– = ๐‘—๐œ”๐ถ ๐‘‰๐‘’

๐‘—๐œ”๐‘ก

, so its impedance is

out

in

๐ถ

๐‘

๐‘

out

in

๐‘

๐‘

2

โˆ˜

โˆ’ tan

โˆ’ 1

๐‘

The capacitor now blocks DC and slow signals. For ๐‘“ โ‰ช ๐‘“ ๐‘

out

in

/๐‘‘๐‘ก: the circuit

differentiates , the gain rises at +20 dB/decade and the output leads by 90ยฐ.

Order of a filter. Each independent capacitor (energy-storing element) adds one power of ๐‘“ to the

denominator of ๐ป, and 20 dB/decade to the roll-off. A filter with ๐‘› such elements is an ๐‘›th-order

filter with a roll-off of 20 ๐‘› dB/decade.

Exercise 1

  1. Show that at ๐‘“ = ๐‘“

๐‘

the impedance of the capacitor is equal to ๐‘….

  1. A first-order low-pass filter has ๐‘“

๐‘

= 5 kHz. Roughly how many dB below the pass

band is its gain at 50 kHz? And at 500 kHz?

  1. Why is ๐‘“

๐‘

also called the โ€œhalf-power frequencyโ€?

Why use an OP AMP? Active filters

The passive ๐‘…๐ถ filter has two weaknesses. (i) Any load connected to its output draws current from

the capacitor node and changes the response ( loading ), so filters cannot simply be connected one

after another. (ii) Its gain can never exceed 1. Both are removed by feeding the ๐‘…๐ถ network into the

non-inverting input of an OP AMP. For an ideal OP AMP:

  • no current flows into its inputs, so the ๐‘…๐ถ network is not loaded and ๐‘“

๐‘

depends only on ๐‘… and

  • negative feedback forces ๐‘ฃ

โˆ’

, so the circuit is a non-inverting amplifier with ๐‘ฃ

๐‘œ

๐น

where the pass-band gain is ๐ด

๐น

๐‘“

1

  • the output impedance is nearly zero, so the filter can drive a load or the next stage without

changing its response.

The ๐‘…๐ถ network does the filtering; the OP AMP provides isolation and gain, and makes inductors

(bulky and lossy at audio frequencies) unnecessary.

First-order active filters

Figure 2: First-order active low-pass filter.

Low-pass (Figure 2). The voltage at the non-inverting input (pin 3) is that of the ๐‘…๐ถ divider, Eq. (3),

so

๐‘œ

in

๐น

๐ป

๐ป

๐น

๐ป

2

, ๐œ™ = โˆ’tan

โˆ’ 1

๐ป

Hence for ๐‘“ โ‰ช ๐‘“ ๐ป

๐น

and ๐œ™ โ‰ˆ 0 ; at ๐‘“ = ๐‘“

๐ป

๐น

and ๐œ™ = โˆ’ 45

โˆ˜

; for ๐‘“ โ‰ซ ๐‘“

๐ป

the gain

falls at 20 dB/decade and ๐œ™ โ†’ โˆ’ 90

โˆ˜

Figure 3: First-order active high-pass filter.

High-pass (Figure 3). With ๐‘… and ๐ถ interchanged, Eq. (6) gives

๐น

๐ฟ

๐ฟ

๐ฟ

๐น

๐ฟ

๐ฟ

2

โˆ˜

โˆ’ tan

โˆ’ 1

๐ฟ

The gain rises at 20 dB/decade below ๐‘“ ๐ฟ

, equals 0. 707 ๐ด

๐น

with ๐œ™ = + 45

โˆ˜

at ๐‘“

๐ฟ

, and is flat (๐ด

๐น

) above

it.

What to expect: the Bode plot

Figure 4 shows the expected response of both filters, normalised to the pass-band gain ๐ด ๐น

and the

cut-off frequency ๐‘“

๐‘

. Notice three things:

  • On a logโ€“log (dB against log๐‘“) plot the response is almost two straight lines โ€” the asymptotes

โ€” which meet at the corner ๐‘“ = ๐‘“

๐‘

. The real curve is 3 dB below the corner.

  • The sloping line falls (LPF) or rises (HPF) by 20 dB for every factor of 10 in frequency.
  • The phase changes by 90ยฐ in total, and passes through โˆ“45ยฐ exactly at ๐‘“

๐‘

. The phase changes

most quickly around ๐‘“

๐‘

and hardly at all far from it.

The OP AMP used here: MCP

The MCP6294 contains four identical OP AMPs (A, B, C and D) in one 14-pin package; we use

amplifier A. It is a modern low-voltage CMOS OP AMP, and it is close to ideal for this experiment:

  • Low supply voltage. It runs from a total supply of 2.4โ€“5.5 V, so we use ยฑ2.5 V. It must never

be connected to ยฑ15 V.

  • Rail-to-rail output. The output can swing to within about 15 mV of either supply, so with

ยฑ2.5 V the output can be almost 5 V pp

. Larger signals are clipped (the tops of the sine wave

become flat).

  • Fast. Its gainโ€“bandwidth product is 10 MHz and its slew rate 7 V/ฮผs. A stage with ๐ด

๐น

therefore works up to about 5 MHz โ€” far above the 100 kHz used here โ€” so in our frequency

range the filters behave just as the ideal theory predicts. (Every active high-pass filter does

eventually stop passing signals at very high frequency, because of this finite bandwidth.)

  • Tiny input current (about 1 pA), so the ๐‘…๐ถ network is not loaded at all.

Design

Design procedure

  1. Choose the cut-off frequency ๐‘“

๐‘

and the pass-band gain ๐ด

๐น

  1. Choose a capacitor ๐ถ โ‰ค 1 ฮผF. For kHz filters a few nF keeps ๐‘… in the range 1โ€“100 kฮฉ: much

larger than the generatorโ€™s 50 ฮฉ output resistance, yet much smaller than the OP AMPโ€™s input

resistance.

  1. Calculate ๐‘… = 1 /( 2 ๐œ‹๐‘“

๐‘

๐ถ), choose the nearest standard value and recalculate ๐‘“

๐‘

  1. Gain: choose ๐‘…

1

(e.g. 10 kฮฉ) and set ๐‘…

๐‘“

๐น

1

  1. High-pass: interchange ๐‘… and ๐ถ; all values stay the same.

Design for f

c

= 5 kHz

We use the available capacitor, ๐ถ = 10 000 pF = 10 nF (marked โ€œ103โ€). Then

๐‘

5 ร— 10

3

Hz

10 ร— 10

โˆ’ 9

F

= 3. 18 kฮฉ โ†’ use 3. 3 kฮฉ

๐‘

2 ๐œ‹( 3. 3 ร— 10

3

)( 10 ร— 10

โˆ’ 9

= 4. 82 kHz, ๐œ = ๐‘…๐ถ = 33 ฮผs

Gain , ๐ด

๐น

= 2 (6.02 dB): ๐‘…

๐‘“

1

= 1 , so ๐‘…

1

๐‘“

= 10 kฮฉ.

Input level: with ๐‘‰

in

= 1 V

pp

the largest output is 2 V pp

, comfortably inside the 5 V pp

that the

MCP6294 can deliver from ยฑ2.5 V.

Measure ๐ถ : ceramic capacitors marked โ€œ103โ€ can differ from 10 nF by 10โ€“20 % or more, so

always calculate the expected ๐‘“

๐‘

from the value you measure with the multimeter.

Filter Frequency-setting parts R 1

R f

A F

f c

Low-pass (Fig. 2) R = 3.3 kฮฉ, C = 10 nF 10 kฮฉ 10 kฮฉ 2.00 4.82 kHz

High-pass (Fig. 3) C = 10 nF, R = 3.3 kฮฉ 10 kฮฉ 10 kฮฉ 2.00 4.82 kHz

Critical Safety Parameters

MCP6294 specifications (from the Microchip datasheet)

Absolute maximum ratings Value

Supply voltage, V DD

โˆ’ V SS

7.0 V (never exceed)

Voltage on any input or output pin V SS โˆ’ 0.3 V to V DD + 0.3 V

Current into an input pin ยฑ2 mA

Current at output and supply pins ยฑ30 mA

Junction temperature +150 ยฐC

Operating values (typical, T = 25 ยฐC) Value

Recommended supply voltage, V DD โˆ’ V SS 2.4 V to 5.5 V (we use ยฑ2.5 V = 5 V)

Gainโ€“bandwidth product 10 MHz

Slew rate 7 V/ฮผs

Phase margin 65ยฐ

Input offset voltage ยฑ3 mV (maximum)

Input bias current ยฑ1 pA

Input voltage range (rail-to-rail input) V SS

โˆ’ 0.3 V to V DD

  • 0.3 V

Output voltage swing ( R L = 10 kฮฉ) within 15 mV of each supply rail

Output short-circuit current ยฑ25 mA

Open-loop gain 110 dB

Supply current 1.0 mA per amplifier

Package 14 - pin PDIP / SOIC / TSSOP, 4 amplifiers

Warning. The MCP6294 is a low-voltage OP AMP. The total supply between pin 4 (๐‘‰

DD

) and

pin 11 (๐‘‰

SS

) must not exceed 5.5 V. The ยฑ15 V setting used for the 741 (30 V in total)

destroys the IC instantly. Always set and check the supply before connecting it to the circuit.

Function generator and oscilloscope specifications

(Extract the values from the instrument manuals)

Quantity Value (from manual)

Function generator output resistance

Function generator maximum amplitude

Oscilloscope bandwidth

Oscilloscope input impedance and maximum input voltage

Precautions

  • Never apply more than 5.5 V in total between pins 4 and 11, and never reverse them; either

mistake destroys the IC.

  • Switch off the supply while wiring. Switch the supply on before the signal and off after it, so

that no signal reaches the inputs of an unpowered IC.

  • Keep the input signal inside the supply rails: no DC offset, and at most about 2 V pp
  • Connect all grounds (supply common, generator and both probes) to one point.
  • If the tops of the output sine wave look flat, the output is clipping at the supply rails; reduce

in

  • The MCP6294 is a CMOS device: hold it by its body and avoid touching the pins (static

electricity).

  • Unused amplifiers B, C and D: it is good practice to connect each as a voltage follower (output

to its โˆ’ input, + input to ground).

Experimental Data

Exercise 3

Before you turn the power on in your circuit and take data, do the following calculations:

  1. Calculate ๐‘“

๐‘

= 1 / 2 ๐œ‹๐‘…๐ถ and ๐ด

๐น

๐‘“

1

from your measured component values

(fill in the table below).

  1. With ยฑ2.5 V supplies the MCP6294 output can swing to almost ยฑ2.5 V (about 5 V pp

What is the largest input (in V pp

) you can apply to a filter with ๐ด

๐น

= 2 without

clipping?

  1. With ๐‘‰

in

= 1 V

pp

, what output amplitude do you expect at ๐‘“ = ๐‘“

๐‘

? (This tells you what

to look for when finding ๐‘“

๐‘

Measured component values

Filter Resistor R Capacitor C R 1 R f

Calculated

f c

Calculated

A F

Low-pass

High-pass

Supply voltages (measured): ๐‘‰

DD

= ______________ ๐‘‰

SS

= ______________

Data for the first-order high-pass filter (Figure 3)

Expected ๐ด ๐น

= 2. 00 (6.02 dB) Expected ๐œ™(๐‘“

๐‘

โˆ˜

in

= ____________

Expected ๐‘“

๐‘

(from your measured ๐‘… and ๐ถ) = ________________

Measure the pass-band gain at 50 kHz. Take ฯ† negative when ๐‘ฃ ๐‘œ

lags ๐‘ฃ

in

and positive when it leads.

Sl.

no.

Frequency

f (Hz)

V

in

(V

pp

V

o

(V

pp

Gain

V

o

/ V

in

Gain

(dB)

ฮ” t

(ฮผs)

Phase

ฯ† (deg)

4 1 k

5 2 k

6 3 k

7 5 k

8 7 k

9 10 k

10 20 k

11 50 k

12 100 k

13 f c

Graphs

Plot the gain (dB) against frequency on a logarithmic frequency axis (semi-log graph paper)

for both filters; you can put them on the same graph. Mark the โˆ’3 dB points and draw the two

straight-line asymptotes to find the roll-off rate. Plot the phase against log f on the same

frequency axis. Compare the shape of your curves with Figure 4.

Results

Filter

Gain A F

f c

(kHz) Roll-off (dB/dec) ฯ†( f c

)

Theory Meas. Theory Meas. Theory Meas. Theory Meas.

Low-pass 2.00 4.82 โˆ’ 20 โˆ’45ยฐ

High-pass 2.00 4.82 +20 +45ยฐ

% error in ๐‘“

๐‘

๐‘,meas

๐‘,theory

๐‘,theory

ร— 100 %, roll-off =

2

1

log

10

2

1

dB/decade

where ๐‘“ 1

and ๐‘“

2

are two frequencies well inside the stop band (e.g. 20 and 50 kHz for the LPF, 200

and 500 Hz for the HPF).

Exercise 4

  1. Compare your measured cut-off frequencies with the theoretical values. Can the

tolerances of your components (ยฑ5 % for ๐‘…, ยฑ10 % for ๐ถ) explain the difference?

  1. Is the gain at ๐‘“

๐‘

about 3 dB below the pass-band gain for both filters? Is the phase

close to โˆ’45ยฐ (LPF) and +45ยฐ (HPF)?

  1. Is your measured roll-off close to 20 dB/decade?
  2. You want to remove an annoying 10 kHz whistle from a 1 kHz tone. Which filter

would you use? From your data, by how many dB does it reduce the whistle, and by

how many dB the tone? How could you do better?

Fun questions

Think about these after the experiment โ€” there is no single right answer, and you can discuss them

with your partner.

1. Speakers with two drivers. A two-way loudspeaker has a big woofer for bass and a small

tweeter for treble. A โ€œcrossoverโ€ circuit sends each driver only the frequencies it can handle.

Which of todayโ€™s filters feeds the tweeter and which the woofer? Roughly where would you put

the cut-off frequency?

2. Music through the wall. When your neighbour plays loud music, you hear the โ€œboom-boomโ€ of

the bass but hardly the singer. What kind of filter is the wall? (Hint: a heavy wall cannot follow

fast pushes and pulls of the air.)

3. The mosquito tone. Young people hear sounds from about 20 Hz to 20 kHz, so the ear behaves

like a band-pass filter. Which two filters from this experiment would you join to build an

โ€œelectronic earโ€? A 17 kHz tone can be heard by most teenagers but by very few adults โ€” what

happens to the upper cut-off of the ear with age?

4. Why do voices sound thin on a phone call? A telephone line passes only about 300 Hz to 3.

kHz. Using C = 10 nF, find the R for a high-pass filter at 300 Hz and for a low-pass filter at 3.4 kHz.

Joining the two gives your own โ€œtelephone voiceโ€ filter!

5. Draw with a filter. Put the oscilloscope in XY mode ( v in

on X, v o

on Y) and feed the low-pass

filter. Start at 100 Hz and slowly sweep up through f c

to 50 kHz. The trace changes from a

straight line to a tilted ellipse and finally to a flat ellipse. Why? What is the slope of the line at low

frequency?

Conclusions