An operational amplifier (op amp) is a high-gain, DC-coupled integrated circuit with differential inputs and a single-ended output. In practical bench terms, it is the fundamental building block you use to amplify weak sensor signals, filter out high-frequency noise, compare voltage thresholds, and buffer high-impedance sources so they can be read by microcontrollers like an ESP32 or Arduino. If you are asking 'what is the op amp' because you need to condition a signal for an ADC, the short answer is that it uses negative feedback to force its two input pins to the exact same voltage, allowing you to set a precise, predictable gain using just two external resistors.

The Short Answer: Symbol, Pinout, and Core Behavior

On a schematic, the op amp is drawn as a triangle. The top input is typically the non-inverting input (marked with a +), and the bottom is the inverting input (marked with a -). The output emerges from the point of the triangle. While op amps come in single, dual, and quad packages, the 8-pin DIP (Dual In-line Package) and SOIC formats are the most common for dual op amps. Here is the industry-standard pinout (shared by the LM358, TL072, and MCP6002):
  • 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)
Bench Tip: Pin 1 is always located immediately counter-clockwise from the orientation notch or dot on the IC casing. Always verify this before applying power; reversing V+ and V- will instantly destroy the silicon and sometimes take your power supply with it.

Operation Regions and Spec-Sheet Realities

An op amp does not magically output any voltage you ask for. It is constrained by its power supply rails and its internal transistor architecture. Understanding these regions prevents the most common beginner mistake: expecting a 5V output from a 5V supply.
Operation Region Condition Typical Output Voltage Range Current Behavior
Linear (Active) Negative feedback is present; inputs are within common-mode range. V- + 1.5V to V+ - 1.5V (Standard)
V- + 0.05V to V+ - 0.05V (Rail-to-Rail)
Output sources/sinks current to maintain virtual short. Typically limited to 20mA - 40mA.
Positive Saturation V(+) > V(-) with no feedback, or input exceeds common-mode high limit. Clamps to maximum positive swing (e.g., 3.5V on a 5V supply for standard parts). Output transistor is fully ON; current limited only by the load and internal short-circuit protection.
Negative Saturation V(-) > V(+) with no feedback, or input drops below common-mode low limit. Clamps to minimum negative swing (e.g., 0.02V above ground for LM358). Output transistor pulls hard to the negative rail.

According to Analog Devices' Op Amp Basics guide, the 'virtual short' principle only holds true in the linear region. If your input signal pushes the required output beyond the saturation limits, the op amp clips the waveform, introducing severe harmonic distortion.

The Safe Default Part Numbers for Your Bench

Do not over-engineer your component selection. For 90% of hobbyist and prototyping tasks, these three part numbers cover every base. Keep them in your drawer.
  • LM358 (Dual) / LM324 (Quad): The undisputed king of single-supply, general-purpose op amps.
    • Ratings: Supply: 3V to 32V (single) or ±1.5V to ±16V (dual). Slew Rate: 0.3 V/µs. GBP: 1 MHz.
    • Cost: ~$0.20 per IC.
    • Use when: You need to buffer a sensor or compare voltages on a 5V or 12V system and don't care about high-frequency noise.
  • TL072 (Dual): The standard for audio and low-noise analog signals.
    • Ratings: Supply: ±5V to ±15V (Requires dual supply). Slew Rate: 13 V/µs. GBP: 3 MHz. Low THD.
    • Cost: ~$0.80 per IC.
    • Use when: You are building guitar pedals, audio preamps, or active filters where a clean sine wave matters.
  • MCP6002 (Dual): The modern 3.3V microcontroller companion.
    • Ratings: Supply: 1.8V to 5.5V. Rail-to-Rail Input/Output (RRIO). Slew Rate: 0.6 V/µs. GBP: 1 MHz.
    • Cost: ~$0.60 per IC.
    • Use when: Interfacing directly with 3.3V ESP32 or Raspberry Pi Pico ADCs where you need the output to swing all the way to 3.3V.

Application Circuit: 3.3V Non-Inverting Amplifier with Bias

Let's build a complete, stable circuit. Suppose you have a pressure sensor outputting 0V to 500mV, and you need to amplify it to 0V to 3.3V to maximize the resolution of your ESP32's 12-bit ADC.

The Math: Required Gain = 3.3V / 0.5V = 6.6.
For a non-inverting amplifier, Gain = 1 + (Rf / Rin).
If we choose Rin = 10kΩ, then Rf must be 56kΩ (1 + 56/10 = 6.6).

