Hello everyone,
I am designing for a Project a circuit to detect zero-crossing using a microcontroller. I want to use an optocoupler for isolation between the high voltage (coming from 3 phase) and the microcontroller. I have a transformer to reduce the voltage, a diode bridge rectifier and a comparator (as op-amp). I tried putting the optocoupler just before the comparator (in parallel to rectifier output); I got:
One of the nodes of the optocoupler (connected to comparator) is floating.
What to do to solve the issue? Please if I can get help.
Thank youu