

The 6 channel relay module is an electronic component designed to control multiple high-voltage devices using low-voltage signals. Each of the six relays on the module acts as an electrically operated switch, allowing you to control high-power devices such as lights, fans, motors, and appliances with ease. This module is widely used in home automation, industrial control systems, and IoT projects.








The 6 channel relay module has two main sections: the control pins and the load terminals.
| Pin Name | Description |
|---|---|
| VCC | Power supply for the module (5V DC). |
| GND | Ground connection. |
| IN1 to IN6 | Control pins for each relay. A LOW signal activates the corresponding relay. |
| Terminal | Description |
|---|---|
| COM | Common terminal for the relay. |
| NO | Normally Open terminal. Connect here if the device should be OFF by default. |
| NC | Normally Closed terminal. Connect here if the device should be ON by default. |
Below is an example of how to control the 6 channel relay module using an Arduino UNO.
// Example code to control a 6 channel relay module with Arduino UNO
// Define the relay control pins
#define RELAY1 2
#define RELAY2 3
#define RELAY3 4
#define RELAY4 5
#define RELAY5 6
#define RELAY6 7
void setup() {
// Set relay pins as outputs
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
pinMode(RELAY4, OUTPUT);
pinMode(RELAY5, OUTPUT);
pinMode(RELAY6, OUTPUT);
// Initialize all relays to OFF state
digitalWrite(RELAY1, HIGH); // HIGH = relay OFF
digitalWrite(RELAY2, HIGH);
digitalWrite(RELAY3, HIGH);
digitalWrite(RELAY4, HIGH);
digitalWrite(RELAY5, HIGH);
digitalWrite(RELAY6, HIGH);
}
void loop() {
// Example: Turn relays ON and OFF sequentially
digitalWrite(RELAY1, LOW); // LOW = relay ON
delay(1000); // Wait 1 second
digitalWrite(RELAY1, HIGH);
digitalWrite(RELAY2, LOW);
delay(1000);
digitalWrite(RELAY2, HIGH);
digitalWrite(RELAY3, LOW);
delay(1000);
digitalWrite(RELAY3, HIGH);
digitalWrite(RELAY4, LOW);
delay(1000);
digitalWrite(RELAY4, HIGH);
digitalWrite(RELAY5, LOW);
delay(1000);
digitalWrite(RELAY5, HIGH);
digitalWrite(RELAY6, LOW);
delay(1000);
digitalWrite(RELAY6, HIGH);
}
Relays Not Activating:
Erratic Relay Behavior:
Load Not Switching:
LED Indicators Not Working:
Q: Can I use the module with a 3.3V microcontroller like ESP32?
A: Yes, the module is compatible with 3.3V control signals, but ensure the power supply to the module is 5V.
Q: Can I control AC and DC loads simultaneously?
A: Yes, as long as each relay's load does not exceed the specified ratings.
Q: Do I need external components to use the module?
A: No additional components are required for basic operation, but flyback diodes are recommended for inductive loads.