I am trying to create an AC zero crossing detection circuit using a 4N35 optocoupler. The circuit is very simple I connect a bridge rectifier (DF15005S-T) to the AC mains. One of the sides of the rectifier is connected to two 50k 1W resistors in parallel.
The rectified DC is connected to a 4N35 and pin 4 is connected to a 10k pull up resistor and an ESP32 pin. Pin 5 is connected to ground.
When I turn the AC on I get a constant high signal on the ESP32. If I switch out the Optocoupler to an 4N25 everything works perfectly. I was reading the datasheets to understand why this wouldn't work with the 4N35 but wasn't able to figure it out.
Anyone understands why this circuit works with the 4N25 and not the 4N25 and what modifications I need to do to make it work with the 4N35?
The rectified DC is connected to a 4N35 and pin 4 is connected to a 10k pull up resistor and an ESP32 pin. Pin 5 is connected to ground.
When I turn the AC on I get a constant high signal on the ESP32. If I switch out the Optocoupler to an 4N25 everything works perfectly. I was reading the datasheets to understand why this wouldn't work with the 4N35 but wasn't able to figure it out.
Anyone understands why this circuit works with the 4N25 and not the 4N25 and what modifications I need to do to make it work with the 4N35?