I am doing a project which need to measure current and input to Arduino. I used the current sensor ACS712 (5A). The reading is very unstable, the sensor still gives reading when there is no current.
Increase/Decrease the current value, the sensor readings also very unstable.
Change to another ACS712, result same.
Partial of my coding
int ACS_offset = 2500;
int mVperAmp = 185;
Raw = analogRead(CurrentIn)
Volt = (Raw / 1023.0) * 5000;
Amp = ((Volt - ACS_offset) / mVperAmp);