Giter VIP home page Giter VIP logo

Comments (7)

Dan-in-CA avatar Dan-in-CA commented on August 16, 2024

Yes it is possible. You would need to re-assign the pins on the Pi to switch the relays. This can be done with a plugin.

from sip.

lorddaren avatar lorddaren commented on August 16, 2024

Meaning I need to create a plugin or there is one? If I need to create one would you be able to point me in the right direction? Thanks.

from sip.

Dan-in-CA avatar Dan-in-CA commented on August 16, 2024

I know of one user who has worked on such a plugin. I have tried to contact him and asked if he has anything to share. Stay tuned.

from sip.

Dan-in-CA avatar Dan-in-CA commented on August 16, 2024

Good news.
The user who has been working on this sent me the files for the relay board plugin. He says that there may be bugs but it is a good start. I have tested and fixed a couple of small bugs but I don't have a relay board.

You can download the files from:
http://1drv.ms/1zSf7MB

The relay_board.py file goes into the plugins directory under OSPi and the relay_board.html goes into the templates directory. Once the files are in place, reboot the pi then you can access the relay board setup page from the plugins dropdown menu.

See the Wiki for some info on plugins especially the part about "To debug your plugin":
http://rayshobby.net/mediawiki/index.php/Python_Interval_Program_for_OSPi#Plugins

Please let us know how it works for you. Ask questions here if you run into problems.

from sip.

lorddaren avatar lorddaren commented on August 16, 2024

This is great news. I will load it up and test it out. Thank you very much.

from sip.

lorddaren avatar lorddaren commented on August 16, 2024

I have the plug in loaded up. But have another question. And maybe I need to read through the docs on OpenSprinkler more but how would I handle the common with the relay?

from sip.

Dan-in-CA avatar Dan-in-CA commented on August 16, 2024

First, there is a new set of files in the original download location for the plugin that I think will work better for you.

Also there is an image file "P1 Header w nums.svg" which shows the pin numbering for the Pi. You should be able to double click the file and have it open in your web browser.

Look in the relay_board.py file under pin defines to see which pins are used for the relays (use the black numbers).
Check out this you tube vid for more info.
https://www.youtube.com/watch?v=oaf_zQcrg7g

As far as the wiring for the relays:
You should have 2 wires from the 24V power adapter for the sprinkler valves. Let's say you have a 4 wire cable that will run from your controller (relay board) to your valves.

Connect one wire from the 24v adapter to one of the wires in the cable (usually a white wire)
Connect the other wire from the 24v adapter to one side of each relay.
Connect one free wire from the cable to the other side of a relay.
So when a relay is activated it will make a connection from the 24v power source to one of the wires in the cable.

On the valve end you connect the common (white wire) to one wire of each valve.
Connect one of the other wires in the cable to the other wire of one of the valves.

With a 4 wire cable you can control 3 valves. (one wire is common and the other three control one valve each.)

from sip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.