Skip to content
LumenaryAcademy
Electronics 70 min

Operational amplifiers

A very high-gain amplifier, tamed by negative feedback into precise circuits whose behaviour is set by a few resistors and capacitors.

Code tested · 6AI-draftedAwaiting review by an electrical engineer

Your guides: Chloe · The Physicist, Margaret · The Bench Engineer, Gideon · The Design Reviewer

MotivationH

An amplifier you design with resistors

The previous lesson showed how much care one transistor stage takes: a bias network, a gain that depends on the bias current and the temperature, and a bandwidth fixed by stray capacitances. Now imagine a single part that you never bias, whose gain you choose with the ratio of two resistors to an accuracy of 0.1%, and which also adds, subtracts, integrates, filters and converts current to voltage, all with the same handful of rules. That part is the operational amplifier, or op-amp: an integrated circuit of dozens of transistors, starting with a differential pair, that amplifies the difference between its two inputs by a very large factor.

The name comes from the 1940s, when vacuum-tube amplifiers performed mathematical operations in analog computers. Today op-amps sit in almost every sensor interface, audio path, battery charger, motor drive and measuring instrument, and cost from a few cents to tens of dollars. This lesson explains the rules everyone uses, why they are true, the circuits built on them, and the real limits that separate a working design from a disappointing one.

DefinitionsH

The ideal op-amp and why feedback makes it work

An op-amp has a non-inverting input v+v_+, an inverting input v−v_-, and an output. Within its supply rails its output is vout=A (v+−v−),v_{out} = A\,(v_+ - v_-), where the open-loop gain AA is enormous: 10510^5 to 10710^7 at low frequencies. Used like this, without feedback, a difference of a few microvolts drives the output to a rail, which is how a comparator works but is useless as an amplifier. The trick is to feed part of the output back to the inverting input.

Theorem— Negative feedback makes the closed-loop gain depend only on the feedback

Suppose a fraction β\beta of the output is fed back to the inverting input, so v−=βvoutv_- = \beta v_{out}, and the signal is applied to the non-inverting input. Then the closed-loop gain is G=voutv+=A1+Aβ  ⟶  1βas Aβ→∞,G = \frac{v_{out}}{v_+} = \frac{A}{1 + A\beta} \;\longrightarrow\; \frac{1}{\beta} \quad \text{as } A\beta \to \infty, and the voltage between the inputs is v+−v−=vout/Av_+ - v_- = v_{out}/A, which tends to zero.

Proof

Substitute v−=βvoutv_- = \beta v_{out} into vout=A(v+−v−)v_{out} = A(v_+ - v_-): vout=Av+−Aβvoutv_{out} = A v_+ - A\beta v_{out}, so vout(1+Aβ)=Av+v_{out}(1 + A\beta) = A v_+ and G=A/(1+Aβ)G = A/(1 + A\beta). Dividing numerator and denominator by AβA\beta gives G=(1/β)⋅1/(1+1/(Aβ))G = (1/\beta)\cdot 1/(1 + 1/(A\beta)), which tends to 1/β1/\beta, with relative error about 1/(Aβ)1/(A\beta). Finally v+−v−=vout/Av_+ - v_- = v_{out}/A is a finite output divided by a huge gain.

∎

This gives the two golden rules of the ideal op-amp, valid when there is negative feedback and the output is not at a rail:

  1. The inputs draw no current. (Real inputs draw picoamperes to nanoamperes.)
  2. The output does whatever it must to make v−=v+v_- = v_+. This "virtual short" between the inputs is not a property of the chip; it is a consequence of high gain inside a negative feedback loop.
python
# A non-inverting amplifier: feedback fraction beta = Rg / (Rf + Rg) = 1/10
beta = 1 / 10
print("open-loop gain A   closed-loop gain   error vs 1/beta   (v+ - v-) for a 5 V output")
for A in [10, 100, 1e3, 1e4, 1e5, 1e6]:
    G = A / (1 + A * beta)
    print(f"{A:16,.0f}   {G:16.5f}   {100 * (G - 1 / beta) / (1 / beta):+14.4f} %   {5 / A * 1e6:14.1f} uV")

# Desensitivity: halve A and watch the closed-loop gain barely move.
for A in [2e5, 1e5]:
    print(f"A = {A:,.0f}: G = {A / (1 + A * beta):.5f}")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

With A=105A = 10^5 the gain is 9.999, within 0.01% of the ideal 10, and the inputs differ by only 50 µV for a 5 V output. Halving AA from 200 000 to 100 000, a huge change in the chip, moves the gain from 9.99950 to 9.99900. That indifference to the amplifier is what feedback buys; Feedback, stability and oscillators studies its price.

Worked examplesH

The basic circuits

Every circuit in this section is solved the same way: set v−=v+v_- = v_+, assume no input current, and apply Kirchhoff's current law at the inverting input.

−+−+inR_inR_foutinR_fR_goutinverting: G = −R_f / R_innon-inverting: G = 1 + R_f / R_g
Left, the inverting amplifier: the inverting input is held at 0 V (a virtual ground), so the input current v_in/R_in must all flow through R_f. Right, the non-inverting amplifier: the divider R_f, R_g feeds back the fraction β = R_g/(R_f + R_g), and the input sees the op-amp's very high input resistance.

Inverting amplifier. The non-inverting input is grounded, so the inverting input is held at 0 V too: a virtual ground. The input current vin/Rinv_{in}/R_{in} cannot enter the op-amp, so it flows on through RfR_f, and the output must sit at −Rf vin/Rin-R_f\,v_{in}/R_{in}: G=−RfRin,input resistance=Rin.G = -\frac{R_f}{R_{in}}, \qquad \text{input resistance} = R_{in}.

Non-inverting amplifier. The divider makes v−=voutRg/(Rf+Rg)v_- = v_{out} R_g/(R_f + R_g); setting that equal to vinv_{in} gives G=1+RfRg,G = 1 + \frac{R_f}{R_g}, with an input resistance of hundreds of megohms or more. With Rf=0R_f = 0 and no RgR_g it becomes the voltage follower, G=1G = 1, the ideal buffer.

Summing amplifier. Several inputs, each through its own resistor, into one virtual ground: the currents add, so vout=−Rf (v1/R1+v2/R2+⋯ )v_{out} = -R_f\,(v_1/R_1 + v_2/R_2 + \cdots). With equal resistors this is an analog adder, and with different ones a weighted sum: the heart of an audio mixer, and of a simple digital-to-analog converter.

Difference amplifier. Four resistors, R1R_1 into each input, R2R_2 from the inverting input to the output and from the non-inverting input to ground, give vout=(R2/R1)(v2−v1)v_{out} = (R_2/R_1)(v_2 - v_1). Its ability to ignore a voltage common to both inputs depends on how well the two resistor ratios match: with 1% resistors at unity gain, the worst-case common-mode rejection is only about 50, or 34 dB.

Instrumentation amplifier. Put a non-inverting buffer in front of each input of a difference amplifier, and connect the buffers' two inverting inputs through a single gain resistor RGR_G, each buffer having a feedback resistor RR. Common-mode voltages pass through the buffers with gain one, while the difference is amplified by 1+2R/RG1 + 2R/R_G; the difference amplifier then removes the common mode. The result has very high input resistance on both inputs, a gain set by one resistor (with R=10R = 10 kΩ, RG=202 ΩR_G = 202\ \Omega gives 100), and a common-mode rejection of 100 dB or more when built on one chip with trimmed resistors. It is the standard front end for bridges and strain gauges, thermocouples and electrocardiograms, whose millivolt signals ride on volts of common-mode interference.

Example— A transimpedance amplifier for a photodiode

