Crate pt_rtd

Source
Expand description

Calculation methods for platinum type RTD temperature sensors.

All temperature related calculations are based on DIN EN 60751:2009-05. The polynomials for PT100 and PT1000 for temperature calculation at below 0°C are from https://github.com/ulikoehler/UliEngineering/blob/master/UliEngineering/Physics/RTD.py.

See also https://techoverflow.net/2016/01/02/accurate-calculation-of-pt100pt1000-temperature-from-resistance/ for reference.

The correctional polynomials for PT200 and PT500 are not yet implemented, temperature calculations for these below 0°C will be wrong.

Enums§

ADCRes
Error
RTDType

Functions§

calc_r
Calculate resistance of RTD for a specified temperature.
calc_t
Calculate temperature of RTD from resistance value.
conv_d_val_to_r
Convert digital value of relative measurement for n bit ADC to resistance.