Difference between revisions of "Pirelay-V2"

From SB-Components Wiki

Line 38: Line 38:
 
== Installation ==
 
== Installation ==
 
==== Python ====
 
==== 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:
 
* Open Terminal and clone/download the repository by typing below command in terminal:
  
Line 46: Line 48:
 
* '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.
 
<pre> python3 test.py </pre>
 
<pre> python3 test.py </pre>
 +
 +
* You can also use any other GPIO of Raspberry Pi by removing the jumpers and connecting relay pin directly to the Raspberry Pi GPIO header using jumper cables or wire.
  
 
<b> GPIO 4 Relay Not working Fix </b>
 
<b> GPIO 4 Relay Not working Fix </b>

Revision as of 06:44, 24 May 2021

PiRelay-V2

PiRelay V2 is developed by SB Components with the potential to control 4 appliances and loads up to 250V AC/ 7 A, 30V DC/ 10A to provide a way to control the high voltage/current devices. It helps the user to enhance the intelligence of the appliances. It comprises an “Optocoupler” that allows the circuit to transmit an electrical signal between two isolated circuits through light energy. Optocoupler helps the user to prevent the high voltages in one part of the circuit from affecting the other part of the circuit which provides safety to the system. It provides a better connection of Pi Relay V2 with the Raspberry Pi that gets enabled from the standardized shield form factor. One can enable the IoT technology of their home appliances using Pi Relay V2 that will make their life efficient.

Features

  • High-quality Relay and loads up to 250VAC/7A, 30VDC/10A.
  • Optocoupler
  • Standardized shield shape and design.
  • LED working status indicators for each Relay.
  • High-quality Relays.
  • Pin Stacking Header for accessing GPIO of RPi.


Specifications

  • Channel - 4 CH
  • Operating Voltage - 5V
  • AC Control Voltage - 7A / 250V
  • DC Control Voltage - 10A / 30V
  • Dimensions - 6.5cm x 5.5cm

Pirelay v2.png

Pinout

Relays BOARD BCM
Relay 1 35 GPIO 19
Relay 2 33 GPIO 13
Relay 3 31 GPIO 6
Relay 4 29 GPIO 5

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 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 OK button then reboot Raspberry pi.

Relay4Fix.PNG

Resources