EveryCircuit
Contact
Reviews
Home
Jatorres
modified 5 months ago

Zero Crossing Detector

3
0
377
03:20:25
✅ How this Zero Crossing Detector (ZCD) works 🔵 1. Input stage: AC signal + biasing / reference The 1 kHz sinewave enters through a resistor divider (10 kΩ + 270 Ω). Then it passes through an electrolytic capacitor (33 µF), which helps reference the signal to ground in the simulation. This ensures that: • The AC signal is centered around 0 V • The op-amps receive safe input levels ⸻ 🔵 2. Comparator 1 — First zero-crossing detection The first operational amplifier is used as a comparator, without feedback, running at very high gain. ✔ Function: It detects when the input signal changes sign: • If the input is positive, the op-amp output saturates high • If the input is negative, the output saturates low This is where the actual zero-crossing detection takes place. The output becomes a symmetric square wave that follows the input polarity. ⸻ 🔵 3. Diode + RC + second comparator: filtering and pulse shaping After the first comparator, the signal goes through: • A diode • A 10 kΩ resistor • A capacitor • Another 10 kΩ resistor These elements create a sort of pulse shaper, essentially a limited differentiator, producing a short pulse each time a zero-crossing occurs, instead of a continuous high/low square wave. The second operational amplifier cleans the shaped pulse and converts it into sharp, well-defined square pulses. This stage: • Removes noise • Sharpens edges • Prevents multiple triggers from small noise near the zero-crossing • Generates clean, narrow pulses ⸻ 🔵 4. Transistor + resistor + LED (output stage) The second comparator drives an NPN transistor. The transistor switches a small output LED, which: • Turns ON at each zero-crossing • Provides a visual indication of the detector The 330 Ω resistor limits LED current. In many real-world designs, this stage doesn’t drive a simple LED, but instead drives: • An optocoupler • A TRIAC driver • A digital interface to a microcontroller ⸻ 🎯 What exactly does this Zero Crossing Detector do? It generates a very narrow pulse every time the input signal: • Goes from negative to positive • Goes from positive to negative In the waveform traces (the purple signals), it’s clear that: • The output is a narrow, clean pulse • It occurs exactly at each zero-crossing of the sinewave This pulse is used as a timing reference. ⸻ 🔧 Typical applications of a Zero Crossing Detector This is one of the most widely used circuits in AC power control and synchronization. ⭐ 1. TRIAC / SCR control Used to: • Trigger a TRIAC right at zero-crossing • Reduce EMI • Prevent inrush current peaks Ideal for: • Professional dimmers • Heater control • AC motor speed control • Industrial load control ⸻ ⭐ 2. Power line synchronization (50/60 Hz) A microcontroller can use this pulse to: • Measure line frequency • Synchronize timing • Detect phase failure • Perform synchronous PID control ⸻ ⭐ 3. Frequency and phase measurement A ZCD allows: • Comparing phase between two signals • Building analog or digital PLLs • Measuring phase shifts ⸻ ⭐ 4. AC → Digital conversion ADCs sometimes require knowing when a waveform crosses zero for: • Synchronous sampling • Offset correction • DSP synchronization
published 5 months ago

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy