Knowledge Base

The AB Electronics UK Knowledge Base provides support solutions, tutorials and troubleshooting guides.

Knowledge Base

Relay Board for the IO Pi Plus 2.1

Relay board project for the IO Pi Plus

We often receive requests for a relay board to work with our IO Pi Plus expansion board. Developing and selling a relay board is something we have looked at several times in the past, but the problem we have found is making something that fits everyone’s needs. Relays come in a wide range of voltages, and while one person may need a board that works at 5V, another will need it to work at 24V. We would need to build and sell several different models to make boards suitable for everyone. 

Relay Board Project

After thinking about the problem for a while, we have devised a simple solution. To go with the launch of the latest revision of our IO Pi Plus, we have designed a 16-channel relay board. We are giving away the design schematics and PCB files free of charge using the MIT license so you can build your own relay board using the supplied Gerber files or modify the schematic and PCB files to suit your needs. By offering the board this way, you can source the components and PCB from your favourite suppliers and build as many relay boards as you need for your project. 

The 16-channel relay board is suitable for use with the IO Pi Plus version 2.1, which went on sale in February 2017. The board is compatible with the Panasonic JS series of single pole double throw relays and will work with relay coil voltages from 5V to 24V. 

The relay board is compatible with the following relays:

JS1-5V-F
JS1-6V-F
JS1-9V-F
JS1-12V-F
JS1-18V-F
JS1-24V-F

To build the relay board, you will need the following parts:

16 x Panasonic JS series relays (model numbers listed above)
3 x ULN2003A (16-pin DIP package)
1 x 20 pin IDC PCB connector (2.54mm pitch)
16 x 3 pin 5mm screw terminals or other compatible connectors. (5.08mm will also work)

The 20-pin IDC connector uses the same pin configuration as the IO Pi Plus 2.1, so you can connect the two using two 20-pin IDC connectors and a ribbon cable. The relay numbers match the pin numbering on the IO Pi Plus bus, making it easy to control the relays using our IO Pi software libraries.

To power the relay coils, you will need a separate power supply that matches the voltage of the chosen relays. ULN2003A Darlington arrays switch the relays from a low-voltage logic input.

The PCB dimensions are 100mm x 150mm. Gerber files are included in the project folder and use a file name format compatible with several PCB manufacturers, including iTead and Elecrow. The “Gerber Files.zip” file contains a zip of the Gerber files that can be uploaded directly to the PCB manufacturer of your choice.

Download the Gerber files from https://github.com/abelectronicsuk/Breakout-Boards/tree/master/Relay%20Board

The schematic and PCB files are included in DipTrace format; you can download a free version of DipTrace from http://diptrace.com/download-diptrace/.

Relay Board project

Note:  The relay board can be used with older versions of the IO Pi Plus, IO Pi Zero and original IO Pi, but you will need only to connect the 16 control pins on the IDC connector. The ground pin must be connected separately to the GND pin on the IO Pi board, as earlier models did not include the ground on the IDC header.


Was this article helpful? Yes No

Please tell us how we can improve this article:

Submit
Created 10/02/2017 | Last Updated: 25/10/2023

Related Expansion Boards

Order a IO Pi Plus Photo of IO Pi Plus
IO Pi Plus

32 channel MCP23017 digital I/O expander for the Raspberry Pi

£14.39 Ex VAT: £11.99
Add to Basket

Related Articles

IO Pi Plus Tutorial 1 - The Blinking LED
Blinking an LED with the Raspberry Pi
IO Pi Plus Tutorial 2 - Push the Button
Reading a button input using a Raspberry Pi and IO Pi
IO Pi Plus Tutorial 3 - Introducing Interrupts
Using Interrupts with the IO Pi Plus
IO Pi Plus Tutorial 4 - More Interrupts
Using the IO Pi interrupts with the Raspberry PI GPIO interrupts
IO Pi Plus Tutorial - MQTT Reading the Ports
Reading the GPIO pins on the IO Pi Plus using MQTT Message Queue Telemetry Transport
IO Pi Plus with Raspberry Pi Pico
Using the IO Pi with Raspberry Pi Pico and MicroPython
IO Pi Plus Tutorial - MQTT Control
Control the GPIO Pins on the IO Pi Plus using the MQTT Message Queue Telemetry Transport
Driving Relays or higher loads with the IO Pi Plus
Using the IO Pi Plus or Zero with relays or opto-isolators
Relay Board for the IO Pi Plus 2.1
Relay board project for the IO Pi Plus
16 Channel Opto-Isolated Input Board
For use with the IO Pi Plus and IO Pi Zero