An op amp buffer (also known as a unity-gain amplifier or voltage follower) outputs the exact voltage present at its non-inverting input. The gain equation is simply Av = 1 (Vout = Vin). Its primary job is impedance transformation: it presents a massively high input impedance to your source signal so it doesn't load it down, while providing a very low output impedance to drive the next stage of your circuit. If you need a safe, immediate default part for a 3.3V or 5V single-supply microcontroller sensor circuit, buy the Microchip MCP6001 (approx. $0.20 in single quantities) or the TI OPA340 (approx. $1.50) for precision rail-to-rail applications. For dual-supply (+/-15V) audio or bench equipment, default to the TL072 or NE5532.

Symbol, Pinout, and the Unity-Gain Principle

In schematic diagrams, the op amp is drawn as a triangle. The non-inverting input is marked with a plus sign (+), the inverting input with a minus sign (-), and the output emerges from the tip. Power pins (V+ and V-, or VCC and VEE/GND) are often omitted in high-level schematics but are physically required. To configure any op amp as a buffer, you wire the output directly back to the inverting (-) input. This creates 100% negative feedback. The op amp's internal high-gain differential amplifier will relentlessly adjust its output voltage until the voltage at the inverting pin exactly matches the voltage at the non-inverting pin. This is the "virtual short" principle.

Standard 8-Pin DIP Pinout (Dual Op Amps like LM358, TL072)

Most through-hole op amps come in an 8-pin DIP package containing two independent amplifiers. Here is the standard pinout looking down at the chip with the notch/dot at the top:

  • Pin 1: Output A
  • Pin 2: Inverting Input A (-)
  • Pin 3: Non-Inverting Input A (+)
  • Pin 4: V- (Negative Supply or GND in single-supply)
  • Pin 5: Non-Inverting Input B (+)
  • Pin 6: Inverting Input B (-)
  • Pin 7: Output B
  • Pin 8: V+ (Positive Supply)
Bench Tip: Never leave the inputs of an unused op amp floating in a dual or quad package. Floating inputs can cause the internal transistors to bias into linear regions, drawing excess current and generating thermal noise. Tie the unused output to its inverting input, and tie the non-inverting input to ground or mid-rail.

Operating Regions and Spec-Sheet Limits

An op amp buffer only works correctly when kept within its linear operating region. If your input signal exceeds the power supply rails or the chip's specific common-mode voltage limits, the output will clip (saturate). Below is a typical operating table for a 5V single-supply system using a true rail-to-rail input/output (RRIO) op amp like the OPA340.
Operating Region Input Voltage Range (Vin) Output State (Vout) Typical Current Draw
Linear (Active) 0.05V to 4.95V Vout = Vin (±2mV offset) ~1mA (Quiescent)
Negative Saturation < 0.05V (or below VEE) Clipped at ~0.02V above GND Spikes briefly, then settles
Positive Saturation > 4.95V (or above VCC) Clipped at ~0.05V below VCC Spikes briefly, then settles
Phase Reversal (Fault) Beyond absolute max ratings Flips to opposite rail High (Risk of latch-up)

If you use an older, non-rail-to-rail part like the classic LM358 on a 5V supply, your linear region shrinks drastically. The LM358 input common-mode range includes ground, but its high-side limit is VCC - 1.5V. On a 5V supply, an LM358 buffer will distort any input signal above 3.5V.

The Decision Tree: Picking Your Default Op Amp Buffer

Stop guessing which part to order. Use this decision matrix to select the correct op amp buffer for your specific power supply and signal requirements.
If Your Application Requires... Then Choose This Part Number Key Ratings & Why
Single supply (3.3V or 5V), general sensor buffering, low cost Microchip MCP6001 RRIO, 1MHz GBW, ~$0.20. The undisputed king of hobbyist and basic industrial 5V sensor buffering.
Single supply (5V), high precision, low offset voltage for 16-bit ADCs TI OPA340 RRIO, 5.5MHz GBW, max 500µV offset. (TI OPA340 Datasheet)
Dual supply (±12V to ±15V), audio routing, or general bench circuits TI TL072 JFET inputs, ultra-low noise (18 nV/√Hz), high slew rate. Standard for audio mixing consoles.
Driving heavy capacitive loads (>100pF) or long coaxial cables TI LMH6643 Voltage feedback amp specifically internally compensated to remain stable into high capacitive loads without external isolation resistors.

Complete Application Circuit: 0-5V Sensor Buffer for ESP32

