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, manufactured by 30A with part ID 5V, is a versatile electronic component designed to control high-voltage devices using low-voltage signals. This module is equipped with two independent relays, allowing users to switch two separate circuits. It is commonly used in applications such as home automation, industrial control systems, and remote device management. The module typically features opto-isolation for enhanced safety and reliability, making it suitable for both hobbyist and professional 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 following table outlines the key technical details of the Relay 2 Channel module:

Parameter Specification
Manufacturer 30A
Part ID 5V
Operating Voltage 5V DC
Trigger Voltage 3.3V to 5V DC
Relay Type Electromechanical
Maximum Load Voltage 250V AC / 30V DC
Maximum Load Current 10A
Channels 2
Isolation Type Opto-isolated
Dimensions ~50mm x 40mm x 20mm
Weight ~30g

Pin Configuration and Descriptions

The Relay 2 Channel module has the following pin configuration:

Input Pins (Control Side)

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

Output Pins (Relay Side)

Each relay has three output terminals:

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

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 the ground of your circuit.
  2. Control Signals: Use the IN1 and IN2 pins to control the relays. A LOW signal (0V) activates the corresponding relay, while a HIGH signal (5V) deactivates it.
  3. Connect the Load:
    • For devices that should be powered when the relay is activated, connect the load between the COM and NO terminals.
    • For devices that should be powered when the relay is deactivated, connect the load between the COM and NC terminals.
  4. Isolation: Ensure proper isolation between the control and load sides to prevent damage to your low-voltage control circuit.

Important Considerations and Best Practices

  • Power Supply: Use a stable 5V DC power source to avoid erratic relay behavior.
  • Load Ratings: Do not exceed the maximum load voltage (250V AC / 30V DC) or current (10A) to prevent damage to the relays.
  • Opto-Isolation: The module's opto-isolation enhances safety, but ensure proper grounding to avoid electrical noise.
  • Inductive Loads: When controlling inductive loads (e.g., motors), use a flyback diode across the load to suppress voltage spikes.

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 on Relay 1 (LOW signal)
  digitalWrite(relay1Pin, LOW);
  delay(1000); // Keep Relay 1 ON for 1 second

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

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

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

Troubleshooting and FAQs

Common Issues

  1. Relays Not Activating:

    • Ensure the VCC and GND pins are properly connected to a 5V DC power source.
    • Verify that the control signals (IN1 and IN2) are being correctly sent (LOW to activate, HIGH to deactivate).
  2. Erratic Relay Behavior:

    • Check for a stable power supply. Voltage fluctuations can cause the relays to behave unpredictably.
    • Ensure proper grounding between the control circuit and the relay module.
  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 voltage or current ratings.

FAQs

Q1: Can I use this 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. However, always follow proper safety precautions and ensure adequate isolation.

Q3: Can I control both AC and DC loads with this module?
A3: Yes, the relays can handle both AC (up to 250V) and DC (up to 30V) loads, provided the current does not exceed 10A.

Q4: What is the purpose of opto-isolation?
A4: Opto-isolation protects the low-voltage control circuit from high-voltage spikes or noise on the load side, enhancing safety and reliability.