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

Relative Humidity Correction

Relative humidity is the ratio of the environmental vapor pressure to the saturation vapor pressure at a given temperature, and represents how close the atmosphere is to complete water saturation. These quantities both have a strong dependence on temperature. When the interior case temperature of a system is incorrect, it will negatively affect the relative humidity output of the sensor.

After characterization of the system as discussed in Section 2, the correct ambient temperature, the interior case temperature (as read by the sensor), and the case relative humidity are all known. Using these quantities it is possible to create an appropriate look up table to correct for RH offset between the interior and exterior of the case. The only requirement is that the atmospheric moisture (measured as Absolute Humidity) between the sensor surroundings and the ambient environment are equal. This is a reasonable assumption, as absolute humidity is not affected by increases in temperature or the effects of heat-generating ICs.

GUID-20200929-CA0I-RPKZ-DSKV-2HSFTHXTDRFH-low.svg Figure 3-1 Primary Assumption for Relative Humidity Compensation Based on Temperature

Under this assumption, we can derive the following relationship:

Equation 1. GUID-20200929-CA0I-RSS7-ZF6V-1NLBGBKHQHC9-low.svg

Where:

  • TC is the temperature inside the case in kelvin (as measured by the sensor).
  • Tamb is the ambient temperature in kelvin.
  • RHc and RHamb are the case and ambient relative humidity respectively.
  • PWSc is the saturation vapor pressure at TC
  • PWSamb is the saturation vapor pressure at Tamb

The saturation vapor pressure can be calculated using the August-Roche-Magnus formula, with only temperature:

Equation 2. GUID-20200930-CA0I-PDKX-JWCH-5TKFLGHMXPLQ-low.svg

This version of the equation returns good results between 0 °C to 100 °C. If calculating the exponential on the host microcontroller is not possible, a lookup table of saturation vapor pressures may be used instead.