Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Associate pins to stations? (newbie Q)
#7
(2020 Dec 04, 11:35 PM)noequus Wrote: Thanks, Dan.



In case anyone else is as slow as I am, perhaps this additional information will be helpful...

For relay_16, stations 1-16 are associated with these pins (from relay_16.py, for 40 pin header on RPi). These are board, not GPIO, numbers.:


[18, 22, 24, 26, 32, 36, 38, 40, 19, 21, 23, 29, 31, 33, 35, 37]


The docs file here may be useful; I found the attached figure to be the best reference for associating pins to stations (thank you, Dan for the figure).


For relay_board, the wiki is here, with a figure and pin assignment table (for 26 pin header).
Thank you for this post. I was in the same boat. I used the relay board Plugin, but could not figure out which pins to connect for each station.
I plan on using 5 electro mechanical relays, but haven't connected them yet.
Using LEDs, I probed each pin using "Run Once" to activate each station until I figured out what was going on and eventually found the picture with the wiring for an 8 relay board  (Board numbers, not GPIO!)
I also used this system to figure out the correct settings for Master, so that I got two LEDs to go on together.

On the way I noticed, while connecting the LEDS to each GPIO pin, that sometimes I got a dim glow on the LED from a pin that was not associated with a station.  Is there an explanation for this? is this bad for my pi?

I am using a Pi 400 with the latest RPiOS to set up and test the system. I plan on moving it to a Zero W.

Thank you
Reply


Messages In This Thread
Associate pins to stations? (newbie Q) - by noequus - 2020 Nov 26, 11:34 PM
RE: Associate pins to stations? (newbie Q) - by dan - 2020 Nov 27, 03:15 PM
RE: Associate pins to stations? (newbie Q) - by dan - 2020 Dec 01, 03:46 PM
RE: Associate pins to stations? (newbie Q) - by nanogeek - 2022 Aug 29, 04:10 PM
RE: Associate pins to stations? (newbie Q) - by dan - 2020 Dec 05, 03:39 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)