2017 Mar 29, 01:44 AM
(2017 Mar 28, 12:00 AM)joeb@drumwerx.com Wrote: So I can't just add the new gpio pin numbers to the relay-board plugin code? I am using a pi2.
When I do the shift register route how do I control the relays using your sip software I don't see a way to do it in sip? How does sip know how to call the other relays? Where is that setup?
This is great software!!
The pins are defined in relay_board.py in the plugins dir. line ~55.
The software was originally written to work with shift registers. It will work with them without software modification. When a station is turned on the software disables the shift register outputs, feeds a list of ones and zeros into the shift registers (serial input), 1 for a station that is on and 0s for the rest. Then the outputs of the shift registers are enable and the corresponding relays are turned on or off (Parallel output). I hope that makes sense.
This operation is coded in the set_output() function in gpio_pins.py line ~193 in the SIP dir.
You might find this helpful:
http://www.electronics-tutorials.ws/sequ...seq_5.html
This is also interesting:
http://www.electronics-tutorials.ws/blog...rcuit.html
Dan