

The 2 Channel Relay 5V module is an electronic component designed to control two independent circuits using a low voltage 5V signal. It acts as an electrically operated switch, allowing a microcontroller or other low-power device to control high-power devices such as lights, motors, or appliances. This module is widely used in home automation, robotics, and industrial control systems.








| Pin Name | Description |
|---|---|
| VCC | Connect to 5V power supply (powers the relay 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). |
Each relay has three output terminals:
| Terminal Name | Description |
|---|---|
| COM | Common terminal for the relay. |
| NO | Normally Open terminal (disconnected from COM when the relay is inactive). |
| NC | Normally Closed terminal (connected to COM when the relay is inactive). |
// Example code to control a 2 Channel Relay 5V module with Arduino UNO
// Define the relay control pins
const int relay1 = 7; // Connect IN1 to digital pin 7
const int relay2 = 8; // Connect IN2 to digital pin 8
void setup() {
// Set relay pins as outputs
pinMode(relay1, OUTPUT);
pinMode(relay2, OUTPUT);
// Initialize relays to OFF state (HIGH signal)
digitalWrite(relay1, HIGH);
digitalWrite(relay2, HIGH);
}
void loop() {
// Turn Relay 1 ON (LOW signal)
digitalWrite(relay1, LOW);
delay(1000); // Keep it ON for 1 second
// Turn Relay 1 OFF (HIGH signal)
digitalWrite(relay1, HIGH);
delay(1000); // Keep it OFF for 1 second
// Turn Relay 2 ON (LOW signal)
digitalWrite(relay2, LOW);
delay(1000); // Keep it ON for 1 second
// Turn Relay 2 OFF (HIGH signal)
digitalWrite(relay2, HIGH);
delay(1000); // Keep it OFF for 1 second
}
Relays Not Activating:
Erratic Relay Behavior:
Load Not Switching:
Microcontroller Resetting:
Q1: Can I use this module with a 3.3V microcontroller?
A1: Yes, the module is compatible with 3.3V control signals, but ensure the VCC pin is still powered with 5V.
Q2: Can I control AC and DC loads simultaneously?
A2: Yes, as long as each relay's load does not exceed the specified ratings.
Q3: Is it safe to use this module for high-voltage applications?
A3: Yes, but ensure proper isolation and follow safety precautions when working with high voltages.