Page 1 of 1

Raspberry PI and Rain sensor

Posted: Mon May 06, 2013 2:27 pm
by soitjes
Hi,

I have a raspberry pi at home and it's a really cool device. So I thought it would be nice if I could connect this to a rain sensor (like this one at Conrad : http://www.conrad.nl/ce/nl/product/1876 ... ig-of-mist).

I did search a bit on the Internet but could not find any really good documentation on how to do this. Anybody has some good links/tips/hints ? Note that I'm a beginner when it comes to hardware...

Thanks,

Soitjes.

Re: Raspberry PI and Rain sensor

Posted: Mon May 06, 2013 11:09 pm
by Digit
The rain sensor you mention has a Potential free contact output (Relay) 30V/4A.
So this sensor works just like a push button, as far as the RPi is concerned :)
And there are a lot of tutorials/videos etc. on how to connect push buttons to the RPi GPIO.
This is just one (random) of them: http://learn.adafruit.com/playing-sound ... spberry-pi
Oh and in the case I mentioned, you'll need a GPIO lib written in Python.

Re: Raspberry PI and Rain sensor

Posted: Mon May 06, 2013 11:55 pm
by nico_gh2
AirPI seems a nice project if you want to keep an eye on the air pollution / temp / humidity / light levels.
http://airpi.es/index.php There is also a bit on AnalogueDigitalConversion for 8 inputs. Sadly no rain sensor.

Re: Raspberry PI and Rain sensor

Posted: Tue May 07, 2013 9:27 am
by b_weijenberg
Connect the rain sensor contact to an X10 door/window sensor.
The DS90 has a connection for such a contact. On cheaper or older versions you can connect the rain sensor contact on the wires of the reed contact in the X10 sensor.