The Two Channel Relay is a versatile electronic module designed to control two independent circuits using low voltage control signals. It acts as an electrically operated switch, allowing users to control high voltage devices such as lights, fans, or appliances with low voltage microcontrollers like Arduino, Raspberry Pi, or other logic-level devices.
This module is widely used in home automation, industrial control systems, and robotics, where safe and efficient switching of high-power devices is required.
The Two Channel Relay module is designed to handle a wide range of voltages and currents, making it suitable for various applications. Below are the key technical details:
The Two Channel Relay module has the following pin layout:
Pin Name | Description |
---|---|
VCC | Power supply for the module (3.3V-5V) |
GND | Ground connection |
IN1 | Control signal for Relay 1 (Active Low) |
IN2 | Control signal for Relay 2 (Active Low) |
Each relay has three output terminals:
Terminal | Description |
---|---|
NO (Normally Open) | Open circuit when the relay is inactive. Closes when activated. |
NC (Normally Closed) | Closed circuit when the relay is inactive. Opens when activated. |
COM (Common) | Common terminal for the relay switching circuit. |
Below is an example of how to control the Two Channel Relay using an Arduino UNO:
// Two Channel Relay Control Example
// This code toggles two relays ON and OFF with a 1-second delay.
#define RELAY1 7 // Define pin 7 for Relay 1 control
#define RELAY2 8 // Define pin 8 for Relay 2 control
void setup() {
pinMode(RELAY1, OUTPUT); // Set Relay 1 pin as output
pinMode(RELAY2, OUTPUT); // Set Relay 2 pin as output
// Initialize relays to OFF state (HIGH because it's active LOW)
digitalWrite(RELAY1, HIGH);
digitalWrite(RELAY2, HIGH);
}
void loop() {
// Turn Relay 1 ON and Relay 2 OFF
digitalWrite(RELAY1, LOW); // Activate Relay 1
digitalWrite(RELAY2, HIGH); // Deactivate Relay 2
delay(1000); // Wait for 1 second
// Turn Relay 1 OFF and Relay 2 ON
digitalWrite(RELAY1, HIGH); // Deactivate Relay 1
digitalWrite(RELAY2, LOW); // Activate Relay 2
delay(1000); // Wait for 1 second
}
Relay Not Activating:
Relay Stays ON/OFF Constantly:
High Voltage Device Not Switching:
Arduino Resets When Relay Activates:
Q: Can I use the relay module with a 3.3V microcontroller?
A: Yes, the module supports 3.3V control signals, but ensure the power supply to the relay is sufficient.
Q: Is the relay safe for switching high voltage devices?
A: Yes, the relay is designed for high voltage applications, but always follow safety precautions and ensure proper insulation.
Q: Can I control both relays independently?
A: Yes, each relay has its own control pin (IN1 and IN2) for independent operation.
By following this documentation, you can safely and effectively use the Two Channel Relay module in your projects.