2020-02-01, 02:34 PM
(2020-02-01, 11:38 AM)PaddyB Wrote:(2020-01-31, 03:19 PM)ddelorme Wrote: I am having a bit of an issue with this PaddyB. I have a esp8266 and a ina219 my shunt on the low side is a 50 amp 75 mv.
I can connect and get values but i cant seem to get the right values.
I am using the TI INA219 hi-side i2c current/power monitor Library for Arduino.
It would help if i could see some code? Please
Can't find the old C++ code, I'm moving over to micropython for ESP32 stuff, but you will need to add a calibration factor, I just kept tweaking the calibration 'til it matched the battery monitor, or a dc clamp ammeter. Calibration will depend on the shunt.
LOL OK I sort of fix the problem in the same way...."I like it when the math makes sense. I am going to try on high side.. I want the bat voltage.