Comments (7)
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.
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.
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.
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.
This is great news. I will load it up and test it out. Thank you very much.
from sip.
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.
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)
- Webservice not starting if IPv6 disabled on Raspberry Pi HOT 2
- Station Extensions Not Working HOT 6
- Wrong log date HOT 12
- wrong end time with sequential HOT 5
- Control for Centre Pivots. HOT 6
- Feature request - adjustments in logs HOT 19
- Home "<< PREV DAY" is not working in Firefox (PC) HOT 12
- No planning after midnight HOT 32
- Station running (00:00) HOT 6
- wrong adjustment logged HOT 9
- Run once broken HOT 1
- Strange behavior after rain delay HOT 6
- pip install sip on Raspberry pi 5 doesn't work
- Revision 5.1.2 display problem HOT 2
- Run-once wrong email report HOT 3
- git cannot run when SIP directory has non-root ownership HOT 2
- Plugin->ManagePlugins doesn't work HOT 1
- Docker: various issues using SIP HOT 1
- Interval program works fine, but timeline is wrong HOT 5
- ACKNOWLEDGE import not found on windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sip.