-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More of a Question #79
Comments
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. |
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. |
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. |
Good news. You can download the files from: 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": Please let us know how it works for you. Ask questions here if you run into problems. |
This is great news. I will load it up and test it out. Thank you very much. |
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? |
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). As far as the wiring for the relays: Connect one wire from the 24v adapter to one of the wires in the cable (usually a white wire) On the valve end you connect the common (white wire) to one wire of each valve. With a 4 wire cable you can control 3 valves. (one wire is common and the other three control one valve each.) |
I have a Raspberry Pi B+ and a Sainsmart 5v 8 Channel relay module. Is it possible to use OPSi with this setup?
The text was updated successfully, but these errors were encountered: