Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
more than 12 channels
#6
(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
Reply


Messages In This Thread
more than 12 channels - by joeb@drumwerx.com - 2017 Mar 27, 02:13 AM
RE: more than 12 channels - by dan - 2017 Mar 27, 05:21 PM
RE: more than 12 channels - by 22ndst - 2017 Jun 09, 12:23 AM
RE: more than 12 channels - by joeb@drumwerx.com - 2017 Mar 28, 12:00 AM
RE: more than 12 channels - by dan - 2017 Mar 29, 01:44 AM
RE: more than 12 channels - by FrancoisRabe - 2017 Mar 28, 03:06 PM
RE: more than 12 channels - by joeb@drumwerx.com - 2017 Mar 28, 06:55 PM
RE: more than 12 channels - by joeb@drumwerx.com - 2017 May 15, 09:28 PM
RE: more than 12 channels - by dan - 2017 May 15, 11:04 PM
RE: more than 12 channels - by joeb@drumwerx.com - 2017 May 15, 11:54 PM
RE: more than 12 channels - by joeb@drumwerx.com - 2017 May 16, 01:15 AM
RE: more than 12 channels - by dan - 2017 May 16, 03:23 PM
RE: more than 12 channels - by joeb@drumwerx.com - 2017 May 17, 12:29 AM
RE: more than 12 channels - by dan - 2017 Jun 09, 03:49 AM
RE: more than 12 channels - by 22ndst - 2017 Jun 10, 12:26 AM
RE: more than 12 channels - by dan - 2017 Jun 10, 01:11 AM
RE: more than 12 channels - by davidjustin - 2017 Jun 10, 06:50 AM
RE: more than 12 channels - by dan - 2017 Jun 10, 03:54 PM
RE: more than 12 channels - by 22ndst - 2017 Jun 10, 04:34 PM
RE: more than 12 channels - by dan - 2017 Jun 10, 04:55 PM
RE: more than 12 channels - by 22ndst - 2017 Jun 10, 07:00 PM
RE: more than 12 channels - by dan - 2017 Jun 10, 07:15 PM
RE: more than 12 channels - by ruffledrooster - 2017 Jun 16, 02:43 PM
RE: more than 12 channels - by dan - 2017 Jun 17, 04:11 AM
RE: more than 12 channels - by ruffledrooster - 2017 Jun 19, 05:31 PM
RE: more than 12 channels - by dan - 2017 Jun 19, 09:09 PM
RE: more than 12 channels - by ruffledrooster - 2017 Jun 19, 09:43 PM
RE: more than 12 channels - by pansegrau - 2017 Aug 15, 01:44 PM
RE: more than 12 channels - by dan - 2017 Jun 20, 12:38 AM
RE: more than 12 channels - by astrogerard - 2017 Jun 21, 03:23 PM
RE: more than 12 channels - by dan - 2017 Aug 15, 03:16 PM

Forum Jump:


Users browsing this thread: 8 Guest(s)