This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Logging battery amps
#31
Negative side should be also connected to ground. Load should be connected between negative side and -Vin. battery positiv to +Vin. (left picture).
  Reply
#32
(05-08-2019, 05:16 AM)e-sailing Wrote: Negative side should be also connected to ground. Load should be connected between negative side and -Vin. battery positiv to +Vin. (left picture).
You only actually need the neg to ground if you want the measure the voltage as well, if you want to do that then load needs to be on the neg side as you say otherwise don't think it matters though I'll check that later to make sure. I prefer using ads1115 for voltage as you can measure differential voltage between to points so no risk of ground loops.

Sent from my SM-T813 using Tapatalk
  Reply
#33
AliceJ21,

I am attempting to use the same size shunt and an ESP8266, might you share your code?
  Reply
#34
I have been monitoring my batteries with an ESP8266 and ADS1115 to MQTT for a while, before I heard of openplotter.
My code is at https://github.com/svkatielee/ESP8266_Ar..._volt_mon4 if anyone is interested.
--
Larry - s/v Katie Lee Passport 45 Ketch (For Sale) - somewhere in Taiwan
  Reply
#35
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
  Reply
#36
(01-31-2020, 10:19 AM)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.
  Reply
#37
(02-01-2020, 06:38 AM)PaddyB Wrote:
(01-31-2020, 10:19 AM)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.
  Reply
#38
Well I have it working. I calculated the Shunt 100 Amp 75 mV in parallel with the onboard shunt.
Had an issue with what i thought was a buck converter, that really was a dressed up lm317t it was eating .110 amps and was very warm... thanks amazon..
added a little .91 oled.
Struggled a bit with the small size of the terminal block on the ina219.. What size of wire should i run? I am using awg 18. to the shunt and awg 22 to the buck converter.
I was going to mount it within a .5m of the battery.
  Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)