Relay-4-Zero

From SB-Components Wiki

Relay 4 Zero

Relay 4 Zero is a 4 channel relay shield with 120 V/ 2A AC output and 24 V/2A DC output ratings. Relay 4 Zero is designed for triggering at low voltage levels. Relay 4 Zero provides a solution for controlling low and medium current/voltage devices and makes your projects intelligent.

Features

  • 4 High-quality 3V Relays
  • Control up to 4 appliances.
  • 40 Pin Stacking Header.
  • LEDs for indicating the status of each relay.
  • Standardized shield shape and design.
  • Make your home IoT-enabled.
  • Mounting holes provided.
  • Compatible with all models of the Raspberry Pi such as Raspberry Pi 4, 3, 2, Zero, and Zero W.

Specifications

  • Channel - 4
  • Voltage - 3V
  • AC Control Voltage - 120V @ 2A
  • DC Control Voltage - 24V @ 2A
  • Dimensions: 6.5 x 3 x 2 cm (Approx.)
  • Weight: 100gm (Approx.)
Relay 4 Zero
Buy it From : Click Here

Pinout

Relays BOARD BCM
Relay 1 31 GPIO 6
Relay 2 33 GPIO 13
Relay 3 35 GPIO 19
Relay 4 37 GPIO 26

Installation

Python

  • Stack Relay 4 Zero on Raspberry Pi 40 Pin GPIO header as shown below.

Relay4Zero.png

  • Make sure all four jumpers are connected.
  • Open Terminal and clone/download the repository by typing below command in terminal:
git clone https://github.com/sbcshop/Relay-4-Zero.git
  • Your code will be downloaded to '/home/pi' directory. Use 'ls' command to check the list of directories and 'cd' command to enter directory.
cd Relay-4-Zero
  • 'test.py' is example code for PiRelay-V2. Run test file and play with PiRelay-V2 by running below python command.
python3 test1.py
  • You can also use any other GPIO of Raspberry Pi by removing the jumpers and connecting the relay pin directly to the Raspberry Pi GPIO header using jumper cables or wire.

GPIO 4 Relay Not working Fix

  • Click on Start button >> Preferences >> Raspberry Pi Configuration, Then click on Interfaces Tab and make sure 1-Wire is disabled.
  • Click on the OK button then reboot Raspberry pi.

Relay4Fix.PNG

Resources