From SB-Components Wiki
Zero Relay provides a solution for controlling high current/voltage devices and makes your home appliances intelligent. It could be a nice solution for controlling devices that could not be directly controlled by RPi's Digital I/Os. The standardized shield form factor enables a smooth connection with Raspberry Pi and compatibles. It is a 2 channel relay shield with 7A 250 Volts AC output and 10A 30Volts DC output ratings. Zero Relay is designed for triggering at high voltage levels.
- 2 High-quality Relay and loads up to 250VAC/7A, 30VDC/10A.
- Standardized shield shape and design.
- LEDs working status indicators for each Relay.
- High-quality Relays.
- 40 Pin Stacking Header for accessing GPIO of RPi.
- Mounting holes
- Channel - 2 CH
- Operating Voltage - 5V
- AC Control Voltage - 7A / 250V
- DC Control Voltage - 10A / 30V
- Stack Zero-Relay HAT on Raspberry Pi Zero or any Raspberry Pi 40 Pin GPIO header.
- Make sure both jumpers are connected.
- Open Terminal and clone/download the repository by typing below command in terminal:
git clone https://github.com/sbcshop/Zero-Relay.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.
- 'test2.py' is example code for Zero Relay. Run test2 file and play with Zero Relay by running below python command.
- You can also use any other GPIO of Raspberry Pi by removing the jumpers and connecting the relay pin RL1 and RL2 directly to the Raspberry Pi GPIO header using jumper cables or wire. Edit "pizero_2relay.py" file and change the BOARD numbering of the relay and save it.
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.