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

How to Use DC 5v 2-Channel Relay: Examples, Pinouts, and Specs

Image of DC 5v 2-Channel Relay
Cirkit Designer LogoDesign with DC 5v 2-Channel Relay in Cirkit Designer

Introduction

The DC 5V 2-Channel Relay is an electronic module designed to control high-voltage devices using low-voltage signals. It features two independent relay channels, allowing users to switch two separate devices on or off. This module is commonly used in home automation, industrial control systems, and DIY electronics projects. Its ability to interface with microcontrollers like Arduino and Raspberry Pi makes it a versatile choice for hobbyists and professionals alike.

Explore Projects Built with DC 5v 2-Channel Relay

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
DC-DC Converter and Relay Module Power Distribution System
Image of relay: A project utilizing DC 5v 2-Channel Relay 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
Battery-Powered 4-Channel Relay Control with LED Indicators
Image of RELLAY BOARD TEST: A project utilizing DC 5v 2-Channel Relay in a practical application
This circuit consists of a 5V battery powering a 4-channel relay module, which controls four LEDs (red, yellow, green, and blue) through individual resistors. Each relay channel is activated by a corresponding SPST toggle switch, allowing manual control of the LEDs.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 Wi-Fi Controlled Dual Relay Module
Image of esp: A project utilizing DC 5v 2-Channel Relay in a practical application
This circuit features an ESP32 microcontroller connected to a two-channel 5V relay module. The ESP32 controls the relay channels via its GPIO pins D23 and D22, allowing it to switch external devices on and off. The relay module is powered by the 3.3V and GND pins of the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer
DC Motor Control Using 1-Channel Relay and DC Power Source
Image of h: A project utilizing DC 5v 2-Channel Relay in a practical application
This circuit controls a DC motor using a 1-channel relay. The relay is powered by a DC power source, and it switches the motor on and off by connecting or disconnecting the motor's power supply.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with DC 5v 2-Channel Relay

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 relay: A project utilizing DC 5v 2-Channel Relay 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 RELLAY BOARD TEST: A project utilizing DC 5v 2-Channel Relay in a practical application
Battery-Powered 4-Channel Relay Control with LED Indicators
This circuit consists of a 5V battery powering a 4-channel relay module, which controls four LEDs (red, yellow, green, and blue) through individual resistors. Each relay channel is activated by a corresponding SPST toggle switch, allowing manual control of the LEDs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of esp: A project utilizing DC 5v 2-Channel Relay in a practical application
ESP32 Wi-Fi Controlled Dual Relay Module
This circuit features an ESP32 microcontroller connected to a two-channel 5V relay module. The ESP32 controls the relay channels via its GPIO pins D23 and D22, allowing it to switch external devices on and off. The relay module is powered by the 3.3V and GND pins of the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of h: A project utilizing DC 5v 2-Channel Relay in a practical application
DC Motor Control Using 1-Channel Relay and DC Power Source
This circuit controls a DC motor using a 1-channel relay. The relay is powered by a DC power source, and it switches the motor on and off by connecting or disconnecting the motor's power supply.
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
  • Security systems (e.g., activating alarms or locks)

Technical Specifications

Key Technical Details

Parameter Specification
Operating Voltage 5V DC
Trigger Voltage 3.3V to 5V DC
Relay Channels 2
Maximum Load (AC) 250V AC at 10A
Maximum Load (DC) 30V DC at 10A
Isolation Optocoupler isolation
Dimensions ~50mm x 40mm x 18mm
Indicator LEDs Power LED and channel status LEDs

Pin Configuration and Descriptions

Input Pins

Pin Name Description
VCC Connect to 5V DC power supply.
GND Ground connection.
IN1 Control signal for Relay 1. Active LOW (0V triggers the relay).
IN2 Control signal for Relay 2. Active LOW (0V triggers the relay).

Output Terminals (for each relay channel)

