Documentation sections
Thermocouple Voltage & Temperature
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug thermocouple-voltage. Calculate thermocouple EMF voltage from temperature with cold junction compensation. Determine Seebeck output for Type K, J, T, and E sensors.
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.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| typenumber | none | 0 … 3 | 0 | Each type is modelled by a constant Seebeck coefficient |
| temperaturenumber | °C | −270 … 1372 | 200 | Hot Junction Temperature |
| coldJunctionTempnumber | °C | −50 … 70 | 25 | Cold Junction Temperature |
| frontGainnumber | V/V | 0.01 … 100000 | 60 | The gain between the thermocouple and the ADC. A gain of 60 brings a type K's 50 mV at 1250 °C to about 3 V. |
| adcRefnumber | V | 0.1 … 50 | 3.3 | The ADC full scale. The ADC is unipolar: a hot junction colder than the cold junction reads 0. |
| adcBitsnumber | bit | 1 … 24 | 12 | ADC resolution in bits |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| voltageheadline | μV | Output Voltage |
| coldJunctionCorrection | μV | Cold Junction Correction |
| seebeck | μV/°C | Seebeck Coefficient |
| deltaT | °C | Temperature Difference |
| amplifiedVoltage | V | The thermocouple voltage times the amplifier gain |
| adcCode | none | The code an ideal ADC reads: floor(V_amp / V_ref × 2^N), 0 below zero |
| resolution | °C/LSB | The temperature one ADC step spans |
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.