Current Sensing Problem with ACS712 ?

Hi friends,

Then i tried EmonLib again . I didnt make any change, i just uploaded the EmonLib example ( emonLib > examples > voltage_and_current.ino ) into the arduino ic.

I get some output but it's fluctuating a lot . Please see the results i got in Serial Monitor .

WITHOUT LOAD
rmsVoltage : 267.22 rmsCurrent : 0.04
rmsVoltage : 268.10 rmsCurrent : 0.04
rmsVoltage : 266.13 rmsCurrent : 0.04
rmsVoltage : 277.60 rmsCurrent : 0.04
rmsVoltage : 271.81 rmsCurrent : 0.04
rmsVoltage : 219.10 rmsCurrent : 0.03 ( voltage has dropped )
rmsVoltage : 271.05 rmsCurrent : 0.04
rmsVoltage : 259.77 rmsCurrent : 0.04
rmsVoltage : 267.94 rmsCurrent : 0.04

WITH LOAD

rmsVoltage : 254.26 rmsCurrent : 0.44
rmsVoltage : 253.22 rmsCurrent : 0.44
**rmsVoltage : 202.97 rmsCurrent : 0.35 ** ( voltage has dropped )
rmsVoltage : 256.09 rmsCurrent : 0.43
rmsVoltage : 255.41 rmsCurrent : 0.45
rmsVoltage : 251.49 rmsCurrent : 0.43
rmsVoltage : 254.72 rmsCurrent : 0.43

Used arduino CODE is below

// EmonLibrary examples openenergymonitor.org, Licence GNU GPL V3

#include "EmonLib.h" // Include Emon Library
EnergyMonitor emon1; // Create an instance

void setup()
{
Serial.begin(9600);

emon1.voltage(2, 6340.26, 1.7); // Voltage: input pin, calibration, phase_shift
emon1.current(3, 1.1); // Current: input pin, calibration.
}

void loop()
{
emon1.calcVI(20,2000); // Calculate all. No.of half wavelengths (crossings), time-out
emon1.serialprint(); // Print out all variables
}

Your help will be highly appreciated .

Thanks,
Dileesha.