I am interfacing a thermistor with an ADC, and I have found a circuit that, at first glance, appears to suit my needs. A zero and span circuit using a single op amp.
http://www.ti.com/lit/an/slyt173/slyt173.pdf (figure 3, page 3)
The thermistor is in a voltage divider, using a 82k resistor as the fixed resistance. The thermistor's resistance is 3k @ 212F, and 160k at 32F. With 5V across the full divider, this gives 4.8V across the fixed resistor @ 212F, and 1.7V at 32F. I'd like to map 4.8V to 4V, and 1.7V to 0V.
To calculate my required offset and gain, I set up two simultaneous y=mx-b equations:
Vout = m * Vin - b
4.0 = m * 4.8 - b
0 = m * 1.7 - b
Solving for m is as easy as (y2 - y1)/(x2 - x1). plugging m = 1.2903 back into either equation gives you b = 2.1935.
According to the PDF, the equations for the resistors, as they relate to m and b are as follows:
m = (RF + RG)/RG
|b| = (RF/RG) * (R2/(R1+R2))
If m is roughly 4/3, it follows that RF is roughly RG/3, and RF/RG = 1/3.
A little more algebra, and plugging in b = 2.2 makes R2/(R1 + R2) = 2.2 * 3 = 6.6.
There is no combination of R1 and R2 that can make the quotient more than 1.
Does this mean that this circuit can not perform this particular zeroing and spanning?
If so, what are my options to accomplish this?
Thanks.