









| Pin Name | Description |
|---|---|
| VCC | Connect to 5V DC power supply to power the module. |
| GND | Connect to ground of the power supply or microcontroller. |
| IN1 | Control signal for Relay 1 (Active LOW). |
| IN2 | Control signal for Relay 2 (Active LOW). |
| IN3 | Control signal for Relay 3 (Active LOW). |
| IN4 | Control signal for Relay 4 (Active LOW). |
| Relay Terminal | Description |
|---|---|
| COM (x4) | Common terminal for each relay. Connect to the power source or load. |
| NO (x4) | Normally Open terminal. Connect to the load for default OFF state. |
| NC (x4) | Normally Closed terminal. Connect to the load for default ON state. |
// Example code to control a 4 Channel Relay Module with an Arduino UNO
// Each relay is controlled by a digital pin on the Arduino
// Define the pins connected to the relay module
#define RELAY1 2 // Pin connected to IN1
#define RELAY2 3 // Pin connected to IN2
#define RELAY3 4 // Pin connected to IN3
#define RELAY4 5 // Pin connected to IN4
void setup() {
// Set relay pins as outputs
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
pinMode(RELAY4, OUTPUT);
// Initialize all relays to OFF (HIGH state)
digitalWrite(RELAY1, HIGH);
digitalWrite(RELAY2, HIGH);
digitalWrite(RELAY3, HIGH);
digitalWrite(RELAY4, HIGH);
}
void loop() {
// Example sequence to toggle relays ON and OFF
digitalWrite(RELAY1, LOW); // Turn ON Relay 1
delay(1000); // Wait for 1 second
digitalWrite(RELAY1, HIGH); // Turn OFF Relay 1
delay(1000); // Wait for 1 second
digitalWrite(RELAY2, LOW); // Turn ON Relay 2
delay(1000); // Wait for 1 second
digitalWrite(RELAY2, HIGH); // Turn OFF Relay 2
delay(1000); // Wait for 1 second
digitalWrite(RELAY3, LOW); // Turn ON Relay 3
delay(1000); // Wait for 1 second
digitalWrite(RELAY3, HIGH); // Turn OFF Relay 3
delay(1000); // Wait for 1 second
digitalWrite(RELAY4, LOW); // Turn ON Relay 4
delay(1000); // Wait for 1 second
digitalWrite(RELAY4, HIGH); // Turn OFF Relay 4
delay(1000); // Wait for 1 second
}
Relays Not Activating:
Load Not Switching:
Indicator LEDs Not Lighting Up:
Can I use the relay module with a 3.3V microcontroller?
Yes, the module is compatible with 3.3V control signals, but ensure the VCC pin is still powered with 5V.
What happens if I exceed the relay's load ratings?
Exceeding the load ratings can damage the relay contacts and may pose a safety hazard. Always stay within the specified limits.
Can I control AC and DC loads simultaneously?
Yes, as long as each relay's load does not exceed its maximum ratings and proper isolation is maintained.
Why do I hear a clicking sound from the relays?
The clicking sound is normal and indicates the mechanical switching of the relay contacts.