Terminal Name Description
COM Common terminal for the relay. Connect to the power source or load.
NO Normally Open terminal. Connect to the load for default OFF state.
NC Normally Closed terminal. Connect to the load 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 ground.
  2. Connect Control Signals: Use IN1 and IN2 pins to control the relays. These pins can be connected to a microcontroller's GPIO pins or any other control circuit.
  3. Connect the Load:
    • For devices that should remain OFF by default, connect them between the COM and NO terminals.
    • For devices that should remain ON by default, connect them between the COM and NC terminals.
  4. Trigger the Relays: Send a LOW signal (0V) to IN1 or IN2 to activate the corresponding relay. A HIGH signal (5V) will deactivate the relay.

Important Considerations and Best Practices

  • Isolation: The module uses optocouplers for isolation, ensuring safe operation when controlling high-voltage devices.
  • Power Supply: Ensure the power supply can provide sufficient current for the relays (typically ~70mA per relay when active).
  • Load Ratings: Do not exceed the maximum load ratings (250V AC/10A or 30V DC/10A) to avoid damage or hazards.
  • Flyback Diodes: If controlling inductive loads (e.g., motors), use flyback diodes across the load to protect the relay from voltage spikes.
  • Arduino Compatibility: The module is compatible with 3.3V and 5V logic levels, making it suitable for Arduino and other microcontrollers.

Example Arduino Code

// Example code to control a DC 5V 2-Channel Relay with an Arduino UNO

// Define the relay control pins
#define RELAY1 7  // Pin connected to IN1
#define RELAY2 8  // Pin connected to IN2

void setup() {
  // Set relay pins as outputs
  pinMode(RELAY1, OUTPUT);
  pinMode(RELAY2, OUTPUT);

  // Initialize relays to OFF state
  digitalWrite(RELAY1, HIGH); // HIGH = relay off
  digitalWrite(RELAY2, HIGH); // HIGH = relay off
}

void loop() {
  // Turn Relay 1 ON
  digitalWrite(RELAY1, LOW); // LOW = relay on
  delay(1000);               // Wait for 1 second

  // Turn Relay 1 OFF
  digitalWrite(RELAY1, HIGH); // HIGH = relay off
  delay(1000);                // Wait for 1 second

  // Turn Relay 2 ON
  digitalWrite(RELAY2, LOW); // LOW = relay on
  delay(1000);               // Wait for 1 second

  // Turn Relay 2 OFF
  digitalWrite(RELAY2, HIGH); // HIGH = relay off
  delay(1000);                // Wait for 1 second
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relays Not Activating:

    • Ensure the VCC and GND pins are properly connected to a 5V power source.
    • Verify that the control signals (IN1/IN2) are being set to LOW (0V) to activate the relays.
    • Check the power supply's current rating; it should be sufficient to drive the relays.
  2. Load Not Switching:

    • Confirm that the load is correctly connected to the COM and NO/NC terminals.
    • Verify that the load does not exceed the relay's maximum ratings.
  3. Interference or Noise:

    • Use proper grounding and shielding to minimize electrical noise.
    • Add a capacitor across the relay's power supply terminals to filter noise.
  4. Relay Stuck or Not Releasing:

    • Check for mechanical damage or wear on the relay.
    • For inductive loads, ensure flyback diodes are installed to prevent voltage spikes.

FAQs

Q: Can I use this module with a 3.3V microcontroller?
A: Yes, the module is compatible with 3.3V logic levels, but ensure the VCC pin is powered with 5V.

Q: Is it safe to control high-voltage AC devices with this module?
A: Yes, but always follow proper safety precautions and ensure the load does not exceed the relay's ratings.

Q: Can I control both relays simultaneously?
A: Yes, you can activate both relays at the same time by sending LOW signals to both IN1 and IN2.

Q: What happens if I reverse the VCC and GND connections?
A: Reversing the power connections can damage the module. Always double-check your wiring before powering the circuit.