The 8 Channel Relay Module with JD-VCC control signal is a versatile and robust electronic component manufactured by Songle, part number SRD-05VDC-SL-C. This module is designed to interface with microcontrollers such as Arduino, allowing for the control of high-power devices that operate at higher voltages and currents than the microcontroller can handle directly. Common applications include home automation, industrial controls, and switching of AC/DC loads.
Pin Number | Description | Notes |
---|---|---|
1 | GND | Ground |
2 | IN1 | Input signal for Relay 1 |
3 | IN2 | Input signal for Relay 2 |
... | ... | ... |
8 | IN8 | Input signal for Relay 8 |
9 | VCC | 5V power supply for the module |
10 | JD-VCC | External power for relay coils |
Note: The JD-VCC pin allows for separate power supply to the relay coils, isolating the control circuit.
Power Connections:
Input Signal Connections:
Load Connections:
// Define relay control pins
const int relayPins[] = {2, 3, 4, 5, 6, 7, 8, 9};
void setup() {
// Initialize all relay control pins as outputs
for (int i = 0; i < 8; i++) {
pinMode(relayPins[i], OUTPUT);
digitalWrite(relayPins[i], HIGH); // Relays are active LOW
}
}
void loop() {
// Example: Turn on each relay for 1 second, then off
for (int i = 0; i < 8; i++) {
digitalWrite(relayPins[i], LOW); // Activate relay
delay(1000); // Wait for 1 second
digitalWrite(relayPins[i], HIGH); // Deactivate relay
delay(1000); // Wait for 1 second
}
}
Note: The relays are active LOW, meaning they are triggered when the input is LOW.
Q: Can I power the relay module directly from the Arduino 5V pin? A: Yes, if the current draw is within the Arduino's limits. For full 8-channel use, an external power supply is recommended.
Q: How do I know if the relay is on or off? A: The module has an LED indicator for each relay. When the LED is lit, the relay is activated.
Q: Can I use this relay module with a 3.3V microcontroller? A: The input control signal is typically compatible with 3.3V logic; however, ensure that the relay coil is powered with 5V.
Q: What is the purpose of the JD-VCC pin? A: JD-VCC allows you to power the relay coils separately from the microcontroller, providing electrical isolation between the control and power circuits.
For further assistance, consult the manufacturer's datasheet and ensure all connections are secure and correct.