Other Parts Discussed in Thread: TPS54331,
I have a buck converter (TPS54331) and manipulate the feedback with a comparator (opv compares a (low-side) shunt with a DAC voltage) in order to control the current.
I have included the INA226 (high side shunt) in order to check the controlling and to know the work point of my load. I do also adjust the DAC coltage when running out of current limits.
As load I am using a halogen lamp (20W, 12 V, 1.67 A). When using the lamp, the INA226 shows wrong current values (~25-30%). A lab power supply shows, that the working point of the lamp is correct. When I replace the lamp with a power resistor, the INA226 actually shows correct numbers.
I am using the INA226 without a filter, but added a capacitor over the shunt later. Unfortunately I do not see any improvement. I am wondering what is going on. My currently running configuration:
Shunt = 25 mOhm
CALIBRATION = 2048
expected CURRENT = 16700 @ ca. 1.67A
read CURRENT = 23820
read VBUS = 10080 => ~12.6 V (125 mOhm shunts included)
I tried a lot and fixed some issues with the configuration, but I am at a point where I do not have any good idea any more. The lamp is a PTC and might show up a high current when starting the buck converter ... although it has a delayed starting ramp. Could this influence the INA226 conversions?
Any help would be hellpful. Thank you.