Knowledge Base

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

Knowledge Base

Driving Relays or higher loads with the IO Pi Plus

Using the IO Pi Plus or Zero with relays or opto-isolators


The IO Pi Plus expansion board can drive up to 25mA per channel, but to drive higher loads, such as relays or some optoisolators, you will need to boost the output using a transistor or MOSFETs.

The circuit below shows how to operate a 5V coil relay using either a GPIO output from the Raspberry Pi or one of the output pins on the IO Pi and IO Pi Zero boards.

Driving Relays or higher loads with the IO Pi

Driving optoisolators with the IO Pi Plus/Zero

Suppose you would like to connect an optoisolator to the IO Pi. In that case, you can remove the relay and protection diode and combine a series resistor in line with the optoisolator in place of the relay.

You can use our LED Calculator https://www.abelectronics.co.uk/tools/resistor-led-calc to find the correct series resistor for your optoisolator.


Was this article helpful? Yes No

Please tell us how we can improve this article:

Submit
Created 05/11/2016 | Last Updated: 11/11/2023

Related Expansion Boards

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