Posts: 1
Joined: Wed Feb 25, 2015 11:30 am

Current sensing

Wed Feb 25, 2015 11:32 am


We are doing a school project where we want to measure current from a power cord (230V). We found this sensor: “Non-Invasive Current Sensor - 30A” ( How can we connect this to our Raspberry PI?

Thanks in advance.

Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Current sensing

Wed Feb 25, 2015 12:46 pm

Hi and welcome to the forum.
From the webpage you supplied, it pointed to an arduino project that you can use as a starting point :

However this relies on the fact that the arduino has analogue inputs, which the Pi doesn't have. You will need to hook up an
ADC chip to the pi, to convert the analogue voltage across the load resistor to a digital form.
So you have some homework to do........
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):

User avatar
Posts: 287
Joined: Fri May 24, 2013 2:29 am
Location: St Thomas, Ontario Canada

Re: Current sensing

Wed Feb 25, 2015 3:57 pm ... cs/CSE186L
here is a cheaper current transformer rated for 10A. but you need to do some soldering as the core cannot be separated to insert the ac wire.
with all current transformers it is important that the correct resistor is connected to the sense output (secondary winding) before you run any current in the ac power wire. if you forget to connect a resistor to the winding the voltage can become quite high and the current transformer isolation is damaged.

Posts: 277
Joined: Mon Jan 30, 2012 7:01 pm

Re: Current sensing

Wed Feb 25, 2015 10:37 pm


One thing to note, all current transformers have a maximum rating obviously. Less obviously they have a minimum rating - below maybe 5% of rating they may produce little or no output due to hysteresis in the core. So choose your rating with care.

Also take notice of the need for termination as mentioned DO NOT USE TERMINATED - if there is no circuit the voltage will rise until it finds a way, probably by breaking down the insulation of the transformer. Or it may spark a little.

You do understand that you must pass only one conductor not the whole cable through the transformer?

Return to “Automation, sensing and robotics”