I/O pins #295
-
I am going to have my own I/O pin control because I'm using a cross-bar to turn on valves, That means that two relays have to turn on to turn on a station's valve. Which I/O pins does SIP use? In my thrashing around, I thought that I had come across a setting that disabled the use of pins by SIP. For what does SIP use the I2C bus? expansion boards? I see that it can be disabled. Now the question comes, if SIP isn't using any I/O pins, could it run on any linux box? Thanks for your consideration. OSD |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
When you say "two relays have to turn on to turn on a station's valve' does that mean 2 relays per valve or can you use a master relay for all stations? SIP uses different IO pins depending on the version of Pi it is running on. There are also 2 different pin numbering systems. GPIO (BMC) numbering based on the processor chip pin-out and board numbering based on the header on the PI. A good cross reference is: On the latest Pi models with 40 pin headers SIP uses GPIO (BMC) pins 27, 4, 17, 22, 14, and 15. A number of plugins use other pins. SIP variable: gv.use_gpio_pins controls SIP's use of GPIO pins, default = True, Set = False to disable. This would need to be set in software. However there is a new Node-RED plugin under development that can allow setting most SIP variables. If you are not familiar with node-red: SIP only uses the I2C bus for add-ons such as a real time clock or expansion boards like those used in the pcf857x_plugin. You might find that one interesting: Yes SIP can be run on any Linux box but of course the Pi uses the least amount of power considering it is intended to be running 24/7/365 for years. Dan |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
The 6 pins SIP uses by default are:
4 to control a shift register system (The original design SIP was developed from)
1 for a rain sensor input
1 for a single relay output to control external hardware.
The relay_16 plugin can allow up to 16 stations to be connected directly to the IO pins on a Pi. See the image below for details.
The pcf857x_plugin only uses 4 pins (I2C) but allows connecting up to 64 stations with ~$2 expansion boards (8 per board).