

The 4 Channel Relay Module is an electronic component designed to control up to four independent circuits using low voltage signals. It acts as an interface between low-power control systems, such as microcontrollers or single-board computers, and high-power devices like lights, motors, or appliances. The module uses electromagnetic relays to safely switch high voltage or high current loads without directly exposing the control system to these potentially dangerous levels.








The 4 Channel Relay Module is designed to work with a variety of control systems and load types. Below are its key technical details:
The module has two main interfaces: the control pins and the relay output terminals.
| Pin Name | Description |
|---|---|
| VCC | Connect to the 5V power supply of the control system. |
| GND | Connect to the ground of the control system. |
| IN1 | Control signal for Relay 1 (active LOW). |
| IN2 | Control signal for Relay 2 (active LOW). |
| IN3 | Control signal for Relay 3 (active LOW). |
| IN4 | Control signal for Relay 4 (active LOW). |
| Terminal | Description |
|---|---|
| COM | Common terminal for the relay. Connect to the power source or load. |
| NO | Normally Open terminal. The circuit is open when the relay is inactive. |
| NC | Normally Closed terminal. The circuit is closed when the relay is inactive. |
Below is an example of how to control the 4 Channel Relay Module using an Arduino UNO:
// Define the relay control pins
#define RELAY1 7 // Relay 1 connected to pin 7
#define RELAY2 6 // Relay 2 connected to pin 6
#define RELAY3 5 // Relay 3 connected to pin 5
#define RELAY4 4 // Relay 4 connected to pin 4
void setup() {
// Set relay pins as outputs
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
pinMode(RELAY4, OUTPUT);
// Initialize all relays to OFF (HIGH state for active LOW logic)
digitalWrite(RELAY1, HIGH);
digitalWrite(RELAY2, HIGH);
digitalWrite(RELAY3, HIGH);
digitalWrite(RELAY4, HIGH);
}
void loop() {
// Example: Turn relays on and off sequentially
digitalWrite(RELAY1, LOW); // Turn on Relay 1
delay(1000); // Wait for 1 second
digitalWrite(RELAY1, HIGH); // Turn off Relay 1
digitalWrite(RELAY2, LOW); // Turn on Relay 2
delay(1000); // Wait for 1 second
digitalWrite(RELAY2, HIGH); // Turn off Relay 2
digitalWrite(RELAY3, LOW); // Turn on Relay 3
delay(1000); // Wait for 1 second
digitalWrite(RELAY3, HIGH); // Turn off Relay 3
digitalWrite(RELAY4, LOW); // Turn on Relay 4
delay(1000); // Wait for 1 second
digitalWrite(RELAY4, HIGH); // Turn off Relay 4
}
Relays Not Activating:
Load Not Switching:
Indicator LEDs Not Lighting Up:
Noise or Chattering Relays:
Q: Can I use the module with a 3.3V microcontroller like the ESP32?
A: Yes, the module is compatible with 3.3V control signals, but ensure the power supply to the module is 5V.
Q: Is it safe to use the module with high voltage AC loads?
A: Yes, but always follow proper safety precautions when working with high voltage. Ensure the load does not exceed the relay's maximum ratings.
Q: Can I control all four relays simultaneously?
A: Yes, you can activate all four relays at the same time, provided your power supply can handle the current draw.
Q: What is the purpose of the optocouplers?
A: Optocouplers provide electrical isolation between the control system and the high-power circuits, enhancing safety and protecting the control system from voltage spikes.