Pages and linked articles

Electronics - PT100 temperature sensor (Resistor networks)

Created; 05-04-2018, Update; 24-06-2025, 23-06-2025

Temperature measurement including options for use in blog page: Electronics - Robust electronics design example - outdoor wireless environmental monitor. 

PT100 Temperature sensor.

Using a PT100 or other resistor temperature sensor is probably a better option than using a semiconductor sensor where electrical interference levels are high or a wider operating temperature is required, but their sensitivity is low.  Other options are thermistors. 
 
RTD such as PT100 or PT1000 are fairly linear over at least -50 °C to 200'C or much wider, there is a slight curve.  But one of these may have been selected if the circuit and PCB design could not have been fitted in the free version of the CAD chosen;
  • NTC Thermistors can be programmed with a series resistor to be roughly linear over a 40 °C temperature range.
  • Two thermistor-type temperature sensors are roughly linear over a 100 °C temperature range but have a wobbly error graph. 
  • Semiconductor type temperature sensors work well, such as IC types; AD590, TMP117, would benefit from electrical filtering with them and are linear over -55 to 150'C.

Component selection; Sensors;
PT100 temperature sensors on 4-wire cable + instrumentation amplifier.  The wires, if kept (e.g. twisted) together, should not need more screening; the filtering should be good enough to deal with cabling acting as an aerial (I have moderated my earlier caution as a consequence of more recent experience).  The temperature input/output series resistors and capacitors should serve this function well.


Circuit 1 below is a two-channel temperature sensor using a chain comprising two reference resistors and two PT100 temperature sensors.  The circuit was modified to include only one temperature channel and therefore works with a single reference resistor.  Later, I explore chopper stabilisation.  The analogue circuitry could have 1nF capacitors at the boundary of the circuit board the analogue multiplexer will be changed from the circuit below to a dual four channel multiplexer which also provides some ESD protection other channels for calibration 100nF capacitors to the input of an instrumentation amplifier an output resistor in series with the capacitor and an analogue input to of the Xbee module.


1. Draft design for discussion;
AL 0016-01B The temperature measurement section of the circuit.  Created with CADSTAR 16.0 Express.  There are errors in this first draft of the circuit; the instrumentation amplifiers' reference input should be at least 0.8V above 0V or Vdd -0.8V for the circuit to work.

Resistance measurement is scaled by the resistance of the PT100 + R7 + R10.  The calculation is circular where the answer is required to do the calculation.  If a typical temperature value of, say, 105 ohms is used, then an approximation will be found.  In a continually running system the next time, the temperature using the previous approximation of the measurement will be accurate. 

  
R10 could be another PT100 temperature sensor; in that case, the accuracy will be limited by the instrument amplifier's gain error of 1% ;
 
That is; 1% of PT100 maximum 1.25R = 125R/100 
  Resistance to temperature 3.3'C  = 1.25R / 0.385 
  Plus the offset error. 
 
This is not good enough, so the options are: 

1. Change the Instrumentation amplifier to a INA155UA; this will work with 0V input at its Ref input, so the output will have a bigger voltage swing to improve the A/D resolution.  In addition, its gain accuracy is better at 0.1%, but its offset is bigger.  This solution may work if a lower x10 gain is selected and a higher resistor chain current so that larger signals are used. 
 
2. Change R10 to a precision resistor, which is then used as a single point of scale factor calibration.  R7 can be a general-purpose 1% resistor, and the circuit becomes a single-channel temperature measurement.  The 1% accuracy of the amplifier would be reduced by using a scale factor calibration system. 
 
I did not understand Figure 6 in the AD8293 data sheet.  It turns out that the pink area represents the lowest supply voltage operation at 2.7V, and the blue area, including the outer pink border, is for 5V operation.   Here is my question on what Figure 6 means answered

Another option is to reduce the gain of the instrument amplifier, thereby increasing the noise immunity,  by placing a resistor across the feedback filter pins.  This retains the bandwidth limiting with the capacitor, but the gain accuracy is then reduced by up to 20%.  This option is not worth pursuing further. 
-------------------------------------------------------------

Replacing the instrumentation amplifier and multiplexer with a Cirrus Logic delta-sigma analogue-to-digital converter would make a very accurate temperature measurement system.  This particular maker's products are easy to use and are known for being accurate, such as in the audio and instrumentation industries.  On the other hand, the temperature accuracy could be very high, but there is some extra software work to do, whereas the first solution largely uses already included firmware in the wireless module. 


CS5531, CS5532, CS5533 or CS5534, for example, is easy to use, more accurate and just requires the series resistor chain.  It includes up to a 4-channel multiplexer fed to a single A/D.  You don't need to use the Programmable Gain Amplifier, which, in any case, would have required a calibration cycle.  So one of these could be used with one or four temperature probes and one precision reference resistor connected to the reference input, thereby also making the measurement immune to low-frequency common-mode electrical noise.  The calibration selection of the IC serves no purpose; the IC is accurate from turn-on. 

