The Op Amp Differential Amp: Pinout, Symbol, and Core Function

An op amp differential amp outputs a voltage strictly proportional to the difference between its two input terminals, while actively rejecting any voltage common to both inputs (common-mode voltage). If you need to measure a small voltage drop across a current shunt resistor sitting on top of a 12V battery, or isolate a sensor signal from noisy ground loops, this is the topology you use.

The standard schematic symbol shows a triangle with two inputs: the non-inverting input (V+ or IN+) and the inverting input (V- or IN-). The output is Vout = (V+ - V-) * Gain. In a standard discrete differential configuration, four resistors set the gain and establish the common-mode rejection ratio (CMRR).

Bench Reality Check: The theoretical CMRR of an op amp is often 100dB+ on the datasheet. However, if you build a differential amp using standard 5% tolerance resistors, your circuit-level CMRR will plummet to roughly 34dB. You must use 1% or 0.1% matched resistors for this topology to work in the real world.

Standard 8-Pin DIP Dual Op Amp Pinout (e.g., LM358)

Most hobbyist and industrial designs use dual op amp ICs. Here is the standard pinout for an 8-pin DIP/SOIC package, viewing the IC from the top with the notch/dot to the left:

  • Pin 1: Output A (OUT A)
  • Pin 2: Inverting Input A (IN- A)
  • Pin 3: Non-Inverting Input A (IN+ A)
  • Pin 4: Ground / Negative Supply (V- or GND)
  • Pin 5: Non-Inverting Input B (IN+ B)
  • Pin 6: Inverting Input B (IN- B)
  • Pin 7: Output B (OUT B)
  • Pin 8: Positive Supply (V+ or VCC)

Decision Tree: Selecting the Right IC for Your Application

Do not just grab the first op amp from your bin. The common-mode voltage range and supply rails dictate which silicon will actually function in your specific circuit. Use this decision path to select your IC.

If Your Application Is...Key RequirementRecommended ICConcrete Pick & Ratings
Low-side current sensing (shunt near 0V) Input common-mode range must include ground (0V); single-supply operation. Standard Dual Op Amp LM358P (Supply: 3V to 32V, Bandwidth: 1MHz, Cost: ~$0.50)
High-side current sensing (shunt at 12V-48V) Must tolerate common-mode voltages far above the IC's VCC rail. High-Side Current Shunt Monitor INA282AIDBVR (Supply: 2.7V to 18V, Vcm: -2V to 80V, Gain: 50V/V)
Audio processing or high-precision sensor bridging Low noise, high slew rate, symmetrical dual-rail supplies. Audio/Precision Dual Op Amp OPA2134PA (Supply: ±2.5V to ±18V, Slew Rate: 20V/µs, THD: 0.00008%)
High-speed ADC buffering (>100kHz signals) High gain-bandwidth product (GBWP), fast settling time. High-Speed Voltage Feedback LMH6643MAX (Supply: 2.7V to 12V, Bandwidth: 130MHz, Cost: ~$2.10)

The Default Pick: If you are building a basic DC or low-frequency (<10kHz) sensor interface on a single 5V or 12V supply, terminate your decision at the LM358. It is the undisputed workhorse for low-side differential measurements because its PNP input stage allows the inputs to operate exactly at the V- (ground) rail without phase reversal.

Complete Application Circuit: 10x Gain Low-Side Current Monitor

Let's build a practical circuit: a low-side current shunt monitor to measure a 0A to 5A DC motor load using a 12V supply and an Arduino ADC (0-5V). We will use the LM358.

Component BOM and Values

  • U1: LM358P (Dual Op Amp, using Channel A)
  • R_Shunt: 0.1Ω, 2W metal strip shunt resistor (Yields 500mV at 5A)
  • R1 & R3 (Input Resistors): 10kΩ, 0.1% tolerance metal film
  • R2 & R4 (Feedback/Ref Resistors): 100kΩ, 0.1% tolerance metal film
  • C1 (Bypass): 100nF ceramic (Place physically adjacent to Pin 8 and Pin 4)
  • C2 (Output Filter): 10nF ceramic (Across R2 to limit high-frequency noise)

Wiring and Biasing Steps

  1. Power the IC: Connect Pin 8 to your 12V supply. Connect Pin 4 to system Ground. Place C1 between Pin 8 and Pin 4.
  2. Connect the Shunt: Place R_Shunt in the ground return path of your motor. The 'high' side of the shunt connects to Motor GND; the 'low' side connects to System GND.
  3. Wire the Non-Inverting Input (Pin 3): Connect R1 (10kΩ) from the 'high' side of the shunt to Pin 3. Connect R3 (10kΩ) from Pin 3 to a clean 2.5V reference (or simply to ground if you only need to measure unidirectional current and the LM358 can swing to 0V).
  4. Wire the Inverting Input (Pin 2): Connect R4 (100kΩ) from the 'low' side of the shunt (System GND) to Pin 2. Wait—for a standard difference amplifier measuring across a shunt, the topology is: V_in+ goes through R1 to Pin 3. V_in- goes through R4 to Pin 2. R2 (100kΩ) goes from Pin 2 to Pin 1 (Output). R3 (10kΩ) goes from Pin 3 to Ground.
  5. Verify the Gain: Gain = R2 / R1 = 100k / 10k = 10. At 5A, the shunt drops 0.5V. The op amp multiplies this by 10, outputting 5.0V at Pin 1, perfectly scaling to a 5V Arduino ADC.
