

The 4 Channel Relay Module 5V JD-VCC is an electronic component designed to control up to four independent devices using low-power control signals. It operates on a 5V power supply and features an optocoupler-based isolation mechanism, ensuring safe and reliable operation in automation and control systems. The JD-VCC pin allows the relay power to be isolated from the control signal, reducing electrical noise and protecting sensitive microcontrollers.








The module has two sets of pins: control pins and relay output terminals.
| Pin Name | Description |
|---|---|
| VCC | Connect to the 5V power supply of the microcontroller. |
| GND | Ground connection. |
| 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). |
| JD-VCC | Power supply for the relay coils (5V). |
| Jumper Cap | Used to connect VCC and JD-VCC for shared power. Remove for isolated operation. |
Each relay has three output terminals:
| Terminal | Description |
|---|---|
| NO (Normally Open) | Open circuit when the relay is inactive; closed when the relay is active. |
| COM (Common) | Common terminal for the relay. |
| NC (Normally Closed) | Closed circuit when the relay is inactive; open when the relay is active. |
Power the Module:
Connect the Control Signals:
Connect the Load:
Write the Control Code:
// Example code to control a 4 Channel Relay Module with Arduino UNO
// This code toggles each relay ON and OFF with a 1-second delay.
#define RELAY1 2 // Connect IN1 to digital pin 2
#define RELAY2 3 // Connect IN2 to digital pin 3
#define RELAY3 4 // Connect IN3 to digital pin 4
#define RELAY4 5 // Connect IN4 to digital pin 5
void setup() {
// Set relay pins as OUTPUT
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
pinMode(RELAY4, OUTPUT);
// Initialize all relays to OFF (HIGH state)
digitalWrite(RELAY1, HIGH);
digitalWrite(RELAY2, HIGH);
digitalWrite(RELAY3, HIGH);
digitalWrite(RELAY4, HIGH);
}
void loop() {
// Turn each relay ON and OFF with a delay
digitalWrite(RELAY1, LOW); // Relay 1 ON
delay(1000); // Wait 1 second
digitalWrite(RELAY1, HIGH); // Relay 1 OFF
digitalWrite(RELAY2, LOW); // Relay 2 ON
delay(1000); // Wait 1 second
digitalWrite(RELAY2, HIGH); // Relay 2 OFF
digitalWrite(RELAY3, LOW); // Relay 3 ON
delay(1000); // Wait 1 second
digitalWrite(RELAY3, HIGH); // Relay 3 OFF
digitalWrite(RELAY4, LOW); // Relay 4 ON
delay(1000); // Wait 1 second
digitalWrite(RELAY4, HIGH); // Relay 4 OFF
}
Relays Not Activating:
Microcontroller Resets When Relays Activate:
Relay LED Lights Up, but Load Does Not Switch:
Relays Stay ON or OFF Unexpectedly:
Can I use this module with a 3.3V microcontroller?
What happens if I exceed the relay's current rating?
Can I control AC and DC loads simultaneously?
Is the module safe for high-voltage applications?