Energy Monitor issue


#1

i AM TRYING TO BUILD a ENERGY MONITOR .

Does ANYONE Have experience using A CT SENSOR TO MEasure current. i hAVE WIRED IT UP AS CLOSE TO all the tutorials show. with the exception of a 33OHM RESISTOR TO THE RECOMMENDED 18OHM.

THE ISSUE I am hAVING IS THat when there is no current to meASURE I STILL GET a very smALL REading from controller. AND WHEN I DISCONNECT THE SENSOR IT STILL SHOWS UP. wHEN THERE IS a A LOAD IT appears to be working ok.

#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
}


#2

@vapor83 can probably help. I got one of these sensors and haven’t had anything fun to do with it yet. If he can’t help out I’ll dig it out and take a look.