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

How to Use RELAY 2CHANNEL 2: Examples, Pinouts, and Specs

Image of RELAY 2CHANNEL 2
Cirkit Designer LogoDesign with RELAY 2CHANNEL 2 in Cirkit Designer

Introduction

The RELAY 2CHANNEL 2 is a relay module with two independent channels, enabling the control of two separate circuits using a single control signal. This module is designed to interface with low-power control systems, such as microcontrollers, to switch high voltage or high current loads safely. It is widely used in automation, home appliances, industrial control systems, and DIY projects.

Explore Projects Built with RELAY 2CHANNEL 2

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 2CHANNEL 2 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 2CHANNEL 2 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
Battery-Powered 4-Channel Relay Control with LED Indicators
Image of RELLAY BOARD TEST: A project utilizing RELAY 2CHANNEL 2 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 RELAY 2CHANNEL 2 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

Explore Projects Built with RELAY 2CHANNEL 2

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 2CHANNEL 2 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 2CHANNEL 2 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 RELLAY BOARD TEST: A project utilizing RELAY 2CHANNEL 2 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 RELAY 2CHANNEL 2 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

Common Applications:

  • Home automation (e.g., controlling lights, fans, or appliances)
  • Industrial control systems
  • Robotics and IoT projects
  • Switching high-power devices using low-power control signals

Technical Specifications

Key Technical Details:

  • Operating Voltage: 5V DC
  • Trigger Voltage: 3.3V to 5V (compatible with most microcontrollers)
  • Relay Type: Electromechanical
  • Maximum Load (per channel):
    • AC: 250V at 10A
    • DC: 30V at 10A
  • Channels: 2
  • Isolation: Optocoupler isolation for safe operation
  • Dimensions: 50mm x 40mm x 18mm (approx.)
  • Indicator LEDs: Onboard LEDs for each channel to indicate relay status

Pin Configuration and Descriptions:

Input Pins:

Pin Name Description
VCC Connect to the 5V power supply. Powers the relay module.
GND Ground connection.
IN1 Control signal for Relay 1. A HIGH signal activates the relay.
IN2 Control signal for Relay 2. A HIGH signal activates the relay.

Output Terminals (for each channel):

Terminal Name Description
COM Common terminal. Connect to the load or power source.
NO Normally Open terminal. Connect to the load if it should be OFF by default.
NC Normally Closed terminal. Connect to the load if it should be ON by default.

Usage Instructions

How to Use the RELAY 2CHANNEL 2 in a Circuit:

  1. Power the Module:
    • Connect the VCC pin to a 5V DC power supply and the GND pin to the ground.
  2. Connect the Control Signals:
    • Connect the IN1 and IN2 pins to the digital output pins of a microcontroller (e.g., Arduino).
  3. Connect the Load:
    • For each channel, connect the load to the COM terminal and either the NO or NC terminal, depending on the desired default state of the load.
  4. Control the Relays:
    • Send a HIGH signal (3.3V or 5V) to the IN1 or IN2 pin to activate the corresponding relay and switch the load.

Important Considerations:

  • Ensure the load does not exceed the maximum current and voltage ratings of the relay.
  • Use proper insulation and safety precautions when working with high voltage or high current loads.
  • Avoid switching inductive loads (e.g., motors) without a flyback diode to prevent damage to the relay.

Example: Using RELAY 2CHANNEL 2 with Arduino UNO

Below is an example code to control two relays using an Arduino UNO:

// Define the pins connected to the relay module
const int relay1Pin = 7; // IN1 connected to digital pin 7
const int relay2Pin = 8; // IN2 connected to digital pin 8

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

  // Initialize relays to OFF state
  digitalWrite(relay1Pin, LOW); // Relay 1 OFF
  digitalWrite(relay2Pin, LOW); // Relay 2 OFF
}

void loop() {
  // Turn Relay 1 ON and Relay 2 OFF
  digitalWrite(relay1Pin, HIGH); // Relay 1 ON
  digitalWrite(relay2Pin, LOW);  // Relay 2 OFF
  delay(2000); // Wait for 2 seconds

  // Turn Relay 1 OFF and Relay 2 ON
  digitalWrite(relay1Pin, LOW);  // Relay 1 OFF
  digitalWrite(relay2Pin, HIGH); // Relay 2 ON
  delay(2000); // Wait for 2 seconds
}

Notes:

  • The onboard LEDs will light up when the corresponding relay is activated.
  • Use external power for the relay module if the microcontroller cannot supply sufficient current.

Troubleshooting and FAQs

Common Issues and Solutions:

  1. Relays Not Activating:

    • Ensure the VCC and GND pins are properly connected to a 5V power supply.
    • Verify that the control signals (IN1 and IN2) are receiving the correct voltage (3.3V to 5V).
  2. Load Not Switching:

    • Check the wiring of the load to the COM, NO, or NC terminals.
    • Confirm that the load does not exceed the relay's maximum ratings.
  3. Microcontroller Resetting:

    • The relay module may draw too much current. Use an external power supply for the relay module.
  4. Relay Clicking but No Load Switching:

    • Verify the load connections and ensure the load is functional.
    • Check for loose or incorrect wiring.

FAQs:

Q: Can I use this module with a 3.3V microcontroller like ESP32?
A: Yes, the module is compatible with 3.3V control signals, but ensure the VCC pin is powered with 5V.

Q: Can I control AC and DC loads simultaneously?
A: Yes, as long as each load is connected to a separate channel and does not exceed the relay's ratings.

Q: Do I need a flyback diode for inductive loads?
A: Yes, a flyback diode is recommended to protect the relay from voltage spikes caused by inductive loads.

Q: Can I use this module to control a motor?
A: Yes, but ensure the motor's current and voltage are within the relay's specifications, and use a flyback diode for protection.

This concludes the documentation for the RELAY 2CHANNEL 2 module.