Electronic – Non-isolated mains circuit and Ethernet

ethernetmainspower

I'd like to measure voltage and current for a mains circuit using a microcontroller, and connect this to ethernet. Since I want to have 8 independent outputs, using an isolation transformer to measure the current for each port quickly becomes expensive.
So I thought of just using shunt resistors to measure both voltage and current. This is not a problem for the microcontroller, but it is when interfacing with the external world.

Then I remembered that Ethernet already has isolation. Specifications say ethernet connections are coupled with isolation transformers rated for 1500V .

I was wondering if this isolation is safe enough for a mains circuit? If so, I could build my circuit completely non-isolated and rely on the ethernet transformer for isolation. The device won't have any other means to interface with people (maybe just LEDs, but no buttons or knobs)

Best Answer

While technically Ethernet provides (barely) enough isolation, I would not rely on it to provide for your safety. You also have other issues to consider.

One issue is that the Ethernet transformer has a parasitic capacitor between the primary and secondary. If your MCU circuit jumps up 100-ish volts when you connect it to the AC line, a pulse will be sent out the Ethernet cable. Many devices have protection on their ports to prevent damage, but many devices don't. I have blown up many devices in this way.

Then there is your personal safety while debugging this type of circuit. One tiny slipped probe while debugging could make for a very bad day.

Of course your real problem is in doing current sensing without requiring expensive isolation transformers. I suggest that you look for hall effect current sensors. Here's a link to some.