

The 4-channel relay module (5V JD-VCC) is a versatile electronic component designed to control high-power devices such as lights, motors, and appliances using low-power control signals from a microcontroller. This module features four independent relays, each capable of switching AC or DC loads. The JD-VCC pin allows for the isolation of the relay power supply from the control signal, improving safety and reducing electrical noise.








The module has two sets of pins: control pins and power pins. Additionally, each relay has three output terminals.
| Pin Name | Description |
|---|---|
| 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) |
| GND | Ground connection for the control circuit |
| VCC | 5V power supply for the control circuit |
| JD-VCC | 5V power supply for the relay coils (isolated from VCC for safety and stability) |
| Jumper Cap | Connects VCC and JD-VCC for shared power supply (remove for separate supplies) |
| Terminal Name | Description |
|---|---|
| COM | Common terminal for the relay |
| NO | Normally Open terminal (connected to COM when the relay is activated) |
| NC | Normally Closed terminal (connected to COM when the relay is not activated) |
Power the Module:
Control Signals:
Connecting Loads:
Jumper Configuration:
// Example code to control a 4-channel relay module with Arduino UNO
// Ensure the relay module's VCC and GND are connected to the Arduino's 5V and GND
#define RELAY1 2 // Define pin 2 for Relay 1
#define RELAY2 3 // Define pin 3 for Relay 2
#define RELAY3 4 // Define pin 4 for Relay 3
#define RELAY4 5 // Define pin 5 for Relay 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 state
digitalWrite(RELAY1, HIGH); // Relays are active LOW
digitalWrite(RELAY2, HIGH);
digitalWrite(RELAY3, HIGH);
digitalWrite(RELAY4, HIGH);
}
void loop() {
// Example sequence to toggle relays
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:
Electrical Noise or Unstable Operation:
Relay Clicking but Load Not Switching:
Arduino Resetting When Relays Activate:
Q: Can this module be used with a 3.3V microcontroller?
A: Yes, the module is compatible with 3.3V control signals, but ensure the relays are powered with 5V.
Q: What is the purpose of the jumper cap?
A: The jumper cap connects VCC and JD-VCC for shared power. Remove it to use separate power supplies.
Q: Can I control AC devices with this module?
A: Yes, the relays can switch AC loads up to 250V at 10A. Ensure proper insulation and safety precautions.