Pirelay-V2
From SB-Components Wiki
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
Specifications
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
- 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