• This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22412

    vip007
    Member

    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?

    #23578

    Ray
    Keymaster

    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.

    #23579

    cmwahlqu
    Participant

    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.

    #23580

    manandre
    Participant

    @ray wrote:

    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 ?

    #23581

    Ray
    Keymaster

    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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.