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 low voltage signals. It operates at 5 volts and is widely used in automation projects, enabling the control of high voltage devices such as lights, fans, and appliances. This module acts as an interface between low-power microcontrollers (e.g., Arduino, Raspberry Pi) and high-power devices, ensuring safe and efficient switching.

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

  • Home automation systems
  • Industrial control systems
  • IoT projects
  • Robotics
  • Smart lighting and appliance control

Technical Specifications

The following table outlines the key technical details of the 2 Channel Relay 5V module:

Parameter Specification
Operating Voltage 5V DC
Trigger Voltage 3.3V to 5V DC
Relay Channels 2
Maximum Load (AC) 250V AC @ 10A
Maximum Load (DC) 30V DC @ 10A
Isolation Optocoupler isolation
Dimensions ~50mm x 40mm x 18mm
Indicator LEDs Yes (one per channel)
Control Signal Logic Active Low

Pin Configuration

The 2 Channel Relay 5V module has the following pin layout:

Input Pins

Pin Name Description
VCC Power supply input (5V DC)
GND Ground connection
IN1 Control signal for Relay 1 (Active Low)
IN2 Control signal for Relay 2 (Active Low)

Output Terminals (for each relay)

Terminal Name Description
COM Common terminal for the relay
NO Normally Open terminal (disconnected by default)
NC Normally Closed terminal (connected by default)

Usage Instructions

Connecting the Relay Module

  1. Power Supply: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
  2. Control Signals: Connect the IN1 and IN2 pins to the digital output pins of a microcontroller (e.g., Arduino).
  3. Load Connections:
    • For each relay, connect the device you want to control to the COM and NO/NC terminals.
    • Use the NO terminal if you want the device to be off by default and turn on when the relay is activated.
    • Use the NC terminal if you want the device to be on by default and turn off when the relay is activated.

Example Circuit with Arduino UNO

Below is an example of how to connect and control the 2 Channel Relay 5V 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 IN1 to Arduino digital pin 7.
  • Connect IN2 to Arduino digital pin 8.
  • Connect the load (e.g., a light bulb) to the relay's COM and NO terminals.

Arduino Code Example

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

// Define the relay control pins
const int relay1 = 7; // Relay 1 connected to digital pin 7
const int relay2 = 8; // Relay 2 connected to digital pin 8

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

  // Initialize relays to OFF state (HIGH for active-low logic)
  digitalWrite(relay1, HIGH);
  digitalWrite(relay2, HIGH);
}

void loop() {
  // Turn on Relay 1
  digitalWrite(relay1, LOW); // Active-low logic: LOW turns the relay ON
  delay(1000); // Wait for 1 second

  // Turn off Relay 1
  digitalWrite(relay1, HIGH); // HIGH turns the relay OFF
  delay(1000); // Wait for 1 second

  // Turn on Relay 2
  digitalWrite(relay2, LOW); // Active-low logic: LOW turns the relay ON
  delay(1000); // Wait for 1 second

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

Best Practices

  • Always use a separate power supply for the relay module if the load requires high current.
  • Ensure proper insulation and safety precautions when working with high voltage devices.
  • Use flyback diodes across inductive loads (e.g., motors) to protect the relay from voltage spikes.

Troubleshooting and FAQs

Common Issues

  1. Relay Not Switching:

    • Ensure the VCC and GND connections are secure.
    • Verify that the control signal voltage is within the specified range (3.3V to 5V).
    • Check if the relay module's indicator LEDs light up when activated.
  2. Load Not Responding:

    • Confirm that the load is properly connected to the COM and NO/NC terminals.
    • Check the load's power supply and ensure it is functioning correctly.
  3. Arduino Resets When Relay Activates:

    • This may occur due to insufficient power supply. Use a separate power source for the relay module.

FAQs

Q: Can I use this relay module with a 3.3V microcontroller?
A: Yes, the module supports control signals as low as 3.3V. However, ensure the VCC pin is still supplied with 5V.

Q: Is the relay module safe for high voltage applications?
A: Yes, the module is designed for high voltage loads (up to 250V AC or 30V DC). However, always follow proper safety guidelines when working with high voltage.

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 is the purpose of the optocoupler isolation?
A: The optocoupler provides electrical isolation between the control circuit (e.g., Arduino) and the high voltage load, protecting the microcontroller from potential damage.