The opinion of sales representatives and other engineers is that the significant patents from about 1990 expired long ago, and all manufacturers of Delta Sigma or Sigma-Delta type A/D converters should now be equally easy to use and similarly without the 100uV noise spikes that some of them suffer with. 

I have used this with 0.01% accurate resistors as part of the calibration system, which gives a potential temperature accuracy of 0.05 °C, but it is not possible to trace temperature calibration to this accuracy.  This is often true of many instruments; they resolve confidently to a much higher accuracy than they can be calibrated to.

In any case, the instrumentation amplifier solutions below, connected to an embedded microcontroller A/D, work well. 
--------------------------------
 
Component selection - Instrument Amplifiers;  
                    
1. AD8293G80  Ref input works best at mid power supply.
 
2. INA155UA    Ref input works at mid supply or if the inputs are near one power supply the Ref input be closer to that power rail.  That gives this amplifier a bigger output range in these circuits, which beneficially spreads the signal over more of the wireless module's A/D input's range. 

Both amplifiers give better results when multiplexed and chopper-stabilised.  It turns out that chopper stabilisation is not required, but multiplexing with a precision resistor in the resistor chain as one of the channels as part of a self-calibration system is good.

1. The first amplifier is the cheapest and the gain accuracy is poorer, but it is chopper stabilised and the offset error is better.  The outputs and the inputs in any case should not be operating too near their voltage range limits to avoid inaccuracy due to noise and interference.

2. The second amplifier is the fastest.  Can be multiplexed and chopper stabilised at some kHz and thereby move the frequency away from noisy low-frequency noise. 
  • If the Ref input and the resistor chain are switched, 0V and Vdd give two sample points per cycle of the A to D, so there should be at least 50% better accuracy by averaging.  Any contact junction voltage offsets are eliminated, but switching noise and cross-coupling of synchronous signals would be introduced unless good care with screening and PCB layout is taken.  See circuit 3.
Spreadsheet of temperature options and design arithmetic -  This blog is not a step-by-step log of a design process, but is more like a discussion of options. 

The accuracy is better than 1 °C using most options, but it later turns out that better accuracy is possible with any option. 
 
Accuracy due to the A/D 
10-bit accurate 12-bit resolution.  With some increase in resolution and accuracy by applying noise reduction using a mode filter, averaging and but it turns out that chopper stabilisation does not improve the accuracy of the system. 
 
Spreadsheet of parts selection is lost, but in conclusion, ADG609R-16 or MAX4559CSE were chosen. 
 
A temperature accuracy of, say, 2 °C would have been good enough to proceed with the design. 

Self-heating of the Pt100
PT100 raw element self-heating 0.5'C/mW in air. RS ceramic types 1.2mm x 1.6mm or larger.  Self-heating could be a lot more with a simple covering, such as a heat-shrink sleeve. 

Self-heating of the temperature sensor is small or very small in most circuit options.

I have in the past soldered 4 wires and potted a PT100 or PT1000 temperature sensor into a blind tube, such as a bolt with a deep head milled out.  That was using a thermally conductive, electrically insulating epoxy resin. 

Temperature range -20 °C to 50'C we allow for about 100 °C, say 139 ohms.  That is about 80% of the power supply noise margin. 
Mid temperature 13 °C, 105 ohms, 0.1% calibrator resistor. 

Not all the accuracy issues have been considered; for example, linearity error has not been considered.  Provided you give yourself time, the significant tolerances will have been considered by the end of the design cycle.  The noise immunity part of the design is an art that comes with an understanding of RF design, care and experience. 
 
Some of the best understanding of electrical noise comes occasionally with electronics magazines and home construction.  You will receive a diversity of opinions and bonding to 0V everywhere, like a vintage steel chassis equipment is back in favour again since the year 2000, and commercial and automotive electronics are very much better than it was 1960 to 2000. 
------------------------------------

 

2. Circuit corrections and improvements;

 
This is a near ideal circuit because it has the best placed filtering at the i/o boundary's.  But it uses too many components in this particular case. 
Revised 3-channel temperature circuit AL-0016-02c. Filter is similar to recommended 1n2F plus 39nF at the output does not change the settling time much. 1V+ reference added so that the input signals have more noise margin and Ref input operates within the range of the amplifier this could be a half supply voltage rail instead. Place holders for more filter are shown as missing components.

