2022 Aug 29, 04:10 PM
(2020 Dec 04, 11:35 PM)noequus Wrote: Thanks, Dan.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.
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).
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