Investigation of using Voltage Synthesis to approximate real power and power factor in mains AC energy measurement.

Download

Voltage Synthesis Arduino Sketch

Main points

The voltage synthesis method works for resistive loads and loads with switched mode power supplies that give an apparent power factor of less than 1.0. It does not however work for “real” reactive loads like washing machines and fridges.

For household use were there is a mix of laptops, lights, washing machines and fridges, etc it is probably better to go with a method that measures the voltage waveform directly using a power adapter or other method which will be one of the next steps of development.

If your loads are only laptops and lights then voltage synthesis does add a little extra functionality without the added cost and complication of measuring the voltage directly and so I will leave the details of this method and investigation here in-case it is of any use.

Details

Laptops (switched mode power supplies) and all the resistive loads connected gave the correct real power and power factor. Switched mode power supplies if I understand correctly have what is called apparent power factor were the power factor can be less than 1.0 yet the voltage and current waveforms are still completely in -phase which is due to non-linear current draw as described in this article:

Understanding power factor and input current harmonics in switched mode power supplies

Food mixers were not reactive enough to be a visible problem, they gave power factors of around 0.92

The fridge and washing machine were highly reactive, causing the voltage synthesis method to give completely erroneous results due to the fact that the voltage synthesis method was aligning the synthesised voltage waveform to be in phase with the current waveform that was out of phase with the real voltage phase. In the first test I performed I did not check fridges or washing machines ... a large error :)

Further significant errors that should not have been present were present in the results for Irms and Apparent power that are likely to be due to crude experimental method.

Below is a discussion of the power factor graph and the Irms graph, real power and apparent power graphs can be found at the end.

Power Factor graph.

Left: power factor comparison the first time around with a mixture of laptops and incandescent light bulbs.

Right: power factor comparison showing results of laptop, small light bulb, food mixers, fridge and washing machine.

The results clearly show that voltage synthesis does not work well for “real” reactive loads like fridges and washing machines but does work for appliances with switched mode power supplies that have apparent power factor.

An interesting point to note though is that when the fridge is measured by itself the power factor calculated is much more erroneous than when it is measured alongside the laptop. This is due to the current spike of the laptop being higher than the highest point on the fridges current waveform, and so the voltage synthesis method which aligns the synthesised voltage waveform with the overall peak of the current waveform aligns to the laptop spike which is in phase with the real voltage waveform. As long as the peak of the current waveform is in phase the voltage synthesis method works.

The first investigation tested many variations of different light bulbs and laptops and heating elements and hence the linearity is a lot more evident. In the second experiment the only thing connected with a power factor of 1.0 was a toasty maker that had a large enough current draw to drown out the effects of the laptop.

Experimental method

and discussion of errors arising from crude experimental method.

Measurements from the mains AC non-invasive method were compared with measurements from a cheap commercial plug in power meter.

The mains AC non-invasive method calculated values for real power apparent power, power factor, irms and vrms twice a second. These values are then fed into KST graphing software and a mean is calculated for the last 10 measurements of each value. This makes it easier to note the values down by hand since they don't change so much.

The mains plug meter updates once a second and appears to be more stable than the AC non-invasive method, although its stability varies significantly with the type of load connected as does the AC non-invasive method.

Measurements were recorded in OpenOffice Calc manually one after the other in the following order:

Mains AC non invasive method:

Vrms (set manually) → Irms → Power Factor → Real Power → Apparent Power

and then straight on to Commercial plug in meter

Vrms → Irms → Power Factor → Real Power

The plug in meter does not display apparent power and so apparent power was calculated by dividing real power by the power factor.

I tried to note down the values as quick as I could but there was I think about 2 to 3 second between each measurement.

This delay between each measurement meant that the Irms calculated by the non-invasive method which is already an average of the preceding 5 seconds was compared to an Irms about 10 seconds later on the power meter.

This wasn't a large problem when the values displayed by both methods were quite stable but became a problem with the washing machine since it kept changing the spin speed and kept switching various things on and off. The washing machine also seemed to have significant variation over the second time scale going from 1.05A to 1.79A and then back down randomly. The data points circled in red in the figure below of rms current of the power meter against the rms current calculated by the non-invasive method are all washing machine data points, I would expect them to all fall on the line had I been able to take simultaneous measurement, this problem also afflicts the apparent power graph which one would also expect the data points to fall on the straight line. 

Other graphs

Real Power

erroneous result from reactive loads are clearly visible as discussed in the section on the power factor graph.

Apparent power

Errors due to crude experimental method as discussed above are clearly visible.

Download the results

First investigation - no "real" reactive loads Results01.ods

Second investigation - with fridge and washing machine Results02.ods