This level of input filtering would almost certainly work well with long unscreened cables in a moderate electromagnetic field environment.  I usually filter to this degree for short cable run applications, and nothing adverse has arisen from doing that.  But if this degree of filtering were required, then many more measures would be required, such as screened cables and using a metal enclosure.  I have not included filtering or the 1V+ reference, but a 1.24V ref IC with capacitors and the circuit's series resistors will do a good filtering job. 

The reason this was not used is that there were too many components for the CAD tool when other parts of the circuit were developed more, plus the amplifier IC footprint is small and a risk hand soldering, though I have hand soldered this density footprint before. 


Temperature measurement function software workload
  • The software should cycle through all channels.
  • Take three readings for each channel so that mode averaging can be applied, that is, drop the highest and the lowest readings.

  • Each channel is summed so that the noise reduction can occur, by applying some averaging.  The square root of the number of samples if there is noise and the noise distribution is normal at best can increase in resolution 10X for 100 readings.
  • Note the successive aproximation A/D on the wireless module must have well filtered input or else high frequency noise will introduces big errors. 
  • There must be enough lower frencey noise or variation for averaging to improve the resolution and the accuracy of the readings though. 
The instrumentation amplifier includes chopper stabilisation but this is not chopper stabilised system.  The circuits further below include full system chopper stabilisation.   

From the spreadsheet, the accuracy is <0.4'C without externally applied chopper stabilisation.  The scale factor correction is done at one point about 13 °C, and the zero by the intrinsic accuracy of the instrument amplifier Ios Vos.  The offset errors are further reduced because the total resistor chain resistance is high compared to the working resistance range. 
----------------------------------------------------------------------


3. Chopper stabilised temperature measurement

Evaluation of full chopper stabilisation, including the resistor chain and in this case Ref input switching.  Although the required accuracy has been achieved without chopper stabilisation.
 
The circuit must be well screened with 0V plane on the PCB.  The result can be awful to amazingly good.  The link to a light and photo diode system, worked in a system which worked very well even when exposed to ambient room lighting greater than the signal of interest;  electronics---exception---synchronous-rectifier
 

AL-0016-03D Evaluate IN155UA further, with chopper stabilisation as before, plus ref input switching to increase the output signal amplitude.   The input filtering has been reduced and moved, but it is as good a filter, and the mux includes ESD protection for much higher noise levels.  The accuracy can be compromised by the cable resistance but we an extra have an extra fourth temperature channels.

 

The instrument amplifier chosen has a very small footprint.  Even though I have hand-soldered this package but it would be better to use INA155 with the larger SO-8 footprint.  Using two reference resistors was another option evaluated, one of those being 10R 1%  (as a near-zero reference point) and the other 130R 0.1% (span reference point).

  • INA155 settles in 15uS to 0.01%. The cycle is the four mux channels twice is 8.

    • Time constant of the final RC formed by the analogue mux and 10nF. 10uS = 1K * 10nF, and a rule of thumb given at college was that the circuit will settle in 5 time constants.
    • If the voltage steps are say 10x bigger than the temperature signal, the time constant is 10uS + 15uS and we need 10 time constants to get to 0.01%.  Use 250uS settling and 8 steps per cycle is 2mS. 
    • That is 2mS is a chopper rate of 500Hz maximum.
  • AD8293 G80 with the recommended compensation 1.3nF and output filter 39nF, settling time to 0.01% is 2.4mS. 
    • 8 cycles is a maximum chop rate of 52Hz.
    • Ref input can not be chopped rail to rail but only about +-0.5V (2.7V Vdd minimum) or held at mind supply.
The rule of thumb, 5 time constants that a circuit will take to settle, was given to me at college, but checking the figure, e^5 is approximately 150.  So the rule of 5 time constants works to 0.67%.  Settling to 0.01%, required, is 9.22 times.


Chopping frequency;

The measurement cycle has 8 steps. 

  • Ideally, a high frequency should be used 2.5KHz - 5KHz say, that is at least 300Hz * 8 to be removed from low frequency noise and mains hum, Or 

  • A sub-multiple of 50 and 60Hz used 10Hz be used.  That is 800mS = 100mS * 8, Or

  • The last option is to chop at main frequency of the country 50Hz or 60Hz. 

 
Temperature measurement function software workload
  • The software should cycle through all channels, switch polarity and cycle through all channels again.
  • Take three readings for each channel so that mode averaging can be applied, that is, drop the highest and the lowest readings.

  • Each channel is summed with the polarity switched readings subtracted from the positive polarity readings, so that the offset error is eliminated.  A number of cycles should be summed. 

If software were running within the XBee wireless module, then local chopper stabilisation could be run with better timing than if run over the wireless connection.  In that case, running chopper stabilisation is an unnecessary complication and a higher frequency chopping is hardly possible.

--------------------------------------


