piBeacon: 18 - RG11 rain sensor setup

Posted on
Mon Sep 24, 2018 11:31 am
kw123 offline
User avatar
Posts: 6871
Joined: May 12, 2013
Location: Dallas, TX

piBeacon: 18 - RG11 rain sensor setup

The RG11 Rain sensor is an optical sensor with no moving parts. It can measure rain amounts from tiny to very heavy rain.http://hydreon.com/wp-content/uploads/sites/3/2015/documents/rg-11_instructions.pdf
It has several modes that can be switched dynamically (through switches/ relays).

sensitivity mode are :
- first rain drop
-bucket sizes of 0.0001" , 0.001" 0.01"

the piBeacon plugin can switch modes dynamically = switch sensitivity with rain amount as well as static ie any rain... 0.01" per measurement (bucket)

In order to fully use the capabilities you need to switch the switches on the rain sensor with eg relays.
The attached drawing shows how to attach a RG11 rain sensor to the RPI through a relay board.
Screen Shot 2018-09-24 at 12.17.47.png
Screen Shot 2018-09-24 at 12.17.47.png (214.32 KiB) Viewed 3229 times


The states of the indigo sensor device look like:
Screen Shot 2018-09-24 at 12.27.10.png
Screen Shot 2018-09-24 at 12.27.10.png (34.73 KiB) Viewed 3229 times
(units in mm]

you can set the rain units and digits in config.

In device edit you can select various timing settings and modes as well as formatting of the status field

The rain amounts can be reset in pibeacon menus under "Reset or Request new data ... "
at each hour/ midnight/ week/ month/ year the amounts shift to lastHour/lastDay...
at midnight Max and Min rain rates are calculated and shifted to lastDay


RG11 next to a common bucket rain sensor
Screen Shot 2018-09-24 at 12.34.13.png
Screen Shot 2018-09-24 at 12.34.13.png (269.33 KiB) Viewed 3225 times

Karl

Posted on
Fri Sep 28, 2018 7:50 am
Asconasny offline
Posts: 159
Joined: Jan 16, 2015

Re: piBeacon: 18 - RG11 rain sensor setup

This is just perfect! Bought one of these a couple of years ago.
haven´t looked at it since.

Guess this has to be my winter project :)

Appreciate your hard work on this plugin. Thank you

Posted on
Fri Sep 28, 2018 8:48 am
kw123 offline
User avatar
Posts: 6871
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 18 - RG11 rain sensor setup

Wouter has it installed. And it seems to work.

Nice feature is you get very fast warning (seconds)when rain starts. Combined with regular rain count.

And here in TX we have 15” rain an hour rain rates ( though not lasting 1 hour) and it works.


Sent from my iPhone using Tapatalk

Posted on
Fri Sep 28, 2018 9:31 am
Asconasny offline
Posts: 159
Joined: Jan 16, 2015

Re: piBeacon: 18 - RG11 rain sensor setup

nice :)

The fast warning was why i bought it. If i have something, or my wife is doing anything outside that dont like water we have a chance to save it before it gets soaked.
The rain count is a nice option, i didnt have plans for using this, but now when you have made the schematics and all i have to do the whole setup :D

Posted on
Fri Sep 28, 2018 12:50 pm
WouterK offline
Posts: 156
Joined: Aug 19, 2015

Re: piBeacon: 18 - RG11 rain sensor setup

Yes, It is a Nice sensor :D

Like Karl already said it reacts very fast, is accurate and makes a very good combination with the pibeacon plugin!

Posted on
Thu Jan 16, 2020 9:38 am
kw123 offline
User avatar
Posts: 6871
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 18 - RG11 rain sensor setup

in Dallas: this morning the rain sensor choked (*)

at 254mm/h = 10inches/hour rain

Now back down to 2mm/hour

The rain total today is 10cm = 4 inches so far ( in about 4 hours)

Karl

(*) had to reset the sensor = power cycle

Posted on
Sun Jan 26, 2020 11:32 am
Asconasny offline
Posts: 159
Joined: Jan 16, 2015

Re: piBeacon: 18 - RG11 rain sensor setup

Still havent got around fiddeling with this, :oops: but i noticed the 52pi relay addon, would this setup work with a 52pi hat? That would be a nice setup.

Posted on
Sun Jan 26, 2020 12:53 pm
kw123 offline
User avatar
Posts: 6871
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 18 - RG11 rain sensor setup

not in the current form, but I can adopt that.
currently it sets the relays through GPIO on/off.

that board uses i2c to set them, not a big deal to add that.

I actually really like that board well done, good software support, good docu. only draw back is only 3Amps current.

For this app you only need mAmps.

so if you decide to try that version I can add it quickly

Karl

Posted on
Sun Jan 26, 2020 2:17 pm
Asconasny offline
Posts: 159
Joined: Jan 16, 2015

Re: piBeacon: 18 - RG11 rain sensor setup

Ive placed a order for a couple of the relays when i saw they got supported i pibeacon, Figured it could be nice to have on a rainy day :)
If its not to much trouble to add the option it would be perfect to use one of them on the rain sensor instead of the relay board.

Posted on
Sun Jan 26, 2020 4:11 pm
kw123 offline
User avatar
Posts: 6871
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 18 - RG11 rain sensor setup

It is done ~ 1 hour, but not tested, if you could try, I hesitate to rip mine apart

52pi relay hard wired setup:
relay 4 = 12V
relay 3 = dip switch 5
relay 2 = dip switch 2
relay 1 = dip switch 1

will publish this week, need to test some other things

Karl

Posted on
Sun Jan 26, 2020 4:33 pm
Asconasny offline
Posts: 159
Joined: Jan 16, 2015

Re: piBeacon: 18 - RG11 rain sensor setup

wow, that was fast, :shock:
I haven't received mine yet, ordered from China so i guess it will take a while.
will test when i get them

Posted on
Mon Jan 27, 2020 5:14 pm
kw123 offline
User avatar
Posts: 6871
Joined: May 12, 2013
Location: Dallas, TX

piBeacon: 18 - RG11 rain sensor setup

did a dry run and the relays click in the right way w artificially created rain (connecting the gpio-IN pin to ground / off frequently)
It goes through sensitivity cycle with relay clicks the proper way: check if rain / high/med/low sensitivity and back

and for your relay you just need to see if anything can still leave China .. :lol:

Karl

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests