- This topic is empty.
May 1, 2013 at 6:03 am #22412
I looked around but could not find it mentioned: is it true that the Pi board does *not* have a rain/freeze sensor connector? I presume this is something that could be directly connected to GPIO on Raspberry Pi?May 1, 2013 at 1:56 pm #23578
You are right, there is no rain sensor connector on board. There is not much room to put another connector, and also the ultimate goal is to make use of online weather data to detect rain.
If you want to add a rain sensor connector, you can use any of the available GPIO pins. Just connect the rain sensor (which has two wires) between teh GPIO and GND. Make sure to set the pin to input, and you may want to add a pull-up resistor if the GPIO pins do not have internal pull-up.June 22, 2013 at 3:24 pm #23579
Has anyone got this working?, I bought a rain sensor to go along with my raspberry pi open sprinkler setup when I pulled it apart to hook up I realized there was rain sensor port as with the base open sprinkler setup.October 5, 2014 at 3:21 pm #23580
If you want to add a rain sensor connector, you can use any of the available GPIO pins. Just connect the rain sensor (which has two wires) between teh GPIO and GND. Make sure to set the pin to input, and you may want to add a pull-up resistor if the GPIO pins do not have internal pull-up.
I have tested this on my “Opensprinkler Pi v1.2 + rain sensor” setup and it only works when I push manually the button on the rain sensor. The rain is not detected even on the 3mm level.
When I plug the rain sensor on the pin 8 of the GPIO, does it deliver 24V AC (as requested by the rain sensor) or only 5V DC ?October 6, 2014 at 1:29 am #23581
Because there are several ways to reference the GPIO names, which can be confusing, make sure you are using the correct pin 8 (i.e. the physical connector pin index, not the logical name). Please check the user manual page 10: http://rayshobby.net/docs/ospi14_manual.pdf for the pin labeled ‘Rain Sensor’.
does it deliver 24V AC (as requested by the rain sensor)
Where did you read about this? The rain sensor is typically just a rain-activated switch, it does not deliver 24V AC by itself. Also, because the rain sensor is corrected to a GPIO pin on RPi, NEVER feed 24V AC to it because that will obviously destroy your RPi.
- You must be logged in to reply to this topic.