From my understanding:
shunt voltage: the voltage at shunt resistor terminals
bus voltage: the voltage that my circuit will ACTUALLY see when i use INA219 and it is measured as the voltage between IN- and GND in INA219 sensor
load voltage: the sum voltage of BUS + SHUNT voltage. It is the voltage i give to my circuit when there is no INA219 sensor. Let's say it's my Battery voltage.
So:
bus = load - shunt
load = bus + shunt
So, the answer of Bill is wrong according to these
Ha ha ha ha, sorry I have to laugh so hard. Congratulations on finding this
The confusion starts in the datasheet.
In the datasheet they say that the bus voltage is measured at VIN-.
They make it clear with: "IN– is Input Negative differential shunt voltage. Bus voltage is measured from this pin to ground".
It makes sense, because when calculating the power to the load, the voltage VIN- and the current through the shunt are required.
They also say that: VBUS = VIN- - GND
So I'm 100% sure that in the datasheet the "bus voltage" is the voltage for the load.
The input voltage (the battery voltage) is called "VIN+", "Supply", "Power Bus". That is very confusing. Shall we call it "VIN+" or Battery voltage ?
I would call the voltage over the load, the "load voltage". However, the datasheet does not use the word "load voltage", they call it "Load".
Then the datasheet mentioned "load power-supply voltage", but it is not clear what they mean.
When the INA219 module with the shunt and the load is seen as one big load for the battery, then the battery voltage can be the "load voltage". Now my head starts to spin
Without using the confusing "bus voltage" and "load voltage", this is all that is left: VIN+ = VIN- + VSHUNT VBATTERY = VIN- + VSHUNT
Why do you want to know the VIN+ ? It is only a little higher than the VIN-.
If you don't mind, then I will continue to laugh. Ha ha ha ha. I will laugh even harder if someone will reply to this with the words "bus voltage" and "load voltage" and does it all wrong. Please, don't use those words anymore, or else explain what they are every time those words are used.
P.S.: The solution is so simple. If the datasheet would have used 'stardust voltage' for VIN+ and 'wheelbarrow voltage' for VIN-, then there would be no confusing
I read twice your comment, but i am still not sure i understood it! haha (maybe cause im not native english speaker and the word "load" is a little confusing)
anyway..i understand that the problem is that the datasheet is using the phrase "supply load" for both the INA + my_testing_circuit and the "load" my_testing_circuit..
I agree Vin+ is much better..
The only reason i want to know all these is: how much is my battery at the time of the measurement..
From what we are saying the Battery voltage is the Vin+ and the "load voltage" in the adafruit's code.
Because the code is:
uzer123:
SO: the comment of adafruit's guy is wrong
Yes. Unless he/she uses common sense instead of the datasheet of the INA219 and was not influenced by the wrong words in the Adafruit library. Common sense is good
Also the words used in the datasheet are wrong and the words used in the Adafruit library are wrong.
Please don't use "loadvoltage" for the battery voltage. If you read that later in your own sketch, then you will be confused again.
@tinyelectr, I think that the INA219 datasheet is the only location where VIN- is used to measure the "bus voltage". That creates confusion. There is already confusion about "load voltage", so now the mayhem is complete. There is not much you or me can do about the confusion, because Texas Instruments started it.