Questions about the current sensor and emon library

Hello

I'm just trying to try out a bunch of current transducers that I have received.  they are all 100A versions without the burden resistor.

Questions (please)

1. I am using two 470k resistors as voltage dividers.  However at the midpoint the arduino is recording 506/1024.  Is it fair to assume that the 1% discrepancy (it should say 512) is down to resistor tolerance making the two unequal?  The readings are 0 and 1023 at either side of the voltage divider, as you would expect.

2. using the emon library without any current through the CT, I am getting readings of 200mA or so.  In fact these readings are present whether or not the CT is attached at all. So the device is reporting a power drain of 30W or so when there is none.  Is this simply the tolerance/accuracyof the device?  I've read results elsewhere that suggests that the device can be more accurate than this.  If so, what can I do to improve the accuracy?

FWIW these are the parameters I am using

CT:  100A  - 50mA

voltage dividers @ 470k

burden @ 33Ohm

cap @ 10uF (polarised)

arduino nano clone running on USB.  input voltage is c. 4.7V as reported by readVCC()

calibration constant used is 60.6  ((100/0.05) * 33)

 

any help would be gratefully received.

thanks

Justin

Robert Wall's picture

Re: Questions about the current sensor and emon library

HI Justin, welcome.

1. Yes. In effect, it reduces the maximum that you can read by that much - assuming the current/voltage wave is symmetrical!

2. No. We believe it is pickup from the digital circuits inside the processor leaking in to the analogue side. A lot of effort went in to the layout and filtering on the emonTx V3, and it is significantly better in this respect than the V2, which is (anecdotally) broadly similar to the Arduino boards. Also, the rms calculation rectifies the signal so any noise is rectified too and added to the wanted measurement. If you also measure voltage and use the real power method, you will find the 'noise' power is significantly lower because the current noise samples that give a negative power average with the positive ones and tend to cancel.

myckie's picture

Re: Questions about the current sensor and emon library

Hi,

I'm trying with other current sensors (SCT-013-030) and have the same problem with Arduino Yun .

I have done the current and voltage circuit and readings are reasonable good.

My calibration with this sensor :

emon1.voltage(2, 224.26, 1.35);  // Voltage: input pin, calibration, phase_shift
emon1.current(1,30);       // Current: input pin, calibration.

Without any current connected to CT, i get this values like this:

3.21 18.87 227.92 0.08 0.17
2.10 18.42 228.94 0.08 0.11

But...I put away to do last reading the capacitor (10 uf) on the current side

With capacitor connected i get this readings, i think capacitor introduce noise (but it should not..i dont understand):

-1.13 56.68 229.00 0.25 -0.02
11.34 55.79 228.56 0.24 0.20
-3.09 55.12 229.29 0.24 -0.06

Readings for pure resistance load without capacitor are fine i think:

759.09 759.74 225.29 3.37 1.00
757.43 758.02 225.04 3.37 1.00
754.65 755.23 224.69 3.36 1.00

With capacitor:

769.72 770.67 225.48 3.42 1.00
762.58 763.75 226.06 3.38 1.00
765.69 767.76 225.40 3.41 1.00
769.03 770.10 225.55 3.41 1.00

Multimeter/amperimeter give me this values:

225 volt, 3.27 A

What do you think about not using capacitor on the current side and this readings?

Thanks !

 

Robert Wall's picture

Re: Questions about the current sensor and emon library

"With capacitor connected..."    Where is the capacitor connected? The correct input connections are shown here.

myckie's picture

Re: Questions about the current sensor and emon library

Hi,first thanks for your comments.
The capacitor is connected 3equal that in the link you posted .I use 10k resistors.

But as i comment,if i disconnect capacitor there is less noise in readings.

Robert Wall's picture

Re: Questions about the current sensor and emon library

There are two possible explanations, that I can think of, for extra noise when the capacitor is connected:

1. The capacitor itself is "noisy" and is generating noise. This is not likely if it is a new capacitor and you have connected it with the correct polarity.

2. The layout of the circuit means that the "GND" at the point where the capacitor is connected is not a true ground and it has a noise voltage superimposed on it, which the capacitor couples into the input. I think this is more likely. I do not know the Arduino Yun, but I understand it has a full Linux processor on-board as well as the Arduino, therefore there will be heavier currents flowing carrying digital noise. Unless the supply and GND for the digital circuits is carefully filtered, I think it is quite possible that noise from there will get into the analogue input. It may be that there is very little that you can do to reduce the problem. You could try feeding the power supply first to your analogue input, then feed the Arduino board from that through a ferrite bead inductor - like Fig. 1.2 here.

myckie's picture

Re: Questions about the current sensor and emon library

Thanks Robert,

I will try with a ferrite bead inductor.

If it doesn't reduce the problem, What do you think about leave the circuit without the capacitor?

As i said, without it , the noise is really low (0.08 A versus 0.20 A) at cero load in the sensor and i think readings at diferents loads are stable and really close to my amperimeter .

 

Robert Wall's picture

Re: Questions about the current sensor and emon library

I think the capacitor really should be there. Without it, the resistors have a Thévenin equivalent resistance of 5 kΩ in series with the current transformer output. With the capacitor, there as an additional low impedance ( 318 Ω ) path in parallel with the resistors that better "anchors" one side of the input to ground at ac. Leaving the capacitor out will have very little effect on the signal because the impedance is smaller than the maximum  impedance recommended by ATmel. But it does mean that the current transformer is more likely to pick up mains-borne interference by capacitive coupling and inject it into the input.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.