

The Relay 2 Channel module is an electronic component designed to control high-voltage devices using low-voltage signals. It features two independent relays, allowing users to switch two separate circuits. Each relay is opto-isolated, ensuring safety and protecting the low-voltage control side from potential high-voltage spikes. This module is widely used in home automation, industrial control systems, and remote control applications.
Common applications include:








The Relay 2 Channel module has the following key specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 5V DC |
| Trigger Voltage | 3.3V to 5V DC |
| Relay Type | SPDT (Single Pole Double Throw) |
| Maximum Load (AC) | 250V AC @ 10A |
| Maximum Load (DC) | 30V DC @ 10A |
| Isolation Method | Opto-isolation |
| Dimensions | ~50mm x 40mm x 20mm |
The module has two sets of pins: control pins and relay output terminals.
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Connect to 5V DC power supply. |
| 2 | GND | Connect to ground. |
| 3 | IN1 | Control signal for Relay 1. Active LOW (0V to activate the relay). |
| 4 | IN2 | Control signal for Relay 2. Active LOW (0V to activate the relay). |
| Terminal | Name | Description |
|---|---|---|
| 1 | COM | Common terminal. Connect to the input of the circuit being controlled. |
| 2 | NO | Normally Open terminal. Circuit is open when the relay is inactive. |
| 3 | NC | Normally Closed terminal. Circuit is closed when the relay is inactive. |
Below is an example code to control the Relay 2 Channel module using an Arduino UNO:
// Define the control pins for the relays
const int relay1Pin = 7; // Pin connected to IN1
const int relay2Pin = 8; // Pin connected to IN2
void setup() {
// Set the relay pins as outputs
pinMode(relay1Pin, OUTPUT);
pinMode(relay2Pin, OUTPUT);
// Initialize relays to OFF state (HIGH signal)
digitalWrite(relay1Pin, HIGH);
digitalWrite(relay2Pin, HIGH);
}
void loop() {
// Turn Relay 1 ON (LOW signal)
digitalWrite(relay1Pin, LOW);
delay(1000); // Keep it ON for 1 second
// Turn Relay 1 OFF (HIGH signal)
digitalWrite(relay1Pin, HIGH);
delay(1000); // Keep it OFF for 1 second
// Turn Relay 2 ON (LOW signal)
digitalWrite(relay2Pin, LOW);
delay(1000); // Keep it ON for 1 second
// Turn Relay 2 OFF (HIGH signal)
digitalWrite(relay2Pin, HIGH);
delay(1000); // Keep it OFF for 1 second
}
Relays Not Activating:
Cause: Insufficient power supply.
Solution: Ensure the VCC pin is connected to a stable 5V DC source.
Cause: Incorrect control signal.
Solution: Verify that the IN1 and IN2 pins are receiving a LOW signal (0V) to activate the relays.
Erratic Relay Behavior:
Load Not Switching Properly:
Microcontroller Resetting When Relay Activates:
Q1: Can I use the Relay 2 Channel module with a 3.3V microcontroller?
A1: Yes, the module can be triggered with 3.3V signals, but ensure the VCC pin is still powered with 5V DC.
Q2: Is it safe to control high-voltage devices with this module?
A2: Yes, the module is designed for high-voltage control, but always follow safety precautions and ensure proper isolation.
Q3: Can I control both relays simultaneously?
A3: Yes, you can activate both relays at the same time by sending LOW signals to both IN1 and IN2 pins.
Q4: What happens if I connect the NO and NC terminals at the same time?
A4: This is not recommended as it may cause a short circuit or damage the relay. Always use either NO or NC, not both.