I need help with the code to read the measured value from ACS712 current sensor, Can't manage to convert the sensor output voltage into current. Also i can't figure out how to identify the current direction (My project includes battery charging and discharging, so it will be useful to know).
I'm pretty sure my connections are done right, and i do get Vcc/2 (2.5 V) sensor output voltage (measured by multi-meter) at no load (no current)
I'm using Arduino UNO
Current sensor datasheet is attached
ACS712-Datasheet.pdf (643 KB)