

The Relay 4 Channel 5V module is an electronic component designed to control high-voltage devices using low-voltage signals. It features four independent relays, each capable of switching AC or DC loads. This module is widely used in home automation, industrial control systems, and IoT projects. Its ability to interface with microcontrollers like Arduino, Raspberry Pi, and other logic-level devices makes it a versatile choice for controlling lights, motors, fans, and other appliances.








The Relay 4 Channel 5V module has two main interfaces: the input control pins and the relay output terminals.
| Pin Name | Description |
|---|---|
| VCC | 5V DC power supply input |
| 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) |
Each relay has three output terminals:
| Terminal | Description |
|---|---|
| COM | Common terminal for the relay |
| NO | Normally Open terminal (connected to COM when active) |
| NC | Normally Closed terminal (connected to COM when inactive) |
Below is an example of how to control the Relay 4 Channel 5V 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 relays ON and OFF with a delay
digitalWrite(RELAY1, LOW); // Turn ON Relay 1
delay(1000); // Wait 1 second
digitalWrite(RELAY1, HIGH); // Turn OFF Relay 1
delay(1000); // Wait 1 second
digitalWrite(RELAY2, LOW); // Turn ON Relay 2
delay(1000); // Wait 1 second
digitalWrite(RELAY2, HIGH); // Turn OFF Relay 2
delay(1000); // Wait 1 second
// Repeat for other relays as needed
}
Relays Not Activating:
Erratic Relay Behavior:
Microcontroller Resetting:
Load Not Switching:
Q: Can I use this module with a 3.3V microcontroller?
A: Yes, the module is compatible with 3.3V logic levels, but ensure the VCC pin is still powered with 5V.
Q: Can I control DC motors with this module?
A: Yes, but for inductive loads like motors, use a flyback diode to protect the relay from voltage spikes.
Q: What is the maximum current the relays can handle?
A: Each relay can handle up to 10A at 250V AC or 30V DC. Ensure your load does not exceed these ratings.