Skip to main content
DD-CAT IDE logoDD-CAT IDE

Article · Tech Insights

Shunt Resistor Current Sensing: How to Choose Resistance, Gain, and Power

Favorite

A walkthrough of shunt-resistor current-sensing calculations: starting from Vsh = I × Rsh and Vout = Vsh × G, checking power dissipation and ADC full-scale range, using an online calculator to work out resistance, gain, and power for a 12V/5A case, plus selection tips and common mistakes.

ShareWeiboXLinkedIn

Key points

Shunt resistor current sensing comes down to choosing the resistance first, then the gain, and finally verifying power dissipation and ADC range. For a 12V/5A example: 10mΩ drops only 50mV and needs op-amp gain, while its 0.25W dissipation already exceeds the 0.125W rating of a typical 0805 resistor; 50mΩ gives an easy-to-measure 250mV but dissipates 1.25W, requiring a high-power metal-alloy resistor with 2× margin. A common approach is to pick resistance for a 50–100mV maximum drop, set gain so the output fills 70–80% of the ADC range, and leave 1.5–2× power margin. Frequent mistakes include ignoring temperature drift, low-side sensing creating ground offset, Kelvin-connection trace resistance entering the sense loop, and not checking full-scale after setting gain. An online calculator can chain together the resistance, power, and gain verification.

Why Shunt Resistor Values Always Give Me Trouble

When doing current sensing, a shunt resistor is the most direct approach and also the easiest to get wrong. The principle takes one sentence: pass the current through a small resistor and measure the voltage drop across it, Vsh=I×RshV_{sh} = I \times R_{sh}. But when you actually build it, a larger resistance causes too much power dissipation and voltage drop, while a smaller one can't hold up against op-amp and ADC noise. The first time I built a 12V/5A load monitor, I couldn't decide between 10mΩ and 50mΩ, so I went back and forth soldering several revisions.

Three Formulas to Get the Math Right First

There are only two core relationships:

Vsh=I×RshV_{sh} = I \times R_{sh}

Vout=Vsh×GV_{out} = V_{sh} \times G

where GG is the gain. One more that is often overlooked is the power dissipated by the shunt itself:

PR=I2×RshP_{R} = I^2 \times R_{sh}

Together, these three don't just determine whether you can measure current — they determine whether the measurement is accurate and whether things get hot. Take a 12V load with 5A full-load current as an example: with 10mΩ the voltage drop is only 50mV, and if the ADC full-scale is 3.3V, direct sampling uses only about 1.5% of the range, so you must add op-amp gain; the power is 52×0.01=0.25W5^2 \times 0.01 = 0.25W, which already exceeds the typical 0.125W rating of an 0805 resistor. Switch to 50mΩ and the 250mV drop is much easier to measure, but power reaches 1.25W, requiring a high-power metal-alloy resistor, and the load supply loses 250mV.

Verify with an Online Tool

I usually run the numbers through the current sense resistor calculator before I start soldering. For example, with 12V, 5A, and a desired full-scale drop of 100mV: enter the current and desired drop, and you get Rsh = 20mΩ; the power is 52×0.02=0.5W5^2 \times 0.02 = 0.5W, so with a 2× margin you need a 1W or higher part; then with gain G=20G = 20, Vout=100mV×20=2VV_{out} = 100mV \times 20 = 2V, which sits within the 3.3V range without clipping. The tool chains these steps together, which was exactly what I needed when I kept changing the resistance value back and forth.

Selection Takeaways and Common Mistakes

My rule of thumb: first pick the resistance for a maximum drop of 50–100mV, then choose the power rating with 1.5–2× margin, and finally set the gain so the output fills 70–80% of the ADC range. A few frequent mistakes:

  • Calculating with only the nominal resistance and ignoring temperature drift. High-current heating shifts the resistance, and the current reading drifts along with it. Metal-alloy resistors usually have far better TCR than ordinary thick-film parts.
  • Using low-side sensing for convenience, but the voltage offset it creates between the load ground and system ground can disrupt communication or falsely trigger protection.
  • Getting the Kelvin connection wrong, so ordinary traces put their resistance in series with the sense loop. At high currents, trace resistance can exceed the shunt resistance itself.
  • Not checking full-scale after setting the gain, leading to ADC overflow or very low range utilization.

After current sensing, you usually still need to convert ADC readings and estimate power dissipation. You can pair it with tools for voltage/current conversion, power and heat estimation, and common-mode/differential-mode gain checks. Get the shunt resistor step right first, and downstream calibration will have a solid foundation.

Get new articles by email

Enter your email — we notify you about new articles and releases (unsubscribe anytime).

Related reading

Tech Insights

学习泡妞

学习这件事和泡妞是一回事:为什么不想学、学不会、记不住,蒙卦和逻辑学一句话就点破,一切科学简单到只剩一个「咔嗒」声。用一条条对比的方式,把自学讲成泡妞,看完就忘不掉。

Tech Insights

童话版偏置电路:从电阻分压到 ΔV/R 型,把放大器的「待命点」钉住

放大器的本事全看「待命点」钉在哪:钉得偏,信号一大就削顶;钉得飘,电源一抖就全歪。这篇用斜坡上的木桶讲清偏置是什么,再把六代做法一代代推出来:电阻分压 → 二极管接法当小电阻 → 恒流源当无穷大电阻 → 自偏置四管环(为什么必然「要么死要么不定」)→ 源极垫电阻的 ΔV/R 型 → 大电流的 V/R 型。全篇一套 1.8 V / μCox=200 µA/V² 的数字算到底,附四种结构的电源敏感性对照曲线、五个最容易踩的坑和一屏速记卡。

Tech Insights

童话版电流镜:12 种常用接法一次枚举(附公式、速记卡与选型树)

电流镜只有一句话——共用一个栅压,电流按宽长比被抄过去;但"怎么抄得更稳"有十二条常见路。这篇按"比例 / 叠管子 / 加反馈 / 自己造"四类把常用电流镜全部枚举:单管、源极退化、Widlar、共源共栅、高摆幅、多重共源共栅、威尔逊、改进型威尔逊、增益提升 RGC、β 倍乘、有源电流镜、BJT 版,每种都给 R_out、V_out,min、管数和一句"什么时候用它";再配三代摆幅对照、1.8 V·200 µA·±1% 的选型算例、失配与版图规矩、五个实战场景、七条踩坑和一屏速记卡。