High frequency mains sensing

mainsmicrocontrolleropto-isolatorsensor

I want to sense mains voltage at a frequency faster than 5000Hz, with a microcontroller. The idea behind this is to visualize the actual shape of the AC voltage, and eventually to compare it with the current to determine its cosphi.

I have read that I need to use a optoisolator to isolate both circuits. How do I choose which one I need for an analog output of the scaled voltage?

Best Answer

I would look into putting the microcontroller circuit on the hot side, have it do all the measurements by being directly coupled, then send the digital results over a opto. This gets around having to use analog optoisolaters. You will only be shipping digital information accross the isolation barrier.

Of course you have to be careful about touching anything on the hot side, whether that includes a microcontroller or not. Initial debugging should be done a isolation transformer, and preferably at lower voltages.