To do so, you first secure the RPi to OSPi by leveraging the onboard copper separation pillars and screws, then fit the two of them together into an existing OpenSprinkler enclosure. OSPi uses the same enclosure as OpenSprinkler. Connection from RPi to OSPi is done through a 3-pin cable (providing 5V to RPi) and a 8-pin cable (connecting GPIO pins and 3.3V power from RPi).Įnclosure. It can provide regulated 5V power to RPi with up to 800mA output current, which is sufficient to drive RPi with an USB WiFi dongle. OSPi makes use of four of RPi’s GPIO pins to control the shift register, and two I2C pins (SDA, SCL) to interface with the built-in RTC and ADC converter. The circuit of OSPi is a subset of the OpenSprinkler and consists of a 24VAC to 5VDC switching converter, a shift register, triacs, DS1307 RTC and backup battery, and PCF8591T A/D D/A converter. In other words, it is a circuit board that allows an RPi to directly interface with sprinkler valves. OSPi is designed as an extension board that makes use of RPi’s GPIO pins to directly control sprinkler valves, without an additional layer of microcontorller and Ethernet controller. There are good reasons to do so, for example, to enable logging, to customize the default Javascript files, and to allow more advanced features such as weather-based and learning-based control. The idea of OSPi first came when I noticed that many users were setting up RPi to work with OpenSprinkler. It is based on the design of OpenSprinkler, but its ‘brain’ is an RPi instead of an AVR microcontroller. OpenSprinkler Pi (OSPi) is an open-source sprinkler / irrigation extension board for Raspberry Pi (RPi). To receive updates, you can sign up to the Rayshobby RSS Feed, Google+, Twitter, or OpenSprinkler Email List.Please check the Online User Manual for instructions.Ongoing discussion can be found at this blog post. This program has an integrated mobile web page, weather-control feature, and the source code can be cross-compiled with AVR/Arduino platform. The sprinklers_pi program is released, courtesy of Rich Zimmerman.OSPi software setup just became easier: download the pre-configured SD card image for OSPi, burn it to an SD card, pop it in to your RPi, and you are ready to go! The SD card image contains Dan’s interval_program, Rich’s sprinklers_pi program, Samer’s mobile web app, and the Google Calendar-based scheduling program.Additional details can be found in this blog post. Search ‘opensprinkler’ in iOS App Store, Android Play Store, or Windows Phone Store, then install the app. OpenSprinkler new mobile app (native version) is now available on all platforms.Please check the OSPi v1.4 User Manual for details. Then after wasting a bunch of time troubleshooting, I also determined that I needed to set each station Active State to ‘Low’, rather than the default of ‘High’.OpenSprinkler Pi is available for purchase at Rayshobby Shop. I set each of them to ‘GPIO’ type instead, and used the pin mapping chart to set the GPIO number accordingly. Each of the 8 default stations was set to Station Type ‘Standard’. After digging around in the OpenSprinkler interface, I found the screen for configuring each station (Gear icon by the station name->Advanced tab). The board is supposed to be directly addressable using the Pi’s GPIO pins, and I found a chart showing the pin mapping on the documentation page found earlier. The interface seemed pretty simple, but I was not able to get any of the board relays to engage when manually triggering the sprinkler zones.īack to the documentation. Everything went smoothly, and I was able to pull up the web interface. The board seems to be known as the WaveShare 15423 (UPC 614961953253) on some sites.Īfter flashing Raspbian Lite, I installed OpenSprinkler using the instructions on their site. A quick search turned up a similar board on Amazon, which led me to a wiki with more info and the promised documentation. The no-name relay board was supposed to come with documentation and code examples, but alas the package contained only the board itself, and a small package of (not enough) mounting screws. So…I pulled out a spare RPi2 from storage, ordered up a cheap relay board made of pure Chinesium, and got to work. OpenSprinkler seems to be the best in the DIY irrigation game at this time, but their hardware prices are out of my range. Bonus points if you can spot the dead gecko…
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |