5V 4-Channel Relay Module [S147]
https://www.youtube.com/watch?v=VsDzZ3oBZ_s
*GitHub : https://github.com/rdiot/rdiot-s147.git
* Specs
This item is a 5V 4 Channel Relay board, Can be able to control various appliances, and the other equipments with large current. It can be controlled directly by Microcontroller Arduino , 8051, AVR, PIC, DSP, ARM, ARM, MSP430, TTL logic.
4 Channel Relay interface board.
Each one needs 15-20mA Driver Current.
Equiped with high-current relay : DC30V 10A AC250V 10A AC125V 10A.
Standard interface that can be controlled directly by microcontroller.
Indication LED’s for Relay output status.
Size:75mm x 55mm x 20mm
* Contents
- Connect
VCC
IN4 ----- D8
IN3 ----- D9
IN2 ----- D10
IN1 ----- D11
GND
COM ----- 5V
RIGHT ----- LED+
- Key Code
#define RELAY1 8
#define RELAY2 9
#define RELAY3 10
#define RELAY4 11
void setup()
{
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
pinMode(RELAY4, OUTPUT);
}
void loop()
{
digitalWrite(RELAY1,LOW); // Turns ON Relays 1
delay(2000); // Wait 2 seconds
digitalWrite(RELAY1,HIGH); // Turns Relay Off
digitalWrite(RELAY2,LOW); // Turns ON Relays 2
delay(2000); // Wait 2 seconds
digitalWrite(RELAY2,HIGH); // Turns Relay Off
digitalWrite(RELAY3,LOW); // Turns ON Relays 3
delay(2000); // Wait 2 seconds
digitalWrite(RELAY3,HIGH); // Turns Relay Off
digitalWrite(RELAY4,LOW); // Turns ON Relays 4
delay(2000); // Wait 2 seconds
digitalWrite(RELAY4,HIGH); // Turns Relay Off
}
'2) Sensor > Relay' 카테고리의 다른 글
8 Channel Solid State Relay Module [S168] (0) | 2016.09.09 |
---|---|
12V Delay Timer Adjustable Relay Module (NE555) [S165] (0) | 2016.09.09 |
5V Relay Low Level Trigger [S155] (0) | 2016.09.09 |
5V 2-Channel Relay Module [S116] (0) | 2016.09.09 |
5V Relay Module (KY-019) [S076] (0) | 2016.09.09 |