Tech Report-Temp Controller
Tech Report-Temp Controller
Jane Thipphavong
A&EP Lasers, Inc.
ABSTRACT
An inexpensive procedure to keep the alexandrite laser rod at a specified temperature is to use a
thermistor in a temperature controller. The resistance was measured for a range of temperatures in order
to calibrate the thermistor. After completing the calibration and assessment of errors, the thermistor was
used as a digital thermometer in conjunction with a computer program to control a heater. By analyzing
this system, it is found that the thermistor is capable in maintaining the temperature of the alexandrite
laser rod with an accuracy of ±3˚C.
INTRODUCTION
The goal of the project is to implement a temperature controller to hold the alexandrite laser rod at some
specified temperature between 30˚C and 100˚C. The proposed solution is to use a thermistor in
combination with a computer to achieve this. Moreover, thermistors are quite common and inexpensive,
making it practical for the budget as well as achieving the project goal.
Thermistors have the property that its resistance changes exponentially with temperature. Using this fact,
a computer can measure the resistance from the thermistor to calculate the current temperature. The
computer uses this calculated temperature to signal a heater to control the temperature, depending on
how great the current temperature deviates from the desired one.
A thermistor was calibrated and used in a temperature-controlling unit to determine whether it was
acceptable for use. Results indicate that using the thermistor in the temperature controller does maintain
the specified temperature.
The rest of the report explains the theory; the apparatus and method; and the results and conclusions in
greater detail. The appendices…
THEORY
The thermistor resistance is related to the inverse of the temperature exponentially:
R = R0exp(T0/T) (1)
where R is the thermistor resistance (in Ohms) and T is the temperature (in degrees Kelvin). R0 and T0
are parameters specific to the thermistor. Hence, as the temperature T increases, the resistance R
decreases to at most R0. Conversely, as T decreases towards 0 Kelvin, R increases.
Using (1), measurements of the resistance R from the thermistor can now be used to calculate the
temperature T. Moreover, rearranging (1) yields:
ln(R) = ln(R0) + T0/T (2)
which describes a linear relationship between ln(R) and T. Hence, a linear least squares fit of ln(R)
and 1/T from the measurements, results in ln(R0) being the ln(R)-intercept and T0 as the slope of the
fitted line.
Since R and T are measured quantities, error analysis must be done to determine the uncertainties in the
calculated values. The uncertainty of each value, (denoted by a preceding Δ,) is calculated using the
following formulas:
Δln(R) = [Σi(δi)2/N]½ (3)
ΔT0 = Δln(R) (N/D) ½
(4)
Δln(R0) = ΔT0[Σ(xi) /N] 2 ½
(5)
where δi = ln(Ri) – ln(Rt) (6)
2
D = NΣ(xi) – (Σxi) 2
(7)
xi = 1/Ti (8)
N represents the total number of measurements; xi are the measured values; and δi are the residuals
defined as the deviations of individual measurements of ln(Ri) from theoretical values of ln(Rt)
computed from (2). From error propagation analysis, the uncertainty of temperature T, ΔT, is:
ΔT = (T/T0) [(ΔT0)2 + (TΔln(R)2 + (TΔln(R0)2]½ (9)
where ΔT0, Δln(R), and Δln(R0) are calculated using the above equations (3)-(5). The ΔT represents
the error in the calculated T values from the actual temperature of the thermistor. Because of error
propagation, ΔT is highly dependent on the errors: ΔT0, Δln(R), and Δln(R0). A more detailed
explanation of the theory behind error analysis and the development of equations (3)-(9) may be found in
Appendix I.
RESULTS
Stage I: Calibrating the thermistor.
The resistance versus temperature data, shown in FIGURE 3, does match up well to the exponential
relationship described in (1). In FIGURE 2, Matlab was used to perform a least squares fit on the
ln(R) vs. 1/T data. From FIGURE 2, note that there is some type of systematic error between heating
and cooling since the heating data points were a little below the fitted line and the cooling data were
above. The error can also be seen in the residuals plot in FIGURE 3, where the heating data points are
mostly below 0 and vice versa for cooling data. This “hysteresis” effect is due to the thermometer not
being able to display the precise “real time” temperature. In the case of heating, the thermometer is too
slow in rising to the actual temperature. Hence, lower-than-actual temperatures are recorded, resulting in
data points being below the fitted line in FIGURE 2 and vice versa for cooling. In order to solve this
error, only the heating data was fitted, as shown in FIGURE 4. It was from this graph that the constants to
calibrate the thermistor were obtained. Moreover, error analysis was done to determine what the
uncertainty in the parameters ln(R), R0 and T0 would be. The complete analysis resulted in:
ln(R0) = -4 ± 0.1296 (12)
T0 = 3466 ± 42.5890 °Kelvins (13)
Δln(R) = 0.0383 (14)
These values were then used to calculate the uncertainty for the T values. The average ΔT was found to
be 6. Note that ΔT does not represent the error in maintaining TSET, but rather the measured value of
TSET by the thermistor itself. Hence, an adjustment of T0 was necessary for the temperature on the
thermometer to match the thermistor temperature. See Appendix III for the complete list of ΔT values.
Stage II: Operating the temperature controller.
CONCLUSIONS
Figure 7 indicates that the thermistor is acceptable for use in a temperature controller. The
desired temperature was successfully maintained within ±3°C.
Moreover, Figure 7 shows that the average temperature of the system is actually higher than
TSET because of more overshoot than undershoot. This could be a problem if the system turns
out to be more temperature-sensitive when exposed to temperatures greater than TSET over a
long period of time. This may be solved by conducting further experiments on how long the delay
should be between successive temperature readings in order to allow enough time for the system
to cool to a lower temperature before turning on the heater.
Calibration technique may need to be improved to obtain more correct values for R0 and T0. As a
result, ΔT will be smaller, which improves the accuracy of the measured temperature values by
the thermistor.
The temperature controller was tested one desired temperature setting. However, further testing
should be done to ensure the temperature controller works over a range of temperatures. Also,
different thermistors should be considered to optimize cost and quality. Ultimately, final testing of
the temperature controller should be done with the alexandrite rod to ensure the design meets
requirements.
FIGURES
Figure 5: Residuals
Figure 6: Jagged V0
Figure 7: Corrected V0