Thermistor PDF
Thermistor PDF
1 Objectives
• Introduce the method of closed loop control with a sensor and an ac-
tuator
Components used:
• thermistor
• Zener diode
• LED
• relay
• bipolar transistor
1
Figure 1: Basic Thermistor sensing circuit, using an op-amp without feed-
back as a comparator
2
the potentiometer adjustment to set the temperature we want the thing to
maintain, called the “set point”.
The non-inverting input is connected to another voltage divider, formed
by the thermistor T and a fixed 10 K resistor to ground. In use, the ther-
mistor would be in good thermal contact with 03 sample whose temperature
we want to control. Remember that the thermistor resistance varies with
temperature. So the divider ratio in this divider, and hence the voltage at
the non-inverting input, will also vary with temperature.
Since we use an NTC thermistor, the voltage V + at the non-inverting
input will increase as the temperature increases. (Better think this through.)
When V+ is bigger than the set point V− , the op-amp output will go high.
We will use this output to turn off the heater (the sample is already too
hot). Whenever V+ is smaller than the set point V− , the op-amp output
will go low. We will use this output to turn on the heater (the sample is
still too cold).
To play with this circuit we start out with no sample, just the thermistor
on the breadboard (we can change its temperature by touching it with a
finger). Instead of a heater we use an LED (light emitting diode) to show
whether the heater would be on or off.
Notice that there is no negative feedback applied to the op-amp. This is
unusual and in a way is a 17-use of the op-amp. There is another special IC
called a “comparator” which should really be used for this. If we wanted to
do more sophisticated temperature control (for example reduce the heater
current as the set point is approached) we could introduce feedback and get
a signal out of the op-amp that was proportional to the difference between
actual and set point temperatures.
With no feedback, the high gain of the op amp makes its output just
go to one or the other of the power supply voltages in response to any tiny
difference (V+ -V− ). This is called “railing” or “hitting the rails”. The power
supply voltages Vcc and Vee are called the “rails”.
The LED shown in the circuit is there to indicate the state of the op-
amp output without having to measure it on a meter all the time. An
LED lights when it is “forward biased”, which means conventional positive
current flows in the direction of the arrow in the diode symbol. Therefore it
will light when the op-amp output goes low. When the op-amp output goes
high, the LED is reverse biased. That doesn’t hurt anything, but it doesn’t
light the thing up either.
So, putting this altogether, when the temperature sensed by the ther-
mistor is less than the set point (controlled by the potentiometer), V out at
pin 6 of the op-amp is near Vee = ground, and the LED lights up. When
the temperature is higher than the set point, the output is close to
Vcc = +9V the LED has no forward bias voltage across it and does not
light. To reverse this behavior, we could switch the inputs to pins 2 and 3
of the op-amp.
3
Figure 2: Thermistor sensing circuit with 4 and output driver stage added
5. Try reversing inputs to op-amp and verify that the operating cycle
is also reversed. This could be used to control temperature by cooling
rather than heating– or for other purposes (see below).
4
coil requires only a low current, low voltage input to operate the switch, but
the switch has enough power-handling capability to open or close the 120V
circuit. The relay used here actually has two switches in it, one “normally”
(with no current in the coil) open (normally open is abbreviated NO) and
one normally closed (NC). Of course there are also solid-state relays which
have no mechanical moving parts.
For safety reasons, the 120VAC connections don’t go on your breadboard.
They are built into an aluminum “chassis” box with connectors for standard
“IEC line cords” to supply the 120 VAC input from the wall and output to
the heater.
The circuit in Figure 2 also has another complication. A “ bipolar tran-
sistor” has been added to increase the current available to drive the relay.
The bare op-amp output would be marginal for this unless a special low
current relay were used. The transistor is denoted by:
5
+10V
10K
pot RS
47
R1
3 7
T
6 500
2 4
40K
R NC
2
NO
.
Figure 3: Thermistor sensing circuit with relay and output driver stage
added
5 Final Circuit
5.1 Improving the Stability with Schmitt Trigger
Figure 3 shows the final circuit. Notice that the setpoint circuit has been
changed. There is now a fixed resistor R 2 to ground. The 10K pot is now
being used as a single variable resistor. Only two of its three terminals are
connected to anything– the “lower” end and the wiper. The upper end is
not connected to anything.
Also new is the positive feedback resistor R S . The reason for putting
this in is explained below.
During testing you may have noticed the relay “buzzing” - chattering
open and closed very rapidly as the temperature fluctuates very slightly
around the set point. Even if your setup did not exhibit this behavior, it is
generally a problem with simple on/off controllers like this. You can imagine
what would happen if this behavior occurred in a circuit controlling a 100
KW gas furnace in a house.
To eliminate the chattering behavior we use an electronic fix called a
Schmitt Trigger. Basically what this does is change the setpoint a bit de-
pending on whether the output state is on or off. Say the temperature is
low and the heater is on. After awhile the sample warms up, the setpoint
is exceeded, and the heater turns off. With the previous circuit (Figure 2,
as soon as the heater goes off and the sample barely cools off, we will again
be below the set point temperature and the heater will be turned on again.
Hence the chattering. What we would like is to slightly lower the setpoint
6
Figure 4: Temperature vs. time plot for circuit of Figure 2, no Schmitt
Trigger. Temperature is tightly controlled but heater is cycled on and off
very rapidly.
every time the heater turns off because the old setpoint was exceeded. That
way it will be awhile before the sample cools below the new setpoint and
calls for heat again. This is amazingly easy to do with a Schmitt Trigger.
We trade a little looser control of the actual temperature for not wearing
out our expensive gas furnace ignitors.
The Schmitt trigger consists simply of resistor R S connected as positive
feedback. Say we initially start adjusting the set point with the op-amp
output low (output at ground; set point temperature below sample temper-
ature). Then RS is connected to ground in parallel with R 3 . The set point
voltage we get will be slightly smaller than 10V * R 3 /(R3 +R4 ). This does
not really matter, we just adjust it to the desired temperature.
But the magic occurs when the sample heats up and the op-amp output
goes high (10 Volts), RS is then connected to 10 V in parallel with R 4 . This
changes the setpoint. The setpoint voltage divider ratio is now higher than
it was before, due to the extra resistor R S now in parallel with R4 . A higher
setpoint voltage corresponds to a lower set point temperature because we
are using an NTC thermistor.
The effect on sample temperature control can be seen from Figures 4
and 5.
To determine the proper value for RS some design decisions and calcu-
lations are required.
7
Figure 5: Temperature vs. time plot for circuit of Figure 3, including
Schmitt Trigger. Note the “dead zone between upper and lower set points,
which reduces heater cycling.
8
calculate the change of setpoint divider ratio that is equivalent to this tem-
perature fluctuation, and from there get the value of R S . (hint: Show that
the thermistor resistance changes by about 3.5% per ◦ C near 60 ◦ C. Since
the ratios for the thermistor divider and the setpoint divider are similar, we
want R2 to change by about this much when RS is switched in.)
2. Verify that the Schmitt trigger provides separate heater-on and heater-
off setpoints. Explain exactly what you measured to verify this.
4. Use half-a-meter of hook up wire to connect the relay leads to the relay
box. Verify operation of the relay box before applying AC power and
have the instructor check it.
5. When the instructor gives the OK, connect the IEC line cords to the
wall plug and the heater appliance.
6. Move the thermistor off the breadboard (use hook up wire to extend
its leads), and put it in good thermal contact with the sample. For
water samples it is sufficient to immerse the thermistor in the water.
If using a hotplate as a heater, turn the hotplate control knob all the
way to “hot”, to avoid having dueling controllers. Have the instructor
verify your setup.