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

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

Image of RELAY 2CHANNEL 2Design 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!
Image of ESP32-Controlled Dual Relay Module: 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.

Open Project in Cirkit Designer

Common Applications:

Technical Specifications

Key Technical Details:

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:

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:

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.