SNAA344 October   2020 HDC2080

 

  1.   Trademarks
  2. 1Introduction
  3. 2Temperature Accuracy Compensation
    1. 2.1 Linear or Polynomial Regression
  4. 3Relative Humidity Correction
  5. 4Response Compensation
    1. 4.1 Symptoms of Slow Thermal Response
    2. 4.2 Simulating Thermal Response Compensation
    3. 4.3 Realistic Thermal Response Compensation
  6. 5Summary
  7. 6References

Realistic Thermal Response Compensation

For an example of the real application of thermal response compensation, consider the system shown in Figure 4-9.

GUID-20201005-CA0I-H7BF-DRT5-B5SQKZBNGMV5-low.svg Figure 4-9 System Response to Ambient Temperature Change from Room (~23 °C) to 60 °C, τ ≅ 9.1s

This system has been characterized to have a time constant, τ, of roughly 9.1s, and has a sample time of around 150ms. If the thermal response compensation algorithm as described in Section 4.2 is applied to this system, the results are as shown below in Figure 4-10. As expected, the response time is noticeably improved, however the minor temperature noise in the system is amplified by the compensation algorithm into noise on the order of ±5 °C.

GUID-20201005-CA0I-FBJN-GN0N-TH2X2BH9710G-low.svg Figure 4-10 Compensated System Response to Ambient Temperature Change From Room (~23 °C) to 60 °C, τ ≅ 9.1s

Introducing a threshold value for the algorithm to ignore the effects of noise can help to correct for this error. When the variance of the portion of the signal being analyzed is higher than the threshold, the predictive algorithm should be active. When it is not, the predictive algorithm should be disabled to avoid the signal being overwhelmed by noise.

Equation 6. GUID-20201005-CA0I-FGF8-VHLQ-Z9VRSDL37GDW-low.svg

As a rule of thumb, the threshold value should be between 1-2 standard deviations of the noise magnitude, in order to prevent the algorithm from turning on and off at incorrect times. With the wrong threshold value, the predictive algorithm will initiate and end too quickly, and cause discontinuities in the response signal. Figure 4-11 shows that adding a threshold trigger does help reduce compensation from error in noise during steady-state operation, but does not eliminate the effects of noise entirely.

GUID-20201005-CA0I-Z57W-N9JR-7CQTCT5HSJLZ-low.svg Figure 4-11 Compensated System Response to Ambient Temperature Change from Room (~23 °C) to 60 °C, Including Threshold triggered predictive response

When ambient conditions at the steady-state conditions have real variation, it can contribute noise outside the threshold value considered, and cause occasional erroneous spikes. For any single dataset, the threshold value can be changed iteratively to try and find the optimum value, but this is not practical for a real implementation where the algorithm must provide good results under multiple conditions.

A better option is to smooth the spikes in the values of Tgradient by taking the slope estimation over a greater number of samples. Now, calculating Tgradient should be done as so:

Equation 7. GUID-20201005-CA0I-FTTH-CXKG-G1NCR80SJK1Q-low.svg

Where k is a designer selected range of samples being considered. In general, the value of k should be between 2, and the number of temperature samples taken in a single time constant τ. Figure 4-12 through Figure 4-14 show the compensated responses with k =10, 50, and 100 for this system. In general, higher k values will contribute to greater accuracy and smoothing of the response signal, but will increase computation time and memory requirements. At very high k-values the compensation will begin to make response time appear slower as well. Designers should use the span of k to make a tradeoff between system temperature performance, and processing time as their application allows.

GUID-20201005-CA0I-PZ4L-LKWZ-8LGFBXQDNJVH-low.svg Figure 4-12 Compensated System Response to Ambient Temperature Change from Room (~23 °C) to 60 °C, with k=10
GUID-20201005-CA0I-LBXG-WX2Z-WFKHSZ3JVTNR-low.svg Figure 4-13 Compensated System Response to Ambient Temperature Change from Room (~23 °C) to 60 °C, with k=50
GUID-20201005-CA0I-GGRF-27S5-P8G8D22VBQZW-low.svg Figure 4-14 Compensated System Response to Ambient Temperature Change From Room (~23 °C) to 60 °C, with k=100