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

How to Use 2-channel relay module: Examples, Pinouts, and Specs

Image of 2-channel relay moduleDesign with 2-channel relay module in Cirkit Designer

Introduction

The 2-Channel Relay Module by Michael Faraday 1830 is a versatile electronic component designed to control two independent circuits using a single microcontroller or switch. Each relay on the module acts as an electrically operated switch, allowing you to control high-voltage devices (such as lights, fans, or appliances) safely and efficiently.

This module is ideal for applications where isolation between the control circuit and the high-power circuit is required. It is commonly used in home automation, industrial control systems, and IoT projects.

Explore Projects Built with 2-channel relay module

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 Arduino UNO Based Voltage Monitoring and Relay Control System: A project utilizing 2-channel relay module 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:


Technical Specifications

Key Technical Details:

Pin Configuration and Descriptions:

The 2-channel relay module has two sets of pins: Input Pins for control signals and Relay Output Terminals for connecting the load.

Input Pins:

Pin Name Description
VCC Connect to the 5V power supply (from microcontroller or external source).
GND Ground connection.
IN1 Control signal for Relay 1. A HIGH signal activates Relay 1.
IN2 Control signal for Relay 2. A HIGH signal activates Relay 2.

Relay Output Terminals:

Each relay has three output terminals: COM, NO, and NC.

Terminal Name Description
COM Common terminal. Connect to the power source or load.
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 2-Channel Relay Module in a Circuit:

  1. Power the Module:

    • Connect the VCC pin to a 5V power source and the GND pin to ground.
    • Ensure the power supply can provide sufficient current for the relays (typically ~70mA per relay when active).
  2. Connect the Control Signals:

    • Connect the IN1 and IN2 pins to the digital output pins of a microcontroller (e.g., Arduino UNO).
    • When the microcontroller sends a HIGH signal to IN1 or IN2, the corresponding relay will activate.
  3. Connect the Load:

    • Identify whether the load should be connected to the NO (Normally Open) or NC (Normally Closed) terminal.
    • Connect the power source for the load to the COM terminal.
    • Connect the load to either the NO or NC terminal, depending on the desired default state.
  4. Test the Circuit:

    • Power on the system and send control signals to the IN1 and IN2 pins to toggle the relays.
    • Verify that the connected loads are switching as expected.

Important Considerations and Best Practices:

Example: Connecting to an Arduino UNO

Below is an example of how to control the 2-channel relay module using an Arduino UNO:

Circuit Connections:

Arduino Code:

// Define the relay control pins
const int relay1 = 7; // Relay 1 control pin
const int relay2 = 8; // Relay 2 control pin

void setup() {
  // Set relay pins as outputs
  pinMode(relay1, OUTPUT);
  pinMode(relay2, OUTPUT);

  // Initialize relays to OFF state
  digitalWrite(relay1, LOW);
  digitalWrite(relay2, LOW);
}

void loop() {
  // Turn Relay 1 ON for 2 seconds
  digitalWrite(relay1, HIGH); // Activate Relay 1
  delay(2000);                // Wait for 2 seconds

  // Turn Relay 1 OFF
  digitalWrite(relay1, LOW);  // Deactivate Relay 1
  delay(1000);                // Wait for 1 second

  // Turn Relay 2 ON for 3 seconds
  digitalWrite(relay2, HIGH); // Activate Relay 2
  delay(3000);                // Wait for 3 seconds

  // Turn Relay 2 OFF
  digitalWrite(relay2, LOW);  // Deactivate Relay 2
  delay(1000);                // Wait for 1 second
}

Troubleshooting and FAQs

Common Issues:

  1. Relays Not Activating:

    • Cause: Insufficient power supply or incorrect wiring.
    • Solution: Ensure the module is powered with 5V and the control signals are HIGH.
  2. Load Not Switching:

    • Cause: Incorrect connection to the relay terminals.
    • Solution: Verify the load is connected to the correct terminals (COM, NO, or NC).
  3. Microcontroller Resetting:

    • Cause: Relays drawing too much current, causing voltage drops.
    • Solution: Use an external power supply for the relay module.
  4. Relay Clicking Noise:

    • Cause: Rapid switching of the control signal.
    • Solution: Add a delay in the control code to prevent rapid toggling.

FAQs:


This concludes the documentation for the 2-Channel Relay Module by Michael Faraday 1830.