
This circuit consists of a DC-DC converter powering a 6-channel power module, which in turn supplies 5V to a 2-relay module. The power module distributes the converted voltage to the relay module, enabling it to control external devices.

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.

This circuit consists of a DC-DC converter powering a 6-channel power module, which in turn supplies 5V to a 2-relay module. The power module distributes the converted voltage to the relay module, enabling it to control external devices.

This circuit features an ESP32 microcontroller connected to an 8-channel relay module. The ESP32 controls the relay channels via its GPIO pins, allowing for the switching of external devices or loads through the relays.

This circuit features an ESP32 microcontroller connected to an 8-channel relay module. The ESP32 controls the relay channels via its GPIO pins, allowing it to switch multiple external devices on and off. The ESP32 also provides power to the relay module.

This circuit is a home automation system that uses an ESP32 microcontroller to control an 8-channel relay module, which in turn controls various appliances such as fans and lights. The system includes multiple push buttons for manual control and a PIR motion sensor to automatically activate the relays when motion is detected.
| 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.