Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
There are a number of ways to interface your Raspberry Pi with the PiOT Relay board. The one you select depends on your personal preference and set-up! Each relay board is supplied with the following mounting hardware:
- Extra Tall 40 Pin GPIO Header
- 4 x M2.5 x 18mm Male to Female Stand-off's
- 4 x M2.5 Bolts
- 4 x M2.5 Nuts
Ensure that your Raspberry Pi is turned off before adding or removing breakout boards
RPi 2 / 3
There are two ways to connect your B+/2/3 to the relay. You can either mount the PiOT Relay Board directly on top of the Pi using the supplied header and hardware , or by by using an IDC ribbon cable (not included). Ribbon cables can be purchase separately in a variety of colours from the ModMyPi webstore here.
Stacking on Top
Using the extra tall 40 pin header, plug the relay board to the Pi. Make sure pin 1 of the relay matches up with pin 1 of the RPi.
Connecting the relay in this manner allows multiple relays to be stacked on top of each other.
There's a trick to inserting the header into the PiOT Relay Board which is detailed in the section:
IDC Ribbon Cable Connection
Pin 1 and Pin 40 are labelled on the PiOT Relay Board silkscreen for reference.
Solder a 40 Pin Header to the underside of the of the board
Then plug the RPi Zero directly into the board. You can use the mounting stand-off's to secure it if you wish.
Once installed, we're ready to look at the basic control operation: