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. 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.

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

  • Home automation (e.g., controlling lights, fans, or appliances)
  • Industrial equipment control
  • Robotics and IoT projects
  • Motor and pump control
  • Arduino and microcontroller-based projects

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 18.5mm (approx.)
Weight ~15g

Pin Configuration and Descriptions

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

Control 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).

Load Pins

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).

Usage Instructions

How to Use the Relay Module 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 microcontroller (e.g., Arduino) or any other control circuit. The relay is triggered when the IN pin receives a LOW signal.
  3. Load Connection:
    • Connect the high-voltage device to the COM and NO pins if you want the device to turn on when the relay is activated.
    • Use the COM and NC pins if you want the device to turn off when the relay is activated.
  4. Isolation: The optocoupler ensures electrical isolation between the control circuit and the high-voltage load, enhancing safety.

Important Considerations and Best Practices

  • Power Supply: Ensure the module is powered with a stable 5V DC supply.
  • Signal Voltage: The IN pin is compatible with 3.3V and 5V logic levels, making it suitable for most microcontrollers.
  • Load Ratings: Do not exceed the maximum load voltage (250V AC / 30V DC) or current (10A).
  • Safety: Always disconnect the power supply before wiring the high-voltage side to avoid electric shock.
  • Flyback Diode: If controlling an inductive load (e.g., motor), use a flyback diode across the load to protect the relay from voltage spikes.

Example: Connecting to an Arduino UNO

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

Circuit Diagram

  • 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 pins of the relay.

Arduino Code

// 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
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Activating:

    • Ensure the VCC and GND pins are properly connected to a 5V power supply.
    • Verify that the IN pin is receiving a LOW signal (0V) to activate the relay.
    • Check for loose or incorrect wiring.
  2. Load Not Turning On/Off:

    • Confirm that the load is correctly connected to the COM and NO/NC pins.
    • Ensure the load does not exceed the relay's voltage and current ratings.
  3. Microcontroller Resetting:

    • This may occur if the relay draws too much current. Use a separate power supply for the relay module.
  4. High-Voltage Side Not Working:

    • Double-check the wiring on the high-voltage side.
    • Ensure the high-voltage device is functional and within the relay's specifications.

FAQs

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.