An operational amplifier (op-amp) is a high-gain, DC-coupled integrated circuit with differential inputs and a single output, used to amplify, filter, or mathematically condition analog voltage signals. If you are asking what is operational amplifier used for on the workbench, the practical answer is signal conditioning: it bridges the gap between the messy, high-impedance real world of physical sensors and the strict, low-impedance digital domain of microcontrollers and ADCs.
Unlike power amplifiers that drive speakers, or RF amplifiers that handle gigahertz frequencies, standard op-amps operate primarily at DC to low-frequency AC. They are the foundational building blocks of analog electronics, executing tasks like buffering, summing, integrating, and comparing voltages with precision dictated by external passive components.
The Core Job: What an Op-Amp Actually Changes in a Circuit
When you place an op-amp into a design, you are fundamentally changing two things: impedance and scale.
Consider a piezoelectric vibration sensor. It might generate a useful 50 mV signal, but it has an internal output impedance of roughly 1 MΩ. If you wire that directly to the analog input of an Arduino or ESP32 (which has an internal ADC multiplexer impedance of around 10 kΩ to 100 kΩ depending on the sampling rate), you create a voltage divider. The microcontroller will read less than 1 mV, and the data will be swamped by noise.
Beyond buffering, op-amps scale signals. A thermocouple might output 0 to 12 mV across your target temperature range. A 12-bit ADC referenced to 3.3V needs 0 to 3.3V to maximize resolution. The op-amp applies a precise mathematical gain to stretch that 12 mV window to fill the ADC's full scale, ensuring you aren't wasting 99% of your digital resolution.
Benchmarking the Workhorses: Common Op-Amp Specifications
Not all op-amps are created equal. Selecting the right silicon depends on your supply voltage, required bandwidth, and noise tolerance. Below is a spec-sheet table of four ubiquitous op-amps you will encounter in hobbyist and commercial designs, reflecting typical 2026 market availability and pricing.
| Part Number | Type / Architecture | GBW (MHz) | Slew Rate (V/µs) | Input Offset (mV) | Typical Use Case | Approx. Price |
|---|---|---|---|---|---|---|
| LM358 | General Purpose (Bipolar) | 1.0 | 0.3 | 2.0 (typ) / 7.0 (max) | Low-speed sensor buffering, LED drivers | $0.15 |
| TL072 | Low-Noise Audio (JFET) | 3.0 | 13.0 | 3.0 (typ) / 15.0 (max) | Audio preamps, active EQ filters | $0.40 |
| OPA2134 | High-Performance (FET) | 8.0 | 20.0 | 1.0 (typ) / 5.0 (max) | Hi-fi audio DAC output stages, precision lab gear | $4.50 |
| MCP6002 | Rail-to-Rail I/O (CMOS) | 1.0 | 0.6 | 1.0 (typ) / 4.5 (max) | 3.3V / 5V microcontroller signal conditioning | $0.35 |
Note: GBW (Gain-Bandwidth Product) dictates your maximum usable frequency. If you configure an LM358 for a gain of 100, its bandwidth drops to 10 kHz (1.0 MHz / 100). For audio or fast PWM filtering, you need a higher GBW part like the TL072.
Worked Example: Scaling a Load Cell for an ESP32 ADC
Let's look at a concrete numeric example. You are building a digital scale using a 50 kg load cell and an ESP32 dev board. The load cell's integrated Wheatstone bridge outputs 0 to 10 mV at full scale. You need to map this to the ESP32's 12-bit ADC.
Step 1: Calculate Required Gain
Target Output / Max Input = 3.0V / 0.010V = Gain of 300.
Step 2: Choose the Topology
We will use a non-inverting amplifier configuration to keep the phase intact. The gain formula is:
A_v = 1 + (R_f / R_i)
Step 3: Select Standard Resistor Values
We need R_f / R_i = 299.
Let's set R_i = 1 kΩ (a standard E24 value).
R_f needs to be 299 kΩ. The closest standard E24 resistor is 300 kΩ.
Step 4: Verify the Real-World Output
Actual Gain = 1 + (300,000 / 1,000) = 301.
Max Output Voltage = 10 mV × 301 = 3.01 V.
This is perfect. At 50 kg, the op-amp outputs 3.01V, safely below the ESP32's non-linear saturation zone, while maximizing the 0-4095 digital count range. If you used a basic LM358 here, you would need to ensure your power supply is at least 4.5V, because the LM358 cannot swing its output all the way to the positive rail (it drops about 1.5V short). For a 3.3V system, you must use a Rail-to-Rail output op-amp like the MCP6002.
Where You Meet Op-Amps in Practice
Once you understand the math, you start spotting op-amps everywhere on the bench and in commercial teardowns. Here is where they do the heavy lifting:
- Audio Pre-amplification: An electret microphone capsule outputs a tiny AC signal superimposed on a DC bias. An op-amp AC-couples the signal, strips the DC offset, and applies a gain of 100 to bring it to 'line level' (approx. 1V RMS) before it hits a power amplifier or audio codec.
- Active Low-Pass Filters: If you are generating a pseudo-analog voltage using a microcontroller's PWM pin, you will see a 20 kHz square wave. A Sallen-Key active filter using a TL072 op-amp smooths this into a pure DC voltage, something a passive RC filter struggles to do without severe signal attenuation.
- Current Shunt Monitoring: To measure the current draw of a 12V BLDC motor, you place a 0.01 Ω shunt resistor in the ground path. At 5 Amps, the voltage drop is only 50 mV. A differential op-amp circuit amplifies this 50 mV to a readable 2.5V for your telemetry system, isolating the high-current ground from your logic ground.
Common Confusions: Op-Amps vs. Comparators and Instrumentation Amps
A frequent trap for beginners is treating all differential amplifiers as interchangeable. According to the Texas Instruments Op-Amp Portfolio guidelines and foundational texts like All About Circuits, mixing these up leads to frustrating debugging sessions.
Op-Amp vs. Comparator (e.g., LM358 vs. LM393)
An op-amp is designed to operate in its linear region using negative feedback. A comparator (like the LM393) is designed to operate open-loop, slamming its output to the positive or negative rail as fast as possible to create a digital logic signal.
The Gotcha: If you use an LM358 as a comparator, it will work, but when the output saturates at the rail, the internal transistors flood with charge. When the input crosses back, the op-amp suffers from 'saturation recovery delay'—it might take microseconds to wake up and change states, completely destroying high-speed PWM or zero-crossing detection circuits. Always use a dedicated comparator for digital thresholding.
Op-Amp vs. Instrumentation Amplifier (e.g., LM358 vs. INA128)
An instrumentation amp (in-amp) is essentially three op-amps packaged into one IC with laser-trimmed internal resistors. While you can build a differential amplifier with a single LM358 and four discrete resistors, any tiny mismatch in those resistor values (even 1%) destroys the Common Mode Rejection Ratio (CMRR).
The Gotcha: In noisy environments—like reading an ECG sensor on a human body or a strain gauge near a VFD motor—60Hz mains hum will induce identical noise on both signal wires. An in-amp like the INA128 rejects this common-mode noise with 100 dB of CMRR, whereas a discrete op-amp circuit might let the noise straight through to your ADC.






