Help designing a thermistor circuit

Click For Summary

Discussion Overview

The discussion revolves around designing a thermistor circuit for temperature measurement using a microcontroller with an 8-bit ADC. Participants explore the use of a potential divider and linear approximation for temperature readings, while addressing challenges in calculating resistance values and ensuring accuracy over a specified temperature range.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest using a potential divider for the thermistor circuit and inquire about calculating the necessary resistance values.
  • Others propose that a linear approximation may not be accurate and recommend creating a calibration look-up table based on empirical measurements.
  • A participant mentions the importance of considering the thermistor's tolerance and the effect of manufacturing variations on the design.
  • One participant shares their experience with sampling NTC thermistor characteristics at multiple points to improve accuracy through linear interpolation.
  • Another participant raises concerns about the linearity of thermistors and suggests using a simple network to linearize the response.
  • Some participants discuss the potential need for operational amplifiers to manage voltage levels and offsets in the circuit.
  • There are inquiries about the specific thermistor part number and the lack of available datasheets for the provided resistance values.

Areas of Agreement / Disagreement

Participants express differing views on the effectiveness of linear approximation for thermistor readings, with some advocating for empirical calibration methods while others highlight the limitations of using only two data points. The discussion remains unresolved regarding the best approach to achieve accurate temperature measurements.

Contextual Notes

Limitations include the reliance on only two resistance values to define the thermistor's behavior, which may not accurately represent its characteristics across a broader temperature range. Additionally, the discussion touches on the potential non-linearity of thermistors and the need for calibration.

  • #61
rusty009 said:
How did you calculate the error ?

The error in the circuit has about four contributing factors:

The tolerance of the bias resistor, or bias circuit
The error of resistance with respect to temperature of the thermistor itself
The curve fitting error you are asking about
The step resolution error of the ADC

The curve fitting error may be reduced by chosing a different curve other than a straight line approximation to fit it to, and/or preforming a regressive analysis (least-squares fit).

The ADC error is usually quoted by the manufacture as 1/2 step over the span. I'd use an error value of one step to be practical.

The tolerances of the input circuity will tell us the error in the voltage actually applied to the ADC. This involves doing a little math--

We need to find the variation of the voltage as a function of temperature and bias resistor.

Given
V = F(R_b,T) \ ,
then
\delta V = \frac {\partial F(R_b,T)}{\partial T}\delta T +\frac {\partial F(R_b,T)}{\partial R_b} \delta R_b\ .

\delta V, \ \delta R_b, and \delta T represent absolute error. We need relative error (And we need to represent relative error as vectors.)

\hat{ \epsilon}_{V} = \delta V / V

\hat{ \epsilon}_{R} = \delta R_b / R_b

\hat{ \epsilon}_{T} = \delta T / T

I could have written \delta T and \delta R_b as vectors, but the form of the equation may already be somewhat unfamilar to begin with.

We are assuming that the errors of the independent variables are independent. The error in the resistor is independent of the error in the thermistor. Abit, \hat{ \epsilon}_{R} and \hat{ \epsilon}_{T} would add like perpendicular vectors. \hat{\epsilon_{V}} , on the other hand is some combination of these vectors, and points-off in a direction within the plane spanned by these two other vectors.

The norm (magnitude) of the vector \hat{\epsilon_{V}} is the relative error in voltage to the ADC input. In general, the form of the result will involve a square root.

\epsilon_{V} = C \sqrt{ A \epsilon_{R_b}\ ^{2} + B\epsilon_{T}\ ^{2} }

where A, B and C are constants to be determined by applying the above procedure.
 
Last edited:

Similar threads

  • · Replies 22 ·
Replies
22
Views
4K
Replies
8
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
55
Views
7K
  • · Replies 32 ·
2
Replies
32
Views
6K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 22 ·
Replies
22
Views
5K
Replies
5
Views
7K