Introduction


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

Summary

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

What we need


Assembly


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 Raspbian and other distributions from here.

Step 1
Use your desired Linux distribution or install a fresh image of Raspbian Jessie/Strech.

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

Step 2
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 3
Now, run the script typing:

And 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 *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.