Skip to main content

Precipation Sensor

The Hydreon RG-15 measures precipitation amount and intensity precisely and maintenance-free using infrared technology and a round plastic lens.

Precipation Sensor

Precipation Sensor

Technical Information

  • "Plug-in-and-Go" compatible with senseBox
  • Dimensions: 121mm x 71mm x 56mm
  • Measurement deviation of ±10%
  • Operating temperature range from -40°C to +60°C (-40°F to +140°F)
  • Nominal current supply of 110 μA and 2-4 mA during precipitation
  • Operating voltage 5V or 3.3V
  • Serial interface (UART)

Connection

uart port

The component is connected to the UART port.

Adapter Board

The RG-15 sensor cannot be directly connected to the senseBox due to different operating voltages. Therefore, an adapter board is required to connect the sensor to the senseBox. This adapter board is included in the sensor's package and is connected with a different cable depending on the senseBox model:

Adapter Board

Adapter Board

Programming (Arduino)

Software Library

To program the sensor in Arduino, you need to install the software library RG15-Arduino.

Code

This code outputs the rainfall intensity to the Serial Monitor. You can access other measurements using the variables getEventAccumulation and getTotalAccumulation. The variable getAccumulation provides the rainfall amount since the last measurement. In the example, the sensor is initialized via Serial0, which is the default port on the senseBox MCU S2 or senseBox:edu S2. On the senseBox MCU or senseBox:edu, you can alternatively use Serial1 or Serial2.

#include <RG15.h> // https://github.com/sensebox/rg15-arduino-lib

// Initialise the RG15 through the serial port
RG15 rg15_Serial0(Serial0);

void setup(){
Serial.begin(9600);
delay(2000);
rg15_Serial0.begin();
rg15_Serial0.resetAccumulation();
}

void loop(){
rg15_Serial0.poll();
float intensity = rg15_Serial0.getRainfallIntensity();
Serial.print("Niederschlagsintensität: ");
Serial.print(intensity);
Serial.println(" mm/h");

delay(1000);
}

Programming (Blockly)

In Blockly, the sensor can be read using the following block:

In the block, you can select between the different parameters of the environmental sensor:

  • Rainfall intensity in mm/h
  • Rainfall amount since the last measurement in mm
  • Total rainfall amount in mm
  • Rainfall per event in mm

Additionally, you can select the serial port to which the sensor is connected.

Extras