Simple "Rain" sensor options. - Page 1
Forum section: electronics / general

author: paulca
author_rank: Super Contributor
timestamp: September 08, 2020, 11:04:43 am
content: Hi.I have a fairly established home automation system which includes indoor temps and outdoor temps, pressure, humidity. I am looking to extend it to detect when it's raining.I would be happy enough that it just presents something like "Surface Moisture 45%" or similar. If however there are options for detecting the amount of rain somehow that would be ideal, but not essential.Ideally I want low level, I2C/SPI/Serial rather than a component from a proprietary weather station that needs it protocol hacked.It doesn't need to be industrial grade. If the sensor corrodes and dies every 2-3 years and is cheap and easy to source I don't mind.EDIT: Rather than create a separate post... thinking forward. What options are there for wind guages for the same low level I2C/SPI stuff? I'm thinking this would ideally be mounted on my roof/chimney which would involve running 5V to it. That can be arranged but mounting it on the roof is going to cost me £50 or so for a roofer to get up there, so would need to be reliable, what have others done?Thanks,Paul

author: Jeroen3
author_rank: Super Contributor
timestamp: September 08, 2020, 11:28:11 am
content: Rain sensors either work optically, like in your car, or capacitive.https://teletask.be/en/products/technical-products/sensors/rain-detector-meter/https://www.kemo-electronic.de/en/House/Garden/M152-Rain-Sensor-12-V-DC.phpAnemometers are simple pulse counters with magnetic encoders or potentiometers, see your local marine shop.They probably don't talk i2s or spi, that isn't suitable for wiring. Some encoders to talk ssi, that is like spi on rs-232 levels.

author: tkamiya
author_rank: Super Contributor
timestamp: September 19, 2020, 07:19:12 pm
content: My car has a rain sensing window shield wipers. Apparently, it uses infrared camera to sense rain drops. It works pretty reliably. However, exactly what the camera is seeing, I have no way to know. I think any surface based methodology will produce false positives due to condensations.

author: DrG
author_rank: Super Contributor
timestamp: September 19, 2020, 08:01:24 pm
content: This is something on my very long list of things to play around with.First off, I thought about these:https://www.openhacks.com/uploadsproductos/rain_sensor_module.pdfThen I thought about combining a grid like that with a couple of piezo sensors to detect the rain drops hitting (ideally to distinguish between, "is raining" from "has rained")Lots of projects around if you search - I always like the hands on reports, like this onehttp://www.techlib.com/electronics/raindetectors.htmThen I thought about just collecting the water and using a capacitive fluid level type deal:http://www.medpants.com/liquid-level-sensorBut you have to empty itI would like to get a sensor like this onehttps://www.radiocontrolli.com/en/component/62/capacitive-rain-sensorNote the heater.I even thought about a deep learning TensorFlow deal with a Jetson and cam (of course I would have to make a data set which might take a few yearsHopefully I am giving you a few ideas even if I really don't know what the best answer for you will be. It's complicate and I will definitely watch the input on this thread.

author: bgugi
author_rank: Contributor
timestamp: September 24, 2020, 04:50:07 am
content: I'd put a "liquid present" detectorhttps://www.alliedelec.com/product/optek-tt-electronics-/opb350l250/70048610/on a drain line below a funnel. you could tweak the sensitivity by using different sized funnels/tubing, or by partially covering the funnel to adjust the minimum amount of "rain" that counts.Alternatively, you could probably build a miniature shishi-odoshihttps://en.wikipedia.org/wiki/Shishi-odoshi#:~:text=A%20s%C5%8Dzu%20is%20a%20type,and%20resting%20against%20a%20rock.that could be calibrated to operate as a simple flow meter. Or just use a flow meter.

author: bob91343
author_rank: Super Contributor
timestamp: September 24, 2020, 11:15:41 pm
content: The guy at my hardware store said that a common rain sensor is a little cup with a float and a switch. I assume the cup dries out before it will indicate no rain. Those are common parts in the sprinkler section of big hardware stores.

