

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 devices. The module typically features opto-isolated inputs for enhanced safety and reliability, making it suitable for applications involving high voltage or current loads.








Below are the key technical details of the 4 Channel Relay Module:
The module has two main interfaces: the input control pins and the relay output terminals.
| Pin Name | Description |
|---|---|
| VCC | Connect to the 5V power supply of the microcontroller. |
| GND | Connect to the ground of the 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). |
Each relay has three terminals: COM (Common), NO (Normally Open), and NC (Normally Closed).
| Terminal | Description |
|---|---|
| COM | Common terminal for the relay. Connect to the power source or load. |
| NO | Normally Open terminal. Circuit is open when the relay is inactive. |
| NC | Normally Closed terminal. Circuit is closed when the relay is inactive. |
Below is an example of how to control the 4 Channel Relay Module using an Arduino UNO:
// Define relay control pins
#define RELAY1 7 // Pin connected to IN1
#define RELAY2 6 // Pin connected to IN2
#define RELAY3 5 // Pin connected to IN3
#define RELAY4 4 // 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: Turn on Relay 1 for 2 seconds, then turn it off
digitalWrite(RELAY1, LOW); // Activate Relay 1
delay(2000); // Wait for 2 seconds
digitalWrite(RELAY1, HIGH); // Deactivate Relay 1
delay(2000); // Wait for 2 seconds
}
Relays Not Activating
Erratic Relay Behavior
Microcontroller Resetting When Relays Activate
Load Not Switching
Q: Can I use the module with a 3.3V microcontroller like ESP32?
A: Yes, the module's trigger voltage is compatible with 3.3V logic levels.
Q: Is it safe to control high voltage devices with this module?
A: Yes, but ensure proper insulation and follow safety guidelines when working with high voltage.
Q: Can I control all four relays simultaneously?
A: Yes, as long as the total current draw does not exceed the power supply's capacity.
Q: What is the purpose of opto-isolation?
A: Opto-isolation protects the microcontroller from high voltage spikes and electrical noise.