1. I have to detect zero cross using optocoupler of 185Vac-265Vac & 50Hz. Attached is the circuit. Have to feed the signal to MCU pin.
Will make MCU pin to give interrupt on both rising & falling edge.
2. Is circuit ok. What should be best value for R1 & R3.
I have put 4.7K each.
But consider max voltage = 265vac,
then Vp= 374.76Vac
current flow = around 39ma. (via R1, led, & R3 consider led drop zero)
Each resistor watt = 7W
Value comes out to be very high?
If I increase the value of resistor, zero cross distorts.