Skip to content

Sense chain

A converter measures its current with a shunt resistor, whose small voltage an amplifier raises for an ADC. Each stage sets a limit. The shunt takes voltage and power from the circuit it measures. The amplifier runs out of output range at the top, and adds its offset at the bottom. The pads and solder in the sense path add resistance of their own, and the ADC folds anything above half its sampling rate back into the reading. The sense chain takes the whole chain, in SI units, from zero to the largest current:

  • the gain, the full-scale current and which limit sets it, and the output floor, each at the worst case of the offset and the pad resistance;
  • the sense voltage (the burden) and the shunt’s dissipation at the largest current;
  • the offset-equivalent current, the pad error, and the error of the reading at the smallest current;
  • the R-C filter’s corner against the Nyquist frequency.

It flags each violation, and each result names the equations it comes from. Two charts show the output and the relative error against the current.

The tool measures currents from zero up to ImaxI_\mathrm{max}, and εmax\varepsilon_\mathrm{max} is the error you accept at the smallest current that matters, IminI_\mathrm{min}.

By Ohm’s law the shunt turns the current into the sense voltage

[Alexander & Sadiku 2017, Ch. 2]

(sense voltage, on the current sensing page).

This voltage is the amplifier’s signal, and also the burden: the voltage the shunt takes from the circuit it measures. A larger shunt gives a larger signal, and costs more burden and more dissipation, the shunt’s conduction loss at the largest current. The tool compares them with the circuit’s allowance and the shunt’s power rating when you enter them.

A current-output amplifier forces the sense voltage across its input resistor RINR_\mathrm{IN}. The resulting current flows out through ROUTR_\mathrm{OUT}, which turns it back into a voltage to ground [Analog Devices, LTC6101/LTC6101HV]:

VOUT=ISENSERSENSEROUTRINV_\mathrm{OUT} = \frac{I_\mathrm{SENSE} R_\mathrm{SENSE} R_\mathrm{OUT}}{R_\mathrm{IN}}
VOUTV_\mathrm{OUT}
sense-amplifier output
ISENSEI_\mathrm{SENSE}
current through the shunt
RINR_\mathrm{IN}
gain-setting input resistor
ROUTR_\mathrm{OUT}
output resistor
RSENSER_\mathrm{SENSE}
sense (shunt) resistor
Output of a current-output high-side current-sense amplifier✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • ideal amplifier (no offset, gain error or output headroom limit)
Notes
the amplifier forces ISENSERSENSEI_\mathrm{SENSE} R_\mathrm{SENSE} across RINR_\mathrm{IN} and sends that current through ROUTR_\mathrm{OUT}; the output headroom limit is set by the supply, not by the gain
Source
Analog Devices, LTC6101/LTC6101HV
Derivation
step-by-step sympy derivation
Equation id
sense.current_out_monitor · equations.yaml entry

The two resistors set the gain.

A voltage-output amplifier has a fixed gain GG, and adds the voltage on its REF pin [Texas Instruments 2023, Equation 1]:

VOUT=GISENSERSENSE+VREFV_\mathrm{OUT} = G I_\mathrm{SENSE} R_\mathrm{SENSE} + V_\mathrm{REF}
VOUTV_\mathrm{OUT}
sense-amplifier output
GG
amplifier gain
ISENSEI_\mathrm{SENSE}
current through the shunt
RSENSER_\mathrm{SENSE}
sense (shunt) resistor
VREFV_\mathrm{REF}
REF-pin voltage
Output of a fixed-gain voltage-output current-sense amplifier✓ verified by 8 tests
Assumptions, convention and source
Assumptions
  • ideal amplifier (no offset, gain error or output headroom limit)
Notes
the amplifier multiplies the sense voltage by its gain and adds the REF voltage, so a current of either sign swings the output either side of VREFV_\mathrm{REF}; the output cannot quite reach the supply rails
Source
Texas Instruments 2023, Equation 1, from its definitions of the load current, the sense resistor, the gain and the REF voltage
Derivation
step-by-step sympy derivation
Equation id
sense.voltage_out_monitor · equations.yaml entry

The REF voltage sets the output at zero current. A current of either sign then swings the output to either side of it, and a REF voltage of zero suits a current that flows one way only [Texas Instruments 2023].

The amplifier’s input offset voltage adds directly to the sense voltage [Analog Devices, LTC6101/LTC6101HV, Applications Information]. So the output reads it as a current, the same at every current:

