# What's the best way to detect zero crossing in this design?

The design that I am talking about:

I want to be able to detect the zero point with an MCU of which pin can withstand only 3.3 V. I'll forgo optocoupler because A. I want everything to be as cheap as possible and B. I want everything as simple as possible.

As you probably have guessed no, I don't have a 100% understanding of the schematic, so this design could very well have featured a zero-crossing detecting mechanism yet I failed to find it completely but I doubt it.

The incoming voltage max will be 110V. I want to detect the zero-crossing so I can turn on and off Q1 and Q2 alternatively on a regular cycle to make the throttling of power possible.

So my questions:

1. How do I do the zero crossing detection?

My knuckle-dragging plan: attach one pin to a resistor 500K to limit the current, then attach the resistor to the center point surrounded by L1, Q1 and Q2 and D13, yes, that point attached to the K pin of Q1 and Q2, negative pole of D13 and one side of L1. I'll keep sampling it with ADC and decide when the zero point has arrived, at which point I'll make the switch.

• An optocoupler would be cheap, but unreliable due to delay, a comparator with local supply to directly control Q1&2 would be more advanced, but more reliable. I have to admit I'm having a hard time understanding the schematic. I see a +5V on the AC side, I see a series RC to 5V (startup?), half-bridge with SCR and 2.2$\mu$H inductor, what is it all meant to do? In the lower right corner it says "light switch", but then SCR_IGBT... what sort of light? – a concerned citizen May 2 '18 at 8:21