Arduino measuring mains current

I'm just getting started with this project. Please forgive my newbie questions.

I'm using an SCT-013-030 CT sensor, so I believe I do not need the "burden" resistor.

If I wire the circuit up as shown and output the value of the Arduino analog input, should I see a change in this value when the CT sensor is clipped around the mains lead for a small fan heater and the heater is switched on/off?

Should it be possible to measure the voltage using a voltmeter? Is there a simple way to test my CT sensor is working? Is it possible to damage the CT sensor by connecting it the wrong way around?

Thanks.

Robert Wall's picture

Re: Arduino measuring mains current

If you clip you c.t. around the complete mains lead, you will read nothing. This is exactly as I would expect. The c.t. depends on sensing the magnetic field around a wire carrying current, and if you have two wires carrying current in opposite directions (as you have in a 3-core mains lead), the magnetic fields will cancel - hence nothing.

You need to clip the c.t. around a single wire. The normal place to install a c.t. is on the supply side of your consumer unit/fusebox, where it will detect the 'whole house' current, and where line and neutral are separate cables.

You can certainly measure the voltage out of your c.t. You should read 1 V rms at 30 A, proportionately less at smaller currents.

But you need to compile, load and run the sketch to calculate the rms value and use the serial output to read that rms current value correctly. If you just look at the reading from the analogue input, you will read (apparently) random values centred around 512. This is because the input is an alternating voltage and the number you read depends on where you catch the wave.

floehopper's picture

Re: Arduino measuring mains current

Hi Robert.

Many thanks for your help. That all makes perfect sense.

Is there any completely non-invasive way (using a different type of sensor?) to detect the presence or absence of a significant current in a complete mains cable? i.e. I don't want to have to separate the individual conductors and I don't need to accurately measure the current or voltage.

Thanks, James.

Robert Wall's picture

Re: Arduino measuring mains current

No. Sorry, it's a short answer and I know of no way to measure the current. The nearest I can think of is one of the many commercially available units that plug in to the mains socket and have a socket for the appliance.

If you only want an indication that current is flowing, then a Hall effect sensor might be able to pick up the field if it is closer to one conductor than the other. But even if it worked, I think that it would at be at best unreliable.

calypso_rae's picture

Re: Arduino measuring mains current

I believe that the Eco-Eye monitor picks up a voltage signal using foil that's wrapped around the live cable.  I wonder whether this approach might detect anything if fitted around all three cores? 

Or does everything just cancel out?

Robert Wall's picture

Re: Arduino measuring mains current

If you wrap a conducting foil around one conductor, you're making a capacitor. If you wrap a conducting foil around two conductors at different voltages, you're making a pair of capacitors, so I'd expect the voltage (unloaded, of course) to be about mid-way between the voltages of the two conductors. And by extension, if there are 3 conductors...

But that won't tell you anything about the current being carried by the conductors.

(I should have specified that you need an analogue Hall effect transducer - a switching digital one will almost certainly not experience enough field strength to operate.)

calypso_rae's picture

Re: Arduino measuring mains current

You did mention Hall effect sensors earlier, Robert.  I was just wondering if a capacitive sensor might be able to detect the alternating voltage in the Live core despite it being physically adjacent to the two 'earthy' ones. 

It seems that the answer is yes, but I was asking the wrong question.  Unless the load is switched on & off at the wall rather than at the appliance, the potentials of each individual cable core will not change.  The current that's being drawn by the load will therefore remain unknown.

Comment viewing options

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