Sensor de Ca Con Arduino
Sensor de Ca Con Arduino
org/electricity-monitoring/ct-sensors/how-to-build-an-
arduino-energy-monitor-measuring-current-only?redirected=true
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.
1 x Arduino
Other
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
a) Download EmonLib from github and place it in your Arduino libraries folder.
Download: EmonLib
#include "EmonLib.h"
// Include Emon Library
EnergyMonitor emon1;
// Create an instance
void setup()
{
Serial.begin(9600);
void loop()
{
double Irms = emon1.calcIrms(1480); // Calculate Irms only
Serial.print(Irms*230.0); // Apparent power
Serial.print(" ");
Serial.println(Irms); // Irms
}
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