The 5V 2-Relay Module with JD-VCC power supply input is an electronic device used to control high voltage/current loads. It allows a low-power signal from a microcontroller, such as an Arduino, to control larger power circuits. This module is commonly used in automation projects, home appliances control, and in switching devices on and off.
Pin Name | Description |
---|---|
JD-VCC | Relay power supply input (4.5V to 5.5V) |
VCC | Module power supply input (5V) |
GND | Ground connection |
IN1 | Control signal input for Relay 1 |
IN2 | Control signal input for Relay 2 |
NO1 | Normally Open contact for Relay 1 |
COM1 | Common contact for Relay 1 |
NC1 | Normally Closed contact for Relay 1 |
NO2 | Normally Open contact for Relay 2 |
COM2 | Common contact for Relay 2 |
NC2 | Normally Closed contact for Relay 2 |
Power Connections:
Control Signal:
Load Connections:
// Define relay control pins
#define RELAY1_PIN 7
#define RELAY2_PIN 8
void setup() {
// Set relay pins as outputs
pinMode(RELAY1_PIN, OUTPUT);
pinMode(RELAY2_PIN, OUTPUT);
}
void loop() {
// Turn Relay 1 ON
digitalWrite(RELAY1_PIN, LOW); // Assumes active LOW relays
delay(1000); // Wait for 1 second
// Turn Relay 1 OFF
digitalWrite(RELAY1_PIN, HIGH);
delay(1000); // Wait for 1 second
// Turn Relay 2 ON
digitalWrite(RELAY2_PIN, LOW);
delay(1000); // Wait for 1 second
// Turn Relay 2 OFF
digitalWrite(RELAY2_PIN, HIGH);
delay(1000); // Wait for 1 second
}
Q: Can I power the module using the same 5V from the Arduino? A: Yes, you can power the module using the 5V from the Arduino if isolation between the relay power and control signal is not required.
Q: What does JD-VCC stand for? A: JD-VCC refers to the relay power supply input, which can be used to separate the relay power from the control logic power.
Q: Can I control AC and DC loads with this relay module? A: Yes, the relay module can switch both AC and DC loads within its specified voltage and current ratings.