Skip to content
Documentation sections

NTC Thermistor Temperature Calculator

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

Slug ntc-thermistor. Calculate temperature from NTC thermistor resistance using the Steinhart-Hart beta equation. Get Kelvin and Celsius outputs for sensor circuit design.

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 ntc-thermistor
NameUnitRangeDefaultDescription
resistancenumberΩat least 0.110000Measured thermistor resistance at unknown temperature
betanumberK100 … 100003950Beta (B) coefficient of the thermistor, from datasheet. Typically 3000–4500 K.
T0number°C−55 … 20025Reference temperature at which R0 is specified (usually 25°C)
R0numberΩat least 0.110000Thermistor resistance at reference temperature T0 (e.g. 10kΩ at 25°C)
fixedResistornumberΩat least 110000The divider's fixed resistor: from the reference to the ADC node when the NTC is on the low side, from the ADC node to ground when it is on the high side
adcRefnumberV0.1 … 503.3The voltage across the divider, which is also the ADC full scale (ratiometric)
adcBitsnumberbit1 … 2412ADC resolution in bits
ntcPositionnumbernoneany0Low side: the NTC from the ADC node to ground. High side: from the reference to the node.One of: 0 Low side · 1 High side

Outputs

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

Outputs of ntc-thermistor
FieldUnitDescription
temperatureheadline°CCalculated temperature in degrees Celsius
temperatureKKCalculated temperature in Kelvin
dividerVoltageVThe voltage at the ADC node
adcCodenoneThe code an ideal ADC reads: floor(V_out / V_ref × 2^N)
resolution°C/LSBThe temperature one ADC step spans at this point

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.