Rain Sensor Heater Algorithm

CloudWatcher
Download PDF

Algorithm for the heater of the rain sensor

The rain sensor heating adjustments are regulated by the constants defined under the
Device section of the Setup TAB as illustrated below by the red, blue and green
rectangles.

The red rectangle parameters

The red rectangle parameters define the target temperature for the rain sensor in terms of
the ambient temperature.

ambient temperature and limited by the LOW DELTA and HIGH DELTA values.

This increment is added to the ambient temperature to establish the rain sensor
target temperature.

The green rectangle parameters

The parameter Min enclosed by the green rectangle corresponds to the minimum heating
value. This value corresponds to a percentage and it should be between 10 and 20 for
stable behavior.

The blue rectangle parameters

The system will generate a heating impulse based on the parameters enclosed in the blue
rectangle.

> 8 ºC

40%

> 4º C

20%

> 3 º C

10%

> 2 º C

6%

> 1º C

4%

> 0.5 º C

2%

> 0.3 º C

1%

Internal algorithm

For every read cycle, the target temperature for the rain sensor is calculated based on the
actual ambient temperature and the red rectangle parameters described above.

The power adjustments performed to the rain heater power depend on the read
cycle period and the difference between the actual temperature and the target
temperature.

For the default read cycle of 10 seconds, the following table is used to
determine the variation to the rain sensor heating power

Temperature difference

between

Actual Temperature

and

Target Temperature

Percentage
variation to the
rain sensor
heating power

When the heat impulse mechanism is initiated, the power to the rain sensor is
increased to 100% and it is kept at 100% while the rain sensor has not reached
the impulse temperature (= the ambient temperature + Temp. parameter in the
blue rectangle).

The moment the rain sensor reaches this impulse temperature, the system will
consider this impulse temperature the target temperature and it will manage
the rain sensor temperature using the same approach as defined in 1 and 2

  1. If the actual rain sensor temperature is above the calculated target temperature,
    then the rain sensor heater power is decreased. However, if the new rain heater
    power falls below the Minimum value (defined by the green rectangle parameter)
    then this Minimum value is used.
  2. If the actual rain sensor temperature is below the calculated target temperature,
    then the rain sensor heater power is increased.
  1. If the rain sensor value has been wet/rain for at least the Cycle value (defined in
    the blue rectangle) the system will activate the heat impulse mechanism.

above, keeping the rain sensor at this target temperature (= Impulse
temperature) for the period defined in the blue rectangle parameters Durat.

After the period defined by Durat the system will revert to its normal
operation, calculating the target temperature based on the red rectangle
parameters and the ambient temperature.