Hi,
I am working on power meter for battery powered application. Currents shouldn't exceed 20A. I was planning to use INA226 ready module with R004 shunt resistor. Unfortunately it can't handle more then 36V.
I read some threads on this forum and find out that for current sensing I would need to move INA226 to low side. What I am not sure about is: can I still use Vbus input to measure battery voltage, as long as I scale it down to acceptable level? I was thinking something like this:
Hi,
I don't see a reason why this circuit won't work. Just make sure that you will multiply your current by 2 in your software. The most important thing for you to take into consideration is that you will place the shunt as close to the ground as possible. That way you get the most accurate measurment.
A shunt measures a voltage drop over a certain wire with a fixed resistance. Because you drop the voltage by half, you will need to multiply the measured voltage by 2 to make sure that voltage divider is accounted for. You can also multiply the current by 2 ( Ix2 = Vx2xR).
Voltage drop on shunt doesn't go thru voltage divider. As shown above both ends of shunt are hooked up directly to INA226 module. So the current reading shouldn't require any software adjustments. It's only Vbus that needs to bee multiplied by 2, to calculate power.
The problem with low side is that your load is no longer connected to system ground.
So the "ground" potential of your 20A load can now be up 80mV higher than other devices connected to the GND in your schematic.
This may or may not be a problem but should be taken into consideration when designing the rest of your circuit.
I could place shunt at the lowest point just before battery minus (-) terminal, and then for everything else use shunt positive side as "apparent" ground. Would that be best practice?
I do have other stuff in the system, like MCU. MCU and INA226 will both be powered by Vbat -> 5VDC buck converter. I think this buck should be 5V relative to "apparent GND", and then only INA will be grounded below shunt, thus getting 5V+80mV.
For future reference: I did hooked it up like in schematic (post #1). Haven't tested it yet with target load, but for small currents it seems to work flawlessly.
The library manager of the IDE has a selection. Type INA226 in the top field to see them.
Click on "more info" to see the examples and how recent the library was updated.
Leo..