Description:
The weak current output by the Raspberry Pi IO can control the switching of strong currents through this product, and is often used in smart homes and other strong electric fields. Combined with the Raspberry Pi's network capabilities, remote control of home appliances can be achieved.
Note:The Raspberry Pi has 40Pin and 26Pin connectors. This product is only compatible with the 40Pin Raspberry Pi.
Feature:
1.Suitable for Raspberry Pi A+/B+/2B/3B.
2.Using high quality relays.
3.Relay allows access up to 5A 250V AC or 5A 30V DC.
4.With optocoupler isolation, to avoid high-voltage circuit interference.
5.With relay indicator, easy to view the working status of the relay.
6.Jumper selection with relay for easy selection of other RSP control relays.
Specification:
Condiiton: 100% Brand New
1.Raspberry Pi GPIO interface: For connecting Raspberry Pi
2.Relay screw terminal: For connecting target devices
3.Relay
4.Optocoupler:PC817 optocoupler chip
5.Relay indicator:
LED on: relay NC is open, NO is closed
LED off: relay NC is closed, NO is open
6.Power indicator
7.Relay control jumper:
short the jumper: control the relay by standard I / Os used in the example code
open the jumper: control the relay by custom I / Os via jumper wires
Terminal Description:
The expansion board has four terminals, each terminal has three pins for connecting external circuits.
PS:
item information may help you more #!/usr/bin/env python
# GPIO19 = Relay Channel 1
# GPIO26 = Relay Channel 2
# GPIO20 = Relay Channel 3
# GPIO21 = Relay Channel 4
import RPi.GPIO as GPIO # Import GPIO Module
from time import sleep # Import sleep Module for timing
GPIO.setmode(GPIO.BCM) # Configures how we are describing our pin numbering
GPIO.setwarnings(False) # Disable Warnings
ch1 = 19
ch2 = 26
ch3 = 20
ch4 = 21
OutputPins =[ch1, ch2, ch3, ch4] # Set the GPIO pins that are required
#Set our GPIO pins to outputs and set them to off
for i in OutputPins:
GPIO.setup(i, GPIO.OUT)
GPIO.output(i, False)
while (True):
# Step through each GPIO pin and set On
for i in OutputPins:
GPIO.output(i, True)
print(i)
# Sleep for 5 seconds
sleep(5)
# Step through each GPIO pin and set Off
for i in OutputPins:
GPIO.output(i, False)
sleep(5)
print("pass complete"):
Package Included:
1 x Expansion Module for Raspberry Pi