Hey Jason,
Ok, got it made together and attached to my SK. Right now im getting some ridicolous data; just wanted to double check i did it right?
So, my Shunts are made like this:
My wiring is per your scheme; INA219 -> 0,5mF capacitor -> Vin+ / Vin- -> 10ohm resistor on both positive lines -> shunt (each one side)
My build is like this;
So basically resistors and capacitors are soldered under the INA219 (on Vin+ and Vin-)
Just to explain my config; Boat voltage is 12V.
- INA219 0x40 - Service battery bank
- INA219 0x41 - Solar charging
- INA219 0x44 - Motor battery bank
AD1115 for;
ADC's (fuel tank level, ... )
Some ADC's with resistors to recognize states (bilge pump, ... )
Additional outputs for 4-channel relay board (smartswitches - blower, bilge pump, bilge ligts, .. )
So for the INA's im currently getting;
My RShunt is = 0,00015
All the formulas are per your code. My ground is common for both RPi, ESP's, ... Shunt voltages measured with multimeter are normal (14,3 currently on charger). Where did i go wrong?
The actual pics on the boat;
The ESP is connected to CMG.
Edit: just disconnected battery charger and measured VIN+ and VIN- to ground and the voltages are normal (13,4-13,5) although i get the same reading with INA (as in the screen above). The B shunt (for solar) is currently not hooked up, but that should not have any meaning right? And i'm reading ESP32 through SK, not through USB.
Ok, got it made together and attached to my SK. Right now im getting some ridicolous data; just wanted to double check i did it right?
So, my Shunts are made like this:
My wiring is per your scheme; INA219 -> 0,5mF capacitor -> Vin+ / Vin- -> 10ohm resistor on both positive lines -> shunt (each one side)
My build is like this;
So basically resistors and capacitors are soldered under the INA219 (on Vin+ and Vin-)
Just to explain my config; Boat voltage is 12V.
- INA219 0x40 - Service battery bank
- INA219 0x41 - Solar charging
- INA219 0x44 - Motor battery bank
AD1115 for;
ADC's (fuel tank level, ... )
Some ADC's with resistors to recognize states (bilge pump, ... )
Additional outputs for 4-channel relay board (smartswitches - blower, bilge pump, bilge ligts, .. )
So for the INA's im currently getting;
My RShunt is = 0,00015
All the formulas are per your code. My ground is common for both RPi, ESP's, ... Shunt voltages measured with multimeter are normal (14,3 currently on charger). Where did i go wrong?
The actual pics on the boat;
The ESP is connected to CMG.
Edit: just disconnected battery charger and measured VIN+ and VIN- to ground and the voltages are normal (13,4-13,5) although i get the same reading with INA (as in the screen above). The B shunt (for solar) is currently not hooked up, but that should not have any meaning right? And i'm reading ESP32 through SK, not through USB.