

The 4 Channel Relay Module is an electronic component designed to control up to four independent circuits using a single microcontroller or switch. Each relay on the module acts as an electrically operated switch, allowing low-power control signals to manage high-power loads. This module is commonly used in home automation, industrial control systems, and robotics, where it enables the safe and efficient control of high-voltage devices such as lights, fans, and motors.
Key features of the 4 Channel Relay Module include opto-isolation for enhanced safety, compatibility with microcontrollers like Arduino and Raspberry Pi, and the ability to handle both AC and DC loads. Its compact design and ease of use make it a popular choice for hobbyists and professionals alike.








| Pin Name | Description |
|---|---|
| VCC | Connect to the 5V power supply of the microcontroller or external source. |
| GND | Ground connection. |
| 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). |
| Terminal Name | Description |
|---|---|
| COM | Common terminal for the relay. |
| NO | Normally Open terminal. Connect the load here if you want it OFF by default. |
| NC | Normally Closed terminal. Connect the load here if you want it ON by default. |
Power the Module:
Connect the Control Signals:
Connect the Load:
Test the Circuit:
/*
Example code to control a 4 Channel Relay Module with an Arduino UNO.
This code sequentially activates each relay for 2 seconds.
*/
#define RELAY1 2 // Connect IN1 to digital pin 2
#define RELAY2 3 // Connect IN2 to digital pin 3
#define RELAY3 4 // Connect IN3 to digital pin 4
#define RELAY4 5 // Connect IN4 to digital pin 5
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() {
// Activate Relay 1
digitalWrite(RELAY1, LOW); // Relay ON
delay(2000); // Wait 2 seconds
digitalWrite(RELAY1, HIGH); // Relay OFF
// Activate Relay 2
digitalWrite(RELAY2, LOW); // Relay ON
delay(2000); // Wait 2 seconds
digitalWrite(RELAY2, HIGH); // Relay OFF
// Activate Relay 3
digitalWrite(RELAY3, LOW); // Relay ON
delay(2000); // Wait 2 seconds
digitalWrite(RELAY3, HIGH); // Relay OFF
// Activate Relay 4
digitalWrite(RELAY4, LOW); // Relay ON
delay(2000); // Wait 2 seconds
digitalWrite(RELAY4, HIGH); // Relay OFF
}
Relays Not Activating:
Erratic Relay Behavior:
Microcontroller Resetting:
Load Not Switching:
Q: Can I use the module with a 3.3V microcontroller?
A: Yes, the module is compatible with 3.3V control signals, but ensure the VCC pin is still powered with 5V.
Q: Is it safe to control AC loads with this module?
A: Yes, but ensure proper insulation and follow safety guidelines when working with high voltages.
Q: Can I control all four relays simultaneously?
A: Yes, as long as your power supply can handle the combined current draw of all active relays.
This concludes the documentation for the 4 Channel Relay Module.