Difference between revisions of "Relay-4-Zero"

From SB-Components Wiki

 
(5 intermediate revisions by the same user not shown)
Line 21: Line 21:
 
* Dimensions: 6.5 x 3 x 2 cm (Approx.)
 
* Dimensions: 6.5 x 3 x 2 cm (Approx.)
 
* Weight: 100gm (Approx.)
 
* Weight: 100gm (Approx.)
 
  
 
</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>
Line 41: Line 40:
 
== Installation ==
 
== Installation ==
 
==== Python ====
 
==== Python ====
* Stack PiRelay-V2 HAT on Raspberry Pi 40 Pin GPIO header.
+
* Stack '''Relay 4 Zero''' on Raspberry Pi 40 Pin GPIO header as shown below.
 +
[[File:Relay4Zero.png]]
 
* Make sure all four jumpers are connected.
 
* Make sure all four jumpers are connected.
 
* Open Terminal and clone/download the repository by typing below command in terminal:
 
* Open Terminal and clone/download the repository by typing below command in terminal:
  
<source lang="shell"> git clone https://github.com/sbcshop/PiRelay-V2 </source>
+
<source lang="shell"> git clone https://github.com/sbcshop/Relay-4-Zero.git </source>
  
 
* Your code will be downloaded to '/home/pi' directory. Use 'ls' command to check the list of directories and 'cd' command to enter directory.
 
* Your code will be downloaded to '/home/pi' directory. Use 'ls' command to check the list of directories and 'cd' command to enter directory.
<source lang="shell"> cd PiRelay-V2 </source>
+
<source lang="shell"> cd Relay-4-Zero </source>
 
* 'test.py' is example code for PiRelay-V2. Run test file and play with PiRelay-V2 by running below python command.
 
* 'test.py' is example code for PiRelay-V2. Run test file and play with PiRelay-V2 by running below python command.
<source lang="shell"> python3 test.py </source>
+
<source lang="shell"> python3 test1.py </source>
  
 
* 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.
 
* 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.
Line 62: Line 62:
  
 
== Resources ==
 
== Resources ==
 +
 +
''' Github '''
 +
 +
* [https://github.com/sbcshop/Relay-4-Zero Source Code]

Latest revision as of 10:47, 12 July 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 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

Github