Electronic – AC Optocoupler for 230V line detection

acopto-isolatorsensing

I am trying to detect line voltage (230V AC, if the supply is ON/OFF) by a microcontroller with the help of an AC optocoupler. The optocouplers I have evaluated are PC814, H11AA1 and SFH620A-3, out of which I found SFH620A-3 to be more efficient (must be due to the better CTR). I had connected a series resistance of 440K (1/4W) and everything seems to be fine i.e the microcontroller is able to sense when there is line and otherwise. While testing my circuit at various input voltages I found that the opto will start giving fluctuating output when my voltage is 145V. I calculated the voltage and found that for 145V AC and a series resistance of 440K, the current is just 0.33mA which may to be insufficient to turn on the opto. Now I could reduce the resistance, however the heat dissipated would be more (which I don't want). I am also not able to use a x-capacitor or use a transformer due to size constraints. Due to all these factors, someone suggested me to find another opto which works at very low current. Hence I started searching for it and found one i.e SFH628A-3, however I am not good in understanding their datasheet and need help to see if it fits.

Sorry for the long story, I am still learning.

Best Answer

Where I use to work at we detected 230 VAC with a 4 pin H11AA814 AC optocoupler. Use a 220K 1/4W resistor to get 1.045 mA of current at 0.24 watts, which is plenty enough to sense AC. The output will be a 120 HZ ripple on 60 HZ power lines.

After research the H11AA814 is obsolete and can be replaced with a Vishay SFH628 series.

We used the simple ripple filter below to output a clean DC voltage equal to Vcc (+5V to +12V) minus about 1.25 volts.

As long as there is AC input Vout is at close to zero volts. If AC fails then Vout is +3.75 to +10.75 volts, depending on the voltage you power this circuit with. This circuit will respond to a power fail within 1/4 second. This simple filter also blocks reaction to brief power flickers lasting less than 200 mS.

schematic

simulate this circuit – Schematic created using CircuitLab

Copied from datasheet. It shows operation at 500uA and 1mA.

Copied from datasheet