Hi
I have developed a current sensing circuit using an ACS714 20A, a PIC16F877A and some other components. The code I have written for the current calculation is:
Vout Voltage(mV) = (ADC Value / Max ADC Value) * Vref
Current Through the Wire (A) = (Vout(mv) - Voffset) / Sensitivity(mV/A)
Which equates to
Vout Voltage(mV) = (ADC Value / 1023) * 5000
Current Through the Wire (A) = (Vout(mv) - 2500) / 100
But when i use it to calculate the maximum amp reading, i get 25A, which seems way too high if the higher threshold of the ACS714 20A is 20A.
Am I making a mistake in my calculations?
Thanks