Description of the problem

How do you use a Thermistor when Dewesoft only natively supports thermocouple and RTD measurements?


Description of the solution

Depending upon availability, sometimes individuals may find themselves in possession of a thermistor sensor to measure temperature. While Dewesoft has native capabilities to measure temperature with Thermocouples (Krypton-TH, IOLITE-TH, and DSI-TH-x adapters) and RTD sensors (Krypton-RTD, IOLITE-RTD, DSI-RTD, SIRIUS-STG), Dewesoft does not have a native Thermistor compatibility. Does that mean that Thermistors cannot be used in DewesoftX? If they can, how is it connected?


Even if the Dewesoft hardware you are using doesn't measure resistance natively we can still calculate the resistance through the Wheatstone bridge and then use the correlation between resistance and temperature provided by the manufacturer to get the proper output. If you have the Resistance vs Temperature table provided by the manufacturer we can create a dedicated analog sensor in DewesoftX for the measurement, but if you don't have that we can use the Steinhart-Hart equation to calculate temperature. 


For both NTC and PTC type thermistors the relationship between resistance and temperature is non-linear, so a table is needed to establish the the curve. This table is provided by the manufacturer and while they follow similar trends it will be subtly different for each sensor. Here is an example of Resistance vs. Temperature table for the Measurement Specialties G2K7D411 NTC thermistor, with the full spec sheet attached.


We are going to be using this resistance value as a part of a Half Bridge configuration in DewesoftX. Due to the nature of the relationship of measuring resistance in a Wheatstone bridge we can calculate the thermistor's resistance into a mV/V value. 

R1 and R2 are already known, so that becomes 0.5. R4 is a fixed value of 2 as indicated by the spec sheet, and R3 is the value of the thermistor as temperature changes. VS will be a value of 1000 as we are working in mV/V.


Using this equation we can calculate an example where if -40°C = 43.362 kOhm the appropriate voltage will be 455.910233 mV/V.


Now that the equivalent relationship has been established we can perform it for every value in the Resistance v Temp table from above. 


                                                                                                                                                                                                                mV/V                 °C              mV/V                 °C                mV/V                 °C                 mV/V                °C 

455.910233-40-74.877838533-237.19130154-343.1703275
442.278276-35-83.771161734-243.49442455-347.09868776
425.32019-30-92.592592635-249.62518756-350.70182977
404.671115-25-101.3229136-255.57234657-354.33575478
379.937568-20-109.94205637-261.61462358-358.00085879
350.968703-15-118.4291938-267.16532459-361.32644380
317.601459-10-126.95924839-272.79752760-364.67790781
280.0022-5-135.12226140-272.79752761-368.05555682
238.5620920-143.29366441-275.49437862-371.08013983
193.8150645-151.25366342-283.6990663-374.50808984
146.6431110-159.19578143-288.95463564-377.57788585
97.909127515-166.88896344-299.04115165-380.2816986
48.634619720-174.53625645-304.18174566-383.39222687
025-182.1282446-308.73433167-386.13203488
-9.6839959226-189.41744247-313.6696568-388.88888989
-19.210799627-196.62138648-317.9959169-391.26559790
-28.680941128-203.72976849-322.36842170-414.32751295
-38.068334729-210.47957450-326.78792971-423.872875100
-47.345374930-217.36011551-331.25519572-432.18364105
-56.63790731-224.11296252-335.07306973-439.452299110
-65.770862832-230.72707353-339.27822174


This data can now be brought into DewesoftX for our custom sensor. Since it is nonlinear relationship this table can then be copied into DewesoftX in the Analog Sensor Editor with Tabular Scaling.


Then this custom sensor can be applied directly to a Bridge-based channel in DewesoftX.


The sensor should be wired up to DewesoftX as follows:


If the Reference resistor and the Thermistor are reversed i.e. the Thermistor is connected to the Positive excitation and the Reference resistor is connected to the negative excitation, the measured value will be reversed and will actually go in the opposite direction of the table. 


For your convenience this table has already been created and attached in this document as the G2K7D411 Thermistor.dxb. Upon downloading it you can go to the DEWESoft Analog Sensors Editor page and select Import and choose this file and it will be added to your database as NTC Thermistor.


It can then be selected in the dropdown menu of available sensors to use and it will populate. Be sure to set the range to 1000mV/V, Half Bridge, and 10V excitation after the sensor has been selected.


If you do not have a spec sheet for the thermistor we can still calculate the temperature using Math. Attached is a guide called How to - Connect a Thermistor to STG. This leverages the Steinhart-Hart equation to mathematically determine the temperature of an NTC thermistor depending on the resistance measured on the bridge and will give an output depending on certain conditions. 


For your convenience these formulas have been combined into the following DewesoftX Setup file Thermistor example.dxs, attached below so you don't need to type out the formulas.



Additional Information

For more information on temperature measurements in DewesoftX, please check out the presentation from DEWESoft's 2018 Worldwide Measurement Conference on Temperature, attached below.

Temperature measurement procedure with PTC thermistor