Before starting this lab, review the lab rules.
You might want to read the questions at the end of the lab to make sure you have all the information required to answer them before you leave the lab.
Note: there is software on the PC's in Hicks 310 that communicate with the oscilloscopes. See me or Ed Jaoudi if you have any questions.
In this lab and throughout the rest of the semester you will be using op amps, one of the basic building blocks of analog electronics. For our purposes we will be using an ideal model of the op amp. The circuit symbol for an op amp is shown.
The op amp obeys the input-output relationship:
where vo is the output voltage, v+ and v- are, respectively, the voltages at the non-inverting and inverting inputs, and A is the amplifier gain. For an ideal op amp there are two important facts:
a) The gain of the amplifier is infinite.
b) The internal resistances between the inputs (v+ and v-) and ground are infinite.
These two facts lead to two important relationships used to analyze op amp circuits:
1) The voltages at the two inputs are the same.
2) There is no current into the input of the op amp.
Number 1 can be seen from fact a. In order for the output voltage, vo, to be finite (and we dont want infinite voltages in the lab) with an infinite gain, then v+ must equal v-. In practice the gain is typically about 106, so v+ and v- are very close of each other.
Number 2 can be seen from fact b. If there is a resistance to ground from v+, then the voltage at v+ must be equal to the current times the voltage. If v+ is to be finite, and the resistance is infinite, then the current must be zero. The same argument follows for v-. Typically the input resistance is at least several megaohms.
One of the most commonly used op amp is the 411 op amp, an eight pin integrated circuit (or chip, or IC) whose pin-out is shown below. The convention for this type of integrated circuit package is that pin 1 is marked by a dot, or by a mark at the top of the chip. Pin numbers then increase in the counter-clockwise direction. A full spec sheet can be found at the National Instruments web site. The image below is from the National Instruments data sheet.
When shown in a schematic diagram the V+ (or +Vcc) and V- (or -Vcc) connections are usually not shown, however they are very important as they supply power to the chip. You may ignore the two connections labeled "offset null", we will probably not be use them in this course. This chip can be treated as ideal for the circuits in this course -- the gain is about 200,000 and the input resistance is about 1012 Ω, both large enough to be considered infinite. There are some non-idealities you may notice, though we will usually ignore them when doing analysis of the circuit. The most obvious shortcoming of the circuit is that the output cannot go above +Vcc or below -Vcc (in fact it can only come within a few volts of those limits - see spec on "Output Voltage Swing"). When the output reaches these limits the op amp is said to be saturated. Also the output of the op amp can only change at about 15·106 volts/second. While this seems fast you may see this effect at high frequencies in some of your circuits.
The breadboards and signal generators are in the cabinets behind where the elevator is located; the capacitors, comparators, op-amps and resistors are in the cabinets that are on the wall at the back of the classroom portion of room 310.
As you are performing the lab, refer to the instructions for the report to make sure that you are recording all necessary information.
Linear Op-Amp Applications
a) Put the op amp in the breadboard and connect +Vcc and -Vcc to the chip. Set the magnitude of Vcc to 12 volts (you will have to check this with a voltmeter). Connect the rest of the circuit with R1=10kΩ and Rf=30kΩ. You should verify that the resistor values are correct by reading them off the resistor (they are sometimes in the wrong drawer).
b) Derive an expression for vout/vin for the inverting amplifier, in terms of R1 and Rf.
c) Now drive the inverting amplifier with a 1 kHz sine wave, that is 2 volts peak-to-peak. Hook up the oscilloscope so you can see both vin and vout. What is the gain? What is the maximum output swing (the largest output you can get before distortion starts)? How does this agree with the manufacturer's specification?
d) Repeat c with Rf=10kΩ.
e) Repeat c when vin is a square wave and look closely at the transitions of the output. Measure the slew rate -- the maximum rate at which the output of the op-amp can change (typically measured as V/s, or V/microsecond). Compare the measured slew rate to the manufacturer's specification.
a) Derive the expression for Vout/Vin in terms of R1 and Rf for the circuit below.
b) Design a non-inverting amplifier with a gain of 11 -- you needn't build it..
c) How would you change this circuit to create a follower (gain=1)? Why is an amplifier with a gain of 1 useful?
a) Hook up the integrator shown and drive it with a 2 volt (peak to peak) 1 kHz square wave. If the output is saturated you may have to adjust the offset of the signal generator. From the component values predict the shape and peak to peak amplitude of the output (assume Rf has no effect on the circuit; i.e., that its resistance is infinite). The derivation and experimental results should be included in your report. In this circuit (and most throughout this semester) the ground reference for Vin and Vout is implicit and is not shown.
Rf=1 MΩ, R1=100 kΩ,
b) What does the 1MΩ resistor do? Try removing it and explain what happens. Hint: there are some DC (i.e., constant) imperfections in the performance of the op-amp; it is not ideal.
For this part of the lab you will be using a comparator, which is a device that has the same schematic symbol as the op-amp, but it exhibits very different behavior (I don't know whose idea it was to have the same schematic symbol for both). The comparator is a device that is designed to be used without negative feedback (and often with positive feedback), so its output is always either at its maximum value, or its minimum value. In other words the output is digital, either logic 1 (high) or logic 0 (low).
We will be using an LM311 comparator. A pinout is shown below (from the LM311 datasheet on the National Instruments web site).
For this device we will use V+=5V(available on the top row of your breadboard) and V-=ground. The circuit compares the two inputs. If IN+ (input 2) is greater than IN- (input 3), the output is high, IF IN- is greater than IN+ the output is low (ground, GND). However, what makes this device a little hard to understand (but very useful), a high output is characterized by the output appearing as an open circuit (no current in or out), and a low output is characterized by zero voltage (a short circuit to pin 1, which is typically connected to ground). You can think of the output as a switch connected to ground -- for a low output the switch is closed (shorted to ground (i.e., pin 1)), for a high output the switch is open (the output voltage can float). What makes it useful is that we can use this to switch high voltages (for motors, lights...) on the output from low voltages on the input.
Consider the circuit shown below. This circuit is from MultiSim which uses a different schematic symbol for the comparator - note the ">" symbol. This symbol indicates that the device determines if one input is "greater than" the other (i.e., it compares them).
The non-inverting input is at 2.5 V -- we'll call this the threshold voltage. Whenever the input voltage is below the threshold voltage, the output is high. Since the output is effectively an open circuit, no current flows, so there is no voltage across R3, and the output voltage is 5 volts. When the input is above the threshold, the output is low. This is illustrated in the diagram below.
In this configuration the comparator simply "compares" the input against a threshold and delivers a binary output that indicates whether the input is above or below the threshold.
However this circuit has some drawbacks in certain situations. Imagine that the input above represents the output from a light sensor over the course of a day, and we want the output of the circuit to change once per day. By looking at the input, there is obviously one large peak, but the output counts 4 peaks. The Schmitt trigger is a circuit that can overcome this type of problem (which can occur with any (typically) slowly varying input).
A schematic for a Schmitt trigger is given below. When the output is high, the threshold voltage will be 2.5 volts, and when it is low, the threshold voltage is 1.67 (=5/3) volts (figure it out). This creates two separate thresholds. If we apply the same input to this new circuit, we now get one transition of the output, because of the changing threshold voltage. (When the output is high, the threshold is high -- when the output is low, the threshold is low). Note that the output now only goes up to 2.5 volts.
Make sure you understand how this circuit works. It is a bit tricky both because the circuit is non-linear, and because the value of the output is not a single-valued function of the input. This is manifested by the fact that the output can either be high (2.5 volts) or low (0 volts) when the input is between 1.67 and 2.5 volts.
Hook up a comparator as shown in the figure below, and drive it with a 2 V peak to peak triangle wave centered at 2.5 V (about 1 kHz). You will need to use the DC offset on the signal generator, and make sure that the oscilloscope is DC coupled. Predict, then measure, the output waveform. Though not shown on this diagram, pin 1 should be connected to ground.
Repeat for the Schmitt trigger circuit shown below. Get a printout (or sketch) of your results. Notice that the output of the Schmitt trigger remains constant if the input stays below (or above) some critical threshold. You can demonstrate this by decreasing the amplitude of the input. Why does this occur?
Rewire the circuit to be an oscillator as shown below (from the LM311 datasheet, page 10). Note that this circuit has no input. Use a LM311 even though the circuit calls for a LM111. Convince yourself that this circuit will oscillate (assume the output is constant - either high or low - and show that the input must change). Predict and measure the frequency of operation. In particular, predict and then sketch the output voltage as well as the voltage at the positive and negative node of the comparator.
Before leaving the lab, make sure you put away all equipment and electrical components. Although this takes a few minutes, it is much easier to do than trying to sort through a huge pile of components at the end of the semester. There is a meter to read capacitor values if you have find that difficult (see page on reading resistor and capacitor values).
Present a carefully considered response to each of the following numbered parts. Make sure the individual responses are clearly labeled. There need not be a lot of prose (i.e., no abstract/introduction/theory... sections), simply provide the specified information (but strive for clarity).
Turn in your lab report as a pdf on moodle (one report per group).