The ESP32's internal ADC is notoriously non-linear and has a relatively low, variable input impedance depending on the attenuation setting. If you connect a high-impedance voltage divider (like a 10k/10k thermistor divider) directly to an ESP32 ADC pin, the readings will drift and skew. An op amp buffer solves this completely.

Bill of Materials

  • U1: MCP6001 (5-pin SOT-23 or 8-pin DIP)
  • C1: 100nF (0.1µF) ceramic capacitor (0603 or radial)
  • R1: 100Ω 1/4W resistor (Output isolation)
  • R2, R3: 10kΩ resistors (Sensor voltage divider)

Wiring Steps

  1. Power Decoupling: Connect VCC (Pin 8 on DIP) to your 5V rail and VEE (Pin 4) to GND. Place the 100nF capacitor (C1) physically as close to the VCC and VEE pins as possible. This provides a local high-frequency charge reservoir and prevents high-speed oscillation. (Microchip MCP6001 Datasheet)
  2. Signal Input: Connect the midpoint of your sensor voltage divider to the Non-Inverting Input (Pin 3).
  3. Feedback Loop: Run a direct wire from the Output (Pin 1) to the Inverting Input (Pin 2). Do not add a resistor here; any resistance in the feedback path of a unity-gain buffer introduces thermal noise and a slight gain error due to input bias currents.
  4. Output Isolation: Connect the 100Ω resistor (R1) in series between the op amp Output (Pin 1) and the ESP32 ADC pin (e.g., GPIO 34). Why? The ESP32 ADC samples by switching an internal capacitor onto the pin. This sudden capacitive load can cause a standard op amp to oscillate at high frequencies. The 100Ω resistor isolates the op amp from this capacitive kick, ensuring stability.
Design Rule: Always include the 100Ω series output resistor when buffering signals for microcontroller ADCs. The voltage drop across 100Ω is negligible because the ADC input draws virtually zero continuous DC current (typically <1µA leakage), meaning Vdrop = I × R = 1µA × 100Ω = 0.1mV.

Failure Modes and Multimeter Diagnostics

Op amps rarely fail randomly; they fail because of electrical abuse. Common failure modes include output short circuits, exceeding the absolute maximum input differential voltage, and ESD latch-up. If your buffer circuit is misbehaving, grab your digital multimeter (DMM) and follow this diagnostic sequence.

Step 1: The Power-Off Diode Test (Checking for Dead Shorts)

With the circuit completely powered down and disconnected, set your DMM to Diode/Test mode. Place the red probe on the VCC pin and the black probe on the VEE/GND pin. You should read an open circuit (OL) or a high diode drop (typically >0.6V) as the meter charges the internal decoupling caps. If you read 0.00V or a dead short, the op amp's internal output transistors have likely melted short due to a massive over-current event, or your 100nF bypass capacitor has failed short.

Step 2: Verify the Virtual Short (Linear Operation Check)

Power the circuit on. Set your DMM to DC Voltage mode. Measure the voltage at the Non-Inverting input (Pin 3). Let's say it reads 2.500V. Now, move the black probe to the Inverting input (Pin 2). In a healthy buffer operating in its linear region, Pin 2 must read within 2mV to 5mV of Pin 3 (e.g., 2.498V). If Pin 2 reads significantly different from Pin 3 (e.g., 1.2V), the feedback loop is broken, the chip is in saturation, or the silicon is damaged.

Step 3: Output Verification and Oscillation Check

Measure the voltage at the Output pin (Pin 1). It should match the input voltage exactly. If your DMM reads a wildly fluctuating voltage, or a voltage sitting exactly at mid-rail when the input is at 0V, your op amp is likely oscillating. Standard DMMs cannot read high-frequency AC oscillation accurately; they will average it out to a bogus DC number. To confirm oscillation without an oscilloscope, temporarily place a 10nF ceramic capacitor between the output pin and ground. If the DMM reading suddenly snaps to the correct DC voltage, your circuit was oscillating due to parasitic inductance or capacitive loading. Increase your series output isolation resistor from 100Ω to 220Ω to fix it permanently.

Step 4: Thermal and Latch-up Checks

Touch the op amp package. It should be room temperature or barely warm. If it is hot to the touch while sourcing less than 10mA, it has likely suffered an ESD latch-up event where internal parasitic SCR structures have turned on, creating a low-impedance path from VCC to GND. Power cycle the board immediately; if it stays hot upon reboot, desolder and replace the chip.

For comprehensive component limits and standard analog design practices, keep the TI Analog Engineer's Pocket Reference bookmarked on your bench. When in doubt, default to the MCP6001 for 5V logic and the TL072 for dual-rail analog, wire the feedback loop tight, and always isolate your output.