Project tutorial
Current Sensor AC

Current Sensor AC

A little project on how we can make an AC current sensor work, and measure current.

  • 535 views
  • 1 comment
  • 4 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
×1
AC current sensor
×1

Apps and online services

About this project

Understanding the Sensor

Understanding the way a sensor is working is the main difficulty. The OpenEnergyMonitor website has a real nice article about this sensor: Yhdc SCT-013-000 Current Transformer.

“Current transformers (CTs) are sensors that are used for measuring alternating current. They are particularly useful for measuring whole building electricity consumption (or generation for that matter).

The split core type such as the CT in the picture above, is particularly suitable for DIY use it can be clipped straight on to either the live or neutral wire coming into the building without having to do any high voltage electrical work.

Like any other transformer, a current transformer has a primary winding, a magnetic core, and a secondary winding.

In the case of whole building monitoring the primary is the live or the neutral wire (not both) coming into the building itself and goes through the hole in the CT. The secondary winding comprises many turns of fine wire housed within the casing of the transformer.”

OpenEnergyMonitor

https://learn.openenergymonitor.org/electricity-monitoring/ct-sensors/introduction

Here are the results:

Code

Code Current SensorArduino
Arduino Code.
If you take a look at openenergymonitor.org you can get an Arduino lib allowing to convert the raw data from analog input into a nice useful values.

EmonLib

Once downloaded and placed in your arduino librairies folder you can start the code
// EmonLibrary examples openenergymonitor.org, Licence GNU GPL V3

#include "EmonLib.h"                   // Include Emon Library
EnergyMonitor emon1;                   // Create an instance

void setup()
{  
  Serial.begin(9600);
  
  emon1.current(1, 5);             // Current: input pin, calibration.
}

void loop()
{
  double Irms = emon1.calcIrms(1480);  // Calculate Irms only
  

  Serial.print("Current : ");
  Serial.print(Irms);		       // Irms
    Serial.println(" mA");
}

Schematics

currentonly_bb_mGkUyhZ348.png
Currentonly bb mgkuyhz348

Comments

Similar projects you might like

Touch Sensor and Sound Sensor Controlling AC/DC Lights

Project showcase by Anbumachi

  • 1,160 views
  • 2 comments
  • 5 respects

Vibration Sensor Module

Project tutorial by Alberto Zanon

  • 21,347 views
  • 2 comments
  • 9 respects

touch sensor

Project tutorial by user253146

  • 8,179 views
  • 3 comments
  • 4 respects

3DCG Control Using TouchDesigner & 10 DOF Mems IMU Sensor

Project tutorial by HomeMadeGarbage

  • 3,463 views
  • 0 comments
  • 12 respects

Using the YL-39 + YL-69 Soil Humidity Sensor with Arduino

Project tutorial by Sorin Trimbitas

  • 28,113 views
  • 6 comments
  • 17 respects
Add projectSign up / Login