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

How to Use Two Channel Relay 5v: Examples, Pinouts, and Specs

Image of Two Channel Relay 5v
Cirkit Designer LogoDesign with Two Channel Relay 5v in Cirkit Designer

Introduction

A two-channel relay is an electromechanical device that allows for the control of two separate circuits by a low-power signal. The 5V two-channel relay is particularly suitable for use with microcontrollers like the Arduino UNO, where it can be used to switch higher power loads than the microcontroller can handle directly. Common applications include home automation, such as controlling lights, motors, and other household appliances.

Explore Projects Built with Two 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!
Battery-Powered 4-Channel Relay Control with LED Indicators
Image of RELLAY BOARD TEST: A project utilizing Two 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 Two 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 Two 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
DC-DC Converter and Relay Module Power Distribution System
Image of relay: A project utilizing Two 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

Explore Projects Built with Two 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 RELLAY BOARD TEST: A project utilizing Two 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 Two 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 Two 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
Image of relay: A project utilizing Two 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

Technical Specifications

Key Technical Details

  • Operating Voltage: 5V DC
  • Trigger Voltage: 0 - 1.5V (Low Trigger), 2.5 - 5V (High Trigger)
  • Max Switching Voltage: 250V AC / 30V DC
  • Max Switching Current: 10A AC / 10A DC
  • Control Signal: TTL level from microcontrollers
  • Isolation: Opto-isolated inputs

Pin Configuration and Descriptions

Pin Number Description Notes
1 VCC 5V power supply to the relay
2 GND Ground
3 IN1 Input signal for Relay 1
4 IN2 Input signal for Relay 2
5 COM1 Common pin for Relay 1
6 NO1 Normally Open pin for Relay 1
7 NC1 Normally Closed pin for Relay 1
8 COM2 Common pin for Relay 2
9 NO2 Normally Open pin for Relay 2
10 NC2 Normally Closed pin for Relay 2

Usage Instructions

How to Use the Component in a Circuit

  1. Powering the Relay:

    • Connect the VCC pin to a 5V power supply.
    • Connect the GND pin to the ground of the power supply.
  2. Connecting the Control Signal:

    • Connect IN1 and IN2 to digital outputs on your microcontroller.
  3. Connecting the Load:

    • For each channel, connect the common (COM) pin to the power source for your load.
    • Connect the Normally Open (NO) pin to the load if you want the load to be powered when the relay is activated.
    • Connect the Normally Closed (NC) pin to the load if you want the load to be powered when the relay is not activated.

Important Considerations and Best Practices

  • Ensure that the power ratings of the load do not exceed the relay's maximum switching voltage and current.
  • Use flyback diodes when controlling inductive loads to prevent back EMF damage.
  • Keep the control signal wires as short as possible to minimize interference.
  • Do not touch the relay module when it is in operation.

Example Code for Arduino UNO

// Define relay control pins
const int relayPin1 = 2;
const int relayPin2 = 3;

void setup() {
  // Set relay pins as output
  pinMode(relayPin1, OUTPUT);
  pinMode(relayPin2, OUTPUT);
}

void loop() {
  // Turn on Relay 1
  digitalWrite(relayPin1, HIGH);
  delay(1000); // Wait for 1 second
  
  // Turn off Relay 1
  digitalWrite(relayPin1, LOW);
  delay(1000); // Wait for 1 second
  
  // Turn on Relay 2
  digitalWrite(relayPin2, HIGH);
  delay(1000); // Wait for 1 second
  
  // Turn off Relay 2
  digitalWrite(relayPin2, LOW);
  delay(1000); // Wait for 1 second
}

Troubleshooting and FAQs

Common Issues

  • Relay does not switch: Check the control signal and power connections.
  • Intermittent operation: Ensure solid connections and that the power supply is stable.
  • Clicking sound but no action: Verify that the load does not exceed the relay's ratings.

Solutions and Tips for Troubleshooting

  • Double-check wiring against the pin configuration table.
  • Use a multimeter to verify the presence of the control signal.
  • Ensure the power supply can deliver sufficient current for both the relay and the load.

FAQs

Q: Can I use this relay with a 3.3V microcontroller? A: Yes, but ensure that the trigger voltage threshold is met for reliable operation.

Q: Is it necessary to use an external power supply? A: It is recommended if the load requires more current than the microcontroller can provide.

Q: Can I control the relay with PWM? A: No, the relay requires a steady high or low signal to switch states.