Difference between revisions of "Relay-4-Zero"
From SB-Components Wiki
(Created page with "<div class="row"> <div class="large-8 column"> == PiRelay-V2 == Relay 4 Zero is a 4 channel relay shield with 120 V/ 2A AC output and 24 V/2A DC output ratings. Relay 4 Ze...") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="row"> | <div class="row"> | ||
<div class="large-8 column"> | <div class="large-8 column"> | ||
− | == | + | == 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. | 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. | ||
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: | + | [[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 | + | * 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/ | + | <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 | + | <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 | + | <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.)
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.
- 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.
Resources
Github