

The 2-channel relay module is an electronic component designed to control high-voltage or high-current devices using low-power control signals. It acts as an electrically operated switch, allowing microcontrollers like Arduino, Raspberry Pi, or other digital systems to safely interface with devices such as lights, motors, or appliances.
This module is commonly used in home automation, industrial control systems, and robotics projects. Its ability to isolate the control circuit from the high-power circuit ensures safety and reliability in various applications.








| Pin Name | Description |
|---|---|
| VCC | Connect to the 5V power supply of the control circuit. |
| GND | Connect to the ground of the control circuit. |
| IN1 | Control signal for Relay 1 (Active Low). |
| IN2 | Control signal for Relay 2 (Active Low). |
| Terminal Name | Description |
|---|---|
| COM | Common terminal for the relay. Connect to the power source or load. |
| NO | Normally Open terminal. Connect to the load if it should be off by default. |
| NC | Normally Closed terminal. Connect to the load if it should be on by default. |
// Example code to control a 2-channel relay module with Arduino UNO
// Define the relay control pins
const int relay1 = 7; // Pin connected to IN1
const int relay2 = 8; // Pin connected to IN2
void setup() {
// Set relay pins as outputs
pinMode(relay1, OUTPUT);
pinMode(relay2, OUTPUT);
// Initialize relays to OFF state (HIGH signal)
digitalWrite(relay1, HIGH); // Relay 1 off
digitalWrite(relay2, HIGH); // Relay 2 off
}
void loop() {
// Turn on Relay 1
digitalWrite(relay1, LOW); // Activate Relay 1
delay(2000); // Wait for 2 seconds
// Turn off Relay 1 and turn on Relay 2
digitalWrite(relay1, HIGH); // Deactivate Relay 1
digitalWrite(relay2, LOW); // Activate Relay 2
delay(2000); // Wait for 2 seconds
// Turn off both relays
digitalWrite(relay1, HIGH); // Deactivate Relay 1
digitalWrite(relay2, HIGH); // Deactivate Relay 2
delay(2000); // Wait for 2 seconds
}
Relay Not Activating:
Relay Stuck in ON or OFF State:
Microcontroller Resetting When Relay Activates:
Load Not Turning On/Off:
Can I use this module with a 3.3V microcontroller?
Is the relay module safe for AC appliances?
Can I control both relays simultaneously?
What is the lifespan of the relay?