In Semiconductors and diodes, 10 µW of 850 nm light gave a photodiode current of about 5.5 µA. Connect the photodiode from the inverting input to ground and a resistor RfR_f from the inverting input to the output. The virtual ground holds the photodiode at 0 V, the ideal condition for a linear response, and all its current flows through RfR_f, so vout=IphRfv_{out} = I_{ph} R_f in magnitude. With Rf=200R_f = 200 kΩ the output is 1.1 V. A small capacitor across RfR_f, typically a few picofarads, is needed to keep the circuit stable against the photodiode's own capacitance, a first taste of the next lesson.

Integrators

Replace RfR_f in the inverting amplifier by a capacitor CC. The input current vin/Rv_{in}/R now charges the capacitor, so vout(t)=−1RC∫0tvin dt+vout(0).v_{out}(t) = -\frac{1}{RC}\int_0^t v_{in}\,dt + v_{out}(0). With R=10R = 10 kΩ and C=100C = 100 nF, a steady 1 V input makes the output ramp down at 1 V per millisecond. Integrators generate triangle waves, measure charge, and form the I in the PI and PID controllers of Feedback control. A real integrator integrates its own offset voltage too and drifts to a rail, so practical circuits put a large resistor across CC (limiting the gain at DC) or a switch that resets it.

ComputationC

Active filters: the Sallen–Key low-pass

Passive RC filters, from Frequency response and filters, can only fall off gently: cascading RC sections loads each with the next and gives a soft, drooping corner. Inductors would sharpen the corner but are bulky at audio frequencies. Active filters use op-amps and capacitors to build the same second-order responses as an RLC circuit, with buffered outputs that can be cascaded freely.

The most popular is the Sallen–Key circuit, published by R. P. Sallen and E. L. Key of MIT Lincoln Laboratory in 1955. In its unity-gain low-pass form, two resistors in series lead to the op-amp's non-inverting input, wired as a follower; one capacitor C2C_2 goes from that input to ground and the other, C1C_1, from the junction of the resistors back to the output.

−+inR1 10kR2 10kC1 22nC2 12nout
A unity-gain Sallen–Key low-pass filter, with the component values used below. C1 feeds the output back to the middle node, which sharpens the corner: at the cut-off frequency the output is still nearly in phase with the middle node and pushes it up.

Nodal analysis at the two internal nodes, with the follower making voutv_{out} equal to the voltage on C2C_2, gives H(s)=11+s C2(R1+R2)+s2R1R2C1C2,ω0=1R1R2C1C2,Q=R1R2C1C2C2(R1+R2).H(s) = \frac{1}{1 + s\,C_2(R_1 + R_2) + s^2 R_1 R_2 C_1 C_2}, \qquad \omega_0 = \frac{1}{\sqrt{R_1R_2C_1C_2}}, \qquad Q = \frac{\sqrt{R_1R_2C_1C_2}}{C_2(R_1 + R_2)}. For the flattest passband, the Butterworth response, Q=1/2Q = 1/\sqrt2. With equal resistors RR, that needs C1=2C2C_1 = 2C_2, and C1C2=1/(ω0R)\sqrt{C_1C_2} = 1/(\omega_0 R).

python
import math

def sallen_key(R1, R2, C1, C2):
    """Unity-gain Sallen-Key low-pass: C1 from the middle node to the output, C2 to ground."""
    w0 = 1 / math.sqrt(R1 * R2 * C1 * C2)
    Q = math.sqrt(R1 * R2 * C1 * C2) / (C2 * (R1 + R2))
    return w0 / (2 * math.pi), Q

def response(f, R1, R2, C1, C2):
    s = 2j * math.pi * f
    return 1 / (1 + s * C2 * (R1 + R2) + s * s * R1 * R2 * C1 * C2)

# Design: Butterworth (Q = 1/sqrt 2), 1 kHz, equal resistors of 10 kilohms.
R, f0 = 10e3, 1e3
c = 1 / (2 * math.pi * f0 * R)               # the geometric mean sqrt(C1 C2)
C1, C2 = c * math.sqrt(2), c / math.sqrt(2)   # Q = sqrt(C1/C2)/2 = 1/sqrt 2
print(f"ideal values: C1 = {C1 * 1e9:.2f} nF, C2 = {C2 * 1e9:.2f} nF")

