hello guys, i'm using the INA219 for some power analyses on some devices of mine and i would like to make a new project with higher ranges because the current measurement is "limited" to 3.6 Amps.
So my objective is to change the INA219's shunt resistor to get a measurement of current to 6.5 Amps max.
I think removing the R100 shunt resistor of 0.1ohm by a new one of 0.05 ohms to measure 6.4 max Amps.
Am i right about this new value of shunt?
Then i know i have to change something in Adafruit INA219's headerfiles because this code no longer belong for 6.4 range amps sensor.
I know there is a lot of other current sensors but i do appreciate a lot this one. Simply learning how to change its range (without burning anything) would help me a lot!
Any suggestion about changes i have to do in the code?
I know i have to look for the TI instructions and how to calculate the calibration parameters and insert them in the plugin but i'm still learning so...
Wawa:
Adding a common/through-hole 0.1ohm resistor to the screw terminal might be a lot easier.
Leo..
Yes, indeed.
6.4A through 0.05 ohm dissipates over 2W. Replacing the PCB shunt with 0.05 ohm resistor would
just bake a hole in the PCB or desolder itself.
Adding a second 0.1 ohm resistor in parallel with the existing shunt, preferably a 2W or higher,
will give 0.05 ohm with enough power handling, so long as the new resistor isn't too close to
the PCB one.
Ok i understand the meaning of adding a second resistor in parallels.
But i think, i have to, but not sure, do i have to change my code too? Because here we will reduce the incoming amps? So i won't measure the real amps that come throught my load.
Sorry i'm not so good in electronics but i really want to try; so if you can tell me more details :)!
A second 0.1 ohm resistor in parallel with the existing one will halve the shunt resistance,
and halve the displayed current.
All you have to do in the code is multiply the returned current by two before printing.
That could ofcourse be * 2.015 or * 1.952 if the resistor is not exactly 0.1 ohm.
Calibrate with a DMM (set to current) in series with the load.
Post the code (with code tags) if you're not sure how.
Leo..
I have been working on sending INA219 data by radio frequency in the last 2 days (thanks NRF24) so I haven't changed my code yet as you told me. I post it here as soon as it's done! I also ordered my shunt resistance, it should arrive within a few days
Thank you for your help, first time on arduino and with his community and I am not disappointed for the moment.
Note that there are also the code parts concerning the NRF for remote data transmission by radio frequency, a display on LCD and also data recording on an SD card.
If you have any comments to make, don't hesitate. I am far from being an arduino professional!
Since the internal shunt of INA219 is 0.1 ohm, and i added a 0.1 ohm in parallels i have to multiply my current value by 2 like you said:
I dont know why, but i dont need to multiply my voltage by 0.5, yet by calculation it should actually be done...
Otherwise we find practically the value that we expect!
Still more precise at low current and volts