This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

INA214 weird gain



My application is a battery current measurement. The shunt is placed in the negative path and has a resistance of 250µOhm. Measured current is between -100A and +20A. Therefore the reference pin is fed of a 2/3U+ low impedance voltage source. The monitor itself is run from a 3V3 single rail supply. The tricky part is that the measured current is pretty noisy. Without filtering the monitors output is clipping to the supply rails and hence producing a variable offset error. I came up with two possible solutions: Increase the supply voltage to allow for a higher voltage swing or input filtering. Sadly changing the supply voltage is out of the question. So I added a filter network to the input as described in Figure 24 in the INA21x datasheet. Values are 100Ohm Rs and 22µF Cf. The output is now reasonablely smooth. Using lower series resistance would require absurdly high capacitance.


The Problem is now that the Gain has quadrupled?! I have checked a second PCB and the gain there was also around 380. After taking a closer look it is pretty sure that the root cause has to do with the input filter: Right befor the filter or rather the output of the current shunt the signal is noisy but ok. After the series resistors some voltage that is proportional to the monitors output adds to the input signal causing the high gain. For example: Current is 10A, shunt voltage is around 2,5mV and Ein+/- dif is 10mV. From this stage on the monitor works as designed. It takes the voltage differential amplifies it by 100 and outputs it.

I am aware that it is not recommended to use series resistors higher than 10 Ohms but there are enough examples of people succesfully doing just that with even higher resistance than I attempt to do.

  • Alexander,
    Is the gain a constant quadruple or is it a static offset regardless of input current? Also, have you tried doing this with the series resistors in the circuit but not the capacitor? I ask because I think that there may be some extra leakage going through the filter circuit that is causing the signal to increase. Higher series resistance will increase this voltage with the same currents, which is one of a few reasons we say to keep the filter resistance low.

    I would try this to debug:
    1. Try a few different currents and see if there is a constant or varying gain error.
    2. Remove the capacitor and see if the output is still off.
    3. Try a different capacitors, perhaps different capacitances and material construction.
    4. Try smaller and larger series filter resistors and see what the effects are, and do it with and without a capacitor.

    If this helps solve the issue, then that's great. If not, let us know your findings and we'll keep on working until it's sorted out!
  • Thanks Jason for your reply. I will try out these steps tomorrow and report back what I found out. Today I was busy working on a different problem.

    I did not try using the monitor without the filter cap. The filtering is necessary to obtain a usable output from the monitor with my current test setup. I will have to change my setup to an lab constant current source to sort out some of the variables. At the moment everything is how it is planed to be in the final product.

    One first thing I can state without further tesing: The gain seems to be pretty constant around 380 in the observable current range(until the monitor begins to clip to the supply rails). Small deviations from this value (gain between 350 and 400) are most likely caused by my own measurment errors.

    Best Regards,
    Alexander Schroeder
  • OK, I have just completed the first test with a current source and with that clean test current the monitor works just fine. Albeit back in application with noisy sample current things are back to madnes. It seems that the monitor can not handle the AC part of the signal. I just do not understand why and who to fix it.
  • The bandwidth of the device is 30kHz, is your AC component across the whole spectrum or situated around a particular frequency?
  • Ah, I forgot to reply here as planed.

    The spectrum has two peaks. One at the PWM frequency (8kHz fixed) and the other at the commutation frequency (everything from DC to 14Khz). However I do not understand how higher parts of the spectrum can penetrate to the monitors inputs. As the cut off frequency of the input filter is around 72Hz there should be over 50dB attenuation for signals higher than 30kHz. Is this still not sufficient or is my math off?