Electronic – Sensing signal on a power line from high side

achigh voltageisolationsensorvoltage measurement

Low side configuration

I have a circuit design as above. I'm trying to sense the voltage difference accross the \$ 0.1 \Omega \$ resistor. I physically connected the sensory circuit to the low side of the AC line, and saw that it is working alright.

I'm going to make a boxed circuit of this, and I'm going to connect it to the wall outlet with a standard plug, seen as below:
Standard AC plug
The plug is symmetric. I can accidentally connect it reversed (on the other hand, i don't want to check the polarity every time I'm connecting it to wall outlet). In that case, the sensory circuit is connected to the high side as seen below:

High side configuration

My question is,
What happens if the sensory circuit is connected to the high side? Would a terrible thing happen? Do I need to do any modification on the overall circuit for making it connectable to the high side?

Supose that,
RMS of the AC is 230V.
VCC is 5V, and it is electrically isolated from the AC by a transformer.
All circuit elements are rated to work between -5V to +10V.
The electrical device drains small current (below 10A RMS).

This question is not about personal usage risks. Please focus your answers on the circuit level, about the risk on the circuit elements.

Best Answer

If VCC and GND are electrically isolated from Phase, Neutral and Earth, it doesn't matter the direction with which you connect the plug.

Your sensory circuit doesn't even know there's 230 VRMS somewhere else. It will just see the voltage across the current-sense resistor.

Update: It is hard to tell whether your sensory circuit is in fact electrically isolated or not from your mains, because the text in your figure says they are, but the connection between your "mains side" and the GND of your sensory circuit, according to the schematic, says they are not. I have to think that what is right is the schematic, and that you think they are electrically isolated, but they are not. You wrote "This question is not about personal usage risks. Please focus your answers on the circuit level, about the risk on the circuit elements", and I gave you an answer according to that. The one-wire (or two-wire, with little volts between them) connection between the mains and your sensory circuit won't do any harm to your circuitry, and won't distort any reading, but just remember: YOUR SENSORY CIRCUIT DOES NOT SEEM TO BE ELECTRICALLY ISOLATED FROM THE MAINS. If you touch any node of your sensory circuit, you may die. So, be very careful if you have experience with such circuits, and do not build anything if you don't have such experience.