Home/Analog Electronics/Op-amp applications/Integrator

Integrator using Op-Amp (IC 741) – Virtual Lab

With a capacitor in place of the feedback resistor, the op-amp output becomes the time integral of the input. A square wave input therefore produces a triangular wave, and a sine produces a cosine.

Aim

To build a practical integrator using IC 741 and observe the conversion of a square wave into a triangular wave.

Circuit components

ComponentValuePurpose
IC 741OA1—
R110 kΩInput resistor
C110 nFFeedback capacitor
Rp1 MΩParallel with C1, limits DC gain

Supply: ±12 V dual power supply. Instruments: function generator and two-channel digital storage oscilloscope, all on the virtual bench.

Theory

The − input is a virtual ground, so a constant input voltage drives a constant current Vin/R1 into the capacitor. A constant current charges the capacitor linearly, making the output a ramp whose slope is −Vin/(R1C).

An ideal integrator has infinite gain at DC, so the tiny input offset of a real op-amp would slowly drive it into saturation. The 1 MΩ resistor Rp in parallel with C limits the DC gain to −Rp/R1 = −100 and keeps the output centred.

With a ±1 V, 1 kHz square wave each half-cycle lasts 0.5 ms, so the output changes by 10 V/ms × 0.5 ms = 5 V: a triangle of about 5 Vpp.

Vo = −(1 / R1 C) ∫ Vin dt
Slope = Vin / (R1 C) = 1 V / (10k × 10 nF) = 10 V/ms
fa = 1 / (2π Rp C) ≈ 16 Hzintegration is accurate well above this frequency

Procedure

  1. Open the Op-Amp Trainer Kit simulator; it starts with the Integrator application selected.
  2. 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.
  3. Set the dual power supply to ±12 V and switch it on.
  4. Switch on the function generator and set: Square, 2 Vpp (±1 V), 1 kHz.
  5. Connect CH1 and CH2 of the oscilloscope as shown and set: CH1 1 V/div, CH2 2 V/div, 200 µs/div.
  6. Wait a few seconds for the output to settle around 0 V.
  7. Measure the peak-to-peak value and slope of the triangle.
  8. Change the input to a sine and observe the 90° phase shift; increase the frequency and note how the output amplitude falls.
  9. Capture the oscilloscope screen and compare it with the expected result below.
Function generatorSquare, 2 Vpp (±1 V), 1 kHzOscilloscopeCH1 1 V/div, CH2 2 V/div, 200 µs/divSupply±12 V, ON

Expected result

A ±1 V square wave produces a triangular output of about 5 Vpp with a slope of 10 V/ms, as predicted by 1/(R1C).

Viva questions

Why is a resistor connected across the integrator capacitor?
To limit the DC gain so that input offset voltage and bias current do not drive the output into saturation.
What is the output of an integrator for a sine input?
A cosine (shifted by 90°) whose amplitude falls as frequency rises (−20 dB/decade).
Give applications of an integrator.
Triangle and ramp generators, analog computers, PI controllers and dual-slope analog-to-digital converters.

Other op-amp applications