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

How to Use 2 channel relay 5v: Examples, Pinouts, and Specs

Image of 2 channel relay 5v
Cirkit Designer LogoDesign with 2 channel relay 5v in Cirkit Designer

Introduction

The 2 Channel Relay 5V module is an electronic component designed to control two independent circuits using a low voltage 5V signal. It acts as an electrically operated switch, allowing a microcontroller or other low-power device to control high-power devices such as lights, motors, or appliances. This module is widely used in home automation, robotics, and industrial control systems.

Explore Projects Built with 2 channel relay 5v

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 2 channel relay 5v 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 2 channel relay 5v 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 2 channel relay 5v 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
ESP32-Controlled Dual Relay Module
Image of ESP32 bluethooth with relay: A project utilizing 2 channel relay 5v in a practical application
This circuit features an ESP32 microcontroller connected to a two-channel relay module. The ESP32's digital pins D25 and D26 are used to control the relay channels IN1 and IN2, respectively, allowing the microcontroller to switch external circuits on and off. The ESP32 and the relay module share a common ground and the ESP32's Vin pin supplies power to the relay's VCC, indicating that both operate at compatible voltage levels.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 2 channel relay 5v

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 2 channel relay 5v 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 2 channel relay 5v 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 2 channel relay 5v 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 ESP32 bluethooth with relay: A project utilizing 2 channel relay 5v in a practical application
ESP32-Controlled Dual Relay Module
This circuit features an ESP32 microcontroller connected to a two-channel relay module. The ESP32's digital pins D25 and D26 are used to control the relay channels IN1 and IN2, respectively, allowing the microcontroller to switch external circuits on and off. The ESP32 and the relay module share a common ground and the ESP32's Vin pin supplies power to the relay's VCC, indicating that both operate at compatible voltage levels.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Home automation systems (e.g., controlling lights or fans)
  • Industrial equipment control
  • Robotics and IoT projects
  • Switching high-voltage AC or DC loads using low-voltage control signals
  • Motor control in automation systems

Technical Specifications

Key Technical Details

  • Operating Voltage: 5V DC
  • Trigger Voltage: 3.3V to 5V (compatible with most microcontrollers)
  • Relay Type: SPDT (Single Pole Double Throw)
  • Maximum Load:
    • AC: 250V at 10A
    • DC: 30V at 10A
  • Channels: 2 (independent control for each relay)
  • Isolation: Optocoupler isolation for safe operation
  • Indicator LEDs: Onboard LEDs for relay status indication
  • Dimensions: ~50mm x 40mm x 20mm

Pin Configuration and Descriptions

Input Pins (Control Side)

Pin Name Description
VCC Connect to 5V power supply (powers the relay module).
GND Connect to ground of the power supply or microcontroller.
IN1 Control signal for Relay 1 (active LOW).
IN2 Control signal for Relay 2 (active LOW).

Output Pins (Load Side)

Each relay has three output terminals:

Terminal Name Description
COM Common terminal for the relay.
NO Normally Open terminal (disconnected from COM when the relay is inactive).
NC Normally Closed terminal (connected to COM when the relay is inactive).

Usage Instructions

How to Use the Component in a Circuit

  1. Power the Module: Connect the VCC pin to a 5V power source and the GND pin to ground.
  2. Connect the Control Signals:
    • Connect IN1 and IN2 to the digital output pins of a microcontroller (e.g., Arduino).
    • When the control signal is LOW (0V), the corresponding relay will activate.
  3. Connect the Load:
    • For each relay, connect the load to the COM and NO or NC terminals, depending on the desired behavior:
      • 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. Test the Circuit:
    • Use the microcontroller to send control signals to IN1 and IN2 to toggle the relays.
    • Observe the onboard LEDs to verify relay activation.

Important Considerations and Best Practices

  • Isolation: Ensure proper isolation between the control side (low voltage) and the load side (high voltage) to prevent damage or hazards.
  • Power Supply: Use a stable 5V power supply to avoid erratic relay behavior.
  • Load Ratings: Do not exceed the maximum load ratings (250V AC/10A or 30V DC/10A) to prevent damage to the relay.
  • Active LOW Logic: The relays are triggered by a LOW signal (0V). Ensure your microcontroller logic accounts for this.
  • Flyback Diodes: If controlling inductive loads (e.g., motors), use flyback diodes across the load to protect the relay from voltage spikes.

Example Code for Arduino UNO

// Example code to control a 2 Channel Relay 5V module with Arduino UNO

// Define the relay control pins
const int relay1 = 7; // Connect IN1 to digital pin 7
const int relay2 = 8; // Connect IN2 to digital pin 8

void setup() {
  // Set relay pins as outputs
  pinMode(relay1, OUTPUT);
  pinMode(relay2, OUTPUT);

  // Initialize relays to OFF state (HIGH signal)
  digitalWrite(relay1, HIGH);
  digitalWrite(relay2, HIGH);
}

void loop() {
  // Turn Relay 1 ON (LOW signal)
  digitalWrite(relay1, LOW);
  delay(1000); // Keep it ON for 1 second

  // Turn Relay 1 OFF (HIGH signal)
  digitalWrite(relay1, HIGH);
  delay(1000); // Keep it OFF for 1 second

  // Turn Relay 2 ON (LOW signal)
  digitalWrite(relay2, LOW);
  delay(1000); // Keep it ON for 1 second

  // Turn Relay 2 OFF (HIGH signal)
  digitalWrite(relay2, HIGH);
  delay(1000); // Keep it OFF 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 and IN2) are being correctly sent from the microcontroller.
    • Check if the onboard LEDs light up when the relays are triggered.
  2. Erratic Relay Behavior:

    • Use a stable and sufficient power supply for the relay module.
    • Ensure proper grounding between the relay module and the microcontroller.
  3. Load Not Switching:

    • Verify the wiring of the load to the COM, NO, and NC terminals.
    • Ensure the load does not exceed the relay's maximum ratings.
  4. Microcontroller Resetting:

    • High-power loads may cause voltage spikes. Use flyback diodes or snubber circuits to suppress these spikes.

FAQs

Q1: Can I use this module with a 3.3V microcontroller?
A1: Yes, the module is compatible with 3.3V control signals, but ensure the VCC pin is still powered with 5V.

Q2: Can I control AC and DC loads simultaneously?
A2: Yes, as long as each relay's load does not exceed the specified ratings.

Q3: Is it safe to use this module for high-voltage applications?
A3: Yes, but ensure proper isolation and follow safety precautions when working with high voltages.