Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use 1 Channel Relay module with Optocoupler: Examples, Pinouts, and Specs

Image of 1 Channel Relay module with Optocoupler
Cirkit Designer LogoDesign with 1 Channel Relay module with Optocoupler in Cirkit Designer

Introduction

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. This module integrates an optocoupler to provide electrical isolation between the control circuit and the load, ensuring safety and protecting sensitive components from voltage spikes or interference.

Explore Projects Built with 1 Channel Relay module with Optocoupler

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Powered 8-Channel Relay Controller with Wi-Fi Connectivity
Image of Olimex ESP32-POE2 4Ch X 2 Switches: A project utilizing 1 Channel Relay module with Optocoupler in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
DC-DC Converter and Relay Module Power Distribution System
Image of relay: A project utilizing 1 Channel Relay module with Optocoupler in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Powered Wi-Fi Controlled 8-Channel Relay Module
Image of Olimex ESP32-POE2 8Ch Switch and Sensors: A project utilizing 1 Channel Relay module with Optocoupler in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-POE-ISO Wi-Fi Controlled 4-Channel Relay Module
Image of ESP32-POE-ISO 4Channel Relay: A project utilizing 1 Channel Relay module with Optocoupler in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 1 Channel Relay module with Optocoupler

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Olimex ESP32-POE2 4Ch X 2 Switches: A project utilizing 1 Channel Relay module with Optocoupler in a practical application
ESP32-Powered 8-Channel Relay Controller with Wi-Fi Connectivity
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of relay: A project utilizing 1 Channel Relay module with Optocoupler in a practical application
DC-DC Converter and Relay Module Power Distribution System
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Olimex ESP32-POE2 8Ch Switch and Sensors: A project utilizing 1 Channel Relay module with Optocoupler in a practical application
ESP32-Powered Wi-Fi Controlled 8-Channel Relay Module
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ESP32-POE-ISO 4Channel Relay: A project utilizing 1 Channel Relay module with Optocoupler in a practical application
ESP32-POE-ISO Wi-Fi Controlled 4-Channel 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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Home automation systems (e.g., controlling lights, fans, or appliances)
  • Industrial control systems
  • Robotics and IoT projects
  • Motor control
  • Switching high-power devices using microcontrollers like Arduino, Raspberry Pi, or ESP32

Technical Specifications

Key Technical Details

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 18mm
Weight ~15g

Pin Configuration and Descriptions

The relay module has a total of 6 pins and terminals, divided into two sections: control pins and load terminals.

Control Pins

Pin Name Description
VCC Connect to the 5V power supply (positive terminal).
GND Connect to the ground of the power supply.
IN Control signal input. A HIGH signal (3.3V-5V) activates the relay.

Load Terminals

Terminal Name Description
COM Common terminal. Connect to one side of the load or power source.
NO Normally Open terminal. Connect to the load for default OFF configuration.
NC Normally Closed terminal. Connect to the load for default ON configuration.

Usage Instructions

How to Use the Component in a Circuit

  1. Power the Module: Connect the VCC pin to a 5V DC power supply and the GND pin to the ground.
  2. Control Signal: Connect the IN pin to a digital output pin of a microcontroller (e.g., Arduino). When the IN pin receives a HIGH signal (3.3V-5V), the relay will activate.
  3. Load Connection:
    • Connect the load (e.g., a light bulb or motor) to the COM terminal.
    • Depending on the desired behavior:
      • Use the NO terminal for a default OFF state (load turns ON when the relay is activated).
      • Use the NC terminal for a default ON state (load turns OFF when the relay is activated).
  4. Isolation: The optocoupler ensures that the control circuit is electrically isolated from the high-voltage load, enhancing safety.

Important Considerations and Best Practices

  • Power Supply: Ensure the module is powered with a stable 5V DC supply.
  • Load Ratings: Do not exceed the maximum load voltage (250V AC / 30V DC) or current (10A).
  • Flyback Diode: If controlling an inductive load (e.g., motor or solenoid), use a flyback diode across the load to suppress voltage spikes.
  • Signal Voltage: Ensure the control signal voltage is within the range of 3.3V to 5V.
  • Safety: Avoid touching the module or load connections when the relay is operating with high voltage.

Example: Connecting to an Arduino UNO

Below is an example of how to control the relay module using an Arduino UNO:

Circuit Connections

  • Connect the relay module's VCC to the Arduino's 5V pin.
  • Connect the relay module's GND to the Arduino's GND pin.
  • Connect the relay module's IN pin to Arduino digital pin 7.
  • Connect the load (e.g., a light bulb) to the COM and NO terminals of the relay.

Arduino Code

// Define the relay control pin
const int relayPin = 7;

void setup() {
  // Set the relay pin as an output
  pinMode(relayPin, OUTPUT);
  
  // Ensure the relay is OFF at startup
  digitalWrite(relayPin, LOW);
}

void loop() {
  // Turn the relay ON (activates the connected load)
  digitalWrite(relayPin, HIGH);
  delay(5000); // Keep the relay ON for 5 seconds
  
  // Turn the relay OFF (deactivates the connected load)
  digitalWrite(relayPin, LOW);
  delay(5000); // Keep the relay OFF for 5 seconds
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Activating:

    • Cause: Insufficient control signal voltage.
    • Solution: Ensure the IN pin receives a signal between 3.3V and 5V.
  2. Load Not Switching:

    • Cause: Incorrect wiring of the load terminals.
    • Solution: Verify the connections to the COM, NO, and NC terminals.
  3. Module Overheating:

    • Cause: Exceeding the maximum load current or voltage.
    • Solution: Ensure the load does not exceed 10A or 250V AC / 30V DC.
  4. Interference in Control Circuit:

    • Cause: Voltage spikes from inductive loads.
    • Solution: Use a flyback diode across the load to suppress spikes.

FAQs

Q1: Can I use this relay module with a 3.3V microcontroller like ESP32?
A1: Yes, the module can be triggered with a 3.3V control signal. Ensure the VCC pin is still powered with 5V.

Q2: Is it safe to use this module with high-voltage AC loads?
A2: Yes, but take necessary precautions. Ensure proper insulation and avoid touching the module while operating.

Q3: Can I control multiple relays with one microcontroller?
A3: Yes, as long as each relay is connected to a separate digital output pin and the microcontroller can supply sufficient current.

Q4: What is the purpose of the optocoupler?
A4: The optocoupler electrically isolates the control circuit from the high-voltage load, protecting sensitive components and enhancing safety.