I am using a ACS711EX Current Sensor and the current is varying wildly (amperage of 12 read steadily by a multi meter but the sensor returns values between 11 and 12.5). I am wondering if this is an issue with calibration or the sensor itself? Any ideas how to troubleshoot this?
This is my Arduino code, with VCC being 3.3
current1.data = currentSensor(analogRead(curSens1));
float currentSensor(float CS_Vout)
{
CS_Vout = map(CS_Vout, 0, 1023, 0, 3.3);
float c = 73.3*(CS_Vout/VCC_Teensy)-36.7;
return c;
}//end current sensor
Thanks,
Chickenwing