Home/Analog Electronics/Op-amp applications/Difference amplifier
Difference amplifier using Op-Amp (IC 741) – Virtual Lab
The difference amplifier combines an inverting and a non-inverting amplifier in one op-amp. Signals common to both inputs cancel, which is the basis of instrumentation amplifiers and noise-rejecting measurement circuits.
Aim
To build a difference amplifier (subtractor) using IC 741 and verify that the output equals the difference of the two inputs.
Circuit components
| Component | Value | Purpose |
|---|---|---|
| IC 741 | OA1 | — |
| R1 | 10 kΩ | V1 to − input |
| Rf | 10 kΩ | Feedback |
| R3, R4 | 10 kΩ each | Divider for V2 at + input |
| VR | 10 kΩ pot | DC source V2 |
Supply: ±12 V dual power supply. Instruments: function generator and two-channel digital storage oscilloscope, all on the virtual bench.
Theory
By superposition, V1 alone sees an inverting amplifier with gain −Rf/R1, and V2 alone sees the divider R3–R4 followed by a non-inverting amplifier. When the resistor ratios match, the two gains are equal in magnitude and the output depends only on V2 − V1.
Any voltage applied equally to both inputs (common-mode voltage) produces no output. Mismatched resistors reduce this common-mode rejection, which is why precision difference amplifiers use matched resistor networks.
Procedure
- Open the Op-Amp Trainer Kit simulator; it starts with the Difference amplifier application selected.
- In Guided mode follow the highlighted connections to place the components from the parts bank and wire the circuit on the kit, or wire it yourself in Free mode.
- Set the dual power supply to ±12 V and switch it on.
- Switch on the function generator and set: Sine, 2 Vpp, 1 kHz (V1).
- Connect CH1 and CH2 of the oscilloscope as shown and set: CH1 1 V/div, CH2 2 V/div, 200 µs/div.
- Set the pot to 20 % (V2 ≈ 2.4 V DC).
- Observe CH2: an inverted copy of the sine riding on +V2.
- Change the pot and confirm the output DC level follows V2 while the sine part stays inverted.
- Capture the oscilloscope screen and compare it with the expected result below.
Expected result
The output is an inverted 2 Vpp sine centred at about +2.2 V, i.e. Vo = V2 − V1.
Viva questions
- What is common-mode rejection?
- The ability of a differential amplifier to reject a voltage that is applied equally to both inputs. It is expressed as CMRR = differential gain / common-mode gain.
- What condition must the resistors satisfy for a true subtractor?
- R4/R3 = Rf/R1, so that the gains seen by V1 and V2 have the same magnitude.
- Where is a difference amplifier used?
- In instrumentation amplifiers, bridge sensor measurement, and current sensing across a shunt resistor.
Other op-amp applications
Linear amplifiers
Integrator and differentiator
Comparators and waveform generators
Active filters
Non-linear circuits
All applications run on the Op-Amp Trainer Kit 3D virtual lab.