Difference between revisions of "Relay-4-Zero"

From SB-Components Wiki

Line 25: Line 25:
 
</div>
 
</div>
 
   <div class="large-4 column">
 
   <div class="large-4 column">
[[File:Relay4zero.png|thumb|left|alt=Relay 4 Zero| Buy it From : ''[https://shop.sb-components.co.uk/products/relay-4-zero-4-channel-3v-relay-board-for-raspberry-pi Click Here]'']]
+
[[File:Relay4Zero.png|thumb|left|alt=Relay 4 Zero| Buy it From : ''[https://shop.sb-components.co.uk/products/relay-4-zero-4-channel-3v-relay-board-for-raspberry-pi Click Here]'']]
 
   </div>
 
   </div>
 
</div>
 
</div>

Revision as of 12:03, 14 June 2021

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 PiRelay-V2 HAT on Raspberry Pi 40 Pin GPIO header.
  • 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/PiRelay-V2
  • 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 PiRelay-V2
  • 'test.py' is example code for PiRelay-V2. Run test file and play with PiRelay-V2 by running below python command.
python3 test.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