I’ve just brought into use an old emonTx V2.2 board that I bought ages ago. Currently it’s running the emonTX_CT123 sketch as I can’t feed it with AC volts right now. I’ve been trying to calibrate it with the two CTs I currently have connected and I’m getting odd readings.
I have a kettle plugged into a smart switch that reports voltage, power, PF etc.
With no CTs connected, the serial is stating 22 and 19 for CT1 and CT2.
If I connect the CTs but without the CTs installed on wiring, I get 212 and 250.
If I install them on the live of the kettle lead (kettle off) I get 1015 and 1195
If I switch the kettle on I get 2693 and 2751 - which is fairly close to the 2800W reported from the smart plug. The smart plug reports zero in all other circumstances.
I can adjust the calibration factors to get the power on values more accurate, but I’m bothered by the abnormally high values reported with no current flowing.
The very nature of the maths means that any electrical noise picked up is rectified by the rms calculation, then multiplied by the voltage to give a spurious power reading. However, 1 kW is a bit too much.
Unfortunately, this is the expected behaviour because what you are seeing under no-load conditions is noise from the digital circuits in the processor getting into the analogue input. Then, when you calculate the rms current, the noise is rectified by the maths and appears as a (relatively) large apparent power, whereas when you multiply each sample of voltage and current to get real power, the noise, not being rectified, tends to get averaged out.
The problem is, I’ve never seen power supply noise or anything remotely close to 1 kW, which is why I suspect something is seriously amiss. My first thoughts turned to external influences. Where it’s going wrong is the hard part. A near-correct reading on his kettle indicates it’s not a stupid calibration value that’s crept in, and the burden has not fallen off.
Those are sensible numbers.
Those aren’t sensible. They indicate the c.t. cable, or the c.t. itself, is picking up something.
Now that’s ridiculous. It seems to be seeing an electric field on the kettle lead.
There should be no difference between the c.t. being unplugged, plugged in and not on a cable, and on a not energised cable. In practice, it’s hard to get away from electromagnetic fields, so you do expect a small increase when a c.t. is connected.
@Guff666 might want to update his sketch: In The emonPiCM I published a sketch for the emonTx V2 using emonLibCM and the native RFM69 radio message format. It’s relatively easy to change it to use the classic JeeLib message format - simply change #include <rfm69nTxLib.h> to #include <rfmTxLib.h> and most likely also change #define RFM69CW to #define RFM12B and I think it should work. I don’t think this will solve the present problem.
Thanks for the prompt responses, guys; I appreciate it.
I can’t think of any immediate electric fields. The emonTX was installed in the outside electrical supply cabinet, so there’s only the mains wiring in there. Under test, the equipment was on the bench in my radio shack, but none of the radios were on.
I’ll check the CT connections etc and try introducing a deliberate field and report back. It may be a week or so though. I’m currently preparing for departure to Le Mans for the 24H race next weekend