SNS-CURRENT-CT013-100A is split core current transformer which allow you to non-intrusively measure AC current. It’s safe even for people who do not know electronics as there is no access to high voltages etc.
All you have to do is to clamp the current sensor around one of the wires where the current flows. Note if you clamp the both wires you will not measure anything as the current flow from one wire will neutralize the current flow from the other wire and the sum will be always 0.
The sensor easily clamps around the current flow wire:
On the other end the sensor have 3.5 mm audio jack where you can plug in mating connector and connect to Arduino.
As any other transformerSNS-CURRENT-CT013-100A has primary and secondary windings, the ratio is 100:0.05 i.e. when 100A flow through primary 1 turn wire the secondary coil will have 50mA.
The current transformers must always have burden resistor connected to the second coil, the purpose is to measure the voltage drop on this resistor which will be proportional to the input current. This burden resistor value also should be low enough to prevent core saturation.
Safety: Current transformers should never operate without burden resistor, as if left open very high voltage may generate through second winding which to cause sparking. So never use this sensor without connecting it to proper circuit with burden resistor!
ConnectingSNS-CURRENT-CT013-100A to Arduino is well explained here. We have nothing to add. Based on same setup we tested the emon library and it works perfectly.
We used for our setup OLIMEXINO-32U4 + MOD-LCD3310 and breadboard where two 10K 1% resistors + 10 uF capacitor make the bias circuit to the sensor with 33 ohm 1/4W 1% burden resistor connected.
For device under test we used toaster and we clamped one of the heater wires:
The Arduino code is quite simple:
String toPrint1, toPrint2;
double Irms, thePower;
char buffer1, buffer2;
emon1.current(1, 111.1); //pin for current measurement, calibration value
pinMode(8, OUTPUT); //enable UEXT power supply
LCDInit(); //initialize LCD display
Irms = emon1.calcIrms(1480); // measure current
thePower = Irms*230.0; // we assume voltage is 230VAC if you add transformer to connect to other input you can measure real voltage too
toPrint1 = "Power:" + String((int)thePower) + "." + String(((unsigned int)(thePower*100))%100) + " ";
toPrint2 = "Current:" + String((int)Irms) + "." + String(((unsigned int)(Irms*100))%100) + " ";
LCDStr(0, (unsigned char *) buffer1, 0);
LCDStr(2, (unsigned char *) buffer2, 0);
LCDUpdate(); // print power and current
as you see emon library is very easy to use, so with just few component andSNS-CURRENT-CT013-100A you can easily monitor your home power consumption, log it to the cloud with ESP8266 for instance etc.
When the toaster is switched on the power is displayed:
If you look at the first picture when the toaster is not switched on there is still some 0.012A displayed and fake 28 W energy registered, this is just noise on ADC input. The easiest way is to filter this noise in software and if energy is less 30W to ignore it.