|
Question:
How do you convert J-type thermocouple voltage to temperature using NIST polynomials? Answer: The NIST polynomials will produce the most accurate possible temperature conversion, typically less than 0.05 degrees C error. NIST (National Institute of Standards and Technology) has published tables and equations that describe the voltage/temperature relationship. See PB93-190338, Temperature-Electromotive Force Reference Functions and Tables for the Letter-Designated Thermocouple Types Based on the ITS-90. NIST provides two forms of polynomials. The first provides voltage as a function of temperature, and the second provides temperature as a function of voltage. Both of these forms will be used in the procedure described here for doing a thermocouple temperature conversion. The NIST tables and equations are all based on one end of the thermocouple (reference junction end) being at a temperature of 0 degrees Celsius. It is possible to avoid having a 0 degree reference junction. If the temperature of the reference junction is accurately known, then by using both the forward and inverse NIST polynomials the temperature of the thermocouple can be computed. On a thermocouple, voltage is produced across the thermocouple leads that is proportional to the difference in temperature from one end of the thermocouple wire to the other. It is important to understand that voltage does not develop at the thermocouple junction but instead the voltage develops in the wire were ever a temperature gradient exists in the wire pair. Thermocouple:
------------------------------------------------------------\
| |--------->--------| |------------->--------------| \
V Vref | Vmeas | O
| |----------<-------| |-------------<--------------| /
-------------------------------------------------------------/
^ ^ ^
| | |
0 deg C Tref T
The above diagram shows that: V = Vmeas + Vref If we know Tref, then Vref is calculated using the temperature to voltage form of the NIST equations. Vmeas is the voltage measured on the thermocouple. Adding Vmeas to the calculated Vref yields the voltage V that is then applied to the NIST voltage-to-temperature thermocouple equation to produce the final thermocouple temperature. Tref is usually at about room temperature. A thermistor is usually used to sense this temperature. Here is the complete algorithm which assumes that a 5K ohm thermistor is used to sense the reference junction temperature. 1. Measure the resistance of the thermistor on the reference junction. Compute the temperature of the reference junction (Tref) from the resistance reading. The following equation has less than 0.022 deg C error for resistance between 92.7 (150 deg C) and 3.685e6 (-80 deg C).
Tref = temp. in degrees C Thr_ohms = resistance of 5K thermistor A = 1.28463e-3 B = 0.23625e-3 C = 9.2697e-8 W = ln(Thr_ohms) Tref = 1 / (A + W* (B+C * W*W)) - 273.15 The function ln is the logarithm (base e) or natural logarithm. In HP BASIC, this is the keyword LOG. 2. Measure the voltage on the thermocouple connected to a channel (Vmeas). 3. Convert the thermistor temperature (Tref) to the equivalent thermocouple voltage (Vref). Use the temperature to voltage characteristics of the thermocouple measured in step 2. J-type thermocouple temperature to voltage conversion:
Vref = c0 + c1*Tref + c2*Tref^2 + c3*Tref^3 + c4*Tref^4 + c5*Tref^5 + c6*Tref^6 + c7*Tref^7 + c8*Tref^8 The coefficients for temperature range -210 C to 760 C are: c0 = 0 c1 = 5.0381187815 * 10^-2 c2 = 3.0475836930 * 10^-5 c3 = -8.5681065720 * 10^-8 c4 = 1.3228195295 * 10^-10 c5 = -1.7052958337 * 10^-13 c6 = 2.0948090697 * 10^-16 c7 = -1.2538395336 * 10^-19 c8 = 1.5631725697 * 10^-23 4. Compute the compensated voltage (V) with the following formula: V=Vmeas + Vref 5. Convert the compensated voltage (V) calculated in step 4 to temperature (T). The equation for converting voltage (millivolts) to J-type thermocouple temperature in degrees Celsius is:
T=c0 + c1*V + c2*V^2 + c3*V^3 + c4*V^4 + c5*V^5 + c6*V^6 + c7*V^7 + c8*V^8 The coefficients for Temperature range -210 deg C to 0 deg C Voltage range -8.095 mV to 0 mV Error Range .03 deg C to -.05 deg C are: C0 = 0 C1 = 1.9528268 * 10^1 C2 = -1.2286185 C3 = -1.0752178 C4 = -5.9086933 * 10^-1 C5 = -1.7256713 * 10^-1 C6 = -2.8131513 * 10^-2 C7 = -2.3963370 * 10^-3 C8 = -8.3823321 * 10^-5 The coefficients for Temperature range 0 deg C to 760 deg C Voltage range 0 mV to 42.919 mV Error range .04 deg C to -.04 deg C are: C0 = 0 C1 = 1.978425 * 10^1 C2 = -2.001204 * 10^-1 C3 = 1.036969 * 10^-2 C4 = -2.549687 * 10^-4 C5 = 3.585153 * 10^-6 C6 = -5.344285 * 10^-8 C7 = 5.099890 * 10^-10 C8 = 0 The coefficients for Temperature range 760 deg C to 1200 deg C Voltage range 42.919 mV to 69.553 mV Error range .03 deg C to -.04 deg C are: C0 = -3.11358187 * 10^3 C1 = 3.00543684 * 10^2 C2 = -9.94773230 C3 = 1.70276630 * 10^-1 C4 = -1.43033468 * 10^-3 C5 = 4.73886084 * 10^-6 C6 = 0 C7 = 0 C8 = 0Remember to carry the correct units when using the tables or when using the polynomials in steps 3 and 5. For example, voltage in milivolts, temperature in degrees C. |