I need some help. I can't understand why it is not printing out any value beside 0. So I use a Shunt resistor that has the resolution of 50mV for 300A and an AD0623AN op-amps. The signal is amplified with the gain of 100. One wire connected to the load side of the Shunt resistor is hooked into pin 3 of the AD0623, the other end of the Shunt resistor goes to pin 2.
The pin 6 (output) on chip goes to A5 analog pin of the Mega 2560.
I run the regular command int sensor_value = analogRead(A5). This gives me the reading values varies from 12-60. So it is reading something...
But the real problem is, when I convert this number to Amps, I always get 0