Week 13
Operational amplifiers
Operational amplifiers: very high-gain differential amplifiers that you control with a few external resistors and capacitors. With negative feedback the op amp holds its two inputs at nearly the same voltage, which turns the analysis of followers, amplifiers, summers, integrators and differentiators into a few lines of KCL. Without negative feedback the output slams to a supply rail, giving comparators, Schmitt triggers and oscillators. The lab builds several of these circuits and then picks apart the op-amp stages inside the servo you have used since week 2.
Objectives
- Apply the ideal op-amp rules (va ≈ vb under negative feedback, zero input current, output bounded by the supply rails) to find the output of an op-amp circuit.
- Derive the gain of the voltage follower, noninverting amplifier (1 + Rf/R1) and inverting amplifier (−Rf/Rin), and design each for a specified gain and input resistance using resistors from 1 kΩ to 1 MΩ.
- Design summing and differential amplifiers that produce a given weighted sum or difference of inputs, such as vo = −10v1 − 4v2 or vo = 12(v2 − v1), adding an inverting stage when all weights must be positive.
- Derive the input-output relation of op-amp integrators and differentiators (RC or RL), explain why a practical integrator needs a feedback resistor, and sketch their output for a triangle-wave input including clipping at the rails.
- Compute the output of an instrumentation amplifier, vo = (1 + 2R2/R1)(R4/R3)(v2 − v1), when it reads a strain-gauge Wheatstone bridge.
- Find the reference level and output states of comparators and Schmitt triggers built with voltage dividers and unequal supply rails, and sketch the output for a given input waveform.
- Wire an LM324 on a split ±15 V supply with bypass capacitors and measure gain, clipping (rail) voltages and slew-rate limiting on the oscilloscope.
- Identify the op-amp circuits in the servo schematic and calculate and measure the servo amplifier's minimum and maximum voltage gain.
Reading
| 8 | The text's op-amp chapter: the ideal-op-amp rules, negative and positive feedback, powering op amps, real specifications (offsets, slew rate, frequency compensation), comparators with hysteresis, and instrumentation amplifiers. Focus on 8.3 to 8.5, 8.8, 8.12, 8.13 and 8.17, which match the notes; skim the rest. |
Lectures
| 1 | Part 1Open original recording | 57:04 |
| 2 | Part 2Open original recording | 31:33 |
| 3 | Part 3Open original recording | 19:03 |
| 4 | Part 4Open original recording | 14:28 |
| 5 | Part 5Open original recording | 33:01 |
| 2:35:09 |
Notes
From the notes pack:
- Op-amp characteristics: output vo = G(va − vb) with G above 100,000, output limited by the supply rails, so va ≈ vb whenever the output is in its active range
- Very high input impedance: input currents can be neglected with resistors up to about 1 MΩ; op amps amplify DC as well as AC
- Negative feedback and the voltage follower (output tied to the inverting input)
- Noninverting amplifier: vo = (1 + Rf/R1)vin
- Inverting amplifier: vo = −(Rf/Rin)vin, derived from va = 0 and iin = if
- Summer: vo = −(Rf/R1)v1 − (Rf/R2)v2 − (Rf/R3)v3
- Differentiator: vo = −CRf dvin/dt
- Integrator: vo = −(1/CRin)∫vin dt, and the practical (Miller, running-average) integrator with a resistor across the capacitor to stop DC drift
- Active filters (brief): replacing resistors with capacitors gives frequency-dependent gain without inductors
- Differential amplifier: vo = (Rf/Rin)(v2 − v1), and why its input currents depend on the other input
- Buffered differential amplifier and the three-op-amp instrumentation amplifier, vo = (1 + 2R2/R1)(R4/R3)(v2 − v1), with common-mode rejection and use on strain-gauge bridges
- Extra output current: NPN/PNP push-pull pair inside the feedback loop, with warnings about instability and crossover distortion
- Nonlinear circuits: comparators referenced to ground or to a voltage divider
- Schmitt trigger: positive feedback adds hysteresis, with variations whose switching levels are set by dividers
- Multivibrator (square-wave generator) built from a Schmitt trigger and an RC network
- Conclusion: linear circuits use negative feedback to keep va − vb small; without it the output sits at a rail
Homework
OA1: Op-amp design problems
- Design a buffer so a high-source-resistance sensor can drive a fairly low-resistance load without the load disturbing the measurement (no voltage gain needed)
- Design a noninverting amplifier with a gain of 12 (output in phase with input)
- Design an inverting amplifier with a gain of 25 and an input resistance of at least 10 kΩ
- Design a two-input amplifier with vo = −10v1 − 4v2
- Design a two-input amplifier with vo = +10v1 + 4v2 (more than one op amp allowed)
- Design an amplifier with vo = 12v2 − 12v1
- Design a differentiator from an op amp, a resistor and an inductor, and derive its output to show it differentiates (no part values needed)
- Design a comparator whose output is high (about 8 or 9 V) when the input is above 5 V and low (about 1 V) when it is below 5 V
- For every design, show a schematic with all part values, using resistors from 1 kΩ to 1 MΩ that differ from the answer key's
OA2: Op-amp analysis, waveforms and ME Design Day
- Design Day write-up: attend ME Design Day in the Union and write 2 to 4 paragraphs on what you saw, especially the circuits and electronics
- Find the output of an instrumentation amplifier (op amps on ±12 V) reading a strain-gauge bridge excited by 10 V, with gauges of 99 Ω and 101 Ω; input buffers use 10 kΩ feedback resistors and a 1 kΩ gain resistor, and the difference stage uses 4 kΩ inputs and 10 kΩ feedback and ground resistors
- A triangle wave (0 V at 0 ms, +2 V peak at 3 ms, −2 V at 9 ms, 12 ms period) drives three circuits; sketch each output from 0 to 12 ms:
- (a) a differentiator with a 6 µF input capacitor and 1 kΩ feedback resistor, op amp on ±12 V
- (b) an inverting summer on ±10 V supplies: vS through 6 kΩ and +10 V through 90 kΩ into the inverting input, 27 kΩ feedback, noninverting input grounded
- (c) a comparator on +9 V and −3 V supplies with vS on the inverting input and the noninverting input set by an 8 kΩ (to +9 V) and 1 kΩ (to ground) divider
Lab: Operational amplifiers
Build a voltage follower, a noninverting amplifier, an inverting amplifier and one more op-amp circuit of your choice from an LM324 on a ±15 V supply, and check each against its formula. Push the amplifier into clipping and slew-rate limiting to see the op amp's real limits, then find the op-amp stages in the servo and compare its calculated and measured gain.
Before the lab
- Bring the op-amp notes, the servo schematic (handed out with the diodes lab) and your control-systems lab notes on measuring servo gain
- Pick resistor values for a gain-of-11 noninverting amplifier and an inverting amplifier with gain of 10 or less, all between 100 Ω and 1 MΩ
- Pick the extra circuit you will build (summer, differentiator or integrator) and work out its expected output
- Read the whole handout and write your own objective in the notebook
- Simulate the voltage follower with the LTspice file in Lab11_File.zip
Equipment
- Triple-output DC power supply with tracking (Agilent E3631A), set to ±15 V
- Function generator (Agilent 33120A)
- Oscilloscope (two channels)
- Digital multimeter (to check the supply pins)
- Servo (checked out from the stockroom)
- BNC cables and scope probes
Parts
| 1 | LM324 quad op amp | a TL084 works better |
| 2 | 0.1 µF to 0.22 µF capacitor (104 or 224) | supply bypass, one per supply pin |
| 2 | 47 µF to 100 µF electrolytic capacitor | supply bypass, observe polarity |
| 2 | 10 kΩ resistor | R1 of the noninverting amplifier and the resistor in other circuits |
| 1 | 100 kΩ resistor | suggested Rf for the gain-of-11 amplifier; any values from 100 Ω to 1 MΩ are allowed |
| 1 | 1 kΩ resistor | Rin of the suggested integrator, if you build it |
| 1 | Breadboard and wires |
Procedure
- Power the LM324
- Plug the LM324 across the breadboard's center channel with the notch on the left and the writing upright; pins count counterclockwise from pin 1 at lower left
- On the supply, hold Track for at least 1 s, press +25V and set 15 V; the − output tracks to −15 V
- Connect +15 V to the V+ pin (pin 4, bottom row) and −15 V to the V− pin (pin 11, top row); V− is on top, so check twice before powering up
- Tie the supply ground to a breadboard ground rail; it does not connect to the op amp directly
- From each supply pin to ground, add a 0.1 µF to 0.22 µF capacitor and a 47 µF to 100 µF electrolytic (+ lead to +15 V on the positive side, + lead to ground on the −15 V side)
- If nothing works: measure the supply pins with the DMM, check grounds, try another of the four op amps, then have the TA check before swapping the IC
- Voltage follower
- Wire one op amp's output straight to its − input
- Connect the bench function generator to the + input: 1 kHz sine
- Scope CH1 on the output, CH2 on the input, all grounds common, scope cal knobs fully clockwise
- Confirm the output matches the input
- Noninverting amplifier, gain about 11
- R1 = 10 kΩ from the − input to ground, Rf = 100 kΩ from output to the − input, signal into the + input
- Compare output and input amplitudes; lower the input if the output clips
- Move CH1 to the − input (CH2 stays on the + input) and confirm the two inputs are nearly identical, then return CH1 to the output
- Clipping
- Raise the input amplitude until the output clips at top and bottom
- Measure the maximum positive and negative output voltages (the rails)
- View both op-amp inputs again and note they differ whenever the output sits at a rail
- Return the scope to the output and set the input so the output is about 20 Vpp
- Slew-rate limiting
- Raise the frequency until the output turns into a triangle wave (and shrinks a little)
- Lower the input amplitude and watch the sine shape return
- Return to about 1 kHz
- Inverting amplifier
- Rin from the generator to the − input, Rf from output to the − input, + input to ground; choose a gain of 10 or less so the 33120A can drive it without clipping
- Confirm the output is inverted (180° out of phase) and measure the gain
- One more op-amp circuit
- Build any other circuit from the op-amp notes
- Summer: two inputs, using the supply's +5V output or a second checked-out generator as the second input
- Differentiator: suggested C = 0.22 µF and R = 10 kΩ
- Integrator: suggested C = 0.22 µF, Rin = 1 kΩ, Rf = 100 kΩ across the capacitor
- Devise tests that show the circuit does its job with the right output amplitude, and compare with calculations
- Op amps in the servo
- On the servo schematic, find and label at least two of the circuits from the op-amp notes
- The servo's LM324 outputs are pins 1, 7, 8 and 14; label each op amp LL, LR, UL or UR and tape the schematic into the notebook
- Treat the input as the difference between the two position-sensor pot wipers and the output as the motor voltage; the last op amp (driving the transistors) has gain 1 and the first three depend on the gain knob
- Calculate the minimum and maximum gain from the schematic values and the gain formulas
- Measure the servo gain
- Turn the gain pot fully counterclockwise (minimum)
- Set the function generator to show 50 mVpp (it actually puts out 100 mVpp into a high-impedance load)
- Measure the gain with the method from the control-systems lab
- Turn the gain pot fully clockwise and measure the maximum gain
- Extra credit and wrap-up
- Extra credit: build, test and document one or two more circuits from the notes, up to 10 points each
- Get checked off and write the conclusion
Record
- Schematic with part values for every circuit built
- Follower: input and output amplitudes showing they match
- Noninverting amplifier: input and output amplitudes, measured gain against the expected 11
- Traces of the + and − inputs showing va ≈ vb
- Sketch of the clipped output, the measured positive and negative clipping levels, and a sketch of the two inputs while clipping
- Sketch of the slew-limited output, and answer: why does lowering the amplitude make it a sine wave again?
- Inverting amplifier: evidence of inversion, measured gain against calculated
- Extra circuit: your tests, measurements and comparison with calculations
- Labeled servo schematic, calculated minimum and maximum gain, measured minimum and maximum gain, and the comparison
- Conclusion describing practical uses for at least a couple of these circuits
Files
- Lab help files: Contains Lab11_Voltage_Follower.asc (an LTspice schematic of the voltage follower) and Lab11_Help, a help document supplied as both .docx and .pdf.