This guide contains all the information you will need to run the OSA Electronics 6 Ch Relay Board for Raspberry Pi.


  1. What we need
  2. Assembly
  3. Test instructions

What we need


Use the nylon screws and standoffs to assembly the Raspberry Pi together with the 6 Ch Relay Board, as shown on the image below:


Onboard Configuration

By default, the board will start with OFF state relays. To change to ON state, active low signal will be needed. The following diagram shows you the pinout of the board:



Test Instructions

First off, make sure the board is fully assembled with your Raspberry Pi, and you have everything needed to continue qith this guide.

You can download Raspberry OS and other distributions from here.

Step 1
Use your desired Linux distribution or install a fresh image of Raspberry OS.

Make sure your distro is up to date, or in any case, run:

Step 2
If not installed, install SMBus:

Step 3
The next step is to create a new Python file:

This file should be blank! Just copy and paste the following text into the file:

Save the file as usual (Ctrl+O) and exit (Ctr+X).

Step 4
Now, run the script typing:

Voilà! Your Relay Board should start to work!

To cancel the script at any time, just press Ctrl+C and it will be stopped.

Leave a Reply

Your email address will not be published. Required fields are marked *