When studying op amp example circuits, textbook problems often assume ideal components with infinite bandwidth and instantaneous output swings. On the bench, however, physics gets in the way. If you design an amplifier based solely on DC gain equations, your high-frequency AC signals will distort. This walkthrough tackles a classic non-inverting amplifier design problem, exposing the exact algebraic steps, the most common exam trap, and a concrete component selection matrix to get you from theory to a working breadboard.

The Problem Statement: Sensor Amplification

Design Challenge: You need to amplify a 50 kHz, 20 mV peak sine wave from a piezoelectric vibration sensor. The target closed-loop gain is 40 dB. The output must maintain the 50 kHz frequency without amplitude attenuation or waveform distortion.

Deliverables:
  • Calculate the required feedback ($R_f$) and ground ($R_g$) resistors using standard E24 values.
  • Determine the minimum required Gain-Bandwidth Product (GBWP) and Slew Rate (SR).
  • Select a specific, commercially available op-amp IC that satisfies all constraints.

Method Selection and The Slew Rate Trap

To solve this, we apply the Ideal Op-Amp Golden Rules (infinite input impedance, zero output impedance, and the virtual short circuit between inputs) combined with Large-Signal Bandwidth limits. According to All About Circuits, the virtual short allows us to set the closed-loop gain purely by the external resistor ratio.

The Trap: The most common mistake in op amp example circuits is calculating the Gain-Bandwidth Product (GBWP) and completely ignoring the Slew Rate (SR). GBWP dictates small-signal bandwidth (typically under 10% of max output swing). Slew Rate dictates large-signal bandwidth. If your required output voltage swing is high at a high frequency, a low SR will bottleneck your circuit, turning your smooth sine wave into a distorted triangle wave—even if the GBWP is theoretically sufficient.

Step-by-Step Algebraic Solution

We will break the math down into five discrete steps, ensuring no algebraic leaps.

  1. Convert Decibels to Linear Gain:
    The formula for voltage gain in dB is $A_{dB} = 20 \log_{10}(A_{V/V})$.
    $40 = 20 \log_{10}(A_{V/V})$
    $2 = \log_{10}(A_{V/V})$
    $A_{V/V} = 10^2 = 100 \text{ V/V}$.
  2. Calculate Peak Output Voltage:
    $V_{out(peak)} = A_{V/V} \times V_{in(peak)}$
    $V_{out(peak)} = 100 \times 20 \text{ mV} = 2000 \text{ mV} = 2.0 \text{ V peak}$.
  3. Calculate Minimum Gain-Bandwidth Product (GBWP):
    For a non-inverting amplifier, the required GBWP is the closed-loop gain multiplied by the operating frequency.
    $GBWP_{min} = A_{V/V} \times f$
    $GBWP_{min} = 100 \times 50 \text{ kHz} = 5,000,000 \text{ Hz} = 5.0 \text{ MHz}$.
  4. Calculate Minimum Slew Rate (SR):
    The maximum rate of change of a sine wave $V(t) = V_{peak} \sin(2\pi ft)$ occurs at the zero-crossing. The derivative is $2\pi f V_{peak}$.
    $SR_{min} = 2 \pi \times 50,000 \text{ Hz} \times 2.0 \text{ V}$
    $SR_{min} = 628,318 \text{ V/s} = 0.628 \text{ V/}\mu\text{s}$.
  5. Select E24 Standard Resistors:
    The non-inverting gain equation is $A = 1 + (R_f / R_g)$.
    $100 = 1 + (R_f / R_g) \implies R_f / R_g = 99$.
    Choosing $R_g = 1.0 \text{ k}\Omega$ (a standard E24 value) requires $R_f = 99 \text{ k}\Omega$. Since 99k is not an E24 value, we select the closest standard value: $R_f = 100 \text{ k}\Omega$.
    Recalculated Gain: $1 + (100/1) = 101 \text{ V/V}$ (40.08 dB). This is well within standard engineering tolerances.

Sanity Check and Bench Verification

Before ordering parts, we must verify the math and define how to test it on the bench.

  • Order of Magnitude: A 100x multiplier turning 20 mV into 2.0 V is logically sound and keeps the output well within standard ±5V or ±15V supply rails.
  • Unit Check: Slew rate is correctly expressed in V/µs (industry standard), and GBWP in MHz. The derivative of $V \sin(\omega t)$ correctly yields $V\omega \cos(\omega t)$, confirming the $2\pi f V_{peak}$ formula.
  • Independent Verification: Build the circuit on a breadboard. Inject a 50 kHz, 40 mV peak-to-peak sine wave from a function generator. Probe the output with an oscilloscope.
    • If the waveform looks like a triangle wave, your op-amp is slew-rate limited.
    • If it is a clean sine wave but the amplitude is only 1.5 V peak instead of 2.0 V, your op-amp is GBWP limited (the open-loop gain has rolled off at 50 kHz).

Component Decision Tree: Picking the Exact IC

We need an op-amp with a GBWP > 5.0 MHz and an SR > 0.628 V/µs. Applying a standard 20% engineering safety margin, our target specs are GBWP ≥ 6.0 MHz and SR ≥ 0.75 V/µs. Let us evaluate common bench and production ICs against these hard limits.

Op-Amp Model GBWP Slew Rate Verdict
LM358 1.0 MHz 0.3 V/µs FAIL (Fails both)
TL072 3.0 MHz 13.0 V/µs FAIL (GBWP too low)
NE5532 10.0 MHz 9.0 V/µs PASS (Marginal GBWP)
OPA350 (TI) 38.0 MHz 22.0 V/µs PASS (Ideal margins)
The Concrete Pick: Use the Texas Instruments OPA350 (single channel) or OPA2350 (dual channel). It provides a massive 38 MHz GBWP and 22 V/µs slew rate, ensuring your 50 kHz signal remains pristine with zero phase margin anxiety. It operates rail-to-rail on a single 2.7V to 5.5V supply, making it perfect for modern 3.3V or 5V microcontroller ADC interfaces.

Frequently Asked Questions

Why not just use the NE5532 since it technically passes?
The NE5532 is a legendary audio op-amp, but its 10 MHz GBWP leaves only a 2x safety margin for a 5 MHz requirement. If your sensor signal has high-frequency harmonics (e.g., square wave edges or transient spikes) that extend past 50 kHz, the NE5532 will attenuate them, altering the waveform shape. The OPA350's 38 MHz GBWP preserves those harmonics.

Do I need a bypass capacitor on the op-amp power pins?
Yes. Place a 100 nF (0.1 µF) ceramic capacitor as physically close to the VCC and GND pins of the OPA350 as possible. High-speed op-amps draw transient currents during fast output slew transitions; without local decoupling, power rail inductance will cause high-frequency ringing on your output signal.

What if my sensor has a high output impedance?
The non-inverting input of the OPA350 has a very high input impedance (typically > $10^{12} \Omega$), so it will not load down a high-impedance piezo sensor. However, you should place a 10 kΩ to 100 kΩ resistor from the non-inverting pin to ground to provide a DC return path for the input bias current, preventing the output from railing to the supply voltage.