The RELAY 2CHANNEL module is a versatile electronic component designed to control high-voltage devices using low-voltage signals. It features two independent relay channels, allowing users to switch two separate devices simultaneously. The module is commonly equipped with opto-isolation to ensure safety and protect low-voltage control circuits from high-voltage spikes.
This relay module is widely used in home automation, industrial control systems, robotics, and IoT projects. It is particularly useful for controlling appliances, lights, motors, and other high-power devices with microcontrollers like Arduino, Raspberry Pi, or other low-power control systems.
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 (0V triggers the relay). |
IN2 | Control signal for Relay 2. Active Low (0V triggers the relay). |
Terminal Name | Description |
---|---|
COM | Common terminal for the relay. Connect to the power source or load. |
NO | Normally Open terminal. Connect to the load for default OFF state. |
NC | Normally Closed terminal. Connect to the load for default ON state. |
Below is an example code to control two relays using an Arduino UNO:
// Define the relay control pins
const int relay1Pin = 7; // Pin connected to IN1
const int relay2Pin = 8; // Pin connected to IN2
void setup() {
// Set 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 on Relay 1
digitalWrite(relay1Pin, LOW); // Active Low signal to trigger relay
delay(1000); // Wait for 1 second
// Turn off Relay 1
digitalWrite(relay1Pin, HIGH); // Deactivate relay
delay(1000); // Wait for 1 second
// Turn on Relay 2
digitalWrite(relay2Pin, LOW); // Active Low signal to trigger relay
delay(1000); // Wait for 1 second
// Turn off Relay 2
digitalWrite(relay2Pin, HIGH); // Deactivate relay
delay(1000); // Wait for 1 second
}
Relays Not Activating:
Erratic Relay Behavior:
Load Not Switching:
Microcontroller Resetting:
Q: Can I use the RELAY 2CHANNEL module with a 3.3V microcontroller?
A: Yes, the module is compatible with 3.3V control signals, but ensure the VCC pin is still powered with 5V.
Q: Is the module safe for high-voltage applications?
A: Yes, the module is designed for high-voltage applications, but proper insulation and safety precautions must be followed.
Q: Can I control DC devices with this module?
A: Yes, the module can switch DC devices up to 30V and 10A.
Q: What is the purpose of opto-isolation?
A: Opto-isolation protects the low-voltage control circuit from high-voltage spikes and electrical noise.