When you need to amplify a tiny sensor signal, buffer a high-impedance source, or compare two voltages, operational amplifiers are the workhorses of analog design. The three most common op amp configurations you will build on the bench are the inverting amplifier, the non-inverting amplifier, and the unity-gain buffer. Their closed-loop voltage gains are defined by simple resistor ratios: Av = -Rf/Rin for inverting, Av = 1 + (Rf/Rin) for non-inverting, and Av = 1 for a buffer.
This guide skips the abstract semiconductor physics and goes straight to the schematic. We will cover standard pinouts, operating regions, a complete single-supply application circuit, how to select the right silicon for your board, and how to test a suspect chip with a multimeter.
The Anatomy of an Op Amp: Pinouts and Operating Regions
The standard 8-pin DIP (Dual In-line Package) is the most common footprint for through-hole op amps. While internal architectures vary, the external pinout is highly standardized across dual-op-amp packages like the LM358 or TL072.
Standard Dual Op Amp Pinout (Top View, Notch Up):
- Pin 1: Output A
- Pin 2: Inverting Input A (-)
- Pin 3: Non-Inverting Input A (+)
- Pin 4: V- (Negative Supply or Ground in single-supply)
- Pin 5: Non-Inverting Input B (+)
- Pin 6: Inverting Input B (-)
- Pin 7: Output B
- Pin 8: V+ (Positive Supply)
An op amp operates in three distinct regions depending on the differential voltage between its inputs and the feedback network. Understanding these regions is critical for debugging a circuit that is "pegged" to the supply rail.
| Region | Condition | Output Voltage (Typical ±15V Supply) | Application |
|---|---|---|---|
| Linear (Active) | Negative feedback is intact; V+ ≈ V- | Between -13V and +13V (depends on headroom) | Amplifiers, filters, PID controllers |
| Positive Saturation | V+ > V- by more than a few mV (open loop) | Pegged near +VCC (e.g., +13.5V) | Comparators, Schmitt triggers |
| Negative Saturation | V- > V+ by more than a few mV (open loop) | Pegged near -VEE (e.g., -13.5V) | Comparators, negative clippers |
Core Op Amp Configurations and a Complete Application Circuit
While dual-supply (±15V) circuits are easy to design because ground sits exactly in the middle of the supply, modern battery-powered and microcontroller-driven projects usually run on a single supply (e.g., 5V or 3.3V). This requires a deliberate biasing strategy.
Application Circuit: 5V Single-Supply Non-Inverting Sensor Amplifier
This circuit amplifies a 0.5V peak-to-peak AC sensor signal by a gain of 4, centering the output at 2.5V to allow a full 2V peak-to-peak swing without clipping.
- U1: LM358 (Dual Op Amp)
- R1, R2: 100kΩ (Voltage divider to create 2.5V virtual ground)
- C1: 10µF electrolytic (Decoupling the virtual ground to physical ground)
- C2: 1µF film (Input AC coupling capacitor)
- R3: 100kΩ (Input bias resistor to virtual ground)
- R4: 10kΩ (Feedback ground-reference resistor, Rin)
- R5: 30kΩ (Feedback resistor, Rf. Gain = 1 + 30k/10k = 4)
- C3: 100nF ceramic (Power supply bypass, placed physically adjacent to Pin 8 and Pin 4)
Signal Path: The AC signal passes through C2 into the non-inverting input (Pin 3). R3 provides the necessary DC path for the op amp's input bias current, tying the input to the 2.5V virtual ground. The output (Pin 1) feeds back through R5 to the inverting input (Pin 2). R4 ties Pin 2 to the 2.5V virtual ground, ensuring the DC output sits at 2.5V while the AC signal is amplified by a factor of 4.
Selecting and Biasing the Right Op Amp for the Job
Not all op amps are created equal. Selecting the wrong part can result in phase reversal, output stage latch-up, or excessive noise. When in doubt, rely on these industry-standard safe defaults, but always check the datasheet for your specific supply voltage and signal frequency.
| Part Number | Architecture | Supply Range | GBW (Gain-Bandwidth) | Slew Rate | Best For |
|---|---|---|---|---|---|
| LM358 | Bipolar (Dual) | 3V to 32V (Single/Dual) | 1 MHz | 0.3 V/µs | General purpose, low-cost DC sensors, single-supply 5V/12V logic interfacing. |
| TL072 | JFET Input (Dual) | ±5V to ±15V (Dual only) | 3 MHz | 13 V/µs | Audio preamps, high-impedance piezo pickups, dual-supply bench equipment. |
| MCP6001 | CMOS (Single) | 1.8V to 6V (Single) | 1 MHz | 0.6 V/µs | Battery-powered IoT, 3.3V microcontroller ADC buffering, rail-to-rail I/O. |
How to Bias for the Job:
- DC Signals (Thermistors, Strain Gauges): Use a dual supply if you need to measure bipolar signals (e.g., a bridge circuit that swings positive and negative). If constrained to a single supply, offset the sensor bridge so the minimum reading is above 0V.
- AC Signals (Audio, Vibration): Single supply is fine, but you must AC-couple the input and output with capacitors and establish a VCC/2 virtual ground as shown in the application circuit above.
- High-Impedance Sources: Avoid bipolar op amps like the LM358. Their input bias current (typically 20nA to 100nA) will develop a massive voltage drop across high-value source resistors. Choose a JFET or CMOS input op amp (like the TL072 or MCP6001) with picoamp-level bias currents.
Troubleshooting: How Op Amps Fail and How to Test Them
Op amps rarely fail gracefully. When subjected to overvoltage, static discharge, or output short-circuits, they typically suffer catastrophic internal damage. The most common failure modes are:
- Output Pegged to Rail: The internal differential pair is destroyed, or the output stage is shorted to VCC or GND.
- Dead Output (0V or floating): Internal bond wires have melted due to excessive output current (shorting the output pin to a low-impedance load).
- High-Frequency Oscillation: Not a silicon failure, but a layout failure. Missing bypass capacitors or routing feedback traces too close to the input pins causes parasitic capacitance to break the phase margin.
Testing an Op Amp with a Digital Multimeter (DMM)
You cannot test an op amp's internal transistors perfectly in-circuit, but you can quickly identify dead shorts and verify bias conditions using these numbered steps:
- Power Off - The Diode Test: Set your DMM to diode mode. Place the red probe on V- (GND) and the black probe on V+. You should read a forward voltage drop (typically 0.6V to 1.5V) due to internal protection diodes. Reverse the probes; it should read OL (Over Limit). If it reads 0.00V both ways, the internal power bus is shorted. Throw it away.
- Power On - Verify Supplies: Switch to DC Volts. Measure Pin 8 to Pin 4. You must read your exact supply voltage (e.g., 5.0V). If it reads low, the op amp is likely drawing excessive quiescent current due to internal damage.
- Verify the Virtual Short: In a properly functioning linear circuit with negative feedback, the voltage at the non-inverting input (+) and the inverting input (-) must be virtually identical (within 1-5mV). If Pin 2 reads 2.50V and Pin 3 reads 3.80V, the feedback loop is broken or the op amp is dead.
- Check the Output: Measure the output pin. If the inputs are within the common-mode range and the output is pegged exactly to VCC or GND despite negative feedback, the output stage is blown.
Frequently Asked Questions About Op Amp Configurations
What is the difference between inverting and non-inverting op amp configurations?
The core difference lies in phase and input impedance. An inverting configuration applies the signal to the (-) input, resulting in a 180-degree phase shift (a positive input yields a negative output) and an input impedance equal to the input resistor (Rin). A non-inverting configuration applies the signal to the (+) input, preserving the phase (positive in, positive out) and offering extremely high input impedance (often >1MΩ), which prevents the circuit from loading down weak signal sources like piezo sensors or microphone capsules.
Why does my op amp output stick to the positive or negative rail?
If your op amp is pegged to the rail in a linear amplifier circuit, the negative feedback loop is broken. Check for a cold solder joint on the feedback resistor, an open trace between the output and the inverting input, or an input signal that exceeds the op amp's common-mode voltage range. For example, the standard LM358 cannot sense signals all the way up to the positive rail; its inputs must stay at least 1.5V below VCC. If you feed it 5V on a 5V supply, it will phase-reverse or saturate.
Can I use an op amp as a comparator?
You can, but you shouldn't unless it's a low-speed, non-critical application. Op amps are optimized for the linear region and include internal frequency compensation capacitors that make them slow to recover from saturation. When an op amp is driven into hard saturation (acting as a comparator), it can take several microseconds to "wake up" and swing back to the linear region, causing severe propagation delay. Furthermore, many op amps lack open-collector outputs, making it difficult to interface their output directly with different logic voltage levels. For anything above a few kilohertz, use a dedicated comparator IC like the LM311 or LM393.
How do I prevent high-frequency oscillation in op amp circuits?
Oscillation occurs when parasitic phase shift turns your negative feedback into positive feedback at high frequencies. To prevent this: (1) Always place a 100nF ceramic bypass capacitor as physically close to the V+ and V- pins as possible. (2) Keep the feedback resistor network compact and close to the inverting input pin to minimize parasitic capacitance. (3) If driving a capacitive load (like a long coaxial cable or a large electrolytic capacitor), place a small series resistor (typically 10Ω to 50Ω) directly at the op amp's output pin to isolate the capacitive load from the feedback loop.