author: justanothername
author_rank: Regular Contributor
timestamp: October 03, 2020, 02:16:10 pm
content: I had exactly such a thing for teardown on my desk two months ago. Unfortunately I made no pictures. But it basically was a funnel where the rain was collected into a spoon on a hinge with a magnet as counterweight.When the spoon was full and then heavier as the counterweight, it tilted and the water was let out at the bottom. The magnet passed by a reed contact for detection.Really simple!Edit: found a similar product, with pictures of the mechanism:https://www.evvos.com/product/rain-and-precipitation/Edit2: There are such sensors on aliexpress:https://www.aliexpress.com/item/32793367115.html

author: NiHaoMike
author_rank: Super Contributor
timestamp: October 03, 2020, 03:13:11 pm
content: Aside from detecting surfaces getting wet (subject to delay for detecting rain stopped), you can also use a piezo to detect the sound of rain or Doppler radar/sonar to detect falling raindrops.

author: james_s
author_rank: Super Contributor
timestamp: October 03, 2020, 05:41:16 pm
content: While not super sensitive, another option is the standard tipping bucket rain gauge. They usually produce a pulse for every 0.01" (or 0.2mm), you can assume that it's raining if you have seen a pulse recently. An advantage is that it will allow you to tell how much it has rained.

author: paulca
author_rank: Super Contributor
timestamp: October 03, 2020, 09:22:05 pm
content: I thinking more like a capacitive spiral plate, place in what should be direct sunlight. I'm not interested in high accuracy of things like "Raining", "Not raining", but more "It's wet.", "It's dry" and the gradient between the two (which would probably be a function of how the device works.)I would expect that in summer it would be Dry with clear spikes with elongated decays, when viewed over a day when it rained. In winter I'd highly expect it to just report "moderately wet" as it's too cold for things to dry up and too warm for them to freeze.

author: DrG
author_rank: Super Contributor
timestamp: October 04, 2020, 03:17:47 pm
content: Quote from: paulca on October 03, 2020, 09:22:05 pmIMO they all have limitations.The simplest, I think, is resistive - something like this (and rain is plenty dirty and conductive enough).https://www.robotshop.com/en/steam-sensor.html?utm_source=google&utm_medium=surfaces&utm_campaign=surfaces_across_google_usenhttps://www.mouser.com/datasheet/2/744/Seeed_101020018-1217524.pdfhttps://www.aliexpress.com/i/32941630886.htmlAs for capacitive: I was always impressed by this fellows work. Although it is designed for plant watering (certainly could be adapted for your use, I would think), if you look at the story of his development, I think he did a good job of explaining - at least at my level of understanding.https://wemakethings.net/chirp/Also note that code and schematic is available.Hope it helps.

author: paulca
author_rank: Super Contributor
timestamp: October 05, 2020, 06:13:41 pm
content: Quote from: DrG on October 04, 2020, 03:17:47 pmI'll check it out.The trouble with resistance based devices, they pulse current to measure the resistance with exposed traces. Current + exposed copper + water = green fur in months. Other metals may fair better.

author: ledtester
author_rank: Super Contributor
timestamp: October 05, 2020, 08:15:01 pm
content: QuoteI've seen solutions which use an alternating current to mitigate this.This is easy to do, for instance, with a microcontroller.

author: paulca
author_rank: Super Contributor
timestamp: October 06, 2020, 05:58:48 pm
content: Quote from: ledtester on October 05, 2020, 08:15:01 pmI suppose a PWM 0-5V a coupling capacitor and a 2.5V offset divider. An op amp if you need to buffer the 2.5V ref maybe. How would you smooth the output to sinusoidal wave? High capacity coupling cap with a smaller bypass cap??? LPF

author: ledtester
author_rank: Super Contributor
timestamp: October 06, 2020, 10:05:13 pm
content: It could be as simple as switching the polarity of the current flow between the two probes every other reading.You can also use an AC waveform such as in this project:https://freecircuitdiagram.com/146-avoiding-electrolysis-for-water-level-detector-probes-using-alternating-current-detection/U1A+R2+C1 is just an oscillator - you can implement that with a microcontroller pin.C3+D1+D2+D4+R1 is the detector - you can read that with an analog input or feed it into a comparator.