IOS,eq=VOSRSENSEI_\mathrm{OS,eq} = \frac{V_\mathrm{OS}}{R_\mathrm{SENSE}}
IOS,eqI_\mathrm{OS,eq}
offset-equivalent current
RSENSER_\mathrm{SENSE}
sense (shunt) resistor
VOSV_\mathrm{OS}
amplifier input offset
Current equivalent to a sense amplifier's input offset voltage✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • the amplifier's input offset voltage is its only error (no gain error, no bias current)
Notes
the offset adds directly to the sense voltage, so the output reads it as this current: the error floor at small currents; a larger sense resistor lowers it
Source
Analog Devices, LTC6101/LTC6101HV, Applications Information: output error due to the amplifier's DC offset voltage; Texas Instruments 2023, selecting the current-sense resistor
Derivation
step-by-step sympy derivation
Equation id
sense.offset_current · equations.yaml entry

A larger shunt lowers this current, because the same current then gives a larger sense voltage [Texas Instruments 2023]. The price is more burden and more dissipation.

With a shunt of a few milliohms or less, the resistance of the solder becomes a substantial part of the sense element’s resistance, and adds to the measurement error [O'Sullivan 2012]. If the sense connections sit beyond the pads, the amplifier sees the load current through the shunt and the pads together, RSENSE+RpadR_\mathrm{SENSE} + R_\mathrm{pad}. So the reading is high by the same fraction at every current (pad error, see current sensing).

A Kelvin connection takes the pads out of the sense path: a four-terminal shunt, or a two-terminal one on a four-pad (split-pad) layout [O'Sullivan 2012]. The LTC6101 data sheet recommends Kelvin connections to the sense resistor in all but the lowest-power applications [Analog Devices, LTC6101/LTC6101HV, Applications Information]. With a Kelvin connection, enter RpadR_\mathrm{pad} as zero.

With both the offset and the pad resistance, the amplifier sees the load current through the shunt and the pads, plus its offset, and reads the sum as a current through the shunt alone:

Imeas=ISENSE(RSENSE+Rpad)RSENSE+VOSRSENSEI_\mathrm{meas} = \frac{I_\mathrm{SENSE} \left(R_\mathrm{SENSE} + R_\mathrm{pad}\right)}{R_\mathrm{SENSE}} + \frac{V_\mathrm{OS}}{R_\mathrm{SENSE}}
ImeasI_\mathrm{meas}
current the reading indicates
ISENSEI_\mathrm{SENSE}
current through the shunt
RSENSER_\mathrm{SENSE}
sense (shunt) resistor
RpadR_\mathrm{pad}
pad and solder resistance
VOSV_\mathrm{OS}
amplifier input offset
Current a shunt reading indicates, with the pad resistance and the offset✓ verified by 9 tests
Assumptions, convention and source
Assumptions
  • the amplifier's input offset voltage is its only error (no gain error, no bias current)
Notes
the amplifier sees ISENSE(RSENSE+Rpad)+VOSI_\mathrm{SENSE} (R_\mathrm{SENSE} + R_\mathrm{pad}) + V_\mathrm{OS} and treats it as ImeasRSENSEI_\mathrm{meas} R_\mathrm{SENSE}, so its output is the output equation taken at ImeasI_\mathrm{meas}; with the offset's sign that raises it, this bounds the output from above, with the other sign from below
Source
Analog Devices, LTC6101/LTC6101HV, Applications Information: output error due to the amplifier's DC offset voltage; derived here; O'Sullivan 2012, solder resistance of milliohm shunts
Derivation
step-by-step sympy derivation
Equation id
sense.reading · equations.yaml entry

The output is the output equation taken at this current. A data sheet gives the offset’s largest magnitude, not its sign, so the tool takes both signs: the one that raises the output for the upper limits, and the one that lowers it for the floor.

Relative to the true current, the two errors add, with no cross term:

εI=VOSISENSERSENSE+RpadRSENSE\varepsilon_I = \frac{V_\mathrm{OS}}{I_\mathrm{SENSE} R_\mathrm{SENSE}} + \frac{R_\mathrm{pad}}{R_\mathrm{SENSE}}
εI\varepsilon_I
relative error of the reading
ISENSEI_\mathrm{SENSE}
current through the shunt
RSENSER_\mathrm{SENSE}
sense (shunt) resistor
RpadR_\mathrm{pad}
pad and solder resistance
VOSV_\mathrm{OS}
amplifier input offset
Relative error of a shunt reading from the offset and the pad resistance✓ verified by 8 tests
Assumptions, convention and source
Assumptions
  • the amplifier's input offset voltage is its only error (no gain error, no bias current)
Notes
the two errors add exactly: the offset's share falls in inverse proportion to the current, so it sets the error at the smallest current, while the pad's share is the same at every current
Source
Analog Devices, LTC6101/LTC6101HV, Applications Information: output error due to the amplifier's DC offset voltage; derived here; O'Sullivan 2012, solder resistance of milliohm shunts
Derivation
step-by-step sympy derivation
Equation id
sense.rel_error · equations.yaml entry

The offset’s part falls in inverse proportion to the current, so it matters most at IminI_\mathrm{min}. The pad’s part is the same at every current. The tool flags each part that alone exceeds εmax\varepsilon_\mathrm{max} at IminI_\mathrm{min}, and flags the sum when only the two together do. The error chart plots both against the current, with the target.

Two limits cap the output. The amplifier delivers only up to its largest output voltage VOUT,maxV_\mathrm{OUT,max}, which depends on its supply; the ADC reads only up to its full scale VFSV_\mathrm{FS}. A voltage-output amplifier’s data sheet gives its output swing as a small voltage short of the supply rail and above ground [Texas Instruments 2023]. The LTC6101 data sheet gives its largest output as absolute values at stated supply voltages [Analog Devices, LTC6101/LTC6101HV]. Enter the values that apply at your supply.

The tool takes the highest output, with the pad resistance and the offset at the sign that raises it, and solves for the current at which it reaches the lower of the two limits: that is the full-scale current. If it lies below ImaxI_\mathrm{max}, the reading can clip before the largest current. If it lies far above, the ADC’s range is partly wasted; the table gives the share of the full scale that the highest output at ImaxI_\mathrm{max} uses.

At the bottom, a voltage-output amplifier with its REF pin at zero cannot drive its output all the way to ground. Its lowest output VOUT,minV_\mathrm{OUT,min}, the swing to ground, sets a floor: every current whose output would fall below it reads the same. An offset of the sign that lowers the output holds the output at the floor up to a current of its own. The tool takes the lowest output, gives the current below which it can stay at the floor, and flags a floor above IminI_\mathrm{min}. A REF voltage above the floor removes it.

An ADC that samples at the rate fsampf_\mathrm{samp} represents the band from dc to the Nyquist frequency:

fN=fsamp2f_N = \frac{f_\mathrm{samp}}{2}
fNf_N
Nyquist frequency
fsampf_\mathrm{samp}
ADC sampling rate
Nyquist frequency of a sampled signal✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • uniform sampling at a fixed rate
  • definition
Notes
the Nyquist bandwidth runs from dc to fNf_N; any component above it aliases back into that band, so an anti-aliasing filter removes it before the ADC
Source
Kester, What the Nyquist Criterion Means to Your Sampled Data System Design
Equation id
adc.nyquist · equations.yaml entry

Any component above it aliases back into that band, so an anti-aliasing filter removes it before the ADC [Kester, What the Nyquist Criterion Means to Your Sampled Data System Design]. In a converter, the switching ripple is such a component. The tool takes a first-order R-C filter, with its corner frequency and gain magnitude from the phasors page. It flags a corner at or above the Nyquist frequency, and gives the filter’s gain at the Nyquist frequency. That check is the tool’s own rule, built on the Nyquist criterion. A single pole attenuates only in inverse proportion to the frequency, so a corner below the Nyquist frequency is the least to ask for, and not always enough: the gain at the Nyquist frequency tells how much still passes there.

A current-output amplifier’s output is a current source, and ROUTR_\mathrm{OUT} turns it into a voltage. Seen from the filter, that is a source with ROUTR_\mathrm{OUT} behind it, its Thevenin equivalent [Alexander & Sadiku 2017, Ch. 4]. So the filter’s capacitor sees ROUTR_\mathrm{OUT} in series with RfR_f (the derivation is linked under the equation):

Rfilt=ROUT+RfR_\mathrm{filt} = R_\mathrm{OUT} + R_f
RfiltR_\mathrm{filt}
resistance the filter capacitor sees
ROUTR_\mathrm{OUT}
output resistor
RfR_f
filter resistor
Resistance an R-C filter's capacitor sees behind a current-output sense amplifier✓ verified by 8 tests
Assumptions, convention and source
Assumptions
  • ideal amplifier (no offset, gain error or output headroom limit)
  • first-order R-C low-pass filter with no load on its output
Notes
the amplifier's output is a current source loaded by ROUTR_\mathrm{OUT}; its Thevenin equivalent puts ROUTR_\mathrm{OUT} in series with RfR_f, so the capacitor sees both and the corner frequency is lower than RfCfR_f C_f alone gives; with no load on the filter the dc output stays IOUTROUTI_\mathrm{OUT} R_\mathrm{OUT}
Source
Alexander & Sadiku 2017, Ch. 4 (Circuit Theorems: Thevenin's and Norton's theorems); derived here
Derivation
step-by-step sympy derivation
Equation id
sense.filter_R · equations.yaml entry

A capacitor straight across ROUTR_\mathrm{OUT}, with no RfR_f, is a filter of this kind too. The tool takes a voltage-output amplifier’s output as an ideal voltage source, so there the capacitor sees RfR_f alone; a real amplifier’s output resistance adds to RfR_f.

Enter the converter’s switching frequency if you know it: the table then gives the filter’s gain there, the share of the switching ripple that reaches the ADC.

A current-output amplifier on a two-terminal shunt:

Example sense chain: current-output amplifier, two-terminal shunt
SymbolValueHow it is obtained
ISENSEI_\mathrm{SENSE} current through the shunt2 Agiven
IminI_\mathrm{min} smallest current to measure200 mAgiven
RSENSER_\mathrm{SENSE} sense (shunt) resistor10 mΩgiven
RpadR_\mathrm{pad} pad and solder resistance500 µΩgiven
RINR_\mathrm{IN} gain-setting input resistor100 Ωgiven
ROUTR_\mathrm{OUT} output resistor10 kΩgiven
VOSV_\mathrm{OS} amplifier input offset100 µVgiven
VOUT,minV_\mathrm{OUT,min} amplifier's lowest output0 Vgiven
VOUT,maxV_\mathrm{OUT,max} amplifier's largest output4 Vgiven
VFSV_\mathrm{FS} ADC full-scale input2.5 Vgiven
fsampf_\mathrm{samp} ADC sampling rate10 kHzgiven
RfR_f filter resistor1 kΩgiven
CfC_f filter capacitor10 nFgiven
εmax\varepsilon_\mathrm{max} relative error target (0.01 = 1 %)0.01given
VSENSEV_\mathrm{SENSE} voltage across the shunt20 mVVoltage across a current-sense resistor
VOUTV_\mathrm{OUT} sense-amplifier output2 VOutput of a current-output high-side current-sense amplifier
ImeasI_\mathrm{meas} current the reading indicates2.11 ACurrent a shunt reading indicates, with the pad resistance and the offset
VOUT,hiV_\mathrm{OUT,hi} highest output (worst case)2.11 VOutput of a current-output high-side current-sense amplifier
IOS,eqI_\mathrm{OS,eq} offset-equivalent current10 mACurrent equivalent to a sense amplifier's input offset voltage
εpad\varepsilon_\mathrm{pad} error from pad resistance0.05Gain error from pad and solder resistance in a shunt's sense path
εI\varepsilon_I relative error of the reading0.1Relative error of a shunt reading from the offset and the pad resistance
RfiltR_\mathrm{filt} resistance the filter capacitor sees11 kΩResistance an R-C filter's capacitor sees behind a current-output sense amplifier
fcf_c corner (-3 dB) frequency1.45 kHzCorner frequency of a first-order R-C low-pass filter
fNf_N Nyquist frequency5 kHzNyquist frequency of a sampled signal
∣G∣|G| low-pass gain0.278Gain magnitude of a first-order low-pass filter

Operating mode: At I_min the reading misses the error target (εI≤εmax\varepsilon_I \le \varepsilon_\mathrm{max}: does not hold) The filter's corner lies below the Nyquist frequency (fc<fNf_c < f_N: holds)

At the largest current the output reaches 2 V nominally. With the pad resistance and the offset, the amplifier reads 2.11 A, and its output can reach 2.11 V: still below the ADC’s full scale of 2.5 V. The low end is the problem. The offset-equivalent current, 10 mA, and the pad error, 0.05, put the reading at 200 mA off by a fraction of 0.1, against a target of 0.01. A Kelvin connection removes the pad’s part. The offset’s part needs a larger shunt or an amplifier with a lower offset. The filter’s capacitor sees 11 kΩ, ROUTR_\mathrm{OUT} plus RfR_f, which puts its corner below the Nyquist frequency.

A voltage-output amplifier on a Kelvin-connected shunt:

Example sense chain: fixed-gain voltage-output amplifier, Kelvin-connected shunt
SymbolValueHow it is obtained
ISENSEI_\mathrm{SENSE} current through the shunt5 Agiven
IminI_\mathrm{min} smallest current to measure500 mAgiven
RSENSER_\mathrm{SENSE} sense (shunt) resistor5 mΩgiven
RpadR_\mathrm{pad} pad and solder resistance0 Ωgiven
GG amplifier gain100given
VREFV_\mathrm{REF} REF-pin voltage0 Vgiven
VOSV_\mathrm{OS} amplifier input offset20 µVgiven
VOUT,minV_\mathrm{OUT,min} amplifier's lowest output10 mVgiven
VOUT,maxV_\mathrm{OUT,max} amplifier's largest output3.2 Vgiven
VFSV_\mathrm{FS} ADC full-scale input3.3 Vgiven
fsampf_\mathrm{samp} ADC sampling rate20 kHzgiven
RfR_f filter resistor100 Ωgiven
CfC_f filter capacitor1 µFgiven
εmax\varepsilon_\mathrm{max} relative error target (0.01 = 1 %)0.01given
VSENSEV_\mathrm{SENSE} voltage across the shunt25 mVVoltage across a current-sense resistor
VOUTV_\mathrm{OUT} sense-amplifier output2.5 VOutput of a fixed-gain voltage-output current-sense amplifier
ImeasI_\mathrm{meas} current the reading indicates5 ACurrent a shunt reading indicates, with the pad resistance and the offset
VOUT,hiV_\mathrm{OUT,hi} highest output (worst case)2.5 VOutput of a fixed-gain voltage-output current-sense amplifier
IOS,eqI_\mathrm{OS,eq} offset-equivalent current4 mACurrent equivalent to a sense amplifier's input offset voltage
εI\varepsilon_I relative error of the reading0.008Relative error of a shunt reading from the offset and the pad resistance
fcf_c corner (-3 dB) frequency1.59 kHzCorner frequency of a first-order R-C low-pass filter
fNf_N Nyquist frequency10 kHzNyquist frequency of a sampled signal
∣G∣|G| low-pass gain0.157Gain magnitude of a first-order low-pass filter

Operating mode: At I_min the reading meets the error target (εI≤εmax\varepsilon_I \le \varepsilon_\mathrm{max}: holds) The filter's corner lies below the Nyquist frequency (fc<fNf_c < f_N: holds)

The highest output at the largest current, 2.5 V, stays below the amplifier’s largest output of 3.2 V, and the error at the smallest current, 0.008, meets the target. The filter’s corner, 1.59 kHz, lies below the Nyquist frequency of 10 kHz. At that frequency the filter still passes a fraction 0.157 of the signal.

  • Offset and pads only. The error model has the amplifier’s input offset and the pad resistance. It leaves out the amplifier’s gain error, the tolerance of the gain resistors, the input bias currents, the common-mode rejection and noise. It also leaves out the shunt’s own tolerance and its change with temperature, and the ADC’s own errors. A real error budget adds them.
  • Currents from zero up. The chain is checked for a current that flows one way. The shunt’s dissipation is that of a dc current at ImaxI_\mathrm{max}. A varying current dissipates by its rms value, while the output limits apply to its peak.
  • Output limits as entered. The output range depends on the supply, the load and the temperature. Take the data sheet’s limits at your conditions.
  • An unloaded first-order filter. The ADC’s input draws charge when it samples. Its data sheet gives the source impedance it allows.
  • One pad resistance. For the lowest-value shunts, where the sense point sits on the pad and how evenly the current spreads through the resistor matter too [O'Sullivan 2012].
The sense chain with the current-output example: the amplifier-type buttons, the fields for the currents, the shunt, the amplifier and the ADC, the warnings for the offset and the pad error, the results table naming the equation of each result, and the charts of output voltage and relative error against the current.
The sense chain with the current-output example.

The numbers in the examples, presets and exercises on this site are synthetic: round teaching values, not data from any real design.