

The RELAY 2CHANNEL 2 is a relay module with two independent channels, enabling the control of two separate circuits using a single control signal. This module is designed to interface with low-power control systems, such as microcontrollers, to switch high voltage or high current loads safely. It is widely used in automation, home appliances, industrial control systems, and DIY projects.








| Pin Name | Description |
|---|---|
| VCC | Connect to the 5V power supply. Powers the relay module. |
| GND | Ground connection. |
| IN1 | Control signal for Relay 1. A HIGH signal activates the relay. |
| IN2 | Control signal for Relay 2. A HIGH signal activates the relay. |
| Terminal Name | Description |
|---|---|
| COM | Common terminal. Connect to the load or power source. |
| 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. |
Below is an example code to control two relays using an Arduino UNO:
// Define the pins connected to the relay module
const int relay1Pin = 7; // IN1 connected to digital pin 7
const int relay2Pin = 8; // IN2 connected to digital pin 8
void setup() {
// Set relay pins as OUTPUT
pinMode(relay1Pin, OUTPUT);
pinMode(relay2Pin, OUTPUT);
// Initialize relays to OFF state
digitalWrite(relay1Pin, LOW); // Relay 1 OFF
digitalWrite(relay2Pin, LOW); // Relay 2 OFF
}
void loop() {
// Turn Relay 1 ON and Relay 2 OFF
digitalWrite(relay1Pin, HIGH); // Relay 1 ON
digitalWrite(relay2Pin, LOW); // Relay 2 OFF
delay(2000); // Wait for 2 seconds
// Turn Relay 1 OFF and Relay 2 ON
digitalWrite(relay1Pin, LOW); // Relay 1 OFF
digitalWrite(relay2Pin, HIGH); // Relay 2 ON
delay(2000); // Wait for 2 seconds
}
Relays Not Activating:
Load Not Switching:
Microcontroller Resetting:
Relay Clicking but No Load Switching:
Q: Can I use this module with a 3.3V microcontroller like ESP32?
A: Yes, the module is compatible with 3.3V control signals, but ensure the VCC pin is powered with 5V.
Q: Can I control AC and DC loads simultaneously?
A: Yes, as long as each load is connected to a separate channel and does not exceed the relay's ratings.
Q: Do I need a flyback diode for inductive loads?
A: Yes, a flyback diode is recommended to protect the relay from voltage spikes caused by inductive loads.
Q: Can I use this module to control a motor?
A: Yes, but ensure the motor's current and voltage are within the relay's specifications, and use a flyback diode for protection.
This concludes the documentation for the RELAY 2CHANNEL 2 module.