Electronic – AC detection for microcontroller

acdetectionopto-isolator

I need to monitor the state of multiple relays carrying 110VAC and 60VAC using a microcontroller (I will probably use an Arduino) to ensure the relays are working properly.
To do this I have figured out that I need a circuit with an optocoupler so when the 110VAC or 60VAC is on 5VDC is forwarded to the input of the microcontroller.
Using an optocoupler with two LEDs in antiparallel, will also still leave me with 0V at the zero crossing, so some sort of stabilizing will probably be needed.
But I need some help choosing an optocoupler and the accompanying components and designing the circuit.

Best Answer

If you just want to detect if VAC is there or not, i can give you this example (see image below). We are using it to determine if some external relays are malfunctioning. This may point you in the right direction and gives some part examples.

230V AC detection