E12 = [1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2]
def nearest_e12(x):
    candidates = [v * 10 ** d for d in range(-12, -3) for v in E12]
    return min(candidates, key=lambda v: abs(math.log(v / x)))
C1s, C2s = nearest_e12(C1), nearest_e12(C2)
for name, (a, b) in [("ideal", (C1, C2)), ("E12", (C1s, C2s))]:
    f, Q = sallen_key(R, R, a, b)
    print(f"{name:5}: C1 = {a * 1e9:5.1f} nF, C2 = {b * 1e9:5.1f} nF -> f0 = {f:6.1f} Hz, Q = {Q:.3f}")

print("\n   f (Hz)   ideal (dB)   E12 parts (dB)")
for f in [100, 500, 1000, 2000, 5000, 10000]:
    g1 = 20 * math.log10(abs(response(f, R, R, C1, C2)))
    g2 = 20 * math.log10(abs(response(f, R, R, C1s, C2s)))
    print(f"{f:9.0f}   {g1:10.2f}   {g2:14.2f}")

lo, hi = 100.0, 10000.0                       # where the E12 version is 3 dB down
for _ in range(60):
    mid = math.sqrt(lo * hi)
    if abs(response(mid, R, R, C1s, C2s)) > 1 / math.sqrt(2):
        lo = mid
    else:
        hi = mid
print(f"\n-3 dB frequency with E12 parts: {mid:.1f} Hz")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

The ideal design needs 22.51 nF and 11.25 nF. Real capacitors come in the E12 series, so we take 22 nF and 12 nF, which moves f0f_0 to 979.5 Hz and QQ to 0.677, putting the −3 dB point at 936.1 Hz. Above the corner the response falls 40 dB per decade, twice as steeply as one RC section: −28 dB at 5 kHz and −40 dB at 10 kHz.

Simulating with a behavioural op-amp

To simulate op-amp circuits you need an op-amp model. Manufacturers publish detailed models of their parts; here we write a small behavioural one of our own, which captures the essentials with three elements. A transconductance stage converts the input difference into a current, limited to ±0.5 mA by a tanh function; that current charges a 1 nF capacitor, shunted by a resistor that sets the DC gain; and a unity-gain voltage source buffers the result. The numbers give an open-loop gain of 10510^5, a gain–bandwidth product of 1 MHz (gm/2πCg_m / 2\pi C) and a slew rate of 0.5 V/µs (Imax/CI_{max}/C), typical of a modest general-purpose op-amp.

spice
* Unity-gain Sallen-Key low-pass filter, 1 kHz Butterworth design with E12 capacitors
.subckt OPAMP inp inn out
B1 0 n1 I = 0.5m * tanh(6.2832m * (v(inp) - v(inn)) / 0.5m)
R1 n1 0 15.915Meg
C1 n1 0 1n
E1 out 0 n1 0 1
.ends

VIN in 0 DC 0 AC 1
R1 in a 10k
R2 a b 10k
C1 a out 22n
C2 b 0 12n
XU b out out OPAMP

.control
ac dec 100 10 100k
let gdb = vdb(out)
meas ac g1k FIND gdb AT=1k
meas ac g10k FIND gdb AT=10k
meas ac f3 WHEN gdb=-3 FALL=1
echo "gain at 1 kHz $&g1k dB, at 10 kHz $&g10k dB, -3 dB at $&f3 Hz"
.endc
.end

ngspice gives −3.57 dB at 1 kHz and −40.38 dB at 10 kHz, matching the Python, and a −3 dB frequency of 934.9 Hz against the ideal op-amp's 936.1 Hz: the finite gain–bandwidth product already matters by about 0.1% at one-thousandth of it.

ComputationC

Real op-amps: the limits that matter

