Lab Notes
Lab Notes
Lab Notes
48520
Electronics and
Circuits
Lab Notes
2015
R
RL
Vi
Vo
L
R2
10 k
+15 V
10 nF
R1
1 k
v1
10 F
6
TL071
v2
10 F
4
vS
500 mVpp
1.0 kHz
-15 V
10 nF
PMcL
i
Introduction
Circuit breadboarding. Layout plan. Circuit construction. Circuit testing.
Connecting laboratory power supplies. Decoupling capacitors.
Introduction
This subject places a particular emphasis on the practical, hands-on aspects of
Electronics and Circuits. In-depth understanding and mastery of Electronics
and Circuits can be gained by:
These
laboratory
experiments
will
help
you
acquire
key
testing,
ii
Circuit Breadboarding
Once a circuit has been designed, it must be tested. To do this quickly and
reliably, a good breadboarding system is needed. It should allow for the easy
interconnection and removal of the analog ICs, discrete components, power
supplies, and test equipment. It is absolutely critical that connections between
the breadboard, the components, the power supplies and the test equipment be
mechanically and electrically sound. Most beginners spend more time running
down poor or wrong breadboarding connections than they spend actually
evaluating the circuit they have built. In this section you will find
breadboarding hints that will help you minimize problems and errors in
building your circuit for testing.
iii
The connection diagram of a typical breadboard is shown below:
1 2 3 4 5 6 7
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
TL071
E
D
C
B
A
1 2 3 4 5 6 7
There is a break
in these conductors.
You may want to put jumpers across.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
J
I
H
G
F
E
D
C
B
A
iv
Hours of careful design and breadboarding can literally go up in smoke
because of a shorted or open wire to a power supply or from two alligator clips
which accidentally touch, or jump off at just the wrong time. Alligator clips are
a major source of trouble. They are often too large for use on a breadboard,
short together, or fail to hold adequately.
Instead of connecting test equipment to the breadboard with alligator clips, we
use binding posts (that have a socket for 4mm banana plugs) mounted on the
side of the base plate. There are 5 binding posts: three for a dual power supply:
+V, 0 (common) and V, and the other two for the input and output signals.
Connect signals and supply sources from the test instrument to the
breadboarding system, and from breadboard to instruments using standard
leads with 4mm banana plugs. Then wire from the binding posts to the
breadboard with 22 AWG wire, inserting the wire into the desired connector.
This technique will provide an electrically and mechanically sound and
professional way to build circuits, eliminating the cause of most breadboarding
headaches, bad connections.
Use only standard connectors to connect test equipment to the breadboard.
Never use alligator clips.
Find a suitable box to contain the breadboard with its base and the components
you have plugged into it, to enable you to carry the breadboard around from
home to the Lab without unplugging components and disturbing the assembled
circuit.
v
An example of a properly assembled breadboard is shown below:
One set of two capacitors connected between the +V rail and upper 0 V
(common) rail.
The other set of two capacitors between the V rail and lower 0 V
(common) rail.
Of course, the upper and lower ground rails are interconnected with a
wire strap.
Probes must also be used carefully. It is far too easy, when you are trying to
touch a pin on an IC, for the probe to slip between two pins, shorting them
together. This could damage the IC or supporting equipment. Instead of
probing IC pins directly, you should connect a wire from the point you want to
probe to a vacant part of the socket, where it can be secured and safely probed.
Never probe IC pins directly.
Electronics and Circuits 2015
vi
Layout Plan
a) Simplify the schematic and layout as much as possible for initial testing.
Fine-tuning, zeroing, and additional stages can easily be added after you
have the basic circuit working.
b) Be sure to include IC number, package type suffix, and pin numbers on
each IC on the schematic diagram.
c) Make the layout look as much as possible like the schematic. Refer to the
schematic whenever you debug your circuit.
d) Locate input and feedback resistors as physically close to the IC as
possible. Long leads, connecting to remotely located resistors, pick up
noise. This noise is then coupled to the highly sensitive input pin of the IC.
e) Keep the inputs well separated from the outputs to prevent oscillations.
vii
Circuit Construction
a) Always clear the breadboard of any old circuits before beginning to build a
new circuit.
b) Exercise care in inserting and removing ICs. Pins are easily bent and
jabbed into your fingers.
c) Solder 22 A WG solid wire to the leads of components with large leads.
d) Devise and carefully follow a colour code scheme for +V, -V, 0 V
(common) and signal wires. The usual colour code is:
RED:
BLACK: -V
+V
e) Avoid jungles. Make all components lie flat. Trim and bend leads and
wires to fit the layout. Neat, flat layouts work better and are far easier to
troubleshoot than a jungle of components and wires.
f) Do not forget to connect the power supplies to each IC. Although not
always shown on a schematic, power is required by the ICs. This simple
oversight is responsible for many lost hours of fruitless troubleshooting.
g) Select one connector as the common point. Tie the breadboards 0 V rail,
power supply common, and all test instruments earths to that single point.
h) Insert suitable decoupling capacitors between the +V, -V supply rails and
the 0 V (common) rail, preferably close to the power supplys connection
points to the rails. See the layout in Figure 3 for an example.
viii
Circuit Testing
a) Analyse the circuit before applying power to ensure that you know what to
expect.
b) Double check all connections, especially power supply connections, before
applying power.
c) Apply power to the IC before applying the signals.
d) Measure voltages with respect to circuit common. If you need the
difference in potential between two points, measure each with respect to
earth and then subtract. The common terminal of some instruments
(particularly the oscilloscope) may be tied to earth and would short out
some part of your circuit. Or it may inject noise into a sensitive portion of
your circuit.
e) When using the oscilloscope to measure voltages, be aware that the
accuracy of an oscilloscope, as a voltmeter, is of the order of 3%.
f) To measure voltages accurately (better than 0.5% accuracy) use the Digital
Multimeter. When measuring AC voltages with the Digital Multimeter,
make sure that the frequency of the signal you are measuring is within the
limits specified for your Digital Multimeter.
g) Measure current by determining the voltage across a known resistor. Then
calculate the current. Ammeters are rarely sensitive enough, tend to load
the circuit, and often inject noise into sensitive nodes.
h) Remove the signal from the IC before removing the power.
i) Change components and connections with the power off.
ix
Connecting Laboratory Power Supplies
Most regulated DC power supplies used in the laboratories usually contain two
separate, adjustable DC power supplies, isolated from one another and
floating, i.e., not connected to earth. This is shown below:
black
red
black
15 V
1A
red
15 V
1A
blue
15 V
1A
white
red
15 V
1A
x
There is also a third, fixed 5 V DC power supply, intended specifically for
digital circuits. The Mini-Lab ties the negative side of this 5 V DC power
supply to earth (via the GPO). The Mini-Lab power supply therefore looks
like:
blue
white
red
green
brown
earth
15 V
1A
15 V
1A
5V
3A
blue
white
red
green
earth
15 V
1A
15 V
1A
xi
The photographs below show an example of such a Mini-Lab earthing
connection according to the wiring diagram of Figure 7.
Blue Terminal: -V
Red Terminal: +V
White Terminal: 0
Green Terminal: Earth
Figure 8 Mini-Lab Power Supply Earthing
Connection wires to the
breadboard circuit:
Black: V
Green: 0
Red:
+V
xii
Decoupling Capacitors
When analysing the AC small-signal operation of an electronic circuit, one
assumes that the DC power supply of the circuit is a short-circuit for all the
AC signals likely to occur in the circuit. In real-life situations, this assumption
might be only wishful thinking, unless you make sure with appropriate
measures that it really happens.
The laboratory power supply itself usually complies with this requirement, i.e.
its output impedance is typically only a few milliohms over a wide range of
frequencies.
On the other hand, the leads running from the power supply to the breadboard
have some resistance and some inductance; therefore, the power supply does
not actually behave as a short circuit when seen from the breadboard. The stray
impedance of the leads can cause stray coupling of signals from the output to
the input of your circuit, producing unwanted feedback and unpredictable
behaviour.
Also, high-frequency (often noise) signals can be picked-up by the leads. When
coupled to or from one IC to another IC and amplified, these high frequency
signals on the supply rails can cause the entire circuit to oscillate.
To avoid stray coupling via lead impedances, the connections to the power
supply must be decoupled or bypassed with capacitors directly on the
breadboard. The decoupling capacitors must provide, between the power
supply connection points to the breadboard, a negligibly small impedance for
all likely AC signal frequencies.
xiii
Therefore it is strongly recommended for all circuits, to place a large
capacitor, say an aluminium electrolytic 10 F or 100 F , in parallel to a
smaller capacitor, say a 10 nF or 100 nF polyester film capacitor across the
+V to common and V to common connection points at the power supply
inputs on the breadboarding socket as shown below:
L1.1
Lab 1 Lab Equipment
DSO. Vertical setup. Horizontal setup. Trigger setup. Coupling of input
signals. Automatic time measurements. Automatic voltage measurements.
Cursor measurements. Reducing random noise on a signal. Dual power supply.
Earthing the supply. Using triple supplies.
Introduction
The digital storage oscilloscope (DSO) is a versatile tool for the engineer. It
has the ability to sample and store voltage waveforms, giving it the ability to
capture transient waveforms and also the ability to perform mathematical
operations on the sample values. Like any tool though, it has its limitations,
and careful operation is required to interpret results correctly.
For professional design and testing, a constant DC voltage is usually required
where the voltage can be adjusted from the front panel such devices are DC
power supplies. A power supply may have one pair of terminals, or two (a
dual power supply) or three pair (a triple power supply). Some can be
operated in series or parallel. You need to become familiar with the laboratory
power supplies so that in future when you need to use one you know how they
operate.
Another useful device for testing is the function generator. This device is
capable of generating sinusoidal, triangular, and square waves of varying
frequency and amplitude. It is generally used as the input signal to a circuit
so that a circuits time and frequency characteristics can be determined.
Objectives
1. To become familiar with setting up a DSO.
2. To become familiar with basic time and voltage measurement techniques
using a DSO.
3. To review the operation of a dual and triple power supply.
L1.2
Equipment
Resistors 1 x 4.7 k , 1 x 10 k
Safety
Cat. A lab
L1.3
Basic Setup
You will be asked to perform various and wide-ranging tasks with the DSO
during the laboratories, so it is important that you become familiar with its
capabilities and limitations.
Function Generator Setup
1. Turn the Mini-Lab on and set the function generator (FG) up for a
sinusoidal wave of around 2 kHz. Set the amplitude to one quarter of the
full range. Ensure the DC offset knob is set to off.
2. Turn the DSO on and ensure the DSO has been set to its default setup
configuration, by pressing the Save/Recall key on the front panel, then
press the Default Setup softkey under the display.
3. Observe the FG output using Channel 1 of the DSO.
Vertical Setup
1. Push the 1 button. In the Channel 1 Menu, select the BW Limit softkey
to bandwidth limit the channel, i.e. to attenuate high frequencies, which
is generally noise. Bandwidth limiting Channel 1 will help create a
stable trigger. Note the illuminated BW next to the Position knob..
2. Turn the Volts/Div knob to 500 mV/div.
3. Set the FG so that the sinusoid is 3 V peak-to-peak.
4. Turn the Position knob and note the effect. Return the position to 0.0V.
5. In the Channel 1 Menu, press the Coupling softkey until AC is selected.
Note the illuminated AC next to the Position knob. Use the
Coupling softkey to reselect DC.
6. In the Channel 1 Menu, select the Invert softkey to Invert the channel.
Note the status line shows that channel 1 is inverted (it has a bar over
the 1). Turn the Invert off.
Electronics and Circuits 2015
L1.4
Horizontal Setup
1. Turn the Time/Div knob and notice the change it makes to the status line.
2. Press Main/Delayed. Change the Time Ref softkey to see the effect
(note the trigger point / time reference triangle beneath the status line
moves to show the position of the time reference). Return the Time Ref to
Center.
3. Use the softkeys to select different horizontal modes, and note the effect.
4. Restore the horizontal mode to Main and display two cycles of the
sinusoid.
5. Turn the Delay knob to see the effect, and notice that its value is
displayed in the status line. Reset the delay to 0.0s.
Trigger Setup
1. Turn the trigger Level knob and notice the changes it makes to the display.
Note that when the trigger level is set to a value that exceeds the bounds of
our input signal, we lose the ability to trigger because the input signal never
reaches the trigger level. Use the value in the status line to return the
trigger level to 0.0V.
2. Press Edge. Toggle each of the softkeys to see the effect and notice the
change to the status line. Set the trigger to a positive edge on Channel 1.
3. Press Mode/Coupling. Toggle between the Modes to see the effect on
the status line. Set the Mode to Auto Lvl.
4. Change the FG frequency to 3 kHz, then push the 10 Hz range button to
obtain 3 Hz. Adjust the Time/Div knob to display two cycles of the
sinusoid. Press Main/Delayed. Press the Roll softkey. Change the FG
wave shape to triangle, then square, then back to sinusoid. Press the
Single key. Press the Run-Stop key to trigger the DSO again.
5. Set the DSO to Main Horizontal Mode and Auto Lvl Trigger Mode.
Electronics and Circuits 2015
L1.5
Coupling of Input Signals
The DSO has the ability to insert a capacitor between the external input and its
internal analog acquisition circuitry. This can be represented by the circuit
below, known as the input coupling circuit:
DC
external
signal
switch
AC
C
Ground
internal
signal
DSO
We will investigate the effect and use of the input coupling circuit.
1. Turn Channel 2 on by pressing the 2 key. Set 1 V/div on both channels.
2. Set the FG frequency to around 3 Hz and measure the FG output on DSO
Channels 1 and 2 simultaneously. Adjust the Time/Div knob to display
approximately 2 cycles of the sinusoid.
3. On the Channel 2 menu, set the Coupling to AC. You should see a shifted
sinusoid on Channel 2. Sketch the observed waveforms in the correct time
relationship below. Show the voltages and time on your plot.
Phase-shifted
sinusoids
L1.6
4. Change the FG to a square wave. Note the significant change in wave
shape. Sketch the observed waveforms in the correct time relationship
below. Show the voltages and time on your plot.
Square wave and
AC-coupled square
wave
L1.7
6. Change the FG to a 20 kHz sinusoid, and adjust the Time/Div knob to
display 2 cycles of the sinusoid.
7. Set the trigger on the DSO to use Channel 2 with HF Reject selected.
8. On the FG, turn on the DC offset and apply approximately 3 V of DC to
the sinusoid.
9. Now reduce the amplitude of the sinusoid to a minimum. Turn the
Volts/Div knob on Channel 2 to 100 mV/div to display a fairly large
sinusoid. We can now get AC detail from a waveform that has a large
DC component:
t
DC + AC
DC only
AC only
AC coupling will
remove the DC
component of a
waveform
11. Set the trigger on the DSO to use Channel 1 with HF Reject off.
12. Set Channel 2 to 1.00 V/div and then turn it off.
13. On the FG, turn the DC offset to off.
Electronics and Circuits 2015
L1.8
Time-domain Measurement
Automatic Time Measurements
1. Set the FG to a 3 V p-p 20 kHz sinusoid. Set the time base to 200 s/div.
2. Press Quick Meas. Note that the frequency is automatically displayed.
Change the FG wave shape to square. On the FG, turn the Symmetry
switch on (up) and turn the Symmetry knob fully clockwise.
3. Press the Select: softkey. Use the Entry knob
to select Duty
Cycle. Press the Measure Duty softkey. Note the duty cycle range of
the FG by turning the FGs Symmetry knob. Change the FG wave shape
back to sinusoid, and turn the Symmetry switch off.
4. Turn Channel 2 on and set the time base to 50.0 ms/div. Set the FG to
about 5 kHz, then push the 10 Hz range button to get 5 Hz.
5. Press Quick Meas. Use the Entry knob
Measure Phase softkey. Measure the phase difference between the two
waveforms. Determine which channel is used as the reference by the DSO
for the phase measurement. You can set up the way the DSO measures
phase by using the softkey Settings.
Automatic Voltage Measurements
Be careful when
using the automatic
voltage
measurements the
DSO cant
differentiate
between a noise
peak and a signal
peak
L1.9
Mini-Lab Amplifier Setup
The function generator has an output resistance of 50 and so any load that
draws considerable current will cause the output to experience a significant
internal Ri voltage drop, resulting in a droop in the output voltage. The Minilab provides us with a buffer amplifier that is capable of delivering large
currents with minimal voltage drop.
1. Identify the section under the power switch labelled AMPLIFIER
OR
GEN)
Mini-lab Amplifier
L1.10
Cursor Measurements
The cursor keys are useful for making custom time or voltage measurements on
a signal.
For example, we would like to measure the time it takes for a particular
waveform to respond to a stimulus and reach 63.2% of its final steady-state
value. We take a measurement of the time T as shown below:
v
100%
Channel 1
steady-state
63.2%
Channel 2
T
1. Set the FG to a 2 V p-p, 5 kHz square wave.
2. Turn Channel 2 on and set the coupling to DC. Measure the output of the
Mini-Lab amplifier with Channel 2 of the DSO.
3. Press Main/Delayed. Set the Time
L1.11
8. Press the softkey labelled Y2 to enable the second Y (voltage) cursor.
Move the Y2 cursor to align with the top (steady-state value) of the output
response. Check that the cursor measurement displays Y2 2.000 V .
9. Now calculate 63.2% of the steady-state value.
e.g. 63.2% 2.000 V 1.264 V .
10. Adjust the Y2 cursor so that Y2 is close to the 63.2% value. You will
not be able to set the exact value. Choose the closest value available.
11. Press the softkey labelled X Y to select the X (time) cursors.
12. Press the softkey labelled X1. Move the X1 cursor to align with the vertical
edge of the input square wave.
13. Press the softkey labelled X2. Move the X2 cursor to align with the
intersection of the Y2 cursor and the channel 2 waveform.
14. Record the following measurement, using the value for X :
X T
15. Turn the cursors off.
L1.12
Reducing Random Noise on a Signal
If the signal you are applying to the DSO is noisy, you can set up the DSO to
reduce the noise on the waveform. There are two methods to reduce noise
bandwidth limiting and averaging.
Bandwidth Limiting
This method applies the incoming signal to a lowpass filter before it is sampled
Bandwidth limiting
will only help if the
signal period is less
than about 1 MHz.
by the DSO. This method works only when the noise has very high frequency
content. The bandwidth limiter cuts off frequencies above 20 MHz.
1. Connect Channel 2 to the SYNC output of the Mini-Lab (its on the far left).
Press Edge and then 2 so that the DSO triggers off Channel 2. The
SYNC
ATTENUATOR
button to
L1.13
Averaging
The second method of reducing noise works when noise is present below the
cutoff frequency of the bandwidth limit filter. First, you stabilize the displayed Averaging can only
be used to clean up
waveform by removing the noise from the trigger path. Second, you reduce the a signal if the noise
is uncorrelated
Noise
eliminates the noise from the displayed waveform. The higher the number
of averages, the slower the displayed waveform responds to waveform
changes. Set # Avgs to 64.
6. Change the FG wave shape to triangle, then square, then back to sinusoid
to see the effect of averaging.
7. Turn off the FGs 20 dB ATTENUATOR button.
L1.14
Dual Power Supply
Refer to the Lab
Equipment Guide
A dual power supply is really just two independent power supplies, either with
or without a common connection. If the power supplies are truly independent,
the output can be connected in series for additional voltage, or they can be
connected in parallel for additional current capacity. This section will explore
the operation and connections of a dual power supply.
Mini-Lab Dual Power Supply
Conceptually, the Mini-Lab dual power supply looks like:
blue
15 V
1A
white
red
15 V
1A
V
If you need an accurate output voltage, always use a digital multimeter
connected to the output voltage at the load, not at the supply, since there
may be a voltage drop in the leads due to the lead resistance, if the
current is large.
L1.15
Using Dual Supplies
In this section we are going to demonstrate the various methods of taking an
output from the dual power supply. Each output of the power supply is
floating with respect to earth at the general power outlet (GPO), and thus is
similar to a battery.
1. Adjust both variable outputs to 10 V using the multimeter.
2. Now measure the voltage between the - terminal on the left-hand side and
the + terminal on the right-hand side of the power supply. You should get
20 V, because you have connected the supplies in series, as shown below:
20 V
blue
red
10 V
10 V
10 V
10 V
white
red
10 V
L1.16
Earthing the Supply
Earthing lab power supplies is very important. The output of the supply is
electrically floating, even if you connect two sides in series and use the
interconnection point as a common reference. To make this common
reference equal to the earth voltage, you must connect this point to the earth
(green) terminal. This makes the circuit safe and allows you to use other test
and measurement equipment on your circuit (e.g. a DSO), reducing the risk
of damage. Lets see an example of this concept.
1. Set the output voltage of the right-hand supply to 10.0 volts. With the
power off, construct the circuit shown below using the resistors and
breadboard from your lab kit. Do NOT connect an earth lead to the circuit
just yet.
4.7 k
red
V1
10.0 V
V2
10 k
white
Mini-Lab
power supply
2. Turn the power on. With the multimeter, measure the voltage across the
4.7 k resistor, and then across the 10 k resistor. Calculate the current
in the circuit. Note the polarity of the voltages and current in the circuit
above. Record your values for later reference:
Voltage across the 4.7 k resistor , V1 =
Voltage across the 10 k resistor , V2 =
Current, I =
L1.17
3. Now using the DSO, measure the same voltages in the circuit:
Voltage across the 4.7 k resistor, V1 =
Voltage across the 10 k resistor, V2 =
4. Disconnect the DSO from the circuit.
5. Now earth the supply by connecting the common terminal (white) to earth
(green). Measure the voltages in the circuit using the DSO:
Voltage across the 4.7 k resistor, V1 =
Voltage across the 10 k resistor, V2 =
Explain the results by drawing circuit diagrams of the measurements,
showing the earthing connections.
L1.18
The reason is that when you connect the DSO earth to the point in between
the 4.7 k and 10 k resistors, you are earthing that point, and hence,
shorting out the 10 k resistor. You must always earth your circuit for
your own safety and to avoid damage to the lab equipment and / or your
circuit. When you do so, be careful when using a DSO or other earthed
equipment. A DSO always measures voltages with respect to EARTH.
To measure voltages across components in a circuit using a DSO, do one
of the following:
L1.19
Using Triple Supplies
The Mini-Lab also has a fixed 5 V supply to facilitate the powering of digital
integrated circuits (ICs). This fixed 5 V supply will occasionally be used, so
it is important to note that its output is with respect to earth, and not the
common of the dual power supply, as shown below:
blue
white
red
green
brown
earth
15 V
1A
15 V
1A
5V
3A
1. Draw the connections you would use to create a triple power supply that
provided +5 V, +10 V, and 10V, with all voltages measured with respect
to earth. Label the outputs, and show the various voltages.
blue
white
red
green
brown
earth
5V
2. Now confirm your connections by wiring the Mini-Lab and measuring the
voltages with the digital multimeter.
L1.20
Lab Assessment [2 marks]
When all lab work is completed, you will be asked by a tutor to:
1. Set up a 3 V p-p sinusoid at 3 kHz, with 3 V DC offset. Display the entire
waveform on the DSO with the 0 V reference set to the middle of the display on
Channel 1. Show only the AC component of the waveform on Channel 2. Use the
DSO Quick Meas feature to measure the average, peak-to-peak and RMS
values of the waveform on Channel 1.
2. Use the FG attenuation pushbuttons to apply 30 dB attenuation to the signal. Set
up the DSO to get a stable, noise-free (averaged) display.
3. Remove the attenuation and the DC offset and set the FG to 3 Hz. Apply the FG
signal to Channel 1 with DC coupling, and to Channel 2 with AC coupling.
Measure the phase difference.
4. Set up a triple power supply to provide +5 V, +10 V and +15 V with respect to
earth. Use the DSO to observe and measure each voltage.
Marking
Assessment item
Mark
Tutor Signature
/0.5
/0.5
/0.5
/0.5
TOTAL
/2
L2.1
Lab 2 Noninverting and Inverting Amplifiers
Noninverting amplifier. Inverting amplifier.
Introduction
The op-amp is the most versatile electronic building block. Circuits based on
the op-amp nearly always use a feedback configuration. Feedback has many
desirable properties, as we will see.
A noninverting amplifier uses a resistive negative feedback circuit around an
op-amp to achieve a gain with a precision determined by the resistors
(independent of the op-amp).
An inverting amplifiers gain is also determined by external resistors, except
the output is inverted compared to the input.
Objectives
1. To build and test a non-inverting amplifier.
2. To build and test an inverting amplifier.
Equipment
Op-amp 1 x TL071
Resistors 1 x 1 k, 1 x 10 k
Capacitors 2 x 10 F, 2 x 10 nF
Breadboard, Hook-up wire, 2 x 4mm leads.
L2.2
Safety
Cat. A lab
Warning!
Remember:
1. When wiring the circuits, ensure
that the power supply is
switched off.
2. It is very important to place the
polarised electrolytic capacitors
into the circuit with the correct
polarity.
Failure to do so will result in the
capacitor failing catastrophically
which may cause personal
injury. If this happens, you will
be awarded 0 marks for the lab
and asked to leave!
L2.3
Laboratory Preparation
We are going to be using several integrated circuits (ICs) in this and the
following labs. It is important to be able to recognise the standard pin-outs
of an IC. All ICs conform to a standard pin numbering scheme. There is
usually a notch or mark on one end of the chip. With the notch oriented to
the left, pin 1 is the first pin on the bottom of the package. The pins are
then numbered in a counter-clockwise direction. An example is shown
below for the TL071 op-amp used in this lab.
IC package details
Precautions should be taken to ensure that the power supply for the IC
never becomes reversed in polarity or that the IC is not inadvertently
installed backwards as an unlimited current surge through internal p-n
junctions could cause fusing of the internal conductors and result in a
destroyed IC.
It would be a good idea to plan the layout of all the circuits as they will
appear on your breadboard before you begin. This will minimise
construction time in the lab, and assist in debugging circuits that do not
appear to be working.
A pair of pliers, a pair of wire cutters and a pair of wire strippers would be
handy to wire a neat circuit; straighten bent leads; insert components into
the breadboard etc. If you have any of these tools, bring them to the lab!
L2.4
Noninverting Amplifier
Noninverting amplifiers have an extremely high input resistance, and a very
precise gain. The only disadvantage is that they can only produce a gain greater
than or equal to 1.
A noninverting amplifier is illustrated in the figure below:
Noninverting
amplifier
R2
R1
v2
v1
Figure L2.2
The closed-loop voltage gain is:
Av
v2
R
1 2
v1
R1
R2
v1
Av
Measured
Measured
Measured
Computed
v2
Computed
Measured
Measured
500 mVpp
Table L2.1
2. Using the measured resistances, compute the closed-loop gain of the
noninverting amplifier. The closed-loop gain equation is given above.
3. Calculate v2 using the computed closed-loop gain, and record the value in
Table L2.1.
L2.5
4. Connect the circuit shown in Figure L2.3. Note the polarity of the DC
supplys decoupling capacitors. Set the function generator for a 500 mVpp
sinusoidal wave at 1 kHz. The sinusoid should have no DC offset.
Noninverting
amplifier
R2
10 k
+15 V
10 nF
R1
10 F
6
TL071
1 k
v1
v2
10 F
4
vS
500 mVpp
1.0 kHz
-15 V
10 nF
Figure L2.3
5. Observe the input, v1 on channel 1 of the DSO and v2 on channel 2.
L2.6
Questions Noninverting Amplifier
1. Express the measured gain of the amplifier in dB.
Answer:
L2.7
Inverting Amplifier
Inverting amplifiers can produce any value of gain, but they invert the output
signal.
An inverting amplifier is illustrated in the figure below.
Inverting amplifier
R2
v1
R1
v2
Figure L2.4
The closed-loop voltage gain is:
Av
v2
R
2
v1
R1
R2
v1
Av
Measured
Measured
Measured
Computed
v2
Computed
v
Measured
500 mVpp
Table L2.2
2. Using the measured resistances, compute and record the closed-loop gain
of the inverting amplifier.
3. Calculate v2 using the computed closed-loop gain, and record the value in
Table L2.2.
Measured
L2.8
4. Connect the circuit shown in Figure L2.5. Set the function generator for a
500 mVpp sinusoidal wave at 1 kHz, with no DC offset.
Inverting amplifier
R2
10 k
+15 V
10 nF
v1
R1
1 k
vS
10 F
6
TL071
v2
10 F
500 mVpp
1.0 kHz
-15 V
10 nF
Figure L2.5
5. Measure the output voltage, v2 (note the 180 phase compared to v1 ).
Record the measured value in Table L2.2.
6. Measure the voltage at pin 2. This point should be at a virtual common
because of the effect of negative feedback. Record the measured value in
Table L2.2.
L2.9
Questions Inverting Amplifier
1. Express the measured gain of the amplifier in dB.
Answer:
2. What output would you expect if R2 were open?
Answer:
L2.10
Lab Assessment [2 marks]
When all lab work is completed, you will be asked by a tutor to:
1. Demonstrate the measurement of the gain, in dB, for the inverting amplifier
shown in Figure L2.5.
2. Draw a schematic diagram of a noninverting amplifier with a gain of +6.021 dB,
using only the components from the lab kit.
3. Explain the voltage measured at pin 2 of Figure L2.3.
4. In Figure L2.2, if R2 10 k and R1 , what is the gain?
Marking
Assessment item
Mark
Tutor Signature
/0.5
/0.5
/0.5
/0.5
TOTAL
/2
L3.1
Lab 3 Comparator, Integrator, Differentiator
Comparator. Integrator. Differentiator.
Introduction
A comparator uses the op-amp in an open-loop mode. For a very small input
voltage, the output will saturate close to one of the power supply voltages due
to the very large gain of the op-amp.
With a capacitor placed in the feedback path of an inverting amplifier, we can
make an integrator. A perfect integrator is hard to make due to limitations of
real op-amps, but we can make an integrator very close to the ideal.
By putting a capacitor on the input instead of in the feedback path, we can
make a differentiator. Both the integrator and differentiator have applications
in waveform generation and signal processing.
Objectives
1. To build and test several op-amp circuits, and to determine their responses
to several input signals.
Equipment
Op-amp 2 x TL071
Resistors 1 x 1 k, 1 x 5.1 k, 1 x 20 k, 2 x 100 k, 1 x 270 k
Potentiometer 1 x 10 k
Capacitors 2 x 10 F, 3 x 10 nF
Diodes 1 x green LED, 1 x red LED
Breadboard, Hook-up wire, 2 x 4mm leads.
L3.2
Safety
Cat. A lab
Warning!
Remember:
1. When wiring the circuits, ensure
that the power supply is
switched off.
2. It is very important to place the
polarised electrolytic capacitors
into the circuit with the correct
polarity.
Failure to do so will result in the
capacitor failing catastrophically
which may cause personal
injury. If this happens, you will
be awarded 0 marks for the lab
and asked to leave!
L3.3
Laboratory Preparation
For the TL071, pin 7 is connected to the positive supply and pin 4 is
connected to the negative supply.
The pin-out for an LED is given below. The cathode is marked by a flat
edge on the lens. New LEDs also have a shorter lead on the cathode.
LED package details
anode
cathode
Figure L3.2
It would be a good idea to plan the layout of all the circuits as they will
appear on your breadboard before you begin. This will minimise
construction time in the lab, and assist in debugging circuits that do not
appear to be working.
A pair of pliers, a pair of wire cutters and a pair of wire strippers would be
handy to wire a neat circuit; straighten bent leads; insert components into
the breadboard etc. If you have any of these tools, bring them to the lab!
L3.4
Comparator
A comparator is an example of a non-linear op-amp circuit. It is a switching
device that produces a high or low output, depending on which of the two
inputs is larger. A comparator is made from an op-amp with no feedback
connection (open-loop) as shown in Figure L3.3.
vo
positive saturation
vi
vo
vi
negative saturation
(a) circuit
When the non-inverting input is only slightly larger than the inverting input,
the output goes to positive saturation; otherwise it goes to negative saturation.
Although general purpose op-amps (like the TL071) can be used as
comparators, specially designed op-amps (like the LM311) can switch faster
and have additional features not found on general-purpose op-amps. For noncritical applications, general purpose op-amps are satisfactory and will be used
in this lab.
L3.5
In the Lab Comparator
1. Construct the comparator circuit shown in Figure L3.4. Note that the
power connections on this and remaining circuits in this lab are not
shown explicitly connect the TL071s power supply according to the
pin-out given in Figure L3.1. Use a 15 V supply. Make sure you add
10 F and 10 nF bypass capacitor from each DC supply to the common.
+15 V
R1
100 k
Vo1
potentiometer
R3
10 k
VREF 2
3
TL071
R4
1 k
R2
100 k
Vo2
Red
LED
Green
LED
-15 V
Figure L3.4
2. Vary the potentiometer. Measure the output voltages when the red LED is
on and then when the green LED is on. Record the output voltages, Vo1 and
Vo 2 , in Table L3.1.
Red ON
Vo1
Green ON
Vo 2
Vo1
Vo 2
VREF
Threshold
Table L3.1
3. Set the potentiometer to the threshold point (where one diode turns off and
the other turns on). Measure and record VREF at the threshold. It should be
very close to 0 V.
L3.6
Integrator and Differentiator
Two circuits which have applications in waveform generation and signal
processing are the integrator and differentiator.
An integrator produces an output voltage that is proportional to the integral
(sum) of the input voltage waveform over time.
A differentiator circuit produces an output that is proportional to the derivative
or rate of change of the input voltage over time.
Basic op-amp integrator and differentiator circuits are illustrated below.
C
R
v1
C
v2
v1
(a) integrator
v2
(b) differentiator
Figure L3.5
v2
1 t
v1dt
RC
dv1
dt
L3.7
In the Lab Integrator
1. We will test the effects of the comparator on a sinusoidal wave input and
add an integrating circuit to the output of the comparator. Connect the
circuit shown in Figure L3.6 with a 1 Vpp sine wave input at 1 kHz as
illustrated. Ensure that there is no DC offset in the FGs output.
C1
+15 V
10 nF
R6
R1
100 k
R3
10 k
R2
100 k
-15 V
270 k
VREF 2
3
TL071
R4
1 k
Red
LED
Green
LED
R5
20 k
3
TL071
vS
1 Vpp
1 kHz
Comparator
Integrator
Figure L3.6
B
vo
L3.8
2. Observe the waveforms from the comparator (point A) and from the
integrator (point B). Adjust R3 so that the waveform at B is centred about
0 V. Sketch the observed waveforms in the correct time relationship below.
Show the voltages and time on your plot.
Integrator input and
output waveforms
3. Vary R3 while observing the output of the comparator and the integrator.
4. For each of the faults listed in Table L3.2, see if you can predict the effect
on the circuit. Then apply the fault and check your prediction. At the end of
this step, restore the circuit to normal operation.
Fault
Symptoms
C1 open
R6 open
Table L3.2
L3.9
In the Lab Differentiator
1. Replace the integrator part of the previous circuit with the differentiator
shown below.
R6
5.1 k
A
from
comparator
R5
1 k
C1
10 nF
2
3
TL071
B
vo
Differentiator
Figure L3.7
2. Observe the input and output waveforms of the differentiator. Sketch the
observed waveforms below, showing the voltages and time.
Differentiator
waveforms
L3.10
Questions Integrator
L3.11
Lab Assessment [2 marks]
When all lab work is completed, you will be asked by a tutor to:
1. Show the integrator input and output waveforms.
2. Show the differentiator input and output waveforms.
3. Write down (do not solve) the differential equation governing the real integrator
shown in Figure L3.6 (using symbols, not numerical values).
4. If the output of the comparator of Figure L3.6 has a DC component, what effect
will be observed at the output of the integrator?
Marking
Assessment item
Mark
Tutor Signature
/0.5
/0.5
/0.5
/0.5
TOTAL
/2
L4.1
Lab 4 Summing Amplifier, Precision FWR
Summing amplifier. Precision full-wave rectifier.
Introduction
The op-amp is the most versatile electronic building block. Circuits based on
the op-amp nearly always use a feedback configuration. Feedback has many
desirable properties, as we will see.
One advantage of the inverting amplifier configuration is that it can readily be
converted to a summing amplifier. A summing amplifier can add multiple
signals together.
A precision half-wave rectifier removes the forward-drop of a diode through
the use of feedback, so we can rectify signals in the millivolt range. If we also
use a summing amplifier, then we can make a precision full-wave rectifier.
Objectives
1. To build and test a summing amplifier in the configuration of a 3-bit
digital-to-analog converter.
2. To build a precision full-wave rectifier.
Equipment
Op-amp 2 x TL071
Digital IC 1 x 74HC193 synchronous 4-bit up/down binary counter
Diodes 2 x 1N4148
Resistors 1 x 3.9 k, 1 x 5.1 k, 4 x 10 k, 1 x 20 k
Capacitors 2 x 10 F, 2 x 10 nF
Breadboard, Hook-up wire, 2 x 4mm leads.
L4.2
Safety
Cat. A lab
Warning!
Remember:
1. When wiring the circuits, ensure
that the power supply is
switched off.
2. It is very important to place the
polarised electrolytic capacitors
into the circuit with the correct
polarity.
Failure to do so will result in the
capacitor failing catastrophically
which may cause personal
injury. If this happens, you will
be awarded 0 marks for the lab
and asked to leave!
L4.3
Laboratory Preparation
For the TL071, pin 7 is connected to the positive supply and pin 4 is
connected to the negative supply.
Precautions should be taken to ensure that the power supply for the IC
never becomes reversed in polarity or that the IC is not inadvertently
installed backwards as an unlimited current surge through internal p-n
junctions could cause fusing of the internal conductors and result in a
destroyed IC.
It would be a good idea to plan the layout of all the circuits as they will
appear on your breadboard before you begin. This will minimise
construction time in the lab, and assist in debugging circuits that do not
appear to be working.
A pair of pliers, a pair of wire cutters and a pair of wire strippers would be
handy to wire a neat circuit; straighten bent leads; insert components into
the breadboard etc. If you have any of these tools, bring them to the lab!
L4.4
Summing Amplifier
The summing amplifier shown in Figure L4.2 is just a multiple input version of
an inverting amplifier. The current into the feedback resistor, R f , is the sum of
the currents in each input resistor. Since the inverting input is a virtual
v3
v2
v1
R3
R2
Rf
R1
vo
Figure L4.2
The output voltage is given by:
v
v
v
vo R f 1 2 3
R1 R2 R3
Listed Value
R1
20 k
R2
10 k
R3
5.1 k
Rf
3.9 k
Table L4.1
Measured Value
L4.5
2. The circuit shown in Figure L4.3 is a summing amplifier connected to the
outputs of a binary counter. The counter outputs are weighted differently
by resistors R1 through R3 , and added by the summing amplifier. The
resistors and summing amplifier form a basic D/A converter.
Step generator
(3-bit D/A)
15
+5 V
16
74HC193
A
R1
Rf
20 k
3.9 k
QA
QB
R2
10 k
10
9
+5 V
4
5
vs
QC
QD
D
DOWN
UP
CLR
LOAD
R3
5.1 k
3
7
14
TL071
vo
+5 V
11
0-5V
1 kHz
Figure L4.3
The input to the 74HC193 is a digital logic clock (approximately 0 to 5V)
at 1 kHz from the function generator. Set up this waveform carefully
using the DSO before connecting it to the circuit.
3. Construct the circuit, using a 15 V supply for the op-amp. Note that the
74HC193 counter is powered from a +5 V supply. The common of the
+5 V supply must be connected to the common of the 15 V op-amp
supply.
L4.6
4.
Observe vo from the TL071 (trigger the DSO from channel 2, and set the
mode to Auto Level). You should observe a series of steps. Sketch the
output below. Label the voltage and time on your plot.
Step generator
(D/A) waveforms
5. To see how the steps are formed, observe the Q A , QB , and QC outputs
from the 74HC193. To see the correct time relationship between the
signals, keep channel 2 in place while moving the channel 1 probe. Sketch
the waveforms in the correct relation below.
Summing amplifier
input waveforms
L4.7
Questions Summing Amplifier
1. The step generator in Figure L4.3 forms negative falling steps starting at
zero volts and going to a negative voltage (approximately 6.64 V).
Explain why.
Answer:
How could you modify the circuit to produce positive, rising steps at the
output?
L4.8
2. Assume you have a function generator that does not have a DC offset
control. Show how you could use a summing amplifier to add or subtract a
DC offset from the output.
Answer:
L4.9
Precision Full-Wave Rectifier
A precision inverting half-wave rectifier is shown in Figure L4.4. The circuit
can be recognised as an inverting amplifier with a diode, D2 , added to the
feedback path. When this diode is forward-biased, it closes the feedback loop,
and the output is given by:
v2
R2
v1 , v1 0
R1
R2
v2
v1
D1
R1
D2
Figure L4.4
By combining the inverting half-wave rectifier with a summing amplifier, a
precision full-wave rectifier can be constructed, as shown below.
R4
R2
R5
R3
vo
v1
R1
D1
D2
Figure L4.5
Electronics and Circuits 2015
L4.10
In the Lab Precision Full-Wave Rectifier
1. Construct the following circuit.
R4
R5
10 k
10 k
R1
R2
R3
10 k
vs
5 Vpp
1 kHz
10 k
D1
1N4148
5.1 k
D2
1N4148
2
3
TL071
TL071
vo
Figure L4.6
1. Sketch the waveforms at the left side of R3 and R4 (inputs to the summing
amplifier) and vo .
Summing amplifier
input and output
waveforms for a
precision full-wave
rectifier
L4.11
Questions Precision Full-Wave Rectifier
1. The gain for the summing amplifier in Figure L4.6 is not the same for both
inputs. Explain why.
Answer:
2. What would be the output of the circuit if D1 were removed? Explain why.
Answer:
L4.12
Lab Assessment [2 marks]
When all lab work is completed, you will be asked by a tutor to:
1. Show the step generator (D/A) waveforms.
2. Draw the schematic of a circuit that adds or subtracts a DC offset to a signal.
3. Sketch the output of the circuit shown in Figure L4.6 if D1 were removed.
4. Draw the schematic of a precision non-inverting half-wave rectifier with transfer
characteristic:
vo
1
1
vi
Marking
Assessment item
Mark
Tutor Signature
/0.5
/0.5
/0.5
/0.5
TOTAL
/2
L5.1
Lab 5 Op-Amp Limitations
Op-amp limitations. Output voltage swing. Output current limiting. Input offset
voltage. Input bias and offset currents. Slew rate limiting. Gain-bandwidth
product.
Introduction
Real operational amplifiers do not exhibit the ideal characteristics assumed in
the first-order analysis of op-amp circuits: infinite gain, infinite input
impedance, zero output impedance, infinite bandwidth, zero output signal for
zero input signal, etc. Some of the basic imperfections and limitations of real
op-amps are expressed as:
L5.2
Although no op-amp is ideal, modern processing techniques yield devices that
come close, at least in some parameters. This is by design. In fact, different opamps are optimized to be close to ideal for some parameters, while other
parameters for the same op-amp may be quite ordinary (some parameters can
be improved, but only at the expense of others). It is the designers function to
select the op-amp that is closest to ideal in ways that matter to the application,
and to know which parameters can be discounted or ignored.
For this reason, it is very important to understand the specifications and to
compare the limitations of the different commercially available op-amps, in
order to select the right op-amp for a specific application.
Objectives
1. To examine some of the limitations of real operational amplifiers.
Equipment
Op-amp 1 x TL071
Resistors 1 x 390 , 2 x 1 k, 1 x 2.2 k, 1 x 4.7 k, 3 x 10 k
1 x 100 k, 1 x 1 M
Capacitor 2 x 10 nF, 2 x 10 F
Breadboard, Hook-up wire, 2 x 4mm leads.
Note
Quality!!!
L5.3
Safety
This is a Category A laboratory experiment. Please adhere to the Category A
Cat. A lab
Remember:
Warning!
L5.4
Lab Work
You will operate the op-amp at the extremes of its performance to witness
some of the limitations of a real op-amp.
Output Voltage Swing
1. Connect the circuit shown in Figure L5.1, with VCC 10 V and
VEE 10 V , and no load resistor. Note that decoupling capacitors are not
shown in the circuit, but they should be present as usual. Set the function
generator for a 500 mVpp sinusoidal wave at 500 Hz .
Noninverting
amplifier for output
testing
R2
10 k
VCC
R1
1 k
v1
7
TL071
4
vS
500 mVpp
500 Hz
v2
RL
VEE
L5.5
3. Starting from an input amplitude of 500 mVpp , increase the function
generator amplitude slowly until clipping occurs. Use the DSO cursors to
record the maximum and minimum output voltage in the table below.
Repeat with a load resistor of RL 2.2 k .
Maximum Output Voltage
Power Supply
No load resistor
RL 2.2 k
VCC 10 V v2 max
v2 max
VEE 10 V v2 min
v2 min
VCC 15 V v2 max
v2 max
VEE 15 V
v2 min
v2 min
4. With a load resistor of RL 2.2 k and the source set to 3 Vpp , draw the
output (Ch 2) waveform, ensuring that the sketch is labelled with voltage
and time scales:
L5.6
Output Current Limiting
1. Using the same circuit, with the DC supplies set to VCC 15 V and
VEE 15 V , change the load resistor to R L 390 . Start with a small
input signal, and increase the amplitude until distortion is observed on the
output waveform.
2. Use the DSO cursors to record the measured values in the table below:
Maximum Output
Voltage
Current
v2 max
i2 max v2 max RL
3. With the source set to 3 Vpp , draw the input (Ch1) and output (Ch 2)
waveforms, ensuring that the sketch is labelled with voltage and time
scales:
L5.7
Slew Rate Limiting
R2
10 k
+15 V
R1
1 k
v1
7
TL071
v2
4
vS
4 Vpp
500 Hz
-15 V
L5.8
4. Due to the high frequency of the rising edge of the square wave, we need
to ensure that the signal gets through the DSOs trigger path. Press
Main/Delayed , and ensure that HF Reject is off.
v1
(input)
v2
(output)
v
t
v
Slew rate = t
SR
t
Electronics and Circuits 2015
L5.9
9. Set R2 0 to make a unity-gain buffer.
10. Change the input to a sinusoid with 10 Vpp , and increase the frequency
until a visually noticeable distortion is observed on the output waveform
(i.e. the output is starting to deviate from an ideal sinusoid it eventually
turns into a triangle if the frequency is high enough).
11. Draw the input and output (Ch 1 and Ch 2) waveforms, ensuring that the
sketch is labelled with voltage and time scales:
12. Record the frequency at which distortion occurs, and the output amplitude:
Frequency
Voltage Magnitude
v2 max
13. Calculate the slew rate from the above measurements, in units of V / s .
SR 2 f v2 max
L5.10
Input Offset Voltage
The input offset voltage, VOS , is a DC voltage which must be applied to the opamps noninverting input terminal to drive the output voltage to 0 V. The input
offset voltage arises as a result of the unavoidable mismatches present in the
input transistors (in the input differential stage) inside the op-amp.
1. Measure with the digital multimeter and write down the exact values of the
resistors to be used in the circuit:
Resistor
Listed Value
R1
10 k
R2
1.0 M
Measured Value
Table L5.1
R2
1 M
R1
10 k
3
TL071
V2
V2
4. Calculate the input offset voltage:
VOS V2 1 R2 R1
Electronics and Circuits 2015
L5.11
Gain-Bandwidth Product
|A| (dB)
A0
-20 dB/decade
G
fb
ft
f (Hz)
log scale
ft
f
The frequency f t where the op-amp has a gain of 1 (or 0 dB) is known as
the unity-gain bandwidth. Datasheets of internally compensated op-amps
normally call f t the gain-bandwidth product, since:
f t A0 f b
The noninverting amplifier configuration exhibits a constant gainbandwidth product equal to f t of the op-amp. Thus, you can easily
determine the bandwidth, B, of a non-inverting amplifier with a gain, G,
since the gain-bandwidth product is a constant:
GB f t constant
Electronics and Circuits 2015
L5.12
1. Connect the circuit shown in Figure L5.4, with the feedback resistor set to
R2 10 k to make a non-inverting amplifier with a nominal gain of 11.
R2
+15 V
R1
1 k
R3
v1 3
TL071
4.7 k
vS
v2
1 k
R4
-15 V
2. Measure the output of the FG on Channel 1 and set up the DSO trigger for
Noise Rej to ensure a stable trigger.
L5.13
4. To measure the gain-bandwidth product, a very small signal must be used
to avoid slew rate limitations. Adjust the function generator for a 100 mVpp
sine wave at the noninverting terminal ( v1 ) of the op-amp at a frequency of
1 kHz . Measure the output voltage and record the gain in Table L5.2.
5. Increase the frequency until the output amplitude falls to 70.7% of the
Step
Computed
Gain
(V/V)
4, 5
11
31
101
Measured
Gain
Closed-loop
Bandwidth
GainBandwidth
product
GB
(V/V)
(Hz)
(Hz)
Table L5.2
L5.14
Op-Amp Limitations Summary
In the following table, record the parameter values as specified by the TL071
datasheet, as well as the parameter values that your particular op-amp
possesses based on your experimental results.
Parameter
Datasheet
(typical value)
Slew Rate
Gain-Bandwidth Product
Table L5.3
Experimental
L5.15
Lab Assessment [2 marks]
When all lab work is completed, you will be asked by a tutor to:
1. Show the result of the peak output voltage of the circuit in Figure L5.1 with a
load resistance of RL 2.2 k and a supply of 15 V, and compare with the
datasheet. Determine the maximum output current of the op-amp you used before
distortion occurred, and compare with the datasheet.
2. Determine the slew rate of the op-amp you used, and compare with the datasheet.
3. Determine the input offset voltage of the op-amp you used, and compare with the
datasheet.
4. Determine the gain-bandwidth product of the op-amp you used, and compare
with the datasheet.
Marking
Assessment item
Mark
Tutor Signature
/0.5
/0.5
/0.5
/0.5
TOTAL
/2
TL071
Low noise JFET single operational amplifier
Features
N
DIP8
(Plastic package)
D
SO-8
(Plastic micropackage)
Description
Pin connections
(Top view)
1 - Offset null 1
2 - Inverting input
3 - Non-inverting input
4 - VCC5 - Offset null 2
6 - Output
7 - VCC+
8 - N.C.
September 2008
Rev 3
1/15
www.st.com
15
Schematic diagram
TL071
Schematic diagram
Figure 1.
Circuit schematics
V CC
Non-inverting
input
Inverting
input
100
200
Output
30k
100
8.2k
1.3k
35k
1.3k
35k
100
V CC
Offset Null1
Figure 2.
Offset Null2
TL071
N2
N1
100k
V CC
2/15
Electrical characteristics
TL071
Electrical characteristics
Table 3.
Symbol
Parameter
TL071I,M,AC,AI,AM,
BC,BI,BM
Min.
Vio
Typ.
Max.
3
3
1
10
6
3
13
7
5
TL071C
Unit
Min.
Typ.
Max.
10
mV
13
V/C
10
Iio
100
4
100
10
pA
nA
Iib
20
200
20
20
200
20
pA
nA
Avd
50
25
200
25
15
200
V/mV
SVR
80
80
86
70
70
86
dB
DVio
ICC
Vicm
CMR
Ios
Vopp
SR
4/15
1.4
10
2.5
2.5
1.4
2.5
2.5
mA
11
+15
-12
11
+15
-12
80
80
86
70
70
86
dB
10
10
40
10
10
40
10
12
10
12
12
13.5
10
12
10
12
12
13.5
16
16
V/s
RL = 2k
RL = 10k
RL = 2k
RL = 10k
Slew rate
Vin = 10V, RL = 2k, CL = 100pF, unity gain
60
60
60
60
mA
TL071
Table 3.
Electrical characteristics
VCC = 15V, Tamb = +25C (unless otherwise specified) (continued)
Symbol
Parameter
TL071I,M,AC,AI,AM,
BC,BI,BM
Min.
Typ.
Max.
TL071C
Unit
Min.
Typ.
Max.
tr
Rise time
Vin = 20mV, RL = 2k, CL = 100pF, unity gain
0.1
0.1
Kov
Overshoot
Vin = 20mV, RL = 2k, CL = 100pF, unity gain
10
10
GBP
MHz
Ri
THD
en
m
2.5
2.5
Input resistance
1012
1012
0.01
0.01
15
15
nV
-----------Hz
Phase margin
45
45
degrees
1. The input bias currents are junction leakage currents which approximately double for every 10C increase in the junction
temperature.
5/15
L6.1
Lab 6 First-Order RC Circuits
First-order RC circuits. Step response. Frequency response.
Introduction
A first-order network, also known as a single-time-constant (STC) network, is
one that is composed of, or can be reduced to, one reactive component
(capacitance or inductance) and one resistance. Some examples are shown
below:
Lowpass
RC Circuit
RL Circuit
vi
vo
vi
(a)
(b)
C
Highpass
vi
vo
R
R
vo
vi
vo
(d)
(c)
Table L6.1
Most first-order circuits can be classified into two categories, lowpass (LP) and
highpass (HP), with each of the two categories displaying distinctly different
signal responses (there is a third category called allpass).
L6.2
As an example, the first-order circuit shown in Table L6.1 (a) is of the lowpass
type and that in Table L6.1 (b) is of the highpass type. To see the reasoning
behind this classification, observe that the frequency response of each of these
two circuits can be expressed as a voltage-divider ratio, with the divider
composed of a resistor and a capacitor. Now, recalling how the impedance of a
capacitor varies with frequency ( Z 1 jC ) it is easy to see that the voltage
output of the circuit in Table L6.1 (a) will decrease with frequency and
approach zero as approaches . Thus the circuit of Table L6.1 (a) acts as a
lowpass filter; it passes low-frequency sine-wave inputs with little or no
attenuation and attenuates high-frequency input sinusoids. The circuit of
Table L6.1 (b) does the opposite; the voltage output is unity at and
decreases as is reduced, approaching 0 for 0 . The latter circuit,
therefore, performs as a highpass filter.
RC circuits such as those in Table L6.1 (a) and (c) are commonly used in
electronics to provide timing functions. In these applications the circuit's
step response is of interest.
RC networks are also used as simple filters . The circuit in Table L6.1 (a) is a
lowpass filter which may be used to extract an audio signal (20 Hz to 20 kHz
band) from a higher frequency carrier signal (1 MHz band used in AM
broadcasting). The circuit of Table L6.1 (c) is a highpass filter. One application
of such a filter is on the inputs to an oscilloscope (the filter is in place when the
input is AC coupled). When used as a filter, a circuit's frequency response
provides the necessary characterization for the circuit.
RL circuits are less commonly used in electronics because the inductors are
more bulky than capacitors and more expensive since they are wound coils. RL
circuits do have applications in power circuits such as power line filters and
switch-mode power supplies but are most frequently found in electromechanical applications such as relays and electric motors. As with RC
circuits, both the step and frequency responses are required depending on the
application.
L6.3
Objectives
1. To investigate the step response of a lowpass RC first-order circuit.
2. To investigate the frequency response of a lowpass RC first-order circuit.
Equipment
Note
Quality!!!
Safety
This is a Category A laboratory experiment. Please adhere to the Category A
safety guidelines (issued separately).
Cat. A lab
L6.4
Pre-Lab Work
Lowpass RC First-Order Circuit
Step Response
1. The circuit shown below is an a zero-state, vo 0 0 V :
Lowpass RC firstorder circuit
R
i
vi
vo
Figure L6.1
Derive an expression for the unit-step response of the circuit, v0 t .
T
Electronics and Circuits 2015
L6.5
3. From the expression for the unit-step response, derive an expression for the
current through the capacitor, i t .
vo
(V)
1.0
0.8
0.6
0.4
0.2
10
20
30
40
50
60
t (s)
70
80
90
100
L6.6
5. The step response derived in 4 assumes zero initial conditions. If the input
voltage is a square wave (-1 V to 1 V), the response to each half cycle of
the input will be influenced by the response to the previous half cycle. The
initial conditions will NOT be zero. If the period of the input is T0 10T ,
derive an expression for the response in the first half-cycle under steadystate conditions.
Hint: What will the initial condition be for each positive half cycle?
L6.7
6. How do the above initial conditions affect the response of the circuit?
vo
(V)
0.5
0.0
-0.5
-1.0
-1.5
-2.0
t /T
10
L6.8
Frequency Response
1. For the circuit:
Lowpass RC firstorder circuit
R
1
Vi
j C
Vo
Figure L6.2
derive the frequency response:
H j
Vo
,
Vi
(L6.1)
L6.9
2. By comparing the frequency response of the circuit in Figure L6.2 with the
standard form of a first-order lowpass frequency response:
H j
(L6.2)
K
,
1 j 0
0
3. Let C 10 nF and R 390 then R 1.8 k , and complete the
following table:
Frequency
f
(kHz)
Frequency
( krads-1 )
Gain
Gain
Vo
Vi
Vo
Vi
(dB)
R 390
R 1.8 k
Phase
V
o
Vi
()
20 log10
(V/V)
R 390 R 1.8 k
R 390
R 1.8 k
0.1
0.6283
1.000
1.000
0.0000
-0.0006
-0.1
-0.6
0.2
1.257
1.000
0.9997
-0.0001
-0.0022
-0.3
-1.3
0.5
3.142
1.000
0.9984
-0.0007
-0.0139
-0.7
-3.2
6.283
0.9997
0.9937
-0.0026
-0.0552
-1.4
-6.5
12.57
0.9988
0.9754
-0.0104
-0.2167
-2.8
-12.7
31.42
10
62.83
0.9713
0.6624
-0.2533
-3.578
-13.8
-48.5
20
125.7
0.8980
0.4043
-0.9349
-7.865
-26.1
-66.1
50
314.2
100
628.3
0.3778
0.08808
-8.454
-21.10
-67.8
-84.9
200
1257
0.1999
0.04417
-13.98
-27.10
-78.5
-87.5
500
3142
0.08135
0.01768
-21.79
-35.05
-85.3
-89.0
1000
6283
0.04078
0.008842
-27.79
-41.07
-87.7
-89.5
Table L6.2
L6.10
4. Plot the gain and phase values from Table L6.2 on the Bode plot below:
10
5
0
-5
-10
|H( ) | -15
(dB) -20
-25
-30
-35
-40 2
10
10
10
f (Hz)
10
10
0
-10
-20
-30
H( ) -40
()
-50
-60
-70
-80
-90 2
10
10
10
f (Hz)
Electronics and Circuits 2015
10
10
L6.11
Lowpass Op-Amp Filter
R2
C2
vi
R1
vo
Figure L6.3
Vo
,
Vi
(L6.3)
L6.12
2. Design a first-order lowpass op-amp filter that has a DC gain magnitude of
5 V/V and a cutoff frequency of 3.183 kHz. Make sure your design uses
components with practical sizes.
Magnitude
10 Hz to 100 kHz
-20 dB to 20 dB
Phase
10 Hz to 100 kHz
90 to 180
L6.13
Lab Work
Lowpass RC First-Order Circuit
Step Response
DSO
Ch 1
FG
2 Vpp
5 kHz
DSO
Ch 2
vi
10 nF
vo
Figure L6.4
frequency of 5 kHz.
2. Connect the input to Channel 1 of the DSO and the output to Channel 2 of
the DSO.
3. Press Main/Delayed . Change the Time Ref softkey to Left. This will
facilitate sketching the step-response.
4. Set the DSO horizontal time base to 10 s / div.
5. Set Channel 1 and Channel 2 to 500 mV/div.
6. Ensure that bandwidth limiting is used for both Channels 1 and 2.
L6.14
7. Draw the input and output (Ch 1 and Ch 2) waveforms, ensuring that the
sketch is labelled with voltage and time scales.
8. On the 100 kHz range, sweep the frequency slowly from 5 kHz to 25 kHz,
and observe how the output changes.
9. Draw the input and output waveforms at 25 kHz, ensuring that the sketch is
labelled with voltage and time scales.
10. Change the resistor to R 1.8 k , and reduce the frequency to 5 kHz.
11. Repeat steps 7 to 9.
Electronics and Circuits 2015
L6.15
Frequency Response
DSO
Ch 1
FG
2 Vpp
vi
DSO
Ch 2
R
C
10 nF
vo
Figure L6.5
frequency response
of a circuit is
conducted with a
sine wave!
L6.16
4. Complete the following table:
Desired
Frequency
f desired
(kHz)
Actual
Frequency
f actual
(kHz)
Gain
Gain
Vo
Vi
Vo
Vi
(dB)
20 log10
(V/V)
R 390
R 1.8 k
R 390
R 1.8 k
Phase
V
o
Vi
()
R 390 R 1.8 k
0.1
0.2
0.5
1
2
5
10
20
50
100
200
500
1000
Table L6.3
Gain
Gain
Vo
Vi
Vo
Vi
(dB)
20 log10
(V/V)
R 390
R 1.8 k
Table L6.4
Phase
V
o
Vi
()
L6.17
7. Plot the gain and phase values from Table L6.3 on the Bode plot below:
10
5
0
-5
-10
|H( ) | -15
(dB) -20
-25
-30
-35
-40 2
10
10
10
f (Hz)
10
10
0
-10
-20
-30
H( ) -40
()
-50
-60
-70
-80
-90 2
10
10
10
f (Hz)
Electronics and Circuits 2015
10
10
L6.18
Questions Lowpass Frequency Response
1. What is the relationship between the cutoff frequency and the time
constant?
Answer:
2. At what rate does the response fall off at high frequencies? (Draw an
asymptote on your graph and measure its slope).
Answer:
L6.19
Lowpass Op-Amp Filter
1. In the pre-lab work, you designed a first-order lowpass op-amp filter with a
DC gain magnitude of 5 and a cutoff frequency of 3.183 kHz. Build it.
2. Complete the following table:
Desired
Frequency
f desired
(kHz)
Actual
Frequency
f actual
(kHz)
Gain
Gain
Vo
Vi
Phase
V
o
Vi
()
Vo
Vi
(dB)
20 log10
(V/V)
0.1
0.2
0.5
1
2
5
10
20
50
100
Table L6.5
Gain
Vo
Vi
Gain
Vo
Vi
(dB)
20 log10
(V/V)
Phase
V
o
Vi
()
Table L6.6
L6.20
5. Plot the gain and phase values from Table L6.5 on the Bode plot below:
20
15
10
|H( ) | 5
(dB)
0
-5
-10
-15
-20
2
10
10
10
10
f (Hz)
180
170
160
150
H( ) 140
()
130
120
110
100
90 2
10
10
10
f (Hz)
10
L6.21
Lab Assessment [2 marks]
When all lab work is completed, you will be asked by a tutor to:
1. Show the result of the pre-lab work, Step Response section, step 3.
2. Show the result of the pre-lab work, Lowpass Op-Amp Filter section, step 4.
3. Demonstrate the measurement of the time constant of a lowpass STC RC circuit
using the step response (use R 1.8 k , C 10 nF ).
4. Demonstrate the measurement of the cutoff frequency of a first-order lowpass opamp filter using the frequency response.
Marking
Assessment item
Mark
Tutor Signature
/0.5
/0.5
/0.5
/0.5
TOTAL
/2
L7.1
Lab 7 First-Order RL Circuits
First-order RL circuits. Step response. Frequency response. Real inductors.
Introduction
A first-order network, also known as a single-time-constant (STC) network, is
one that is composed of, or can be reduced to, one reactive component
(capacitance or inductance) and one resistance. Some examples are shown
below:
Lowpass
RC Circuit
RL Circuit
vi
vo
vi
(a)
(b)
C
Highpass
vi
vo
R
R
vo
vi
vo
(d)
(c)
Table L7.1
Most first-order circuits can be classified into two categories, lowpass (LP) and
highpass (HP), with each of the two categories displaying distinctly different
signal responses (there is a third category called allpass).
L7.2
As an example, the first-order circuit shown in Table L7.1 (a) is of the lowpass
type and that in Table L7.1 (b) is of the highpass type. To see the reasoning
behind this classification, observe that the frequency response of each of these
two circuits can be expressed as a voltage-divider ratio, with the divider
composed of a resistor and a capacitor. Now, recalling how the impedance of a
capacitor varies with frequency ( Z 1 jC ) it is easy to see that the voltage
output of the circuit in Table L7.1 (a) will decrease with frequency and
approach zero as approaches . Thus the circuit of Table L7.1 (a) acts as a
lowpass filter; it passes low-frequency sine-wave inputs with little or no
attenuation and attenuates high-frequency input sinusoids. The circuit of
Table L7.1 (b) does the opposite; the voltage output is unity at and
decreases as is reduced, approaching 0 for 0 . The latter circuit,
therefore, performs as a highpass filter.
RC circuits such as those in Table L7.1 (a) and (c) are commonly used in
electronics to provide timing functions. In these applications the circuit's
step response is of interest.
RC networks are also used as simple filters . The circuit in Table L7.1 (a) is a
lowpass filter which may be used to extract an audio signal (20 Hz to 20kHz
band) from a higher frequency carrier signal (1 MHz band used in AM
broadcasting). The circuit of Table L7.1 (c) is a highpass filter. One application
of such a filter is on the inputs to an oscilloscope (the filter is in place when the
input is AC coupled). When used as a filter, a circuit's frequency response
provides the necessary characterization for the circuit.
RL circuits are less commonly used in electronics because the inductors are
more bulky than capacitors and more expensive since they are wound coils. RL
circuits do have applications in power circuits such as power line filters and
switch-mode power supplies but are most frequently found in electromechanical applications such as relays and electric motors. As with RC
circuits, both the step and frequency responses are required depending on the
application.
L7.3
Objectives
1. To investigate the step response of a highpass RL first-order circuit.
2. To investigate the frequency response of a highpass RL first-order circuit.
Equipment
Note
Quality!!!
Safety
This is a Category A laboratory experiment. Please adhere to the Category A
safety guidelines (issued separately).
Cat. A lab
L7.4
Pre-Lab Work
Highpass RL First-Order Circuit Ideal Inductor
Step Response
1. The circuit shown below is an a zero-state, i 0 0 A :
Highpass RL firstorder circuit
R
i
vi
vo
Figure L7.1
Derive an expression for the unit-step response of the circuit, v0 t .
L7.5
2. What is the time constant for this circuit in terms of R and L?
T
3. From the expression for the unit-step response, derive an expression for the
current through the inductor, i t .
vo
(V)
1.0
0.8
0.6
0.4
0.2
10
20
30
40
50
60
t (s)
Electronics and Circuits 2015
70
80
90
100
L7.6
5. The step response derived in 4 assumes zero initial conditions. If the input
voltage is a square wave (-1 V to 1 V), the response to each half cycle of
the input will be influenced by the response to the previous half cycle. The
initial conditions will NOT be zero. If the period of the input is T0 10T ,
derive an expression for the response in the first half-cycle under steadystate conditions.
Hint: What will the initial condition be for each positive half cycle?
L7.7
6. How do the above initial conditions affect the response of the circuit?
vo
(V)
0.5
0.0
-0.5
-1.0
-1.5
-2.0
t /T
10
L7.8
Frequency Response
Vi
j L
Vo
Figure L7.2
Vo
,
Vi
(L7.1)
L7.9
2. By comparing the frequency response of the circuit in Figure L7.2 with the
standard form of a first-order highpass frequency response:
H j K
j 0 ,
1 j 0
(L7.2)
0
3. Let L 680 H and R 130 then R 33 , and complete the
following table:
Frequency
f
(kHz)
Frequency
( krads-1 )
Gain
Gain
Vo
Vi
Vo
Vi
(dB)
R 130
R 33
Phase
V
o
Vi
()
20 log10
(V/V)
R 130
R 33
R 130
R 33
0.1
0.6283
0.0033
0.0129
-49.67
-37.76
89.8
89.3
0.2
1.257
0.0066
0.0259
-43.65
-31.74
89.6
88.5
0.5
3.142
0.0164
0.0646
-35.69
-23.80
89.1
86.3
6.283
0.0328
0.1284
-29.67
-17.83
88.1
82.6
12.57
0.0656
0.2507
-23.66
-12.02
86.2
75.5
31.42
0.1622
0.5434
-15.80
-5.297
80.7
57.1
10
62.83
20
125.7
0.5493
0.9329
-5.204
-0.6037
56.7
21.1
50
314.2
100
628.3
0.9567
0.9970
-0.3845
-0.0258
16.9
4.4
200
1257
0.9886
0.9993
-0.0994
-0.0065
8.7
2.2
500
3142
0.9982
0.9999
-0.0161
-0.0010
3.5
0.9
1000
6283
0.9995
1.0000
-0.0040
-0.0003
1.7
0.4
Table L7.2
L7.10
4. Plot the gain and phase values from Table L7.2 on the Bode plot below:
10
5
0
-5
-10
|H( ) | -15
(dB) -20
-25
-30
-35
-40 2
10
10
10
f (Hz)
10
10
90
80
70
60
H( )
()
50
40
30
20
10
0 2
10
10
10
f (Hz)
Electronics and Circuits 2015
10
10
L7.11
Real Inductors
An inductor is made by winding a coil of wire on a former:
A real inductor
Figure L7.3
The wire used to wind the coil may have a considerable resistance if there are
many turns of small diameter wire. In this case the inductor model used in the
previous circuit is inadequate. A better model is shown below:
Real inductors
L
real
model
RL
L
ideal
Figure L7.4
Note that the resistance and inductance cannot be separated they are just the
ideal model components of a real inductor. The model resistance of the
inductor can be measured with a multimeter since the resistance of the model
inductance component is zero.
L7.12
Highpass RL First-Order Circuit Real Inductor
Step Response
R
i
RL
vi
vo
L
Figure L7.5
L7.13
2. What is the time constant for this circuit in terms of R, RL and L?
T
3. From the expression for the unit-step response, derive an expression for the
current through the inductor, i t .
vo
(V)
1.0
0.8
0.6
0.4
0.2
10
20
30
40
50
60
t (s)
70
80
90
100
L7.14
5. The step response derived in 4 assumes zero initial conditions. If the input
voltage is a square wave (-1 V to 1 V), the response to each half cycle of
the input will be influenced by the response to the previous half cycle. The
initial conditions will NOT be zero. If the period of the input is T0 10T ,
derive an expression for the response in the first half-cycle under steadystate conditions.
Hint: What will the initial condition be for each positive half cycle?
L7.15
6. If R L R 10 , sketch the circuits response to a 2 Vp-p square wave, of
period 10T .
2.0
1.5
1.0
vo
(V)
0.5
0.0
-0.5
-1.0
-1.5
-2.0
t /T
7. How is this different to the ideal inductor step response?
10
L7.16
Frequency Response
R
RL
Vi
Vo
jL
Figure L7.6
Vo
,
Vi
(L7.3)
L7.17
2. How is this different to the ideal inductor frequency response?
Frequency
( krads-1 )
Gain
Gain
Vo
Vi
Vo
Vi
(dB)
R 130
R 33
Phase
V
o
Vi
()
20 log10
(V/V)
R 130
R 33
R 130
R 33
0.1
0.6283
0.0199
0.0740
-34.04
-22.61
9.1
8.6
0.2
1.257
0.0206
0.0769
-33.71
-22.29
17.8
16.8
0.5
3.141
0.0254
0.0944
-31.91
-20.51
38.5
36.0
6.283
0.0377
0.1395
-28.47
-17.11
56.8
51.8
12.57
0.0672
0.2440
-23.45
-12.25
69.4
59.6
31.41
0.1602
0.5183
-15.91
-5.708
73.9
52.1
10
62.83
20
125.7
0.5419
0.9235
-5.321
-0.6911
55.5
20.9
50
314.1
100
628.3
0.9551
0.9966
-0.3992
-0.0299
16.9
4.4
200
1257
0.9882
0.9991
-0.1033
-0.0075
8.6
2.2
500
3141
0.9981
0.9999
-0.0167
-0.0001
3.5
0.9
1000
6283
0.9995
1.0000
-0.0042
0.0000
1.7
0.4
Table L7.3
L7.18
4. Plot the gain and phase values from Table L7.3 on the Bode plot below:
10
5
0
-5
-10
|H( ) | -15
(dB) -20
-25
-30
-35
-40 2
10
10
10
f (Hz)
10
10
90
80
70
60
H( )
()
50
40
30
20
10
0 2
10
10
10
f (Hz)
Electronics and Circuits 2015
10
10
L7.19
Circuit Simulation
R
RL
vi
vo
L
Figure L7.7
0 s to 100 s
0 V to 2 V
Magnitude
100 Hz to 1 MHz
-40 dB to 10 dB
Phase
100 Hz to 1 MHz
0 to 90
Step
L7.20
Lab Work
Highpass RL First-Order Circuit Real Inductor
Mini-Lab Amplifier Setup
The RL circuit, when subjected to a step input, requires a fairly large current to
be delivered from the input in a short span of time. The function generator has
an output resistance of 50 and so the output will therefore experience a
significant internal Ri voltage drop, resulting in a droop in the applied
voltage when delivering current. We therefore need to buffer the output of
the function generator. The Mini-lab provides us with a way to do this.
1. Identify the section under the power switch labelled AMPLIFIER
OR
GEN)
an amplifier.
5. Ensure that the knob is fully rotated counter-clockwise to select a gain of
X 1.
6. With these settings the buffered output of the function generator can be
taken directly from the red output terminal.
L7.21
Step Response
1. Using the DMM, measure and record the DC series equivalent resistance of
your inductor:
RL
2. Construct the following circuit, using R 130 :
DSO
Ch 1
1
FG
2 Vpp
5 kHz
DSO
Ch 2
buffer
RL
vi
vo
real
680 H
inductor
680 H
Figure L7.8
frequency of 5 kHz. Note that the output of the Mini-lab amplifier is the circuit is conducted
buffered function generator.
3. Connect the input to Channel 1 of the DSO and the output to Channel 2 of
the DSO.
4. Press Main/Delayed . Change the Time Ref softkey to Left. This
will facilitate sketching the step-response.
5. Set the DSO horizontal time base to 10 s / div.
6. Set Channel 1 to 2 V/div with a position of -5.000 V. This will put the
input waveform at the top of the DSO display.
Electronics and Circuits 2015
L7.22
7. Set Channel 2 to 1 V/div with a position of 0.000 V. This will put the
output waveform in the middle of the DSO display.
8. Ensure that bandwidth limiting is used for both Channels 1 and 2.
9. Use the DSO Math function to subtract Channel 2 from Channel 1 so that
the DSO displays the voltage across the resistor (you cannot measure this
voltage with the DSO leads because the black lead is connected to earth
and will short out the inductor). This voltage is proportional to the current,
since the voltage is across a resistor.
10. Under the Math function, press the Settings softkey. Set the Scale to
1.00 V/ and the Offset to 3.00 V/. This will position the voltage across
the resistor, i.e. the current waveform, at the bottom of the DSO display.
11. Ensure that the DSO has a stable trigger signal you may need to choose
Noise Reject in the trigger options.
12. Set up waveform averaging for 64 averages. This will ensure that almost
noise-free waveforms are displayed on the DSO.
We have now set up the display to look like:
input
Ch 1
output
Ch 2
current
Math
L7.23
13. Draw the input (Ch 1), output (Ch 2) and current (Math) waveforms,
ensuring that the sketch is labelled with both voltage and time scales.
L7.24
Frequency Response
DSO
Ch 1
buffer
FG
2 Vpp
DSO
Ch 2
RL
vi
vo
real
680 H
inductor
680 H
Figure L7.9
Measurement of the
frequency response
of a circuit is
conducted with a
sine wave!
L7.25
5. Complete the following table:
Desired
Frequency
f desired
(kHz)
Actual
Frequency
f actual
(kHz)
Gain
Gain
Vo
Vi
Vo
Vi
(dB)
20 log10
(V/V)
R 130
Phase
V
o
Vi
()
R 33
R 130
R 33
R 130
0.1
0.2
0.5
1
2
5
10
20
50
100
200
500
1000
Table L7.4
Gain
Vo
Vi
(V/V)
R 130
R 33
Table L7.5
Gain
Vo
Vi
(dB)
20 log10
Phase
V
o
Vi
()
R 33
L7.26
8. Plot the gain and phase values from Table L7.4 on the Bode plot below:
10
5
0
-5
-10
|H( ) | -15
(dB) -20
-25
-30
-35
-40 2
10
10
10
f (Hz)
10
10
90
80
70
60
H ( )
()
50
40
30
20
10
0 2
10
10
10
f (Hz)
10
10
L7.27
Questions Highpass Frequency Response
1. What is the relationship between the break frequency and the time
constant?
Answer:
2. At what rate does the magnitude response rise towards the break
frequency? (Draw an asymptote on your graph and measure its slope).
Answer:
L7.28
Lab Assessment [2 marks]
When all lab work is completed, you will be asked by a tutor to:
1. Show the result of the pre-lab work, real inductor Step Response section,
step 4.
2. Show the result of the pre-lab work, real inductor Circuit Simulation section,
step 3.
3. Demonstrate the measurement of the time constant of a highpass STC RL circuit
that uses a real inductor using the step response (use R 130 , L 680 H ).
4. Show the frequency response (magnitude and phase) of a highpass STC RL
circuit that uses a real inductor (use R 130 , L 680 H ).
Marking
Assessment item
Mark
Tutor Signature
/0.5
/0.5
/0.5
/0.5
TOTAL
/2
L8.1
Lab 8 Waveform Generation
Open-loop comparator. Comparator with hysteresis. Astable multivibrator.
Waveform generator.
Introduction
A comparator uses the op-amp in an open-loop mode. For a very small input
voltage, the output will saturate close to one of the power supply voltages due
to the very large gain of the op-amp.
Positive feedback can be applied to a comparator to create hysteresis. This can
be used to clean-up noisy digital waveforms, amongst other applications, and
is an example of a bistable circuit (it has two stable states). It can also be used
to make an astable multivibrator. The output will oscillate at a rate which can
be set by a few passive components.
A comparator with hysteresis can also be used to generate simple waveforms
such as square waves and triangle waves. With proper filtering, sinusoids can
also be generated.
Objectives
1. To examine comparator circuits in more detail, including hysteresis, and to
design and build a simple waveform generator.
Equipment
Op-amp 2 x TL071
Resistors 1 x 1 k, 1 x 3.9 k, 1 x 4.7 k, 1 x 10 k, 1 x 22 k,
1 x 47 k, 1 x 100 k, 1 x 220 k
Potentiometer 1 x 10 k
Capacitors 3 x 10 nF, 1 x 68 nF, 1 x 470 nF, 2 x 10 F
Diodes 1 x red LED
Breadboard, Hook-up wire, 2 x 4mm leads.
Electronics and Circuits 2015
L8.2
Safety
Cat. A lab
Warning!
Remember:
1. When wiring the circuits, ensure
that the power supply is
switched off.
2. It is very important to place the
polarised electrolytic capacitors
into the circuit with the correct
polarity.
Failure to do so will result in the
capacitor failing catastrophically
which may cause personal
injury. If this happens, you will
be awarded 0 marks for the lab
and asked to leave!
L8.3
Laboratory Preparation
Figure L8.1
For the TL071, pin 7 is connected to the positive supply and pin 4 is
connected to the negative supply.
The pin-out for an LED is given below. The cathode is marked by a flat
edge on the lens. New LEDs also have a shorter lead on the cathode.
LED package details
anode
cathode
Figure L8.2
It would be a good idea to plan the layout of all the circuits as they will
appear on your breadboard before you begin. This will minimise
construction time in the lab, and assist in debugging circuits that do not
appear to be working.
A pair of pliers, a pair of wire cutters and a pair of wire strippers would be
handy to wire a neat circuit; straighten bent leads; insert components into
the breadboard etc. If you have any of these tools, bring them to the lab!
L8.4
Open-Loop Comparator
A comparator is an example of a non-linear op-amp circuit. It is a switching
device that produces a high or low output, depending on which of the two
inputs is larger. A simple comparator can be made from an op-amp with no
feedback connection (open-loop) as shown in the figure below:
vo
positive saturation
vi
vo
vi
negative saturation
(a) circuit
Since the open-loop voltage gain of an op-amp is very large, when there is no
feedback an input voltage difference of only a few microvolts is sufficient to
drive the output voltage to either its maximum ( VOH ) or to its minimum value
( VOL ). These values are determined by the op-amp supply voltages and its
internal structure; their magnitudes are always slightly lower than that of their
respective supply values ( VOH VCC , VOL VEE ).
This feature is used in comparator circuits, when one wishes to know whether a
given input is larger or smaller than a reference value. It is especially useful in
digital applications, such as in analog to digital converters (ADCs).
Note: In practical applications that require a comparator, an op-amp should not
be used. This lab uses the op-amp as a comparator to demonstrate the basic
principles. Semiconductor manufacturers produce specific integrated circuit
comparators that have a different output stage to op-amps and are specifically
designed to optimise operation in saturation.
L8.5
In the Lab Open-Loop Comparator
1. Construct the comparator circuit shown below:
+15 V
+15 V potentiometer
R3
10 k
VREF 3
vi
-15 V
10 nF
10 F
6
TL071
4
-15 V
vo
10 F
10 nF
Figure L8.4
2. Set vi to zero (by connecting the inverting terminal to common). Adjust the
potentiometer to set VREF above zero (say, VREF 500 mV). Measure and
record vo VOH . Then, adjust the potentiometer to set VREF below zero
(say, VREF 500 mV). Measure and record vo VOL .
VOH
VOL
L8.6
3. Set the function generator to a 1 kHz sinusoidal signal with an amplitude of
approximately 2 Vpp. Apply this signal to the input of your circuit. For
several values of VREF (say, VREF 500 mV, 0 V, 500 mV), sketch the
observed vo vs. t waveforms on the oscilloscope on the plot below:
Comparator output
waveforms
L8.7
4. Display vo vs. vi using the X-Y mode of the oscilloscope. The image will
be the voltage transfer characteristic of the comparator. Record its shape
for several different values of VREF (say, VREF 500 mV, 0 V, 500 mV),
on the plot below:
Comparator transfer
characteristics
L8.8
Comparator with Hysteresis (Schmitt Trigger)
The Schmitt trigger shown in Figure L8.5 is an extension of the comparator.
The positive feedback and absence of negative feedback ensures that the output
will always be at either its highest ( VOH ) or its lowest ( VOL ) possible value.
The voltage divider formed by R1 and R2 sets V at a fraction of the output.
R2
vo
R1
VOH
vo
vi
VTL
VTH
vi
VOL
(a) circuit
VTL VOL
R1
,
R1 R2
VTH VOH
R1
R1 R2
L8.9
It is important to note that in order for the output to change state all that is
needed is a short departure of the input voltage above or below the respective
threshold. This initiates the regenerative process that results in changing the
state.
The figure below shows a noninverting Schmitt trigger with an adjustable
reference voltage.
R1
vi
R2
vo
VREF
VCC
VEE
R3
Figure L8.6
R1
R2
vo
R1 R2
R1 R2
Lets assume that the circuit is in the positive stable state with vo VOH . Then,
in order to change this state to negative output, we must make v V VREF .
This means we need to apply:
R
R
vi VTL VREF 1 1 VOH 1
R2
R2
Similarly, to change the state from low to high, the input voltage must satisfy
(even for a brief moment) the following inequality:
R
R
vi VTH VREF 1 1 VOL 1
R2
R2
Electronics and Circuits 2015
L8.10
In the Lab Comparator with Hysteresis
1. Build the noninverting Schmitt trigger shown in Figure L8.7.
Use a 15 V supply. Note: Decoupling capacitors should be used but are
not shown in the figure.
vI
R1
R2
1 k
10 k
3
2
VREF
+15 V
R3
10 k
TL071
vO
-15 V
potentiometer
Figure L8.7
2. Calculate the low and high thresholds ( VTL and VTH ) for VREF = 2 V, 0 V,
+2 V. Use the values of VOL and VOH measured previously.
VREF 2 V
VREF 0 V
VTL
VTH
VREF 2 V
L8.11
3. Set the function generator to a 1 kHz triangular signal with an amplitude
of approximately 5 Vpp. Apply this signal to the input of your Schmitt
trigger. For several values of VREF (say, VREF 500 mV, 0 V, +500 mV),
sketch the observed vo vs. t waveforms on the oscilloscope on the plot
below:
Schmitt trigger
output waveforms
4. Display vo vs. vi using the X-Y mode of the oscilloscope. The image will
be the voltage transfer characteristic of the Schmitt trigger. You should
observe hysteresis. Record its shape for several different values of VREF
(say, VREF 500 mV, 0 V, 500 mV), on the plot below:
Schmitt trigger
transfer
characteristics
L8.12
Astable Multivibrator (Schmitt Trigger Clock)
When a negative feedback path consisting of a resistor R and a capacitor C is
added to the Schmitt trigger in Figure L8.5, the new circuit has no stable state.
The output will continuously switch between its two extremes at a rate
determined by the time constant T RC . The circuit is shown below:
R2
R1
vo
R
C
Figure L8.8
Immediately after a transition of the output to either its positive extreme ( VOH )
or its negative extreme ( VOL ), the RC network will begin an exponential
transition; the capacitor will begin to charge or discharge, depending on its
previous state, with its voltage approaching the new value of vo . When the
capacitor voltage v passes the value of v , which is determined by R1 and
R2 , the op-amp output will suddenly switch to its opposite extreme. The
capacitor voltage will then begin to charge in the opposite direction until
switching occurs again. The process will be repeated indefinitely, giving a
square-wave output without the need for an input voltage source.
L8.13
v
VOH
VOH R 1
R 1+R 2
vo
vC
0
t1
t2
VOL R 1
R 1+R 2
VOL
Suppose that at t 0 the output voltage is VOL , and the capacitor voltage v
has just fallen below v VOL R1 R1 R2 . The output will switch from VOL to
VOH because v v has just become positive. The capacitor voltage begins to
increase, and is given by:
R1
vC t VOH VOL
VOH
R
R
1
2
RCt
e
t0
Substitution of t 0 shows that the above equation indeed satisfies the initial
condition vC 0 VOL R1 R1 R2 . When t , we obtain lim vC t VOH .
t
VOH R2
t1 RC ln
VOH R1 R2 VOL R1
L8.14
At this point v v changes sign and vC begins to decrease, now governed
by the equation:
t t1
R1
vC t VOL VOH
VOL e RC
R1 R2
t t1
VOL R2
t2 t1 RC ln
VOL R1 R2 VOH R1
VOL R2
VOH R2
RC ln
RC ln
VOL R1 R2 VOH R1
VOH R1 R2 VOL R1
VOL R2
VOH R2
RC ln
In the special case of R1 R2 and VOL VOH , the above equation simplifies to
a function of only R and C:
T0 RC ln 9 2.2 RC
L8.15
In the Lab Astable Multivibrator
R1
47 k
+15 V
R2
22 k
TL071
R
C
470 nF
R3
1 k
vo
Red
LED
220 k
Figure L8.9
2. Calculate the oscillation period using the values of VOL and VOH measured
previously.
T0
3. Measure the oscillation period using the DSO.
T0
Compare with the calculated estimate:
L8.16
4. Display the output voltage,
vC ,
Note: Measuring the capacitor voltage, vC , with a DSO will cause the
L8.17
5. Replace R and C with new components: R 100 k and C 10 nF .
6. Calculate the oscillation period using the values of VOL and VOH measured
previously.
T0
7. Measure the oscillation period using the DSO.
T0
Compare with the calculated estimate:
vC ,
L8.18
9. Observe the output waveform, vo , on the DSO with a 1 s time/div setting,
so you can examine the transition from a negative to a positive voltage.
Sketch the waveform on the plot below:
Astable multivibrator
output waveform
L8.19
Waveform Generator
The exponential waveform (across the capacitor) generated in the astable
circuit of Figure L8.8 can be changed to triangular by replacing the lowpass
RC circuit with an integrator (the integrator is, after all, a lowpass circuit with
a corner frequency at DC). The integrator causes linear charging and
discharging of the capacitor, thus producing a triangular waveform. The
resulting circuit is shown below:
Triangular and
rectangular
waveform generator
R2
R1
vo1
vo2
Figure L8.10
This circuit oscillates and generates a square waveform at the output of the
noninverting Schmitt trigger, vo1 , and a triangular waveform at the output of
the inverting integrator, vo 2 .
Let the output of the bistable circuit be at VOH . A current equal to VOH R will
go into the resistor R and then on to the capacitor C, causing the output of the
integrator to linearly decrease with the slope VOH RC , as shown in
Figure L8.11. This will continue until the integrator output reaches the lower
threshold, VTL , of the bistable circuit.
L8.20
VOH
slope = RC
vo2
vo1
T1
VOH
T2
0
VOL
T1
VTH
T2
VOL
slope = RC
VTL
T0
Figure L8.11
At this point the bistable circuit will switch states, its output becoming
negative and equal to VOL . At this moment the current through R will reverse
direction and its value will become equal to VOL R . The output of the
integrator will therefore linearly increase with time. This will continue until the
integrator output voltage reaches the positive threshold of the Schmitt trigger,
VTH . The Schmitt trigger switches states again, starting the new cycle.
From Figure L8.11 it is relatively easy to derive an expression for the period
T1
RC
T1 RC
VTH VTL
VOH
T2
RC
T2 RC
VTH VTL
VOL
VOLVOH
1
1
1
L8.21
In the Lab Waveform Generator
1. Build the waveform generator shown below. Note that the integrator has
negative feedback, whilst the Schmitt trigger has positive feedback.
Use a 15 V supply.
C
R2
68 nF
R
10 k
4.7 k
3
TL071
R1
3.9 k
2
TL071
vo1
vo2
Figure L8.12
2. Calculate the oscillation frequency using the values of VOL and VOH
measured previously (note that VTL and VTH are different for this circuit).
f0
3. Measure the oscillation frequency using the DSO.
f0
Compare with the calculated estimate:
L8.22
4. Display the two output voltages, vo1 and vo 2 on the DSO. Sketch the
waveforms on the plot below:
Waveform generator
waveforms
L8.23
Lab Assessment [2 marks]
When all lab work is completed, you will be asked by a tutor to:
1. Show the result of the voltage transfer characteristic of the open-loop
comparator.
2. Show the result of the voltage transfer characteristic of the Schmitt trigger.
3. Show the result of the measurement of the period of the astable multivibrator,
and its comparison to the theoretical value (for R 220 k , C 470 nF ).
4. Display both of the outputs of the waveform generator on the DSO, measure their
frequency, and compare with the theoretical value.
Marking
Assessment item
Mark
Tutor Signature
/0.5
/0.5
/0.5
/0.5
TOTAL
/2
L9.1
Lab 9 RLC Circuits
Lowpass series RLC circuits. Step response. Frequency response.
Introduction
A lowpass series RLC circuit is shown below:
i R
vi
vo
Figure L9.1
The describing differential equation is obtained by performing KVL around the
circuit:
Ri L
Substituting i C
di
v o vi
dt
(L9.1)
dvo
we get:
dt
LC
d 2 vo
dv
RC o vo vi
2
dt
dt
(L9.2)
2
L dt LC
LC
dt
(L9.3)
L9.2
We normally let:
1
LC
and
R
2L
(L9.4)
(L9.5)
The solution of this equation for a step-input gives the step response. It is a
very important response because many practical systems can be modelled by a
second-order system (or made to be approximately a second-order system).
The step-response has three different forms, depending on whether the system
is overdamped, critically damped, or underdamped. Example step-responses
are shown below:
1.8
=0.1
0
1.6
1.4
1.2
v0 ( t )
0.5
1.0
0.8
0.6
1.0
1.5
2.0
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 13
0t
L9.3
This particular series second-order circuit is of the lowpass type. To see the
reasoning behind this classification, observe that the frequency response of the
circuit can be expressed as a voltage-divider ratio, with the divider composed
of a capacitor and a series combination of a resistor and an inductor. Now,
recalling how the impedance of a capacitor varies with frequency ( Z 1 jC )
it is easy to see that the voltage output of the circuit will decrease with
frequency and approach zero as approaches . Thus the circuit acts as a
lowpass filter; it passes low-frequency sine-wave inputs with little or no
Objectives
1. To investigate the step response of a lowpass RLC circuit.
2. To investigate the frequency response of a lowpass RLC circuit.
Equipment
Resistors 1 x 20 , 1 x 56 , 1 x 75 , 1 x 130
Capacitor 1 x 470 nF
Inductor 1 x 680 H
Breadboard, Hook-up wire, 2 x 4 mm leads.
Note
Quality!!!
Safety
This is a Category A laboratory experiment. Please adhere to the Category A
safety guidelines (issued separately).
Electronics and Circuits 2015
Cat. A lab
L9.4
Pre-Lab Work
Lowpass Series RLC Circuit
Step Response
R
vi
vo
Figure L9.2
let:
1
LC
R
2L
and
d 02 2
L9.5
2. Determine the forced response of the system for a unit-step input:
3. Write down the form of the natural response of v0 t , for the following
cases (do not evaluate arbitrary constants):
Overdamped 0 :
Critically damped 0 :
Underdamped 0 :
L9.6
Frequency Response
j L
1
j C
Vi
Vo
Figure L9.3
let:
1
LC
Q0
0 L
R
and
0
2Q0
L9.7
2. Derive an expression for the frequency response in terms of 0 and Q0 :
H j
Vo
Vi
H j
H j
H j
(L9.6)
L9.8
3. Let L 680 H and C 470 nF and complete the following tables:
R 130
Q0
Desired
Frequency
f desired
(kHz)
Frequency
0.1
0.2
0.5
1
2
5
10
20
50
100
200
500
0.628
1.257
3.142
6.283
12.57
31.42
62.83
125.7
314.2
628.3
1257
3142
( krads-1 )
Gain
Vo
Vi
Gain
Phase
V
o
Vi
()
(V/V)
0.9994
0.9976
V
20 log10 o
Vi
(dB)
-0.01
-0.02
0.9439
0.8189
0.4907
-0.50
-1.74
-6.18
-21.2
-39.0
-70.4
0.1152
0.02772
0.007638
0.001963
0.0003165
-18.77
-31.14
-42.34
-54.14
-69.99
-117.8
-147.9
-162.9
-171.3
-176.5
Gain
Phase
V
o
Vi
()
-2.2
-4.4
Table L9.1
R 20
Q0
Desired
Frequency
f desired
(kHz)
Frequency
0.1
0.2
0.5
1
2
5
10
20
50
100
200
500
0.628
1.257
3.142
6.283
12.57
31.42
62.83
125.7
314.2
628.3
1257
3142
( krads-1 )
Gain
Vo
Vi
(V/V)
1.000
1.000
1.003
1.011
1.045
1.341
Vo
Vi
(dB)
0.001
0.004
0.024
0.095
0.383
2.55
20 log10
-0.3
-0.7
-1.7
-3.4
-7.1
-23.3
0.2372
0.03259
0.007980
-12.5
-29.7
-42.0
-163.7
-174.5
-177.3
0.0003171
-70.0
-179.5
Table L9.2
L9.9
4. Plot the gain and phase values from the tables on the Bode plots below:
10
0
-10
-20
|H( ) | -30
(dB) -40
-50
-60
-70
-80 2
10
10
10
f (Hz)
10
10
0
-20
-40
-60
H ( ) -80
() -100
-120
-140
-160
-180 2
10
10
10
f (Hz)
10
10
L9.10
Circuit Simulation
vi
vo
Figure L9.4
R 130
(b)
R 75
(c)
R 56
(d)
R 20
The best approach is to make one series RLC circuit, then copy it 3
more times and change the resistor values and net labels so that all
results can be graphed simultaneously.
2. Bring print-outs of the step responses and frequency responses to the lab.
Use the following axes for graphing:
Response
0 s to 500 s
0 V to 1.5 V
Magnitude
100 Hz to 1 MHz
-80 dB to 10 dB
Phase
100 Hz to 1 MHz
-180 to 0
Step
L9.11
Lab Work
Lowpass Series RLC Circuit
Mini-Lab Amplifier Setup
The RLC circuit, when subjected to a step input, requires a fairly large current
to be delivered from the input in a short span of time. The function generator
has an output resistance of 50 and so the output will therefore experience a
significant internal Ri voltage drop, resulting in a droop in the applied
voltage when delivering current. We therefore need to buffer the output of
the function generator. The Mini-lab provides us with a way to do this.
1. Identify the section under the power switch labelled AMPLIFIER
OR
GEN)
Mini-lab Amplifier
L9.12
Step Response
1. Using the DMM, measure and record the DC series equivalent resistance of
your inductor:
RL
2. Construct the following circuit, using R 130 :
Series RLC circuit
with a real inductor
DSO
Ch 1
1
RL
DSO
Ch 2
680 H
buffer
FG
0-1 V
200 Hz
vi
real
680 H
inductor
470 nF
vo
Figure L9.5
Measurement of the
step response of a
circuit is conducted
with a square wave!
L9.13
7. Ensure that each input to the DSO is bandwidth limited and use waveform
averaging to obtain a display with the least amount of noise.
8. Draw the input (Ch 1) waveform on the following graph, ensuring that the
sketch is labelled with voltage and time scales.
9. Draw the output (Ch 2) waveform, and label it clearly.
L9.14
11. Repeat Steps 9 and 10 for the following values of R:
R 75
R 56
13. We will now clear all the displayed waveforms on the DSO display:
(a) Press the Save/Recall key in the File section.
(b) Press the Recall softkey.
(c) Press the Clear Display softkey.
14. For the last response with R 20 , use the DSO to measure:
Peak time:
tp
Peak voltage:
vp
L9.15
Questions Lowpass RLC Step Response
0
2. For each resistor value, determine whether the circuit is overdamped,
critically damped or underdamped.
Resistor Value
Damping Type
R 130
R 75
R 56
R 20
d 02 2
Peak time:
tp
Peak voltage:
t
vp 1 e p
Comment on the agreement (or otherwise) with the experimental results:
L9.16
Frequency Response
DSO
Ch 1
RL
DSO
Ch 2
680 H
buffer
FG
5 Vpp
real
680 H
inductor
vi
470 nF
vo
Figure L9.6
Measurement of the
frequency response
of a circuit is
conducted with a
sine wave!
L9.17
4. Complete the following table:
R 130
Desired
Frequency
f desired
(kHz)
Q0
Actual
Frequency
f actual
(kHz)
Gain
Vo
Vi
(V/V)
Gain
Vo
Vi
(dB)
20 log10
Phase
V
o
Vi
()
0.1
0.2
0.5
1
2
5
10
20
50
100
200
Table L9.3
R 75
Desired
Frequency
f desired
(kHz)
Q0
Actual
Frequency
f actual
(kHz)
Gain
Vo
Vi
(V/V)
0.1
0.2
0.5
1
2
5
10
20
50
100
200
Table L9.4
Gain
Vo
Vi
(dB)
20 log10
Phase
V
o
Vi
()
L9.18
6. Set R 56 and complete the following table:
R 56
Desired
Frequency
f desired
(kHz)
Q0
Actual
Frequency
f actual
(kHz)
Gain
Vo
Vi
(V/V)
Gain
Vo
Vi
(dB)
20 log10
Phase
V
o
Vi
()
0.1
0.2
0.5
1
2
5
10
20
50
100
200
Table L9.5
7. Set R 20 and complete the following table. The frequency f p is the
frequency, obtained experimentally, at which the output is a maximum.
R 20
Desired
Frequency
f desired
(kHz)
Q0
Actual
Frequency
f actual
(kHz)
Gain
Vo
Vi
(V/V)
0.1
0.2
0.5
1
2
5
10
20
50
100
200
fp
Table L9.6
Electronics and Circuits 2015
Gain
Vo
Vi
(dB)
20 log10
Phase
V
o
Vi
()
L9.19
8. Plot the gain and phase values from the four tables on the Bode plots:
10
0
-10
-20
|H( ) | -30
(dB) -40
-50
-60
-70
-80 2
10
10
10
f (Hz)
10
10
0
-20
-40
-60
H ( ) -80
() -100
-120
-140
-160
-180 2
10
10
10
f (Hz)
10
10
L9.20
Questions Lowpass RLC Frequency Response
1. For R 20 , use the total resistance of the circuit and the nominal values
of L and C to calculate the undamped natural frequency, f 0 , and quality
factor, Q0 , of the circuit:
f0
1
2 LC
Q0
1
RT
2Q02
Experimental:
fp
Comment:
3. For each resistor value, estimate the -3 dB bandwidth of the circuit from
the experimental results:
Resistor Value
Estimate by using
linear interpolation
between the
experimental
measurements
around the -3 dB
point
-3 dB Bandwidth
R 130
R 75
R 56
Electronics and Circuits 2015
L9.21
4. For the case R 20 , use the total resistance of the circuit and the
nominal values of L and C to compute the bandwidth of the circuit and
compare it to that obtained experimentally:
Theoretical:
|T|
|T| p
|T| p
2 1
B
0
0
u1, 2
f1
fp
1
1
1
1
1
2
2Q0 Q0
2Q0
f 1 u1 f 0
f2
2
f 2 u2 f 0
B f 2 f1
Experimental:
v op
vop
2
f1
f2
B f 2 f1
Comment:
L9.22
Lab Assessment [2 marks]
When all lab work is completed, you will be asked by a tutor to:
1. Show the result of the pre-lab work, Step Response section, step 3.
2. Show the result of the pre-lab work, Circuit Simulation section, step 2.
3. Demonstrate the measurement of the damped natural frequency of the
underdamped lowpass RLC circuit step response (use R 20 ).
4. Show the Bode plots (magnitude and phase) of the lowpass RLC circuit for the
four resistor values, and demonstrate the measurement of the bandwidth for the
case R 20 .
Marking
Assessment item
Mark
Tutor Signature
/0.5
/0.5
/0.5
/0.5
TOTAL
/2
L10.1
Lab 10 The Universal Filter
The Tow-Thomas biquad. Lowpass filter. Bandpass filter. Highpass filter.
Notch filter. The spectrum. Audio filtering application.
Introduction
With the advent of op-amps and circuit miniaturization, engineers developed
what is known as a universal filter. Its frequency response takes the form of a
biquadratic equation, and so it is also known as a biquad. Depending on the
connections made and the point at which the output is taken, the universal filter
can deliver lowpass, highpass, bandpass, bandstop (notch) and allpass
responses. It is one of the most useful circuits to the electrical engineer and is
widely available.
Objectives
1. To investigate the frequency response of a biquad circuit acting either as a
lowpass filter, a bandpass filter, a highpass filter or as a notch filter.
2. To filter audio signals with a lowpass filter, a bandpass filter, a highpass
filter and a notch filter, so as to gain an appreciation of circuit behaviour in
the frequency-domain.
3. To observe the spectrum of a signal on a DSO.
Equipment
Op-amp 3 x TL071
Resistors 2 x 8.2 k, 5 x 10 k, 2 x 51 k
Capacitors 5 x 10 nF
Breadboard, Hook-up wire, 4mm leads.
L10.2
Safety
This is a Category A laboratory experiment. Please adhere to the Category A
Cat. A lab
Warning!
Remember:
1. When wiring the circuits, ensure
that the power supply is
switched off.
2. It is very important to place the
polarised electrolytic capacitors
into the circuit with the correct
polarity.
Failure to do so will result in the
capacitor failing catastrophically
which may cause personal
injury. If this happens, you will
be awarded 0 marks for the lab
and asked to leave!
L10.3
Laboratory Preparation
Figure L10.1
For the TL071, pin 7 is connected to the positive supply and pin 4 is
connected to the negative supply.
It would be a good idea to plan the layout of all the circuits as they will
appear on your breadboard before you begin. This will minimise
construction time in the lab, and assist in debugging circuits that do not
appear to be working.
A pair of pliers, a pair of wire cutters and a pair of wire strippers would be
handy to wire a neat circuit; straighten bent leads; insert components into
the breadboard etc. If you have any of these tools, bring them to the lab!
L10.4
The Tow-Thomas Biquad
The normalised Tow-Thomas biquad circuit is:
The normalised
Tow-Thomas
universal filter
1
1
1
1
1
R1
Q0
vo
R2
C3
vi
Figure L10.2
The normalised design values for various responses are given in the table
below, where H is the passband gain.
Table of design
values for a
universal filter
R1
Design Values
R2
C3
Lowpass
1H
Bandpass
Q0 H
Highpass
Filter Type
Notch
Table L10.1
n H
2
L10.5
Pre-Lab Work
The Tow-Thomas Biquad
1. Construct the biquad circuit shown in Figure L10.3. Calculate the correct
value for the resistors labelled R to achieve a 2nd-order Butterworth
response with a passband gain H 1 .
Choose suitable resistors for their implementation.
Note: It will be beneficial to organise for the input signal to run along a
10 k
10 nF
10 nF
10 k
A1
10 k
A2
10 k
v i LP
v i BP
All inputs on
DSO Ch 1
10 k
A3
10 nF
v i HP
vo
DSO
Ch 2
v i NOTCH
Figure L10.3
Note that the power connections on this circuit are not shown explicitly
connect the TL071s power supply according to the pin-out given in
Figure L10.1. Use a 15 V supply. Make sure you add 10 F and 10 nF
bypass capacitors from each DC supply to the common.
f0
Electronics and Circuits 2015
L10.6
Lab Work
In this lab it is a good idea to test the overall functionality of the filter before
taking precise measurements.
Observe correct
circuit behaviour
before taking
measurements
L10.7
1. Connect a suitable sinusoid to the input labelled viLP .
Check for correct filter operation.
LOWPASS FILTER
Desired
Frequency
f desired
(kHz)
Actual
Frequency
f actual
(kHz)
Gain
Vo
Vi
Gain
Vo
Vi
(dB)
20 log10
(V/V)
Phase
V
o
Vi
()
0.1
0.2
0.5
1
2
5
10
20
50
Table L10.2
2. Connect a suitable sinusoid to the input labelled viBP .
BANDPASS FILTER
Desired
Frequency
f desired
(kHz)
Actual
Frequency
f actual
(kHz)
Gain
Vo
Vi
(V/V)
0.1
0.2
0.5
1
2
5
10
20
50
Table L10.3
Gain
Vo
Vi
(dB)
20 log10
Phase
V
o
Vi
()
L10.8
3. Connect a suitable sinusoid to the input labelled viHP .
Check for correct filter operation.
Measure the frequency response of the highpass filter:
HIGHPASS FILTER
Desired
Frequency
f desired
(kHz)
Actual
Frequency
f actual
(kHz)
Gain
Vo
Vi
Gain
Vo
Vi
(dB)
20 log10
(V/V)
Phase
V
o
Vi
()
0.1
0.2
0.5
1
2
5
10
20
50
Table L10.4
NOTCH FILTER
Desired
Frequency
f desired
(kHz)
Actual
Frequency
f actual
(kHz)
Gain
Vo
Vi
(V/V)
0.1
0.2
0.5
1
2
5
10
20
50
fn
Table L10.5
Electronics and Circuits 2015
Gain
Vo
Vi
(dB)
20 log10
Phase
V
o
Vi
()
L10.9
5. Plot the gain and phase values from the four tables on the Bode plots
below, and label the responses clearly (LP, BP, HP, notch):
10
0
-10
|H( ) | -20
(dB) -30
-40
-50
-60 2
10
10
10
10
f (Hz)
180
135
90
H ( )
()
45
0
-45
-90
-135
-180 2
10
10
10
f (Hz)
10
L10.10
The Spectrum
We are familiar with the fact that light is composed of many different colours,
each with a different wavelength. We observe the spectrum of white light when
we look at a rainbow or pass light through a prism.
All sounds, including music and voice, are composed of many different sine
waves. Normally, when a signal (such as music) is viewed on an oscilloscope,
it is viewed such that the vertical axis is voltage and the horizontal axis is time.
However, there is another way to observe the same signal. We can observe the
magnitude spectrum of a signal on the DSO by observing the amplitude of its
constituent sine waves (each with a different frequency, amplitude and phase).
With a spectrum, the vertical axis is still voltage but is usually expressed as a
relative measurement in dB (e.g. dBV means the signal is expressed as a ratio
with respect to 1 V rms). The horizontal axis is frequency, in Hz.
The magnitude
spectrum is a graph
of the sine wave
magnitudes present
in a signal, versus
frequency
signal 0
magnitude
spectrum
L10.11
Observing a Magnitude Spectrum
1. Set up a 2 V peak-to-peak sine wave at a frequency of 1 kHz (on the
Mini-Labs 10 kHz range) and observe on Channel 1 of the DSO.
2. Push the 1 button so that it is no longer illuminated and the sine wave
display turns off.
3. In the Vertical section of the DSO, press the Math button, press the FFT
softkey, then press the Settings softkey to display the FFT menu.
4. In the Horizontal section of the DSO, turn the large knob and watch the
display so that FFT Sample Rate = 40.0kSa/s.
5. Press the Center softkey, then turn the Entry
L10.12
Measuring the Magnitude Spectrum
We can measure frequencies in the magnitude spectrum using the cursors.
1. To make cursor measurements on the magnitude spectrum, press the
Cursors button and set the Source softkey to Math.
X1 f
4. Press the Cursors button to turn off the cursors.
5. Press the Math button.
6. Press the Settings softkey to display the FFT menu.
7. Press the Preset softkey to return the display to a 20 kHz span centred on
10 kHz.
8. Vary the frequency of the FG sinusoid and observe the behaviour of the
magnitude spectrum on the DSO. Return the frequency to 1 kHz.
9. Observe the spectrum of a triangle wave. Note that a triangle wave is
composed of many discrete sinusoids.
10. Observe the spectrum of a square wave. Note that a square wave is
composed of many discrete sinusoids.
L10.13
Magnitude Spectrum of Audio Signals
We will listen to an audio signal whilst simultaneously observing its spectrum.
1. The 3.5 mm stereo plug and socket:
Color
red
black
white
Use
signal
common
unused
will be used to connect the MP3 player to the breadboard. Construct the
following system:
DSO
Ch 1
MP3
Player
red
red
black
black
Ear
Pieces
breadboard
Figure L10.6
This will enable you to both listen to the audio signals and observe them
on the DSO.
2. If you have been using waveform averaging to measure the frequency
response of the universal filter (and you should have been for low
amplitude responses), turn it OFF. The signals we will be looking at are
difficult to trigger from - and waveform averaging is not correct unless we
have a stable trigger!
Electronics and Circuits 2015
L10.14
3. Turn the MP3 player on.
4. Play the track Lab10 01 Three Tones.mp3.
5. Increase the volume to the maximum level (32).
6. Do not put the ear pieces into your ears! Listen closely to the right ear
piece to hear the audio signal.
7. Sketch the spectrum of the audio signal.
8. Measure the frequency of the three dominant sinusoids present in the signal:
f1
f2
f3
9. Play the track Lab10 02 Music.mp3 to hear music.
10. Observe the spectrum (do not sketch!).
11. When you have finished listening, turn the MP3 player off.
L10.15
Filtering Audio Signals
1. Construct the following system:
MP3
Player
Universal
Filter
DSO
Ch 1
Ear
Pieces
DSO
Ch 2
Figure L10.7
f1
f2
f3
Lowpass
Bandpass
Highpass
Notch
L10.16
8. Play the track Lab10 02 Music.mp3 to hear music.
9. Observe the spectrum and listen to the output of the filter for the universal
filter configured as LP, BP, HP and notch. For each filter type, describe the
effect on the audio signal:
Filter Type
Lowpass
Bandpass
Highpass
Notch
10. You may have noticed and heard an annoying tone overlaying the music
track. You can observe this tone by looking at the spectrum of Channel 1.
Which type of filter is best to remove it, and why?
Best filter to remove unwanted tone:
Why?
12. When you have finished, turn the MP3 player off.
L10.17
Lab Assessment [2 marks]
When all lab work is completed, you will be asked by a tutor to:
1. Show the magnitude and phase responses of the lowpass filter and bandpass
filter.
2. Show the magnitude and phase responses of the highpass filter and notch filter.
3. Show the result of measuring the frequencies present in the first MP3 track (3 tones).
4. Explain the choice of the filter type to remove the unwanted tone from the
second MP3 track (music).
Marking
Assessment item
Mark
Tutor Signature
/0.5
/0.5
/0.5
/0.5
TOTAL
/2
LEG1.1
Lab Equipment Guide
Mini-Lab. MP3 Player.
Introduction
This guide is a reference for the following equipment:
Equipment
LEG1.2
Mini-Lab
The Mini-Lab front panel has the following layout:
COUNTER
FREQUENCY VERNIER
f
N
MHz
10
10
10
kHz
10
-1
10M
SWEEP
RANGE
LIN
COUNTER
INPUT
FUNCTION
GENERATOR
AMPLIFIER
OR BI-POLAR
POWER SUPPLY
0V
OFF
MIN
LOG
100
0 to -15V
2V
2mA
2k
200mV
200uA
200
DC
AC
rms
V/A
0 to +15V
x1
-15V
kHz
10
x100
+15V
-15
+15
V/Ohms
COMMON
500V
MHz
100
10
OFF
ATTENUATOR
F.GEN NORM
AMPL
AM
MOD
OUTPUTS
20k
EXT
RANGE
Hz
200k
20V
20mA
EXT
MIN
10
200V
200mA
30M
FUNCTION GENERATOR
SWEEP
FREQ
ON
1M
SYMMETRY
RANGE
(max)
500V
2M
2Amp
100k
-2
MAX
MIN
-4
-3
DIGITAL METER
POWER
COUNTER
Hz
10k
DIVIDER
ON
INPUTS
SYNC
1 Hz
AM
SWEEP TRIG
f/N
FM
OFFSET
ISOLATED COMMON
10dB
20dB
INV
1 AMP
15V
20V O/C
10V 50
OFF
EXT
100V MAX
1 AMP
5 VOLT
3 AMP
30dB
AMPLITUDE
15V
1 AMP
MIN
LEG1.3
Function Generator and Counter
The function generator is capable of generating 20 Vp-p sine, triangular, square
and ramp waveforms from 0.1 Hz to 20 MHz. It also provides for a DC offset
with a range of 10V. It has AM and FM modulation capabilities. The 4 digit
counter has a range from 5 Hz to 30 MHz and updates every second.
COUNTER
FREQUENCY VERNIER
f DIVIDER
-4
10
N
MHz
10
10
kHz
-3
100k
-2
10
1M
-1
10M
1
MAX
MIN
COUNTER
Hz
10k
30M
FUNCTION GENERATOR
SWEEP
FREQ
SYMMETRY
OFF
MIN
SWEEP
RANGE
LIN
COUNTER
INPUT
FUNCTION
GENERATOR
EXT
MIN
LOG
EXT
RANGE
Hz
10
100
kHz
10
MHz
100
10
OFF
ATTENUATOR
AM
MOD
OUTPUTS
ON
INPUTS
SYNC
1 Hz
AM
SWEEP TRIG
f/N
FM
OFFSET
20V O/C
10V 50
OFF
MIN
10dB
20dB
30dB
AMPLITUDE
LEG1.4
Function Generator
1.
Waveform selection
Waveform
Left
Right
Out
Out
Sinusoid
Out
In
Square
In
Out
Triangle
In
In
Undefined
FREQUENCY VERNIER
MHz
kHz
MAX
MIN
FUNCTION GENERATOR
RANGE
Hz
10
100
kHz
10
100
MHz
10
INPUTS
Frequency selection
3.
ATTENUATOR
10dB
OFFSET
20V O/C
10V 50
OFF
20dB
30dB
AMPLITUDE
MIN
Amplitude selection
LEG1.5
4.
OFF
MIN
Symmetry selection
EXT
SWEEP
RANGE
LIN
MIN
LOG
Frequency sweep
INPUTS
AM
OFF
AM
MOD
FM
ON
Modulation
FUNCTION GENERATOR,
the
f DIVIDER
-4
10
N
10
10
100k
-2
1M
10
-3
COUNTER
Hz
10k
-1
10M
1
30M
1 Hz
the
COUNTER INPUT,
addition, the
DIVIDER
FUNCTION
GENERATOR
f/N
COUNTER
INPUT
EXT
LEG1.6
Amplifier or Bi-polar Power Supply
There are many types of voltage sources, e.g. power supplies, function generators,
batteries, antennae, etc. When modelling these sources, it may turn out that they
have large internal resistances (in comparison to an attached load).
For example, the function generator has an output resistance of 50 and the
output will experience a significant internal Ri voltage drop when drawing large
currents (> 10 mA), resulting in a drop in the output terminal voltage:
50
i = 20 mA
1V
vs = 5 V
200
vo = 4 V
Function Generator
Load
Rs
vs
vi
Ri
Source
Ro
Avi
Amplifier
vo
RL
Load
vs = 5 V
i=0
vi = 5 V
i = 25 mA
Ideal
Buffer
Amplifier
A=1
vo = 5 V
200
LEG1.7
The Amplifier or Bi-Polar Power Supply section of the Mini-Lab provides us with
a way to buffer a voltage source. The Amplifier presents a very high input
resistance (100 k) at its input terminals, whilst providing a very low output
resistance (50 m) at its output terminals. In addition, the gain (the amount by
which the input signal is amplified) can be varied from 1 up to 100.
1.
POWER
GEN),
the
ON
2.
0V
3.
x1
-15V
x100
+15V
F.GEN NORM
EXT
INV
AMPL
4.
15V
15V
1 AMP
5.
LEG1.8
Regulated Power Supplies
The Mini-Lab provides us with a 15 V, 1 A adjustable isolated dual power
supply and a 5V, 3A fixed power supply.
0 to +15V
-15
+15
5 VOLT
3 AMP
ISOLATED COMMON
1 AMP
100V MAX
1 AMP
blue
white
red
green
brown
earth
15 V
1A
15 V
1A
5V
3A
The outputs of the dual power supply are connected in series this cannot be
changed. Also, each output of the dual power supply is floating with respect to
earth at the general power outlet (GPO), and thus is similar to a battery. In
contrast, the fixed 5 V supply has an output terminal that is taken with respect to
earth, and is independent of the common of the dual power supply.
It is important to note the internal connections of the power supplies.
Electronics and Circuits 2015
LEG1.9
Digital Meter
The digital meter built into the Mini-Lab provides us with a 3 digit volt, amp
and ohm meter with true RMS AC readings, at an accuracy better than 3%.
DIGITAL METER
RANGE
(max)
500V
2M
2Amp
200V
200mA
200k
20V
20mA
20k
2V
2mA
2k
200mV
200uA
200
DC
AC
rms
V/A
V/Ohms
COMMON
500V
The range buttons specify the maximum value that is displayed on that range.
There is a common connection, which is isolated from earth, that must be used
for all measurements. Separate physical inputs are provided for volts/ohms and
amps measurements.
1.
2.
LEG1.10
MP3 Player
The MP3 player has the following layout:
4
1
2
Joystick
LCD display
1. The joystick can be moved in the usual four directions. It can also be pressed.
2. The LCD display looks like:
Current Track
Total Tracks
Equaliser
Repeat mode
Play
Pause
Volume Level
ID3 Information
Elapsed Time
Total Time
Battery Level
Menu button
Headphone
LEG1.11
Power On / Off
1. To turn the player on, press and hold
Function
Press
Press
Press
Hold
Hold
Press
Press