Biasing Note: The LM358 does not require an artificial mid-rail bias (like a 2.5V voltage divider) for low-side sensing because its common-mode input range includes the negative rail (0V). If you were using an older TL072, you would be forced to bias the inputs up to Vcc/2, complicating the ADC reading.

Operating Regions and Spec-Sheet Parameters

Understanding where the op amp leaves the linear region is critical for debugging. If your output voltage stops making sense, check this table against your multimeter readings.

Operating RegionInput Condition (Vdiff)Typical Output Voltage (Vout)Output Current Limit
Linear (Active) -1mV to +500mV (within CMRR limits) Vout = Vdiff * 10 (e.g., 0.01V to 5.0V) Source: 30mA / Sink: 20mA
Positive Saturation Vdiff > +600mV (Overload) VCC - 1.5V (approx. 10.5V on a 12V supply) Internal short-circuit protection limits to ~40mA
Negative Saturation Vdiff < -1mV (Reverse current) VEE + 0.2V (approx. 200mV above ground) Sink limit: ~20mA
Phase Reversal (Fault) V_in > VCC - 1.5V (Exceeds common-mode max) Output violently snaps to positive rail N/A (Invalid operating state)

For deeper theoretical background on how the internal transistor stages handle these regions, refer to the All About Circuits guide on differential amplifiers. For exact electrical characteristics and temperature derating, always consult the Texas Instruments LM358 product datasheet.

Failure Modes and Multimeter Troubleshooting

Op amps rarely 'just die' without a reason. They usually fail due to overvoltage on the inputs, exceeding the output current limit, or thermal runaway. Here is how to diagnose a suspect differential amp circuit using a standard digital multimeter (DMM).

Symptom: Output is Stuck at the Positive Rail (e.g., 10.5V)

  1. Check the Inputs: Measure DC voltage at Pin 3 and Pin 2 relative to ground. If Pin 3 is significantly higher than Pin 2, the op amp is doing exactly what it should: saturating high. Your shunt might be open, or the load is drawing massive current.
  2. Check for Phase Reversal: Measure the voltage at Pin 3 relative to VCC. If the voltage at Pin 3 is within 1.5V of VCC (e.g., Pin 3 is at 11V on a 12V supply), you have exceeded the common-mode input range. The internal PNP transistors have starved, causing phase reversal. Fix: Use a voltage divider to scale the input down before it hits the op amp.

Symptom: Output is Stuck Near 0V (e.g., 200mV) Despite Load Current

  1. Verify Shunt Continuity: Power down. Set DMM to the lowest ohms range. Measure across R_Shunt. It should read exactly 0.1Ω. If it reads open (OL), your shunt blew.
  2. Test the Feedback Loop: Power up. Measure the voltage at Pin 1 (Output) and Pin 2 (IN-). In a functioning linear circuit with negative feedback, the voltage at Pin 2 must almost exactly match the voltage at Pin 3. If Pin 1 is 0V but Pin 3 is 50mV, the feedback resistor (R2) is likely open, or the internal output stage of the IC is blown.

Symptom: How to Test the IC Itself (Out of Circuit)

If you suspect the silicon is fried, pull the IC and use the DMM's Diode Test mode.

  • Place the red probe on Pin 4 (V-) and the black probe on Pin 2 (IN-). You should read a standard silicon diode drop (0.6V to 0.7V). Reverse the probes; it should read OL.
  • Repeat from Pin 4 to Pin 3 (IN+).
  • If you read 0.000V (short) or OL (open) in both directions on the input pins, the internal ESD protection diodes or input transistors have failed. Throw the IC in the bin.

Final Verdict & Default BOM

Designing an op amp differential amp is less about complex calculus and more about strict component selection and layout discipline. The math is simple: Gain = Rf / Rin. The physics is unforgiving: mismatched resistors destroy your CMRR, and ignoring common-mode limits destroys your IC.

Stop guessing and terminate your design phase with this exact, proven Bill of Materials for 90% of hobbyist and light-industrial DC current sensing tasks:

The 'No-Brainer' Default BOM:
IC: LM358P (DIP-8) or LM358DR (SOIC-8)
Resistors: Susumu RG series or Vishay PR02, 0.1% tolerance, 1/4W. (Do not use standard E12 5% carbon film).
Shunt: Bourns CSS or Ohmite LPS series, 4-terminal Kelvin connection if measuring >10A.
Decoupling: 100nF X7R ceramic, placed within 2mm of the VCC/GND pins.

Build it with 0.1% resistors, respect the LM358's 1.5V headroom to the positive rail, and your differential amplifier will provide clean, noise-free data to your microcontroller for years.