Hello,
I recently started checking out the current measurement senzor with Arduino 1.0 and I bought a senzor (
http://www.robofun.ro/senzori/curent/senzor_curent_non_invaziv_30A). A friend who has more technical skills helped me setup an adaption for the jack of the senzor, using an audio socket from a front-end panel of a PC, and mounted there the 3 rezistor and the capacitor from the OpenEnergyMonitor presentation (
http://openenergymonitor.org/emon/buildingblocks/how-to-build-an-arduino-energy-monitor-measuring-current-only).
I connected to Arduino and used the simple sketch they provided:
#include "EmonLib.h" // Include Emon Library
EnergyMonitor emon1; // Create an instance
void setup()
{
Serial.begin(9600);
emon1.current(0, 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
}
The result doesn't seem to be something useful, or I'm missing something:
141.46 0.62
-0.01 -0.00
144.63 0.63
145.45 0.63
-208.64 -0.91
-208.30 -0.91
-316.95 -1.38
13.29 0.06
233.30 1.01
-319.38 -1.39
-0.01 -0.00
-0.01 -0.00
-0.01 -0.00
143.67 0.62
Is there some wrong with the wiring, the hardware part or something should be changed in the sketch?