The half bridge configuration are taken from page 7 of the NI 9219 Datasheet or page 22 of the NI 9219 Getting Started Guide. With slight modifications to this image, the figure below can be created to measure thermistors.
Figure 1: The thermistor, Rtherm, reference resistor, Rref, the two wires connecting to EX+ and EX-, and the wire connected to HI are external to the NI 9219. LO is internally connected to EX-.
In order to maximize the accuracy of the measurement, the reference resistor should be chosen such that the minimum and maximum resistances are centered around the NI 9219’s input range. That is, when the thermistor and reference resistor are placed in a voltage divider, the reference resistor should be chosen such that the minimum and maximum thermistor values will create equal, but opposite imbalances from a nominally balanced voltage divider. This will keep the measurement error to a minimum. The temperature measurement error becomes larger (will be discussed and displayed later) as Vout approaches ground or Vex i.e. Rtherm approaches 0Ω or 1MΩ, full scale magnitude resistance. Here’s an image to make things more clear:
Figure 2: Circuit diagram used for the derivation of the optimal reference resistor value.
The PR103J2 thermistor from US Sensor is chosen, and the range of interests is from -8°C to 65°C. Using this sensors data sheet, we can see that -8°C corresponds to a thermistor resistance of ~50kΩ and 65°C corresponds to thermistor resistance of ~2kΩ. Rref should be optimized to allow Rtherm to vary between 2kΩ and 50kΩ, stay inside the NI 9219's measurement range, and yield the best measurement accuracy. In order to do this, a system of voltage divider equations is solved to find Rref. An assumption is made that the minimum and maximum Rtherm value will provide equal but opposite imbalances from a balanced bridge in the voltage divider. A balanced bridge condition is equivalent to Vout = ½ Vex which is equivalent to Rtherm = Rref in our voltage divider. The below equations and steps solve for Rref.
Eq. 1 is set equal to (-1) * Eq. 2 to solve the system of equations for Rref.
The numerator on left side is multiplied with the denominator on the right side and the numerator on the right side is multiplied with the denominator of the left side to the get the result below.
Rref is moved to the left side of the equation and all other components are moved to the right side and simplified to the following.
Each side of the equation is divided by -2 and then the square root is taken.
Plugging in Rtherm@lowerlimit =2kΩ and Rtherm@upperlimit=50kΩ the resulting Rref is 10kΩ.
Given the above thermistor resistance measurement range and target reference resistor value, the next step is to choose a reference resistor. In order to maintain excellent accuracy, a high accuracy resistor with a very low temperature coefficient of drift should be used. One example of such a resistor is the Vishay, Z201T 10K000 B, A, or Q for 0.1%/0.05%/0.02% resistor with 0.6 ppm/C drift.
The NI 9219 half bridge mode can only return data in units of V/V. Therefore, this V/V data must be scaled to resistance (Ω) and then to temperature (°C). The scaling from V/V to Ω can be derived from the voltage divider equation. The derivation must incorporate the knowledge that the reading returned by the NI 9219 in half bridge mode when wired in Figure 2 is equal to Vout/Vex – 0.5 V/V.
Solving Eq. 4 for Rtherm yields a scaling equation for Rtherm in terms of the NI9219 Reading and Rref.
Eq. 5 can be used to scale the NI 9219's readings from V/V to Ω. Attached is a VI that allows a conversion from V/V to Ω, ratiometrictoresistance.vi. With the value of the resistance in ohms the scaling equation or table provided by the thermistor's vendor can be used to scale the data from ohms to temperature. Attached is a VI that allows a conversion from resistance to temperature (resistancetotemperture.vi) using the scaling equation provided by US Sensor.
The measurement accuracy of this measurement method needs to be evaluated in order to provide confidence that this is a suitable method for measuring thermistors. o First the measurement range from the thermistor and reference resistor bridge is calculated in the units that NI 9219 Half Bridge mode returns, V/V. This is done by using the voltage divider equation where Rref =10kΩ and Rtherm =1kΩ to 1MΩ to solve for Vout/Vex.
For the voltage divider equation with Rref = 10kΩ, and Rtherm=10kΩ (lower limit) to 1MΩ (upper limit):
The measurement range can be used to encapsulate the error of the Rref the reference resistor. For a 1% error resistor (Rreflo = 9.9kΩ and Rrefhi = 10.1kΩ) then the range can be calculated by using equation 10.
The minimum and maximum values of 9.803E-3 V/V to 0.91 V/V are taken and will be used in subsequent calculations. This range is then used to calculate the measurement accuracy based on the gain, offset, and noise specification in the NI 9219’s datasheet. Equation 6 is the output of the physical bridge to which the measurement accuracy should be applied. Equation 1 is the NI 9219 Reading from software. A software subtraction is performed by 0.5 V/V in order to complete the remaining leg of the half bridge.
With Eq. 7, the maximum error at the full input range (9.803E-3 V/V to 0.91 V/V error ) is calculated. The graph below shows the V/V error as a function of the measured V/V.
Figure 3: NI 9219 Errors in V/V.
Figure 3 shows that as the measurement range increases the error increases. Since the V/V measurement error as well as the reference resistor is known, the error in terms of resistance can be calculated with the following steps.
The following figure is a graphical representation of equation 13, the error in terms of resistance plotted against the resistance of the thermistor.
Figure 4: NI 9219 Errors in Ω
Figure 4 illustrates that as the thermistor resistance increases the error increases. Ratiometrictoresistance.vi is a provided program for converting the NI 9219's readings from V/V to Ω.
From the resistance error, the temperature error can be calculated in terms of °C. Similar steps as the conversion from V/V to Ω are applied in this conversion.
From equation 11 the error in terms of degrees Celsius is graphed against the measured temperature.
Figure 5: NI 9219 Errors in °C
As hinted in section 2, in choosing an appropriate reference resistor to reduce the errors for a narrow temperature range, Figure 5 displays the temperature errors and shows the increase in error at the maximum and minimum thermistor temperatures. These temperature endpoints correspond to the minimum and maximum thermistor resistances 1kΩ and 1MΩ. The maximum error of ±0.704℃ exists at the lower spectrum of the thermistor range. Within a constrained measurement window of -10℃ to 60℃, this temperature range was used to pick the reference resistor Rref, the maximum error is ~ ±0.20℃. Two VI's are attached for converting the NI 9219’s readings from V/V to Ω (ratiometrictoresistance.vi) and then from Ω to ℃ (resistancetotemperature.vi) for the PR103J2 thermistor. The resistancetotemperature.vi uses Steinhart-hart coefficients specific to the PR103J2 thermistor, but these coefficients can be quickly changed for other thermistors.
Due to the magnitude of the excitation voltage or current used thermistors experience a self-heating effect which may lead to further inaccuracies in the measurement. At certain temperature measurements, excitation levels, etc this will lead to additional errors and in the worst case scenario damage of the sensing element. The Dissipation Constant, provided on the sensors data sheet, can be used to calculate the temperature impact from the excitation current.
The power induced on the thermistor due to the excitation is calculated.
Vtherm is taken from the voltage divider equation (equation 6 where Vex is on the right side of the equation). Rtherm is the resistance range of the thermistor 1kΩ to 1MΩ.
Rtherm is the resistance range of the thermistor 1kΩ to 1MΩ, Rref is 10kΩ, and Vex is the excitation voltage of the NI 9219 2.5V. An expanded version of equation 12:
Figure 6: NI 9219 Self Heating Errors
From the graph, the maximum self-heating error is approximately 0.156℃. Figure 5 includes the self-heating errors.
In Figure 1 the resistance on the wires (Wire) connecting the NI 9219 to the bridge will affect the level of excitation delivered to the bridge. Limiting the amount of lead wire resistance would reduce the error but if this is not possible an understanding of how much error is created based upon the lead wire is needed. A simple approach to determine the amount of error induced by the lead wires is taken, and an assumption is made that the resistances on both legs are equal. Equation 6 is reused to determine the nominal bridge output and the bridge output due to various levels of lead wire resistance. Lead Wire resistance is denoted as Rl. The typical output measurement from the bridge is when Rl is equal to 0.
To determine the error due to Rl we subtracted the V/V measurement due to Rl from the typical measurement.
The graph below plots the error for differing values of Rl and the previous V/V error window calculated in section 4 (Figure 3) against the thermistor resistance.
Figure 7: NI 9219 Measurement Errors due to the Lead Wire Resistance in V/V
An increase in the lead wire resistance directly increases the error in the measurement and dominates the measurement accuracy at higher thermistor resistances (negative temperatures). A 2.5Ω increase in the lead wire resistance from 7.5Ω to 10Ω causes the theoretical measurement error to fall outside the error window previously derived, Figure 3. Figure 3, Figure 4, and Figure 5 error graphs do not account for any lead wire resistance errors.
The guidelines and derivations above provide a method of making thermistor measurements and shows the accuracy of such a measurement. The NI 9219 half-bridge mode provides a suitable method of measuring the PR103J2 thermistor with an error of <1℃.