# How can an optocoupler detect the zero cross point in an AC wave?

I am having some trouble using Triacs in order to dim a light bulb operating at 220V AC, I am a student at school and I don't have any background about using Triacs or Diacs or so, so I seeked the internet for circuits which uses a microcontroller in order to control the Triac to control the speed of an AC fan or brightness of a light bulb. So I got this circuit which I understand it all except there is a part I didn't understand in the circuit so that's why I am asking here for help. So my question is concerned about this IC the MCT2e which I think is an optocoupler, how can this IC detect the zero crossing in the AC wave ? Although the input in this IC is rectified using a bridge rectifier ? And also what is this IC properties ? Can any general purpose optocoupler be used or there is special specs. For it ? in short I want to know the principle of how this part of the circuit works in order to detect the zero crossing point in the AC wave.

• Playing around with this circuit could kill you if you don't understand the dangers. Since you "don't have any background" I am not inclined to nudge you along that path. Take the time to learn the fundamentals before trying something like this; your great-grandchildren will thank you. Commented Dec 9, 2019 at 13:48
• @ElliotAlderson I appreciate you but I meant I don't have backgrounds in using Triac but I made a lot of digital AC switching using relays and I know the dangers I face quite well specially because my country uses 220V. Commented Dec 9, 2019 at 14:09
• OK, what does it mean to you when you say that the input to the optocoupler is rectified? What does that signal look like? You ask about the "properties" of the optocoupler but have you tried to search for the datasheet of an MCT2E? Commented Dec 9, 2019 at 14:14
• No, the rectifier does not produce a dc voltage. If you don't know what the output of the rectifier will look like then you really have no business working with these lethal voltages. Commented Dec 9, 2019 at 19:24
• It doesn't detect the zero cross so much as it just detects when there is enough voltage to light the LED in the optocoupler. Try not to use DC to when referring to unipolar voltages or currents. There is an old guy at work here who does that and its infuriating because you never know if he is referring to the unipolar signal itself, or the constant DC component of the unipolar signal. Commented Dec 9, 2019 at 21:46