

The Relay5V 4Channel module is a versatile electronic component designed to control high-voltage devices using low-voltage signals from a microcontroller. This module features four independent relays, each capable of switching devices such as lights, fans, or appliances. Operating at 5V, it is compatible with most microcontrollers, including Arduino, Raspberry Pi, and other development boards.








| Pin Name | Description |
|---|---|
| VCC | Connect to 5V power supply to power the module. |
| GND | Connect to ground of the power supply. |
| IN1 | Control signal for Relay 1 (HIGH to activate, LOW to deactivate). |
| IN2 | Control signal for Relay 2 (HIGH to activate, LOW to deactivate). |
| IN3 | Control signal for Relay 3 (HIGH to activate, LOW to deactivate). |
| IN4 | Control signal for Relay 4 (HIGH to activate, LOW to deactivate). |
| Channel | Pin Name | Description |
|---|---|---|
| 1 | COM1 | Common terminal for Relay 1. |
| NO1 | Normally Open terminal for Relay 1 (connected to COM1 when relay is active). | |
| NC1 | Normally Closed terminal for Relay 1 (connected to COM1 when relay is idle). | |
| 2 | COM2 | Common terminal for Relay 2. |
| NO2 | Normally Open terminal for Relay 2. | |
| NC2 | Normally Closed terminal for Relay 2. | |
| 3 | COM3 | Common terminal for Relay 3. |
| NO3 | Normally Open terminal for Relay 3. | |
| NC3 | Normally Closed terminal for Relay 3. | |
| 4 | COM4 | Common terminal for Relay 4. |
| NO4 | Normally Open terminal for Relay 4. | |
| NC4 | Normally Closed terminal for Relay 4. |
// Example code to control a 4-channel relay module with an Arduino UNO
// Connect IN1, IN2, IN3, and IN4 to Arduino digital pins 2, 3, 4, and 5 respectively.
#define RELAY1 2 // Define pin for Relay 1
#define RELAY2 3 // Define pin for Relay 2
#define RELAY3 4 // Define pin for Relay 3
#define RELAY4 5 // Define pin for Relay 4
void setup() {
// Set relay pins as outputs
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
pinMode(RELAY4, OUTPUT);
// Initialize all relays to OFF state
digitalWrite(RELAY1, LOW);
digitalWrite(RELAY2, LOW);
digitalWrite(RELAY3, LOW);
digitalWrite(RELAY4, LOW);
}
void loop() {
// Example sequence to activate relays one by one
digitalWrite(RELAY1, HIGH); // Turn on Relay 1
delay(1000); // Wait for 1 second
digitalWrite(RELAY1, LOW); // Turn off Relay 1
digitalWrite(RELAY2, HIGH); // Turn on Relay 2
delay(1000); // Wait for 1 second
digitalWrite(RELAY2, LOW); // Turn off Relay 2
digitalWrite(RELAY3, HIGH); // Turn on Relay 3
delay(1000); // Wait for 1 second
digitalWrite(RELAY3, LOW); // Turn off Relay 3
digitalWrite(RELAY4, HIGH); // Turn on Relay 4
delay(1000); // Wait for 1 second
digitalWrite(RELAY4, LOW); // Turn off Relay 4
}
Relays Not Activating:
Load Not Switching:
Module Overheating:
Electrical Noise or Interference:
Q: Can I use this module with a 3.3V microcontroller like ESP32?
A: Yes, the module is compatible with 3.3V logic levels, but ensure the VCC pin is powered with 5V.
Q: Can I control AC and DC loads simultaneously?
A: Yes, as long as each relay's load does not exceed its maximum ratings.
Q: Do I need external transistors to drive the relays?
A: No, the module includes built-in driver circuitry and optocouplers for isolation.