Home/Analog Electronics/Op-amp applications/Zero-crossing detector
Zero-crossing detector using Op-Amp (IC 741) – Virtual Lab
A zero-crossing detector is a comparator whose reference is 0 V. The op-amp is used without feedback, so its very large open-loop gain drives the output to one supply rail or the other as soon as the input changes sign.
Aim
To use IC 741 as a zero-crossing detector and convert a sine wave into a square wave.
Circuit components
| Component | Value | Purpose |
|---|---|---|
| IC 741 | OA1 | Open loop (no feedback) |
| Wire | — | − input to ground (reference 0 V) |
Supply: ±12 V dual power supply. Instruments: function generator and two-channel digital storage oscilloscope, all on the virtual bench.
Theory
The open-loop gain of the 741 is about 200 000, so an input of only 0.1 mV is enough to saturate the output. The output is therefore a square wave that changes state at every zero crossing of the input and has the same frequency.
The output cannot jump instantly: the 741 slews at about 0.5 V/µs, so a 21 V transition takes about 42 µs. At low frequencies this is negligible, but at several kHz the switching visibly lags the zero crossing.
A slowly varying or noisy input can make the output switch several times near zero. The Schmitt trigger solves this by adding hysteresis.
Procedure
- Open the Op-Amp Trainer Kit simulator; it starts with the Zero-crossing detector 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, 100 Hz.
- Connect CH1 and CH2 of the oscilloscope as shown and set: CH1 0.5 V/div, CH2 5 V/div, 2 ms/div.
- Measure the output levels (+Vsat and −Vsat) and the output frequency.
- Confirm that the output changes state when the sine crosses 0 V.
- Raise the frequency to 5 kHz and set 50 µs/div to see the sloped, delayed edges.
- Capture the oscilloscope screen and compare it with the expected result below.
Expected result
The output is a 100 Hz square wave of about 21 Vpp (±10.5 V) that switches at each zero crossing of the input.
Viva questions
- Why is no feedback used in a comparator?
- Without feedback the very high open-loop gain makes the output saturate for the smallest input difference, giving a two-level output.
- What limits the speed of the 741 as a comparator?
- Its slew rate of about 0.5 V/µs; dedicated comparator ICs such as the LM311 are much faster.
- What is the main drawback of a simple zero-crossing detector?
- Noise near zero can cause false multiple transitions; a Schmitt trigger is used to avoid this.
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.