![]() |
KiCADKicad
|
Zero-Cross Detector
The latest version of the DIN rail mounting zero-cross detector.
Note: 4n35SM optocoupler must be Vishay package option 7 (for required clearance).
AC input to monitor: 110/220VAC, <1A
DC input; 3.3/5VDC. Signal output will be the same voltage. Share ground with MCU.
Produces a square pulse on each zero crossing with a pulsewidth of ~1ms on a 50Hz supply.
Updates:
It's basically the same as the original circuit but with improved clearances. A particularly crucial one is the isolation gap between the mains side and the low voltage side, which must be min. 8mm. The standard 4N35SM optocoupler does not quite give enough clearance (only 7mm) so it needs to be package option 7 from Vishay which has slightly longer legs to give 8mm clearance.
I added test points after the rectifier.
To make it cheaper I went back to using separate diodes rather than a combined package for the bridge rectifier.
The board has square corners and no cutouts so should be easily panelized with v-cuts into panels of 5.
Enclosure: UM72 DIN rail PCB mount
https://www.aliexpress.com/item/32276247838.html
https://www.aliexpress.com/item/4000272944733.html
OR: Camdenboss CIME/M/SE1125SS (x2) + CIME/M/FE0000SS
https://www.camdenboss.com/camden-boss/cimemse1125ss-72mm-empty-modular-interface-support%2c-11.25mm-end-section/c-23/p-18376
https://www.camdenboss.com/camden-boss/cimemfe0000ss-72mm-empty-modular-interface-support%2c-foot-element/c-23/p-18372
DISCLAIMER: This project uses mains electricity which is HAZARDOUS and can cause ELECTRIC SHOCK or FIRE. This circuit must be independently reviewed, tested and certified by a qualified and registered professional before use. The author accepts no responsibility for accident, injury or loss resulting from the assembly and use of this project in any way. Provided for informational purposes only.
Zero-Cross Detector
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.

Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW
ESP32-S3 4.3inch Capacitive Touch Display Development Board, 800×480, 5-point Touch, 32-bit LX7 Dual-core Processor
BUY NOW
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(8)
- Likes(3)
-
thomas lesieur Feb 26,2025
-
Chirag Ajmera Sep 22,2024
-
MATHIEU CARBOU May 18,2024
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Dan TStar
-
Zero-Cross Detector The latest version of the DIN rail mounting zero-cross detector.Note: 4n35SM optocoupler must be Vis...
-
"Soft Start" Inrush Current Limiter for Toroidal Transformer - DIN rail mounted This simple inrush current limiter is designed to be used with a 500VA toroidal transformer to suppl...
-
Panel Mounting MicroSD Card Reader Breakout Adapter I couldn't find a panel-mounting MicroSD card reader anywhere, so I decided to design one!Many micro...
-
Wii Nunchuck Controller Socket Breakout The Nintendo Wii Nunchuck controller is a great input device for microcontroller projects as it uses...
-
ESP32 DevKitC adapter breakout expansion (38 pin) This is a simple breakout board for the 38 pin ESP32 DevKitC. Pins are shown broken out to female pi...
-
74HC165 8-bit Shift Register Breakout Board with pushbuttons This is a quick breakout board for the 74HC165 shift register which is an 8-bit parallel-in serial-o...
-
1A DIN rail mounting Power Supply A simple PCB mounting in DIN rail mountable form factor for the popular HLK-PM01 or HLK-PM03 power s...
-
Isolated AC Line A simple isolated AC line module for 110 or 230VAC at 1:1 ratio, max 1A.Based on the Murata 1001C:ww...
-
Zero-Cross Detector The latest version of the DIN rail mounting zero-cross detector.Note: 4n35SM optocoupler must be Vis...
-
"Soft Start" Inrush Current Limiter for Toroidal Transformer - DIN rail mounted This simple inrush current limiter is designed to be used with a 500VA toroidal transformer to suppl...
-
Panel Mounting MicroSD Card Reader Breakout Adapter I couldn't find a panel-mounting MicroSD card reader anywhere, so I decided to design one!Many micro...
-
Wii Nunchuck Controller Socket Breakout The Nintendo Wii Nunchuck controller is a great input device for microcontroller projects as it uses...
-
ESP32 DevKitC adapter breakout expansion (38 pin) This is a simple breakout board for the 38 pin ESP32 DevKitC. Pins are shown broken out to female pi...
-
74HC165 8-bit Shift Register Breakout Board with pushbuttons This is a quick breakout board for the 74HC165 shift register which is an 8-bit parallel-in serial-o...
-
1A DIN rail mounting Power Supply A simple PCB mounting in DIN rail mountable form factor for the popular HLK-PM01 or HLK-PM03 power s...
-
Isolated AC Line A simple isolated AC line module for 110 or 230VAC at 1:1 ratio, max 1A.Based on the Murata 1001C:ww...
-
Zero-Cross Detector The latest version of the DIN rail mounting zero-cross detector.Note: 4n35SM optocoupler must be Vis...
-
"Soft Start" Inrush Current Limiter for Toroidal Transformer - DIN rail mounted This simple inrush current limiter is designed to be used with a 500VA toroidal transformer to suppl...
-
Panel Mounting MicroSD Card Reader Breakout Adapter I couldn't find a panel-mounting MicroSD card reader anywhere, so I decided to design one!Many micro...
-
Wii Nunchuck Controller Socket Breakout The Nintendo Wii Nunchuck controller is a great input device for microcontroller projects as it uses...
-
Modifying a Hotplate to a Reflow Solder Station
367 0 3 -
MPL3115A2 Barometric Pressure, Altitude, and Temperature Sensor
227 0 1 -
-
Nintendo 64DD Replacement Shell
248 0 1 -
V2 Commodore AMIGA USB-C Power Sink Delivery High Efficiency Supply Triple Output 5V ±12V OLED display ATARI compatible shark 100W
605 4 2 -
How to measure weight with Load Cell and HX711
494 0 3 -
-
Instrumentation Input, high impedance with 16 bit 1MSPS ADC for SPI
585 1 0
Our reviewers can see the gerber. Your order is currently under review.
And for ESP32, an example of library to use it and some doc: https://github.com/fabianoriccardi/dimmable-light/wiki/About-dimmer-boards#slew-rate