Gain–bandwidth product. An op-amp's open-loop gain is huge only at low frequencies. Almost all general-purpose op-amps are internally compensated: a capacitor inside creates a single dominant pole, often at only a few hertz, so the gain falls by 10 for every tenfold rise in frequency, reaching 1 at the gain–bandwidth product (GBW), also called the unity-gain frequency. Closed around such an op-amp, a feedback loop with noise gain 1/β1/\beta has a bandwidth of about GBW β\text{GBW}\,\beta: an op-amp with GBW 1 MHz gives 100 kHz at a gain of 10 and only 10 kHz at a gain of 100. (Noise gain is 1+Rf/Rg1 + R_f/R_g for both the inverting and the non-inverting configuration; for the inverting one it is one more than the magnitude of the signal gain.)

Slew rate. The internal compensation capacitor is charged by a limited current, so the output can change no faster than the slew rate (SR), typically 0.1 to 1000 V/µs. A sine wave of peak VpV_p at frequency ff changes at up to 2πfVp2\pi f V_p, so a sine larger than SR/(2πf)\text{SR}/(2\pi f) comes out as a triangle. This full-power bandwidth limit is separate from GBW, and for large signals it usually bites first.

Offset voltage and bias currents. Mismatched input transistors make the output behave as if a small input offset voltage VOSV_{OS}, from microvolts to a few millivolts, were in series with an input, and it is multiplied by the noise gain. The inputs also draw small bias currents (picoamperes for CMOS and JFET inputs, nanoamperes for bipolar ones), which develop error voltages across the resistances they flow through. Both drift with temperature.

python
import math

GBW, SR = 1e6, 0.5e6         # gain-bandwidth product (Hz) and slew rate (V/s) of a modest op-amp
VOS, IB = 2e-3, 50e-9        # worst-case input offset voltage and input bias current

print("noise gain   closed-loop bandwidth")
for g in (1, 10, 100, 1000):
    print(f"{g:10d}   {GBW / g / 1e3:10.1f} kHz")

print("\nlargest undistorted sine at the output (slew-rate limit SR / (2 pi f)):")
for f in (1e3, 10e3, 20e3, 100e3):
    print(f"  {f / 1e3:5.0f} kHz: {SR / (2 * math.pi * f):6.2f} V peak")

# A gain-of-100 non-inverting amplifier, Rf = 99k, Rg = 1k, fed from a 10k source
RF, RG, RS = 99e3, 1e3, 10e3
noise_gain = 1 + RF / RG
print(f"\noutput error from a {VOS * 1e3:.0f} mV offset: {VOS * noise_gain * 1e3:.0f} mV")
print(f"output error from {IB * 1e9:.0f} nA of bias current in the 10k source: {IB * RS * noise_gain * 1e3:.0f} mV")
print(f"the same amplifier with a zero-drift op-amp (offset 5 uV, bias 0.2 nA): "
      f"{5e-6 * noise_gain * 1e3:.1f} mV and {0.2e-9 * RS * noise_gain * 1e3:.1f} mV")
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

A modest op-amp with a slew rate of 0.5 V/µs can deliver only about 4 V peak at 20 kHz, the top of the audio band; an audio design driving line levels needs a faster part. In the gain-of-100 amplifier, a 2 mV offset becomes 200 mV at the output, which may be fine for an AC-coupled audio signal and ruinous for a precision weighing scale, where a zero-drift (chopper-stabilised or auto-zero) op-amp cuts the error to under a millivolt.

The behavioural model shows both dynamic limits. Below, the same model forms a non-inverting amplifier with a gain of 10. The AC analysis finds its bandwidth; then a 0.4 V input step (a 4 V output step) and a 0.01 V step (0.1 V output) show the difference between slewing and linear settling.

spice
* Behavioural op-amp: A0 = 100 000 (100 dB), GBW = 1 MHz, slew rate 0.5 V/us
* A transconductance stage with a limited output current charges C1:
*   DC gain = GM * R1, GBW = GM / (2 pi C1), slew rate = IMAX / C1.
.subckt OPAMP inp inn out
B1 0 n1 I = 0.5m * tanh(6.2832m * (v(inp) - v(inn)) / 0.5m)
R1 n1 0 15.915Meg
C1 n1 0 1n
E1 out 0 n1 0 1
.ends

* Non-inverting amplifier, gain 1 + 9k/1k = 10
VIN in 0 DC 0 AC 1 PULSE(0 0.4 10u 10n 10n 40u 100u)
XA in fb out OPAMP
RF out fb 9k
RG fb 0 1k

* The same amplifier fed a small step, to see the linear response
VSM ins 0 DC 0 PULSE(0 0.01 10u 10n 10n 40u 100u)
XB ins fbs outs OPAMP
RFS outs fbs 9k
RGS fbs 0 1k

.control
ac dec 50 1 10Meg
let g = abs(v(out))
meas ac g0 FIND g AT=10
let g3 = g0 / sqrt(2)
meas ac fbw WHEN g=g3 FALL=1
echo "closed-loop gain $&g0, -3 dB bandwidth $&fbw Hz"
tran 10n 40u
meas tran tbig TRIG v(out) VAL=0.4 RISE=1 TARG v(out) VAL=3.6 RISE=1
meas tran tsmall TRIG v(outs) VAL=0.01 RISE=1 TARG v(outs) VAL=0.09 RISE=1
let dvdt = deriv(v(out))
meas tran srate MAX dvdt
echo "4 V output step: 10-90 % rise $&tbig s, steepest slope $&srate V/s"
echo "0.1 V output step: 10-90 % rise $&tsmall s (0.35 / bandwidth = 3.5e-06 s)"
.endc
.end

The closed-loop gain is 9.999 with a bandwidth of 100.0 kHz, exactly GBW divided by the noise gain. The small step rises from 10% to 90% in 3.50 µs, the 0.35/bandwidth0.35/\text{bandwidth} of a single-pole system. The large step takes 7.13 µs, and its steepest slope is 0.500 V/µs: the output is slewing, at a rate set by the internal current limit, not by the bandwidth.

Inputs, outputs and rails

An op-amp's inputs work only over a common-mode range, and its output can swing only so close to the supply rails. Older designs lose a volt or two at each end, which on a 3.3 V supply leaves almost nothing. Rail-to-rail output stages swing to within tens of millivolts of each rail at light loads (less closely as the load current rises). Rail-to-rail input stages use two differential pairs, one of n-type and one of p-type transistors, so that one of them works at any input voltage; the offset changes as the input crosses from one pair to the other, which precision designs avoid. Remember too that the output can supply only a limited current, typically 10 to 50 mA, and that a large capacitive load, such as a long cable, can make the feedback loop ring or oscillate.

ExplanationH

Choosing an op-amp

Thousands of op-amps are in production, from makers such as Analog Devices, Texas Instruments, STMicroelectronics, Microchip, onsemi, Renesas, Nisshinbo Micro Devices and 3PEAK, and every maker's website has a parametric search. Start from what the application needs, then read the datasheet's guaranteed (minimum or maximum) values, not the typical ones:

NeedLook atTypical choice
Battery-powered sensorsupply current, supply range, rail-to-rail input and outputCMOS op-amp drawing microamperes
Precision DC measurement (scales, thermocouples)offset voltage and its drift, 1/f noisezero-drift op-amp, or an instrumentation amplifier
Photodiode or high-impedance sensorinput bias current, input capacitanceCMOS or JFET input, picoampere bias
Audiovoltage noise density, distortion, slew ratelow-noise bipolar or JFET input
Fast signals (video, radio, data conversion)GBW, slew rate, settling time, output currenthigh-speed or current-feedback amplifier

Then check the supply voltage the part needs, the output current and the load, the package and the temperature range, the price and, as the shortages of the early 2020s taught everyone, whether more than one manufacturer makes something equivalent. Before building, simulate with the maker's own SPICE model, which captures far more than our three-element one.

History & global context

A short history

