Smoke Tester: calculating the INA138 load and sense resistors

Posted on Wednesday, September 26th, 2012 in tutorials by DP

Yesterday we presented the Smoke Tester, a board designed to safely power prototypes for the first time and test for shorts.

One feature of this design is the current measurement via the INA138 high side current monitoring IC. Below is a small tutorial on how we calculated the sense and load resistors for this IC.

We started of by deciding the highest current we’d like to measure. In the Smoke Tester this was 800mA. In INA138 datasheet it is mentioned that for most applications the maximum differential voltage across the shunt resistor should fall within 50-100mV.

With this in mind we selected the shunt resistor at 0.075 Ohm. This gives us 60mV at 800mA, which is within the suggested 50-100mA range.

Next we calculated if 800mA is less then the maximum current, given the maximum power dissipation of 0.125W (1/8W). Formula we used is I=sqrt(P/R) since P=R*I^2. The result was 1.29A which is above the maximum 800mA we envisioned. A 1206 1/8W 1% 0.075 Ohm shunt resistor was chosen.

We wanted the output voltage to mirror the output current, so 800mA of current would produce 800mV on the output of the INA138. The formula provided by the datasheet states that Vout = Is*Rs*Rl*gm. Where Is is the shunt current, Rs is the shunt resistance, Rl is the load resistance, and gm is the 200uA/V transconductance constant.

By solving the equation above for Rl we have. Rl=Vout/(Is*Rs*gm) or Rl = 800mV/(800mA*0.075Oohm*200uA/V) which is 66.666..KOhm. Since 66.666..K is not a normal resistance value we decided to build it by connecting 3 200K 1% resistors in parallel, giving us theoretically the exact 66.666..K needed. There are of course tolerances to be figured in, but we are satisfied with this result.

Hope this is helpful to anyone wanting to play around with high side current monitors.

This entry was posted on Wednesday, September 26th, 2012 at 5:00 pm and is filed under tutorials. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

3 Responses to “Smoke Tester: calculating the INA138 load and sense resistors”

  1. Derek Kozel says:

    “which is within the suggested 50-100mA range.” should be mV I believe.

    What’s the lowest current which can be measured with this sense resistor? It would be interesting to have a small board to log/display current use over a broad range.

  2. Merrick says:

    0.075 ohms is very small. How does the wire resistance compare? Granted we’re talking about very short distances but I was wondering if that would have a significant impact. I don’t know the answer. Just wondering.

  3. Dolabra says: is a calculator for the resistance of a copper trace. In eagle 6.1 there is a meander feature that would allow one to make a trace resistor. For .075 you would need about 16mm of 8mil trace.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Daniel: Do I comment here or on FB?
  • Craig B: Shouldn't the default be 00xxx010? Note that bit 0 appears out of order in the documentation. In that case I think the initial value is...
  • JJM: From the datasheet extract you are showing, the power up status should be 00xxx010, not 000xxx01. Bit numbering is misleading since 'measurement resolution' is apparently...
  • Jan Ciger (@janoc200): Hmm, that could actually explain why the three sensor IMU breakout I have bought a few years ago had all sorts of issues - I...
  • Travis: Is it preset to the windows 3 fingered salute?