Electronic – 230VAC line voltage sensing using MCU pin

emcmainsmicrocontrolleropto-isolatorsurge-protection

I Am designing a circuit to detect the presence of AC line voltage.It is basically to detect the switch On/OFF for a load.
Here is the circuit.
enter image description here

Here Input resistor ladder to step down the voltage. Varistor added to get it away from surge (Fuse included). zener to protect the opto. Opto is darlington with transistor to reduce the opto input current and therefor the input resistor losses.

Since this going to commercial product i would like to gather some info on reliability and surge protection.

1) Is this circuit good enough to handle potential surges/Back emf from inductive loads.
2) Is there any better/cost effective alternatives.
4) I am using 8 in my board to detect 8 channels all are powered from same AC source. Is there a way to consolidate these and reduce overall cost?

Thanks in advance!

Best Answer

This is simplified version of your schematics, that should work equal.

schematic

simulate this circuit – Schematic created using CircuitLab

For example SFH628A-4 has a CTR ratio of 250 at 0.5mA IF current. The absolute maximum allowed forward current is 50mA. The insulation resistance is 5.3kV. So at 5.3kV spike, the current trough diode would be 5300/440= 12mA, which is far from absoulte rating.