Upload
chairul-muchlis
View
36
Download
0
Embed Size (px)
DESCRIPTION
RaspberryPi SainsmartRelay Wiring 02
Citation preview
5/24/2018 RaspberryPi SainsmartRelay Wiring 02
1/1
JD-VCC
VCC
GND
IN1
IN2
IN3
IN4
IN5
IN6
IN7
IN8
VCC
GND
+5V
GND
USB
HDMI
ETHERNETMICRO
USB
SDCARD
+3.3V
TP1
TP2
12345678
AUDIOVIDEO
Raspberry Pi
Model B
Rev 2.0
Sainsmart 8ch 5-V Relay Board
A B C A B C A B C A B C A B C A B C A B C A B C
RELAYBOARDINPUT
FROMGPIO
PIN
2.2k
10k
2N222NPN
TRANSISITOR
The relay board is active low which means the relays are
switched on when the inputs have a low voltage (0V) applied
to them. Since the GPIO pins output 3.3V when active, this
circuit will effectively short the relay board input to ground
making it 0V and will activate the relay.
During normal operation, when a relay is active, it s terminals
A and B are connected. When de-activated, B and C areconnected. A and C are never c onnected.
Please note, there are differences betweenRev 1.0 boards and Rev 2.0 boards GPIO Pins! (Rev 2.0 shown)
Also, there are two widely used number schemesthat depend on which class library (BCM or Wiring Pi)that you intend to use to control the pin outputs.
DNC= Do Not Connect
GPIO7
GPIO8
GPIO25
DNC
GPIO24
GPIO23
DNC
GPIO18
GPIO15
GPIO14
GND
DNC
+5V
DNC
GPIO11
GPIO09
GPIO10
DNC
GPIO22
GPIO27
GPIO17
DNC
GPIO4
GPIO3
GPIO2
+3.3V B
CM#s:
GPIO11
GPIO10
GPIO6
DNC
GPIO5
GPIO4
DNC
GPIO1
GPIO16
GPIO15
GND
DNC
+5V
DNC
G
PIO14
G
PIO13
G
PIO12
DNC
GPIO3
GPIO2
GPIO0
DNC
GPIO7
GPIO9
GPIO8
+3.3V
WiringPi#s:
Applying +5V to the Test Point 1 node (TP1) andgrounding the Test Point 2 (TP2) will supply power to
the Raspberry Pi if you do not wish to use the MicroUSB to supply power.
JUMPER