×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

INDI:: RG11 Rain Sensor driver

  • Posts: 2255
  • Thank you received: 223
Greetings all, the following driver was written with the great help of Jasem.
github.com/Trigger-broom-289/indi-RG11-Rain-Sensor

So what it is?
It's a driver to read the status of a Rain Gauge Model RG-11 sensor.
They are inexpensive to purchase, I have one installed on my observatory and it's quite efficient. As in: one drop of rain and it detects it.

Sensor setup:
Different modes are available, in this case we will use the It's Raining mode.
“It’s Raining” | Close a skylight at the first sign of rain, and open it when it stops raining.
From the pdf documentation, I have set my sensor to: "hold the output on for 15 minutes after the rain has ceased." (Added safety in my views.)

How to connect it?
This is the part where you must be comfortable with your '<strong>Odroid C1</strong>' or '<strong>Raspberry PI</strong>'. I will not cover this here.
The relay output from the sensor is connected to the GPIO on your favourite board, and you need to have the wiringPi tools installed.
You should be able to do a:
gpio readall or gpio read 4 (4 is the input I have it connected to).
You can either match your GPIO input number to the code or change the code itself, it does matter as long as they match (for obvious reasons...)


The driver is fairly simple, not much in it, standard tabs as:
'Main Control' ~ 'Options' ~ 'Paramaters' ~ 'Site Management'
Self explanatory, no need for screenshots.


I hope you'll find this driver useful in someway.


Gonzo
The following user(s) said Thank You: Jasem Mutlaq, Derek
Last edit: 8 years 3 months ago by Gonzothegreat.
8 years 3 months ago #6455

Please Log in or Create an account to join the conversation.

  • Posts: 456
  • Thank you received: 76

Replied by Derek on topic INDI:: Rain Sensor driver

Nice one, looks great.
I built a very cheap rain sensor and cloud sensor (github.com/dokeeffe/cloud-rain-monitor). However my rain detection is unreliable.
I think I'll get one of those rain sensors and integrate.
Thanks for the info.
Derek
8 years 3 months ago #6474

Please Log in or Create an account to join the conversation.

Great work! Few suggestions:

1. Instead of requesting users to re-compile the driver in case the GPIO bin is different in their setups, add a property called GPIO PIN and let the user sets it and save it to config. Each time the driver starts, the driver reads the property.
2. Change name to something more unique like "RG11 Rain Sensor"
8 years 3 months ago #6477

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I'll have to try to figure out how to do that...

That's now done, I have renamed the repo and changed the files within.
8 years 3 months ago #6478

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds