Easy Safe Lowpower AC Zero Cross Detector

A Faithful implementation of the AC Zero Cross Detector designed by (now offline)

Similar projects worth following
A SAFE, ISOLATED, Low Power Zero Cross Detector with a Digital Output capable of interfacing to any electronics with a signal range from 1.8V to 5V. Original design by, which is now OFFLINE.

I needed a AC Zero Cross Detector (ZXD) for my DIY Reflow Oven so that I can switch the Heating elements and fans at the appropriate time (When AC power is at Zero).

Some SSR's allow you to switch anytime, some WON'T switch until zero cross, either way, switching AC at a time other than Zero Cross isn't great.

ZXD is generally useful, and there are lots of applications where knowing the Zero point on your AC power is advantageous, or necessary.  BUT this is 240V (or 110V) which is potentially lethal, some designs are NOT safe, for example Atmel has a reference design which feeds High Voltage AC directly into the pin of a MCU.  This is both OVERKILL and POTENTIALLY LETHAL.

The design was the best I have seen, it is simple, produces a solid, reliable pulse of a known duration directly around zero cross, uses very little power of it's own to work, and most importantly is safe.  The digital signal is optically isolated to at least 5000V to the AC side.  So provided some common sense is used in wiring up and attaching the ZXD it is perfectly safe, and produces a nice digital pulse which can be interfaced to any electronics.  The output is Opendrain, so by applying the appropriate IO reference voltage to the digital port the device can interface to any MCU, 5V, 3.3V, 1.8V, anything.

The original designer even had a great detailed write up to explain how his design works.  All I have done is faithfully implement the schematic and make a board based off of it, using thru hole components which makes them easy to build.


Original article on the design, courtesy of the Wayback machine because the original is Offline.

Adobe Portable Document Format - 666.98 kB - 07/13/2018 at 04:09


PCB Gerber files, IF you want to make one.

Zip Archive - 29.20 kB - 07/13/2018 at 04:09



Full Schematic for the Design

Adobe Portable Document Format - 336.71 kB - 07/13/2018 at 04:08


  • 1
    Getting the PCBs

    Order prebuilt boards directly from me on OR

    Download the gerbers, send them to a PCB maker and get some bare boards.  I recommend a Bright PCB color like RED because of the potentially lethal voltages involved.

  • 2
    Source the components

    All components are clearly shown on the schematic, there is nothing exotic and everything is readily available.  They are ALL through hole components.

  • 3
    Build the board

    Solder the components to the Board, the Board overlay and the schematic will tell you where everything goes, and what orientation the components need.

View all 5 instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates