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

How to Use Relay 2 channel: Examples, Pinouts, and Specs

Image of Relay 2 channel
Cirkit Designer LogoDesign with Relay 2 channel in Cirkit Designer

Introduction

The Relay 2 Channel module is an electronic component designed to control high-voltage devices using low-voltage signals. It features two independent relays, allowing users to switch two separate circuits. Each relay is opto-isolated, ensuring safety and protecting the low-voltage control side from potential high-voltage spikes. This module is widely used in home automation, industrial control systems, and remote control applications.

Common applications include:

  • Controlling lights, fans, or other household appliances.
  • Automating industrial equipment.
  • Interfacing with microcontrollers like Arduino or Raspberry Pi for IoT projects.

Explore Projects Built with Relay 2 channel

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 Relay 2 channel 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-Controlled Dual Relay Module
Image of ESP32 bluethooth with relay: A project utilizing Relay 2 channel 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
ESP32 Wi-Fi Controlled Dual Relay Module
Image of esp: A project utilizing Relay 2 channel 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
Battery-Powered 4-Channel Relay Control with LED Indicators
Image of RELLAY BOARD TEST: A project utilizing Relay 2 channel 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

Explore Projects Built with Relay 2 channel

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 Relay 2 channel 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 ESP32 bluethooth with relay: A project utilizing Relay 2 channel 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 esp: A project utilizing Relay 2 channel 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 RELLAY BOARD TEST: A project utilizing Relay 2 channel 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

Technical Specifications

The Relay 2 Channel module has the following key specifications:

Parameter Value
Operating Voltage 5V DC
Trigger Voltage 3.3V to 5V DC
Relay Type SPDT (Single Pole Double Throw)
Maximum Load (AC) 250V AC @ 10A
Maximum Load (DC) 30V DC @ 10A
Isolation Method Opto-isolation
Dimensions ~50mm x 40mm x 20mm

Pin Configuration and Descriptions

The module has two sets of pins: control pins and relay output terminals.

Control Pins

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

Relay Output Terminals (for each relay)

Terminal Name Description
1 COM Common terminal. Connect to the input of the circuit being controlled.
2 NO Normally Open terminal. Circuit is open when the relay is inactive.
3 NC Normally Closed terminal. Circuit is closed when the relay is inactive.

Usage Instructions

How to Use the Relay 2 Channel Module 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 the Control Signals: Use a microcontroller (e.g., Arduino) or other control device to send signals to the IN1 and IN2 pins. A LOW signal (0V) will activate the corresponding relay.
  3. Connect the Load:
    • For each relay, connect the device you want to control to the COM terminal.
    • Choose either the NO (Normally Open) or NC (Normally Closed) terminal based on your application:
      • Use NO if you want the circuit to be OFF by default and ON when the relay is activated.
      • Use NC if you want the circuit to be ON by default and OFF when the relay is activated.
  4. Test the Circuit: Once everything is connected, send control signals to the IN1 and IN2 pins to toggle the relays and control the connected devices.

Important Considerations and Best Practices

  • Isolation: Ensure proper isolation between the high-voltage and low-voltage sides to prevent damage or hazards.
  • Power Supply: Use a stable 5V DC power source 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 relays.
  • Active LOW Trigger: Remember that the relays are triggered by a LOW signal (0V). Sending a HIGH signal (5V) will deactivate the relay.

Example: Using the Relay 2 Channel Module with Arduino UNO

Below is an example code to control the Relay 2 Channel module using an Arduino UNO:

// Define the control pins for the relays
const int relay1Pin = 7; // Pin connected to IN1
const int relay2Pin = 8; // Pin connected to IN2

void setup() {
  // Set the relay pins as outputs
  pinMode(relay1Pin, OUTPUT);
  pinMode(relay2Pin, OUTPUT);

  // Initialize relays to OFF state (HIGH signal)
  digitalWrite(relay1Pin, HIGH);
  digitalWrite(relay2Pin, HIGH);
}

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

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

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

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

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relays Not Activating:

    • Cause: Insufficient power supply.

    • Solution: Ensure the VCC pin is connected to a stable 5V DC source.

    • Cause: Incorrect control signal.

    • Solution: Verify that the IN1 and IN2 pins are receiving a LOW signal (0V) to activate the relays.

  2. Erratic Relay Behavior:

    • Cause: Noise or interference in the power supply.
    • Solution: Use a decoupling capacitor (e.g., 100µF) across the VCC and GND pins.
  3. Load Not Switching Properly:

    • Cause: Exceeding the relay's load ratings.
    • Solution: Ensure the connected load does not exceed 250V AC @ 10A or 30V DC @ 10A.
  4. Microcontroller Resetting When Relay Activates:

    • Cause: Voltage spikes or back EMF from the relay.
    • Solution: Use a flyback diode across the relay coil or ensure proper grounding.

FAQs

Q1: Can I use the Relay 2 Channel module with a 3.3V microcontroller?
A1: Yes, the module can be triggered with 3.3V signals, but ensure the VCC pin is still powered with 5V DC.

Q2: Is it safe to control high-voltage devices with this module?
A2: Yes, the module is designed for high-voltage control, but always follow safety precautions and ensure proper isolation.

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

Q4: What happens if I connect the NO and NC terminals at the same time?
A4: This is not recommended as it may cause a short circuit or damage the relay. Always use either NO or NC, not both.