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 is equipped with an optocoupler, which provides electrical isolation between the control circuit and the high-voltage load, ensuring safety and protecting sensitive components from potential damage.

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
  • IoT projects for remote device control
  • Robotics and mechatronics
  • Motor control and switching applications

Technical Specifications

Below are the key technical details and pin configuration for the 1 Channel Relay Module with Optocoupler:

Key Technical Details

Parameter Specification
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
Weight ~15g

Pin Configuration and Descriptions

Pin Name Pin Type Description
VCC Power Input Connect to 5V DC power supply. Powers the relay module.
GND Ground Connect to the ground of the power supply.
IN Signal Input Control signal input. A HIGH signal activates the relay.
COM Common Terminal Common terminal for the relay switch.
NO Normally Open Normally open terminal. Connect the load here for default OFF state.
NC Normally Closed Normally closed terminal. Connect the load here for default ON state.

Usage Instructions

How to Use the Component in a Circuit

  1. Power the Module: Connect the VCC pin to a 5V DC power source and the GND pin to the ground.
  2. Control Signal: Connect the IN pin to a microcontroller (e.g., Arduino UNO) or any other control circuit capable of providing a 3.3V to 5V signal.
  3. Load Connection:
    • Connect the high-voltage device (load) to the COM and either the NO or NC terminal:
      • Use NO if the load should be OFF by default and turn ON when the relay is activated.
      • Use NC if the load should be ON by default and turn OFF when the relay is activated.
  4. Activate the Relay: Send a HIGH signal (3.3V to 5V) to the IN pin to activate the relay and switch the load.

Important Considerations and Best Practices

  • Electrical Isolation: The optocoupler ensures isolation between the control circuit and the high-voltage load. Always verify the isolation to prevent damage to sensitive components.
  • Power Supply: Ensure the power supply can provide sufficient current for the relay coil (typically ~70mA).
  • Load Ratings: Do not exceed the maximum load voltage (250V AC / 30V DC) or current (10A) to avoid damage or hazards.
  • Flyback Diode: If controlling an inductive load (e.g., motor), use a flyback diode across the load to suppress voltage spikes.
  • Safety Precautions: When working with high-voltage loads, ensure proper insulation and avoid direct contact with live wires.

Example: Connecting to an Arduino UNO

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

Circuit Connections

  • Connect VCC to the Arduino's 5V pin.
  • Connect GND to the Arduino's GND pin.
  • Connect the IN pin to Arduino digital pin 7.
  • Connect the load to the COM and NO terminals.

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
  digitalWrite(relayPin, HIGH);
  delay(5000); // Keep the relay ON for 5 seconds
  
  // Turn the relay OFF
  digitalWrite(relayPin, LOW);
  delay(5000); // Keep the relay OFF for 5 seconds
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Activating:

    • Ensure the VCC and GND pins are properly connected to a 5V power source.
    • Verify that the control signal on the IN pin is within the required range (3.3V to 5V).
    • Check for loose or incorrect wiring.
  2. Load Not Switching:

    • Confirm that the load is correctly connected to the COM and NO or NC terminals.
    • Ensure the load does not exceed the relay's maximum voltage or current ratings.
    • Test the relay module with a multimeter to verify proper operation.
  3. Interference or Noise:

    • Use a flyback diode across inductive loads to suppress voltage spikes.
    • Keep high-voltage and low-voltage wiring separate to reduce interference.
  4. Module Overheating:

    • Ensure the load current does not exceed 10A.
    • Provide adequate ventilation around the module.

FAQs

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

Q2: Is the relay module suitable for DC loads?
A2: Yes, the module supports DC loads up to 30V and 10A.

Q3: Can I control multiple relay modules with one microcontroller?
A3: Yes, as long as the microcontroller has enough GPIO pins and can supply the required current for each module.

Q4: What happens if I connect the load incorrectly?
A4: Incorrect connections may result in the load not switching or potential damage to the module. Double-check all connections before powering the circuit.