0% found this document useful (0 votes)
53 views

Sensor de Ca Con Arduino

This document provides instructions for building a simple Arduino energy monitor that measures current using a CT sensor to calculate apparent power. It measures current only and assumes a fixed voltage of 230V. The summary is: 1. It details how to assemble the necessary components - a CT sensor, burden resistor, capacitors and an Arduino. 2. It explains how to connect the components in a circuit and upload an Arduino sketch that converts the current reading into apparent power and RMS current values displayed in the serial monitor. 3. By measuring only current with an assumed fixed voltage, it provides a low-cost way to monitor household energy usage, though it is less accurate than a monitor that measures both voltage

Uploaded by

Wilfredo Cindet
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Sensor de Ca Con Arduino

This document provides instructions for building a simple Arduino energy monitor that measures current using a CT sensor to calculate apparent power. It measures current only and assumes a fixed voltage of 230V. The summary is: 1. It details how to assemble the necessary components - a CT sensor, burden resistor, capacitors and an Arduino. 2. It explains how to connect the components in a circuit and upload an Arduino sketch that converts the current reading into apparent power and RMS current values displayed in the serial monitor. 3. By measuring only current with an assumed fixed voltage, it provides a low-cost way to monitor household energy usage, though it is less accurate than a monitor that measures both voltage

Uploaded by

Wilfredo Cindet
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

https://learn.openenergymonitor.

org/electricity-monitoring/ct-sensors/how-to-build-an-
arduino-energy-monitor-measuring-current-only?redirected=true

How to Build an Arduino Energy Monitor -


Measuring Mains Current Only

This guide details how to build a simple energy monitor on a breadboard that can be used
to measure how much electrical energy you use in your home. It measures current, but
uses an assumed fixed value for voltage (230V, if you're in the UK) and calculates apparent
power. Although not as accurate as a monitor that measures voltage as well as current, it is
a method commonly used in commercially available whole house energy monitors for
reasons of simplicity and cost.

Here's how to build it:

Step 1: Gather Components

You will need:

1 x Arduino

Current sensing electronics

1 x CT sensor YHDC SCT-013-000


1 x Burden resistor 18 Ohms if supply voltage is 3.3V, or 33 Ohms if supply voltage is 5V
2 x 10k Ohm resistors (or any equal value resistor pair up to 470k Ohm)
1 x 10uF capacitor

Other

A breadboard and some single core wire.

Step 2: Assemble the Electronics

The monitor consists of the current sensor (which produces a signal proportional to the
mains current) and the sensor electronics that convert the signal into a form the Arduino
can use.

For a circuit diagram and detailed discussion of sensors and electronics see:

 CT Sensors - Introduction
 CT Sensors - Interfacing with an Arduino

Assemble the components per the diagram above.

Step 3: Upload the Arduino Sketch


The sketch is the software that runs on the Arduino. The Arduino converts the raw data
from its analog input into human readable values, then sends them to the serial port
monitor.

a) Download EmonLib from github and place it in your Arduino libraries folder.

Download: EmonLib

b) Upload the "current only" example:

#include "EmonLib.h"
// Include Emon Library
EnergyMonitor emon1;
// Create an instance
void setup()
{
Serial.begin(9600);

emon1.current(1, 111.1); // Current: input pin,


calibration.
}

void loop()
{
double Irms = emon1.calcIrms(1480); // Calculate Irms only
Serial.print(Irms*230.0); // Apparent power
Serial.print(" ");
Serial.println(Irms); // Irms
}

c) Open the Arduino serial window

You should now see two columns of values. Apparent power on the left, RMS current on
the right.

See also:

 How to build an Arduino energy monitor - measuring mains voltage and current
 EmonTx Arduino Shield: Our open-hardware energy monitoring Arduino compatible
shield featuring the above circuit alongside voltage measurement for real power
calculation.

CT Sensors

In this Chapter:

o 1. Introduction

o 2. Installation
o 3. Interfacing with an Arduino

 4. How to Build an Arduino Energy Monitor Measuring Current Only

 Advanced: Measurement Implications of ADC Resolution at Low Current Values

 Extending CT Sensor Cable

 YHDC SCT-013-000 CT Sensor Report

 YHDC SCT006 CT Sensor Report

You might also like