Rain Sensors: Gauge In progress

Purpose

The purpose of the project is to measure and record rainfall.

The project requirements are:

  1. To measure rainfall each day
  2. To display rainfall to so far each day on a screen
  3. To record each day's rainfall in a file on removable storage in a format suitable for importing into a spreadsheet

Design

Design Overview

This project comprises a 3D printed rain gauge coupled to a microcontroller, storage and display.

The gauge collects rain and funnels it down into a pivoted bucket assembly with an attached magnet as illustrated below:

Rain gauge bucket illustration

Figure 1

The assembly is pivoted about its centre point. The mechanism starts off angled so that one bucket is higher than the other. Rain coming in from above fills the raised bucket. When sufficient rain has gathered in the bucket it pivots and empties its contents, bringing the other bucket up under the water flow. The process then repeats.

Each time the assembly pivots the magnet moves past a reed switch causing a pulse to be emitted that can be be processed by a microcontroller.

Rain Gauge Assembly

The rain gauge assembly is designed to capture and funnel rain water onto the bucket assembly shown in figure 1. Renderings of the CAD designs of the components of the assembly are shown in figure 2 below:

Renders of all rain gauge assembly component CAD designs.

Figure 2

The following list describes the numbered items in figure 2:

  1. Funnel
  2. Bucket assembly / magnet holder
  3. Bucket assembly pivot unit / reed switch holder
  4. Two caps to hold the pivot axle in place §
  5. A box that contains and protects the pivoting bucket assembly
  6. Bracket that holds the pivot unit inside the main box §
  7. Mounting brackets that attach to the main unit to fasten it to a wooden baseboard

Notes:

Original design by Christopher Barnett

Original design by Christopher Barnett, modified by cahamo

§ Original design by cahamo

STL files

The CAD designs were saved as STL files. These files can be downloaded from the cahamo/rain-sensors repository on GitHub.

All files are made available under the Creative Commons - Attribution - Share Alike license v4.0. Files originally created by Christopher Barnett are copyright © 2024 Christopher Barnett. Files created by cahamo are copyright © 2024, Peter Johnson.

Microcontroller

The pulses emitted from the gauge are counted by a microcontroller which calculates the amount rain that must have fallen to trigger each pulse. The total rainfall is displayed on a screen and recorded in memory. Periodically the data is stored on an SD card.

The microcontroller program must be calibrated before use. The amount of rain captured by the funnel and the volume of water needed to tip the pivoted buckets is required to do this. The catchment area of the funnel can be measured. The amount of water that is required to tip the bucket assembly must be arrived at by experiment.

Construction

The rain gauge components described above were 3D printed on a Bambu Labs A1 3D printer using Amazon Basics orange PLA. The following montage shows all the printed parts. The parts are not to scale relative to each other:

All the rain gauge 3D printed parts

Figure 3

Additional components are also required. They are:

  1. Neodymium magnet: 10mm dia × 3mm deep
  2. 5cm of 2mm dia circular mild steel rod (stainless steel would be better)
  3. Reed switch: normally open, plastic body, 2.7 square section × 14mm long
  4. Nuts:
    • 2 × M3
    • 2 × M5
  5. Bolts:
    • 2 × M3 10mm hex head (any other head type is suitable)
    • 2 × M5 12mm hex head (any other head type is suitable)
  6. Washers:
    • 2 × M2
    • 1 × M3

Some components of the rain gauge have been assembled to date:

  • A pair of M2 washers have been superglued into the recesses around the axle holes in the bucket assembly [2] to help space the assembly from the pivot unit [3].
  • A 5cm long piece of 2mm dia steel rod has been cut to use as the bucket pivot axle. The ends of the rod were filed smooth.
  • The neodymium magnet has been inserted into the magnet holder on the bucket assembly [2] and secured with superglue.
  • The bucket assembly pivot unit [3] has been bolted to the pivot unit bracket [6] using two pairs of M3 nuts and 10mm hex head M3 bolts. The 3D printed holes were a little oversize for the bolts.
  • The rain funnel [1] was bolted to the main box [5] using two pairs of M5 nuts and and 12mm hex head M5 bolts. Because of tight clearances under the funnel the bolts were inserted from inside the main box and nuts were added on top, under the funnel.

Key: Superscript numbers in brackets refer to the number of the 3D printed part as shown in figure 2.

That is as far as things had progressed as at 2024-12-29.

Back to main project page