The temperature range uses a small part of the resistance range and an even smaller part of the total resistance of the resistance chain.  I could not make up my mind how much this using a small part of the total resistance improved the accuracy, so I drew a picture.

 

It turns out that the total resistance chain is only relevant to how big the signal is to the amplifier and the smaller the signal and higher gain the system will have a poorer the noise margin.  On the other hand the higher gain AD8293 has more low pass filtering integrated.

 

The Pencil diagonal lines are the ideal and offset error lines due to amplifier offset.

 

The Blue Biro lines that petter out are the amplifier gain and offsets errors.  

  • Blue Biro lines would be the significant errors if AD8293 were used Circuit 2.

  • Blue Biro lines emanating from the origin 0 are relevant to the chopper stabilised circuit 3. 

  • Blue Biro lines are not significant errors if INA155 were used Circuit 4. 

The Pencil lines intersecting with 105 ohm calibration point show the accuracy improvement brought about by this single scaling point correction strategy (circuits 2 and 4).

  • The Yellow pencil marks show the offset error without the calibration.  This would have been the biggest errors in circuit 3 that uses INA155 with gain of 50.
  • The Green pencil marks are the new improved by calibrated errors over the smaller working resistance range -20 to +50'C (92R to 120R).
The scale of this picture is exaggerated to demonstrate the point.  The errors are too small to see when scaled the same as the temperature range and the other factors. 

In conclusion, single mid range scaling point self calibration system will work well.  The amplifier gain and offset errors are not significant either amplifier AD8293 or INA155  would work well. 


 

4. Considering a slower cycle, low-gain INA155UA instrumentation amplifier solution;


This circuit has less input filtering than the ideal circuit (-02?).  It is otherwise the same as the previous circuit (-03?) but without chopper stabilisation.

 


AL-0016-04E CADSTAR 16, Low gain, low frequency and good interference filtered circuit.

The final circuit uses the INA155UA, but set at its lowest gain and with greater low-frequency filtering for better interference immunity.  Therefore the input signals are bigger and the RTD current is higher but even so the RTD self heating should be modest.  Consequently, the filtering has been increased so the chop rate and multiplex rate be set lower <=50Hz. 

Spreadsheet of temperature options and design arithmetic is now working well and options can be added easily as long as the variants are placed horizontally and the outputs placed in the same placed (horizontally) with the different parameters stacked vertically.  If reorganised by cutting (not copy) and pasting that tends to make the spreadsheet easier to develop as you work on it. 
 
The accuracy is similarly good with all circuits but this option the amplifier gain is a little lower and if the self heating of the temperature is unlikely to be an issue the gain could be reduced.  In that case the incalculable RFI factors would be less harmful to the measurement.  That is R24 becomes 300R and the wire cut between IC7 pins 1 and 8.
 
-------------------------------------------------------------------------------------

An engineer can apply worst-case design tolerance and, by using a statistical approach, ensure that most products, when assembled, will work.  That is close to how raw material and measured parameters come from nature and are first processed for use!  But supplied components are made and specified, precisely and consistently, with all components meeting their tolerance specifications.  This is how electronics have changed since 1980.


Solving complex resistor networks by trying standard value components in your equations and seeing.  But first, do some maths I do not solve using Maxwell's circulating currents and Superposition, but rationalise to simpler Norton's current source or Thevenin's voltage source equivalents.  But to come back to the first point, a resistor network needs to be solved to use standard value resistors and satisfactorily meet the design tolerances.  That tolerance is met by summing squares (of the errors), and this is called least squares in a basic program written that loops until a good fit is found some BASIC let you stop edit them then continue.  I have done this, and it is powerful, but it is rarely necessary because simple circuits are mostly adequate to get usable data into a microprocessor, and then the arithmetic is carried out in that microprocessor precisely. 

Summing up;

It is now possible to buy close tolerance components cheaply and these do not have a traditional normal tolerance distribution but virtually all of them will work within tolerance.  That is modern design work is now simpler the part manufacturer has taken most of the design work out of your job.  But the art of low suitability to electrical interference and understanding RF is important. 


The PCB is more developed, and some other aspects have come to clearer whilst working on the circuit.  So the designer should go back repeatedly and improve the design until a satisfactory solution is found. 


Conclusion

You can work solve resistor networks by writing a program in BASIC.  Keep trying preferred values and solve the worst case using Error^2 to get the smallest sum of errors squared.  You can also use superposition; I have mostly avoided it except for a different case in programming.  But simply using Norton's or Thevini's current source or voltage source and running through preferred resistor values works well for me. 


Associated pages with more details;

Also see; http://www.andrew-lohmann.me.uk/engineer

Please comment below - Alternatively comment generally on my electronics; Electronics Discussion

Connected blog; Electronics, Software & Robust Design

No comments:

Post a Comment