Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

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

Image of 2 Channel RelayDesign with 2 Channel Relay in Cirkit Designer

Introduction

A 2 Channel Relay is an electromechanical switch that allows control of two separate circuits using a single control signal. It is widely used in applications where high voltage or high current loads need to be controlled by low-power control signals. The relay provides electrical isolation between the control circuit and the load, ensuring safety and reliability.

Explore Projects Built with 2 Channel Relay

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 ESP32-Controlled Dual Relay Module: A project utilizing 2 Channel Relay 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.

Open Project in Cirkit Designer
Image of Arduino UNO Based Voltage Monitoring and Relay Control System: A project utilizing 2 Channel Relay in a practical application
Arduino UNO Based Voltage Monitoring and Relay Control System

This circuit features an Arduino UNO connected to two voltage sensors and a 2-channel relay module. The Arduino monitors voltage levels through analog inputs A0 and A1, which are connected to the outputs of the voltage sensors. It controls the relay module via digital outputs D13 and D12, which are connected to the relay inputs IN1 and IN2, respectively, allowing the Arduino to switch external circuits on and off based on the voltage sensor readings.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

The 2 Channel Relay module typically has the following pin configuration:

Control Side (Input Pins)

Pin Name Description
VCC Power supply for the relay module (5V DC).
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.

Load Side (Output Terminals)

Terminal Name Description
COM1 Common terminal for Relay 1.
NO1 Normally Open terminal for Relay 1. Connected to COM1 when relay is ON.
NC1 Normally Closed terminal for Relay 1. Connected to COM1 when relay is OFF.
COM2 Common terminal for Relay 2.
NO2 Normally Open terminal for Relay 2. Connected to COM2 when relay is ON.
NC2 Normally Closed terminal for Relay 2. Connected to COM2 when relay is OFF.

Usage Instructions

How to Use the 2 Channel Relay in a Circuit

  1. Power the Relay Module:

    • Connect the VCC pin to a 5V DC power source.
    • Connect the GND pin to the ground of the power source.
  2. Connect the Control Signals:

    • Connect the IN1 and IN2 pins to the digital output pins of a microcontroller (e.g., Arduino).
    • Ensure the control signals are within the operating voltage range (3.3V to 5V).
  3. Connect the Load:

    • For each relay channel, connect the load to the COM and NO/NC terminals based on your requirements:
      • Use the NO terminal if the load should be OFF by default and turn ON when the relay is activated.
      • Use the NC terminal if the load should be ON by default and turn OFF when the relay is activated.
  4. Control the Relays:

    • Send a HIGH signal to IN1 or IN2 to activate the corresponding relay and switch the load.

Important Considerations and Best Practices

Example Code for Arduino UNO

// Example code to control a 2 Channel Relay with Arduino UNO
// Relay 1 is connected to pin 7, and Relay 2 is connected to pin 8

#define RELAY1 7  // Define pin for Relay 1
#define RELAY2 8  // Define pin for Relay 2

void setup() {
  pinMode(RELAY1, OUTPUT); // Set Relay 1 pin as output
  pinMode(RELAY2, OUTPUT); // Set Relay 2 pin as output

  // Initialize relays to OFF state
  digitalWrite(RELAY1, LOW); // Ensure Relay 1 is OFF
  digitalWrite(RELAY2, LOW); // Ensure Relay 2 is OFF
}

void loop() {
  // Turn Relay 1 ON and Relay 2 OFF
  digitalWrite(RELAY1, HIGH); // Activate Relay 1
  digitalWrite(RELAY2, LOW);  // Deactivate Relay 2
  delay(2000); // Wait for 2 seconds

  // Turn Relay 1 OFF and Relay 2 ON
  digitalWrite(RELAY1, LOW);  // Deactivate Relay 1
  digitalWrite(RELAY2, HIGH); // Activate Relay 2
  delay(2000); // Wait for 2 seconds
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Activating:

    • Cause: Insufficient control signal voltage.
    • Solution: Ensure the control signal voltage is within the required range (3.3V to 5V).
  2. Load Not Switching:

    • Cause: Incorrect wiring of the load terminals.
    • Solution: Verify the connections to the COM, NO, and NC terminals.
  3. Relay Clicking Noise:

    • Cause: Unstable power supply or noisy control signals.
    • Solution: Use a stable power source and add decoupling capacitors if necessary.
  4. Overheating:

    • Cause: Exceeding the maximum load ratings.
    • Solution: Ensure the load does not exceed 10A at 250V AC or 30V DC.

FAQs