OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) There is option to connect rain sensor ?

This topic contains 24 replies, has 7 voices, and was last updated by  Ray 1 month ago.

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #27236

    rederikus
    Participant

    You could be right for version 1.2. I only have version 1.4 and I used a pic from Ray’s site of an OSPi 1.4 device to show the only case where I knew the rain sensor input to be. For v1,4 I am certain as that is where I connected my rain sensor and, it is working. I believe version 1.4 to be the currently sold version so whoever buys an OSPi board today should get what is in my picture.

    #27237

    Ray
    Keymaster

    Rain sensor port has been added since OSPi 1.2.

    I don’t recall where I said this. Rain sensor is only added since OSPi 1.3. If you saw where I mentioned it in 1.2, let me know and I will correct it.

    #27238

    rederikus
    Participant

    @ray,

    Yes you did say it. earlier in this thread, I think. That was why I showed a picture of a v1.4 device. Since you shipped me a v1.4 it is the only version I have ever seen.

    #27239

    Ray
    Keymaster

    Sorry, that was my mistake — rain sensor is only added after OSPi 1.3.

    #27240

    boz
    Participant

    Aha ok I understand, then I need invenst in a new ospi board..:(

    #27241

    Ray
    Keymaster

    Given that the OSPi software now supports weather-based rain delay, you may want to try that out first. If that works for you, you can get away with rain sensor.

    #59856

    mikcaau
    Participant

    Hi
    I also have OpenSprinkler v 1.2 and want to add a rain sensor. I imagine I can can add a 10k pullup resistor and a 10k current limiting resistor connected to a free IO on the gpio should work if I then advise OSprinkler which pin to use. Is this correct and if so where are OSprinkler port listing?

    Thanks Mick

    • This reply was modified 3 months, 4 weeks ago by  mikcaau.
    #60401

    Ray
    Keymaster

    Did you use OSPi 1.2 or OpenSprinkler DIY 1.2? OpenSprinkler DIY 1.2 already has rain sensor port integrated. OSPi 1.2 does not, and yes you can add a rain sensor by following the OSPi 1.4 circuit diagram to figure out the GPIO pin. Add a 10K pullup, and a 4.7K current limiting resistor (in series) should suffice. You don’t even need 4.7K resistor — it was added because we’ve occasionally had users who plugged in 24VAC to the rain sensor port. The 4.7K resistor will make sure it won’t damaged the processor even if 24VAC is plugged into a GPIO.

    #61640

    mikcaau
    Participant

    Hi all,
    Please help this guy:( Remember the adage “Never trust a programmer with a soldering iron”.
    As instructed I made rain sensor link with 12k pull up resistor and 5.5k current limiting resistor and connected it to 5v and GPIO14. I connected a NC rain sensor from Amazon. When I set weather sensor to “Rain” and “Normally closed” Open Sprinkler oscillates between “Rain detected” and “System idle” in approximately 10 second intervals.
    For the rain sensor open circuit is 3.5V and connected is 0 volts at the sensor terminals.

    I am using Open Sprinkler V1.2.1.8 (2), App 1.8.6, Hardware version OSPI
    Raspberry Pi Revision 0002 – Model B Rev 1, Linux, raspbian V9 stretch

    Can you tell me what I’ve done wrong please?
    Do I need to upgrade OSPI?

    tia Mick from Darwin in the NT which is a desert with a wet season.

    #61696

    Ray
    Keymaster

    Please, the pull up resistor needs to be connected to 3.3V, not 5V! Connecting it to 5V you will risk damaging your GPIO pin. This is basic knowledge of RPi — that is, GPIO pins are only 3.3V tolerant.

Viewing 10 posts - 16 through 25 (of 25 total)

You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) There is option to connect rain sensor ?