Can't get accurate current readings. VBUS voltage is correct but I can't figure out the code for current. All voltages will be <36 volts and current <0.8 amps. Any help would be greatly appreciated. Have tried for 4 weeks before I found this forum.
Printable View
Can't get accurate current readings. VBUS voltage is correct but I can't figure out the code for current. All voltages will be <36 volts and current <0.8 amps. Any help would be greatly appreciated. Have tried for 4 weeks before I found this forum.
Post your code, your PIC, your setup, maybe a video too.
Ioannis
ABS reading times 2.5uV divided by 100. Is current in uAmps.
ABS readings time 25 is current in nA. If I didn't make some mistake...
EDIT: max current is 0.84mA...
I think your resistor is too large, and leakage current will give you bad measurements.
What value is appropriate for the CALIBRATION number in the settings?
I've never touched this device.
I assume you've read everything in here:
https://www.ti.com/lit/ds/symlink/ina226.pdf
Section 6.5 seems to be where the main action starts.
EDIT: when I get caught up with a mystery device, I go look at what they're doing on arduino. Sometimes you gets hints in the code, sometimes your eyes just glaze over. :D
But at least it's a start.