What's top of mind right now when it comes to 230V AC mains voltage detection?
I need to tell the digital input of the microcontroller whether mains voltage (230V AC) has been applied to a particular terminal.
A circuit with an optocoupler (like a zero crossing detector)? Or maybe a very miniature relay with a 230V AC coil (it seems that they - with such a coil - are not miniature at all).
Or maybe there are some dedicated, specialised mains voltage detection circuits that return an adequate, low-voltage logic level that can be fed into the microcontroller input ?
Target: cheap, miniature (minimum extra PCB space), reliable.
I need to tell the digital input of the microcontroller whether mains voltage (230V AC) has been applied to a particular terminal.
A circuit with an optocoupler (like a zero crossing detector)? Or maybe a very miniature relay with a 230V AC coil (it seems that they - with such a coil - are not miniature at all).
Or maybe there are some dedicated, specialised mains voltage detection circuits that return an adequate, low-voltage logic level that can be fed into the microcontroller input ?
Target: cheap, miniature (minimum extra PCB space), reliable.