Hi. I have set up a simple home energy monitoring system using the instructions available at http://openenergymonitor.org/emon/node/58. The code below when uploaded to Arduino displays the real, reactive power, voltage, current and power factor in serial monitor. I came to know that these data have to be stored to a variable before it can be sent using an Arduino GSM shield. Can anybody please share code to send these data using a Arduino GSM shield to a cell phone?
#include "EmonLib.h" // Include Emon Library
EnergyMonitor emon1; // Create an instance
OpenEnergy Monitor-Send serial data using Arduino GSM/GPRS shield
Submitted by Mithun Manohar on Thu, 13/02/2014 - 03:10Hi. I have set up a simple home energy monitoring system using the instructions available at http://openenergymonitor.org/emon/node/58. The code below when uploaded to Arduino displays the real, reactive power, voltage, current and power factor in serial monitor. I came to know that these data have to be stored to a variable before it can be sent using an Arduino GSM shield. Can anybody please share code to send these data using a Arduino GSM shield to a cell phone?
#include "EmonLib.h" // Include Emon Library
EnergyMonitor emon1; // Create an instance
void setup()
{
Serial.begin(9600);
emon1.voltage(2, 234.26, 1.7); // Voltage: input pin, calibration, phase_shift
emon1.current(1, 111.1); // Current: input pin, calibration.
}
void loop()
{
emon1.calcVI(20,2000); // Calculate all. No.of wavelengths, time-out
emon1.serialprint(); // Print out all variables
}