Op-amps began as vacuum-tube circuits in the analog computers of the 1940s; in 1947 John Ragazzini and his colleagues at Columbia University named the "operational amplifier" in a paper on solving the equations of dynamics electronically. George A. Philbrick's company sold the K2-W, a plug-in tube op-amp, from 1952. The integrated op-amp arrived at Fairchild Semiconductor, where Bob Widlar designed the µA702 and the µA709 in the mid-1960s. In 1968 David Fullagar's µA741 put the compensation capacitor on the chip, so that the op-amp was stable at any gain without external parts; descendants of that design are still made. Since then op-amps have gained JFET and CMOS inputs, rail-to-rail operation on single low-voltage supplies, auto-zeroing for microvolt offsets, and bandwidths beyond a gigahertz.

Common misconceptionsH

Common misconceptions

Misconception

"The op-amp's inputs are always at the same voltage." Only with negative feedback and an output that is not at a rail. In a comparator, a Schmitt trigger or a saturated amplifier, the inputs can differ by volts.

Misconception

"A virtual ground is connected to ground." No current flows from it to ground. It is held at 0 V by the feedback, and current arriving through the input resistor leaves through the feedback resistor.

Misconception

"An op-amp with GBW 10 MHz amplifies by 1000 up to 10 MHz." At a gain of 1000 its bandwidth is about 10 kHz. The product of gain and bandwidth, not each separately, is what the part offers.

Misconception

"Rail-to-rail means the output reaches the rails exactly, at any current." It reaches within millivolts at very light loads and within a few hundred millivolts at its rated current. Leave headroom.

Exercises

Exercises

1. Operational amplifiers

Warm-upHuman

An inverting amplifier has Rin=4.7R_{in} = 4.7 kΩ and Rf=47R_f = 47 kΩ, with ±12 V supplies. The input is a steady +0.2 V. What is the output, in millivolts? (Include the sign.)

2. Operational amplifiers

Warm-upHuman

You need a non-inverting amplifier with a gain of 25, and you have chosen Rg=1R_g = 1 kΩ from the inverting input to ground. What value of RfR_f, in ohms, do you need?

3. Operational amplifiers

CoreHuman

A summing amplifier has Rf=10R_f = 10 kΩ. Input 1 is +0.5 V through 10 kΩ; input 2 is −0.2 V through 5 kΩ. What is the output, in millivolts? (Include the sign.)

4. Operational amplifiers

CoreHuman

An op-amp with a gain–bandwidth product of 3 MHz is used as an inverting amplifier with gain −20. What is the closed-loop bandwidth, in kilohertz, to the nearest whole number?

5. Operational amplifiers

CoreHuman

An op-amp has a slew rate of 0.5 V/µs. What is the highest frequency, in hertz, at which it can deliver an undistorted 10 V peak sine wave? Round to the nearest hertz.

6. Operational amplifiers

CoreHuman

In which of these situations can you correctly assume v−=v+v_- = v_+? Select all that apply.

Choose all that apply

7. Operational amplifiers

CoreHuman

You are building a transimpedance amplifier with a 10 MΩ feedback resistor, to measure photodiode currents down to 1 nA from a single 3.3 V supply. Which specification matters most when choosing the op-amp?

Choose one

8. Operational amplifiers

CoreComputational

Write sallen_key_butterworth(f0, r) returning the capacitors (c1, c2) (in farads) for a unity-gain Sallen–Key low-pass filter with R1=R2=rR_1 = R_2 = r, a Butterworth response (Q=1/2Q = 1/\sqrt2) and natural frequency f0 in hertz. As in the lesson, C1C_1 goes from the middle node to the output and C2C_2 from the op-amp's input to ground, so ω0=1R1R2C1C2,Q=R1R2C1C2C2(R1+R2).\omega_0 = \frac{1}{\sqrt{R_1R_2C_1C_2}}, \qquad Q = \frac{\sqrt{R_1R_2C_1C_2}}{C_2(R_1 + R_2)}.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

Further reading and resources