Skip to content
Documentation sections

Current Shunt Resistor

POSThttps://rftools.io/api/py/v1/calculate

Slug current-shunt. Calculate shunt resistor voltage drop, power dissipation, amplifier output, and ADC resolution for current sensing circuits. Free, instant results.

Inputs

Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.

Inputs of current-shunt
NameUnitRangeDefaultDescription
currentnumberAat least 010Measured Current
shuntResistancenumbermΩat least 0.00110Shunt Resistance
amplifierGainnumberV/Vat least 120INA219: 1–128×, INA240: 20–200×
adcVoltagenumberVat least 0.13.3ADC Reference Voltage
adcBitsnumberbit1 … 2412ADC resolution in bits; the ADC code and the resolution output use this many bits

Outputs

Returned in values, by key. A value that is unbounded or undefined is null.

Outputs of current-shunt
FieldUnitDescription
shuntVoltageheadlinemVShunt Voltage Drop
amplifiedVoltageVAmplified Voltage
powerDissipationmWShunt Power Dissipation
adcResolutionCurrentmA/LSBADC Resolution (12-bit)
adcCodenoneThe code an ideal ADC reads: floor(V_amp / V_ref × 2^N)
resolutionA/LSBThe current one ADC step spans at the ADC resolution above

Calling it

  • Calculate: one call, the request and response in full, and its errors.
  • Batch: this calculator with others, or a sweep, in one request.
  • Solve for a target: the value of one input that brings an output to a target.