OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Pull up really needed?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #71303

    zenonmb
    Participant

    Colleagues,

    I am using pi zero and plan to add a rain sensor. Noticed that this goes to GPIO14 and some messages mention about adding a pull up r and also a series one. Question is about pull up, since pi zero do have pull up sw capabilities. So was wondering if not just enable pull up and forget it about adding the R.
    Cheers,

    martin

    #71304

    Ray
    Keymaster

    You can use the internal pullup available on RPi. This is what OpenSprinkler firmware does:
    https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/gpio.cpp#L292
    it calls the system’s gpio command to enable internal pullup. This requires wiringPi to be installed.

    #71309

    zenonmb
    Participant

    But then the code is already there and there is no need to do anything. I am assuming that wiringPi gets installed when installed openSprinkler, is not it?

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

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Pull up really needed?