Hello,
I am using the INA238 current sensor in my project, but I am encountering an issue. The current readings I get from the sensor are different from the actual values I set. I'd like to detail this issue and seek help from the community.
Firstly, for better understanding, here is a comparative table of the current values I set versus the current readings from the sensor:
|
Set current (mA) |
Reading from INA238 |
|
0,00 |
0,643 |
|
1,00 |
1,533 |
|
2,00 |
2,403 |
|
3,00 |
3,274 |
|
4,00 |
4,144 |
|
5,00 |
5,014 |
|
6,00 |
5,856 |
|
7,00 |
6,755687612 |
|
Set Current (mA) |
Reading from INA238 |
|
0,00 |
0,633 |
|
-1,00 |
-0,234 |
|
-2,00 |
-1,275 |
|
-3,00 |
-2,336 |
|
-4,00 |
-3,387 |
|
-5,00 |
-4,438 |
|
-6,00 |
-5,479 |
|
-7,00 |
-6,521 |
|
-8,00 |
-7,581 |
|
-9,00 |
-8,623 |
|
-10,00 |
-9,674 |
Next, I am sharing the snippets of the code I used to configure the INA238. These include some crucial register settings:
Configuration (CONFIG) Register: 0x10
ADC Configuration (ADC_CONFIG) Register: 0xAB6F
Shunt Calibration (SHUNT_CAL) Register: 0x3E8
Shunt Overvoltage Threshold (SOVL) Register: 0x4B00
Diagnostic Flags and Alert (DIAG_ALRT) Register: 0x8001
By the way, we are reading the current from the low-side topology.
our battery pack voltage from 75V to 108V
Rsense = 0.2mOhm
VBus pin is connected with Bat - (Or GND)
Can you help me solve this problem I am experiencing in reading current? Also, I am reading the current correctly as it should be in two out of the three prototypes I have. Could the current sensor be getting damaged for some reason?