Crucial Biasing Step: Because we are using a single 3.3V supply (V- = GND), the op amp cannot output negative voltages. If your sensor signal dips even 1mV below ground, the LM358 will phase-invert or clip. We use an MCP6002 here because its inputs can handle signals exactly at the V- rail, but we still add a slight bias to keep it in the linear zone.

Wiring Steps

  1. Power & Decoupling: Connect 3.3V to Pin 8 (V+) and GND to Pin 4 (V-). Place a 100nF ceramic capacitor directly across Pin 8 and Pin 4, as physically close to the IC as possible. This prevents high-frequency oscillation.
  2. Feedback Network: Connect a 56kΩ resistor (Rf) from Pin 1 (Output) to Pin 2 (Inverting Input). Connect a 10kΩ resistor (Rin) from Pin 2 to GND.
  3. Input Signal: Route your 0-500mV sensor signal to Pin 3 (Non-Inverting Input).
  4. Output Filtering: Connect a 100Ω resistor in series with Pin 1, followed by a 1nF capacitor to GND. This creates a low-pass filter (cutoff ~1.5 MHz) to block RF interference before the signal hits the ESP32 ADC pin.
  5. Verify: Power the circuit. Apply 250mV to Pin 3. Measure Pin 1 with a multimeter; it should read exactly 1.65V (250mV * 6.6).

Decision Tree: Picking the Right Op Amp

Stop guessing. Use this decision matrix to select the exact part number for your specific application constraints.
Application Scenario Key Requirement Concrete Part Pick
Reading thermocouples or strain gauges Microvolt-level precision, near-zero drift OPA333 (Zero-drift, offset voltage max 10µV)
Driving a 50Ω coaxial cable or low-impedance headphones High output current (>50mA), high slew rate LMH6642 (Outputs up to 75mA, 130 V/µs slew)
Active audio crossovers or synth oscillators Low noise density, dual supply operation NE5532 (5 nV/√Hz noise, classic audio standard)
Battery-powered IoT sensor node (sleeping mostly) Ultra-low quiescent current (< 5µA) LPV521 (Nano-power, 0.4µA quiescent current)
General prototyping, basic voltage scaling, 5V systems Cheap, forgiving, single-supply, readily available LM358 (The universal default)

For deeper analysis on how input bias currents affect high-impedance sensor readings, refer to the All About Circuits semiconductor textbook chapter on op amps.

Bench Troubleshooting: How They Fail and How to Test

Op amps rarely fail from old age; they fail from abuse. The three most common failure modes are latch-up (applying an input voltage higher than V+ or lower than V- while powered, triggering a parasitic thyristor), ESD strikes (blowing the internal input protection diodes), and thermal shutdown (shorting the output to ground while sourcing maximum current).

Here is how to test a suspect op amp on the bench using a standard digital multimeter (DMM):

  1. Isolate the IC: Remove power and lift the IC out of the breadboard or desolder it. In-circuit testing is unreliable due to parallel feedback resistors.
  2. Test Input Protection Diodes: Set your DMM to Diode Test mode. Place the red probe on Pin 4 (V-) and the black probe on Pin 2 (In-). You should read a forward voltage drop of 0.5V to 0.8V. Reverse the probes; it should read 'OL' (Open Loop). Repeat for Pin 3. If you read 0.00V (short) or OL in both directions, the input stage is destroyed.
  3. Test Output Short: Set the DMM to Resistance mode. Measure between Pin 1 (Output) and Pin 4 (V-), then Pin 1 and Pin 8 (V+). You should see a high resistance (typically >10kΩ). If it reads near 0Ω, the output transistor has melted short to the rail.
  4. The 'Smoke' Power Test: If it passes DMM tests, breadboard it as a simple voltage follower (tie Pin 1 to Pin 2, apply 2.5V to Pin 3, power with 5V). If Pin 1 does not output 2.5V, or if the IC case becomes hot to the touch within 5 seconds, bin it.

The Final Verdict

Do not get paralyzed by the thousands of op amp SKUs available on DigiKey or Mouser. If you are building a basic DC sensor interface or learning analog theory, buy a tube of LM358s. If you are interfacing with 3.3V microcontrollers and need the output to reach the top rail, stock up on MCP6002s. Wire them with a 100nF decoupling cap, respect the common-mode input limits, and they will handle 95% of the analog challenges you face on the bench.