Hi,
It's similar in principle to what I posted, just offers isolation and so safer.
It works like:
Near about the zero crossing period, the output at the collector is 1, and at other times, the output is 0. So use your microcontroller to check for 1. If 1 at collector is sensed, that means, that it's crossing the zero crossing period, otherwise, if 0 is sensed at collector, its means that you're not at the zero crossing point.
When there is no zero-crossing, the voltage is stepped down, rectified and turns the transistor on, causing 0 at collector. However, during zero-crossing, there is 0v at secondary, the base is off. The transistor is off and the capacitor supplies +v.
Hope this helps.
Tahmid.
---------- Post added at 14:00 ---------- Previous post was at 13:56 ----------
hi,
it will work with out microcontroller
Yes,
That's because zero-crossing detection isn't done (not usually) with the microcontroller. It is done by a circuit that works without microcontroller. The microcontroller uses this signal for thyristor control. The zero-crossing detection is a circuit that
works independent of the microcontroller, providing an output signal either 1 or 0
for the microcontroller depending on the state of the AC mains input, either 0 for zero-crossing and 1 at all other times or vice versa.
Hope this helps.
Tahmid.