
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.

The 1 Channel Relay Module with Optocoupler (Manufacturer: Songle, Part ID: SRD-05VDC-SL-C) is a versatile electronic component designed to control high-voltage devices using low-voltage signals. It features an optocoupler for electrical isolation, ensuring safe operation by protecting the control circuit from high-voltage spikes or surges. This module is widely used in home automation, industrial control systems, and DIY electronics projects.

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 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 it to switch multiple external devices on and off. The ESP32 also provides power to the relay module.

This circuit features an ESP32-POE-ISO microcontroller connected to a 4-channel 30A 5V relay module. The ESP32 controls the relay channels via its GPIO pins, allowing for the switching of high-power devices through the relay module.
| Parameter | Value |
|---|---|
| Manufacturer | Songle |
| Part ID | SRD-05VDC-SL-C |
| Operating Voltage | 5V DC |
| Trigger Voltage | 3.3V to 5V DC |
| Maximum Load Voltage | 250V AC / 30V DC |
| Maximum Load Current | 10A |
| Isolation Method | Optocoupler |
| Relay Type | SPDT (Single Pole Double Throw) |
| Dimensions | 50mm x 26mm x 18.5mm (approx.) |
| Weight | ~15g |
The relay module has a total of 6 pins, divided into two sections: control pins and load pins.
| Pin Name | Description |
|---|---|
| VCC | Connect to the 5V power supply. |
| GND | Connect to the ground of the power supply. |
| IN | Signal pin to control the relay (active LOW). |
| Pin Name | Description |
|---|---|
| COM | Common terminal for the load circuit. |
| NO | Normally Open terminal (connected to COM when |
| the relay is activated). | |
| NC | Normally Closed terminal (connected to COM when |
| the relay is deactivated). |
Below is an example of how to control the relay module using an Arduino UNO.
// Define the relay control pin
const int relayPin = 7;
void setup() {
pinMode(relayPin, OUTPUT); // Set the relay pin as an output
digitalWrite(relayPin, HIGH); // Keep the relay off initially (active LOW)
}
void loop() {
digitalWrite(relayPin, LOW); // Turn the relay ON
delay(5000); // Keep the relay ON for 5 seconds
digitalWrite(relayPin, HIGH); // Turn the relay OFF
delay(5000); // Keep the relay OFF for 5 seconds
}
Relay Not Activating:
Load Not Turning On/Off:
Microcontroller Resetting:
High-Voltage Side Not Working:
Q1: Can I use this relay module with a 3.3V microcontroller like ESP8266 or Raspberry Pi?
A1: Yes, the IN pin is compatible with 3.3V logic levels. However, ensure the relay module itself is powered with 5V.
Q2: Is the relay module safe for controlling AC appliances?
A2: Yes, the module is designed for high-voltage applications. However, always follow safety precautions when working with AC voltage.
Q3: Can I control multiple relays with one microcontroller?
A3: Yes, you can control multiple relay modules by connecting their IN pins to different GPIO pins on the microcontroller.
Q4: What is the purpose of the optocoupler?
A4: The optocoupler provides electrical isolation between the control circuit and the high-voltage load, protecting the microcontroller from voltage spikes or surges.
By following this documentation, you can safely and effectively use the 1 Channel Relay Module with Optocoupler in your projects.