PiRelay Power Relay Module for Raspberry Pi, 4 Channel Relay
PiRelay Power Relay Module for Raspberry Pi, 4 Channel Relay Shield for Raspberry Pi, Relay HAT Expansion Relay Board for Raspberry Pi 4B/3B+/3B/2B/B+/A+
From the brand
Shop Our Products!
Weight: | 50 g |
Dimensions: | 9.2 x 8.1 x 3.4 cm; 50 Grams |
Brand: | Sb components |
Model: | SKU06670 |
Batteries Included: | No |
Manufacture: | sb components |
Dimensions: | 9.2 x 8.1 x 3.4 cm; 50 Grams |
I am using this with a 3b+ with Hoobs and a garage door Homebridge Plugin. Works really well.
I wrote a python script that you can copy/paste and run that tests each relay.
Keep in mind that typically apps on the RPi will use GPIO assignment numbers and not physical pins. So this python uses the physical pin number only. Copy everything below.
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7,GPIO.OUT)
GPIO.output(7,GPIO.LOW)
GPIO.setup(11,GPIO.OUT)
GPIO.output(11,GPIO.LOW)
GPIO.setup(13,GPIO.OUT)
GPIO.output(13,GPIO.LOW)
GPIO.setup(15,GPIO.OUT)
GPIO.output(15,GPIO.LOW)
try:
GPIO.output (7,GPIO.HIGH)
print (“First Relay ON”)
time.sleep(2)
GPIO.output (7,GPIO.LOW)
print (“First Relay OFF”)
time.sleep(2)
GPIO.output (11,GPIO.HIGH)
print (“Second Relay ON”)
time.sleep(2)
GPIO.output (11,GPIO.LOW)
print (“second Relay OFF”)
time.sleep(2)
GPIO.output (13,GPIO.HIGH)
print (“Third Relay ON”)
time.sleep(2)
GPIO.output (13,GPIO.LOW)
print (“Third Relay OFF”)
time.sleep(2)
GPIO.output (15,GPIO.HIGH)
print (“Forth Relay ON”)
time.sleep(2)
GPIO.output (15,GPIO.LOW)
print (“Forth Relay OFF”)
time.sleep(5)
GPIO.cleanup()
print(“ALL OFF….. Good Bye !!!!”)
except KeyboardInterrupt:
print(“QUIT”)
GPIO.cleanup()
Achet pour tester facilement une carte Rasp car jamais utilis jusque l. J’ai rencontr un pb avec le relay 4 qui pour moi est inrent la conception de la carte. Attention le dfaut n’est pas systmatique (uniquement sur le 4) lors d’une application. Le fabricant rpond mais semble impuissant. A suivre si d’autres ont une ide. Pour moi pas de possibilit d’ajouter de carte au dessus les pins sont trop courtes et emblent ne pas tre du bon type (trop grosses)
Very easy to install. Board relays are clearly labelled (relay 1, relay 2, etc) and each relay has its own indicator light. Relays are rated high enough to be used with 240 VAC at 7 Amps. I use the relays on this board as 12 V gate controllers. I can find no fault with this expansion board and definitely recommend it!
Carte trs facile installer. Je l’ai installe directement sur le Pi. Dans ce cas il n’est pas possible de garder le Pi dans son botier. J’aurai d acheter une rallonge pour le connecteur GPIO. Pilotage trs facile avec jeedom.
Installation en quelques minutes
Permet de connecter d’autres composants grce au report des pins.
Finition globale trs convenable qui mriterait tout de mme un peu d’application (cf photos).
App Androde mais pas iOS.
GPIO parametrables (a priori)