@TrystanLea The update sounds good!
One thing you might want to consider with respect to the emonVs with the included 5V psu …
The 5v supply current to the emonPi(n) will give voltage drops along the +5V wires (pins 4 &5) and the 0v wires (pins 7 & 8). Let’s assume that the end to end voltage drop on wires 7 & 8 in parallel is Vdrop.
Pins 7 & 8 also act as the 0V return for the VSx (x = 1, 2, or 3) reference voltages.
So the reference voltages arriving at the emonPi(n) will be:
Voltage at emonPi(n) = VSx-Vdrop.
Vdrop will have a DC component from the DC supply current to the emonPi(n). This is not important for VSx as VSx is AC coupled at the emonPi(n) input.
However, Vdrop will have an AC component due to the 5V PSU ripple (100Hz?) and noise, plus the variations in the emonPi supply current from digital device operation.
The ripple and noise of the 10W Multicomp PSU with a 10uF electrolytic and 1uF ceramic across the output (the configuration in emonVs) is specified at 50mV typical, 100mV max. A little of this may appear across the zero volt wires and be included in the AC component of Vdrop. This may be significant compared to VSx at about 900mV peak and perhaps affect the measurement accuracy.
To have any effect on the power measurement, the AC component of Vdrop would need to contain multiples or sub-multiples of 50Hz to be coherent with the current measurements. And there is the ~ 10 second measurement period.
The effect wouldn’t be present with the emonVs mini as it does not include a PSU.
I don’t know if the AC component of Vdrop is a problem at the moment, but it can be avoided completely if the emonPi(n) supply current doesn’t flow though the VSx return.
This could be done by using an isolated pin 6 wire as a separate VSx return, with no connection to earth or 0V at the emonVs end, only at the emonPi(n) end.
A Caveat - This change removes the existing direct connection between the VSx zero volt return and the mains earth at the emonVs. I have no knowledge of the current relevant safety, RFI or other regulations so I don’t know if this change would satisfy the regulations. OEM would need to check with its test house whether the change is acceptable and whether the emonVs would need to be recertified…
If necessary, to stop the VSx zero volt return from floating when the RJ45 cable is unplugged, something like a 5V bi-directional transient-voltage-suppression (TVS) diode could be added between pin 6 and pins 7 & 8 at the emonVs.