The 4 Channel 30A 5V Relay (YYG-4) is an electrically operated switch that allows a low-power signal to control a high-power circuit. This relay module can control up to 30 amps of current using a 5V signal and can switch four different circuits independently. It is commonly used in applications such as home automation, industrial automation, and various DIY projects.
Parameter | Value |
---|---|
Operating Voltage | 5V DC |
Trigger Voltage | 5V DC |
Maximum Current | 30A |
Number of Channels | 4 |
Relay Type | SPDT (Single Pole Double Throw) |
Dimensions | 138mm x 55mm x 18mm |
Weight | 120g |
Pin Number | Pin Name | Description |
---|---|---|
1 | IN1 | Control signal for Relay 1 (Active Low) |
2 | IN2 | Control signal for Relay 2 (Active Low) |
3 | IN3 | Control signal for Relay 3 (Active Low) |
4 | IN4 | Control signal for Relay 4 (Active Low) |
5 | GND | Ground |
6 | VCC | 5V Power Supply |
Pin Number | Pin Name | Description |
---|---|---|
1 | COM | Common terminal |
2 | NO | Normally Open terminal |
3 | NC | Normally Closed terminal |
Arduino UNO Relay Module
----------- -------------
5V --------> VCC
GND --------> GND
D2 --------> IN1
D3 --------> IN2
D4 --------> IN3
D5 --------> IN4
// Define relay control pins
const int relay1 = 2;
const int relay2 = 3;
const int relay3 = 4;
const int relay4 = 5;
void setup() {
// Initialize relay control pins as outputs
pinMode(relay1, OUTPUT);
pinMode(relay2, OUTPUT);
pinMode(relay3, OUTPUT);
pinMode(relay4, OUTPUT);
// Set all relays to off state (HIGH)
digitalWrite(relay1, HIGH);
digitalWrite(relay2, HIGH);
digitalWrite(relay3, HIGH);
digitalWrite(relay4, HIGH);
}
void loop() {
// Example: Turn on Relay 1 for 2 seconds, then turn it off
digitalWrite(relay1, LOW); // Turn on Relay 1
delay(2000); // Wait for 2 seconds
digitalWrite(relay1, HIGH);// Turn off Relay 1
delay(2000); // Wait for 2 seconds
// Repeat for other relays as needed
}
By following this documentation, users should be able to effectively utilize the 4 Channel 30A 5V Relay (YYG-4) in their projects, ensuring reliable and safe operation.