I am working with ACS712 current sensor module,
I have interfaced it with the arduino board, and LED has been connected in series with a potentiometer as the load, the output of current deflection is observed on the serial monitor of the arduino page.
but there is no deflection in the serial monitor, when there is change in the potentiometer. this is the programing I am using.
float Sensitivity = 0.66 ; // sensitivity in Volts / Amp for 5A sensor
//int voltage = 0;
//int current = 0;
void setup ( )
Serial . begin ( 9600 ) ;
Serial.println("ACS712 Current Sensor");
void loop ( )
float voltage = analogRead ( A3);
float current = ( voltage - 2.5 ) / Sensitivity ;
Serial.print(voltage,3); // print voltage with 3 decimal places
Serial.print("V, I: ");
Serial.print(current,3); // print the current with 2 decimal places
delay ( 100 ) ;