I have this zero crossing detection circuit, and it does detect the zero crossing. The problem is that the output signal is a bit sinusoidal than expected, and voltages around 2 V where it's neither logic high/low would sometime cause my microcontroller to read falsely, reading HIGH at an earlier state during the rising up.
Is there any way I could sharpen the rise or fall time of the signal? Hopefully only using basic components (resistor, capacitor, transistor)? If possible, I don't want to order and wait for new components to arrive.
The bridge rectifier is KBL608 and the optocoupler is PC817C
It would seems that the optocoupler is not "fully opening"
fully opening
... what does that mean? ... conducting or non-conducting? ... please do not use vague terms \$\endgroup\$