I want to measure current on the M.2 port from a range of 0.5mA to 1A.
I am using the on board power monitors for the same.
I am reading the current value from
/sys/bus/i2c/drivers/ina3221x/0-0043/iio:device3/in_current2_input
I see that a 10mOhm resistor is used as sense resistance(R193 for Jetson TX2).
This results in current resolution of 4mA as the minimum step size of the INA3221 power monitor IC for the shunt voltages is 40uV.
I am planning to solder a 100mOhm resistor instead of 10mOhm so that I will be able to read lower currents upto 400uA.
What is the corresponding change I need to make if I replace the external shunt resistance to 100mOhmm so that I can read the current consumned by M.2 port directly from /sys/bus/i2c/drivers/ina3221x/0-0043/iio:device3/in_current2_input?
There is a configuration option for power monitors 0x40 and 0x41 at Linux_for_Tegra/sources/hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms
Is there a similar configuration for 0x42 and 0x43?
Is there any other way to measure to measure lower currents other than replacing the series resistor?
Will the 100mV drop when 1A current passes through the sense resistor impact the M.2 connection?
I looked through the post. It is talking about power monitors on 0x41 that affects inrush current.
My question was regarding the power monitor on 0x43 that measures the M.2 current. It will not affect inrush current, right?
Is there any problem the sense resistor corresponding to M.2 input. (R193 from the schemtics)
There should be a corresponding change in the software, if I make the hardware change on the carrier board. Where is such provision available for 0x43 power monitor?
It also depends on the power consumption of M.2 device. The shunt voltage of power monitor is 163.8mV in max, I’m afraid that 100mohm is too big as the current could be 2A in general.