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

How to Use 4 Channel Relay 5v: Examples, Pinouts, and Specs

Image of 4 Channel Relay 5vDesign with 4 Channel Relay 5v in Cirkit Designer

Introduction

The Keyestudio XC4441 4 Channel Relay Module is a versatile electronic component designed to control up to four independent circuits using a 5V signal. It acts as an interface between low-power control systems, such as microcontrollers, and high-power devices, enabling safe and efficient switching of high voltage or high current loads. This module is widely used in home automation, industrial control systems, and robotics.

Explore Projects Built with 4 Channel Relay 5v

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 4-Channel Relay Module: A project utilizing 4 Channel Relay 5v in a practical application
ESP32-Controlled 4-Channel Relay Module

This circuit connects an ESP32 microcontroller to a 4-channel 5V relay module. The ESP32's digital pins (D19, D21, D22, D23) are used to control the relay channels (IN1, IN2, IN3, IN4) respectively. The circuit is designed to allow the ESP32 to switch external devices on and off via the relay module.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

The module has two main interfaces: the control pins and the relay output terminals.

Control Pins

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

Relay Output Terminals

Each relay has three output terminals:
| Terminal | Name | Description | |--------------|------------|---------------------------------------------------------------------------------| | 1 | COM | Common terminal for the relay | | 2 | NO | Normally Open terminal (connected to COM when the relay is activated) | | 3 | NC | Normally Closed terminal (connected to COM when the relay is not activated) |

Usage Instructions

How to Use the Component 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 all four relays.
  2. Connect Control Signals: Use digital output pins from a microcontroller (e.g., Arduino UNO) to control the IN1, IN2, IN3, and IN4 pins. A LOW signal activates the corresponding relay.
  3. Connect the Load: Wire the high voltage or high current load to the relay output terminals (COM, NO, NC) as per your switching requirements.
  4. Test the Circuit: Verify the connections and test the relays by toggling the control signals.

Important Considerations and Best Practices

Example: Connecting to an Arduino UNO

Below is an example of how to control the 4 Channel Relay Module using an Arduino UNO:

// Example code to control a 4 Channel Relay Module with Arduino UNO
// Ensure the relay module is powered with 5V and connected to GND

// Define the control pins for the relays
#define RELAY1 2  // Relay 1 connected to digital pin 2
#define RELAY2 3  // Relay 2 connected to digital pin 3
#define RELAY3 4  // Relay 3 connected to digital pin 4
#define RELAY4 5  // Relay 4 connected to digital pin 5

void setup() {
  // Set relay control pins as outputs
  pinMode(RELAY1, OUTPUT);
  pinMode(RELAY2, OUTPUT);
  pinMode(RELAY3, OUTPUT);
  pinMode(RELAY4, OUTPUT);

  // Initialize all relays to OFF (HIGH state)
  digitalWrite(RELAY1, HIGH);
  digitalWrite(RELAY2, HIGH);
  digitalWrite(RELAY3, HIGH);
  digitalWrite(RELAY4, HIGH);
}

void loop() {
  // Example sequence to toggle relays ON and OFF
  digitalWrite(RELAY1, LOW);  // Turn ON Relay 1
  delay(1000);               // Wait for 1 second
  digitalWrite(RELAY1, HIGH); // Turn OFF Relay 1

  digitalWrite(RELAY2, LOW);  // Turn ON Relay 2
  delay(1000);               // Wait for 1 second
  digitalWrite(RELAY2, HIGH); // Turn OFF Relay 2

  digitalWrite(RELAY3, LOW);  // Turn ON Relay 3
  delay(1000);               // Wait for 1 second
  digitalWrite(RELAY3, HIGH); // Turn OFF Relay 3

  digitalWrite(RELAY4, LOW);  // Turn ON Relay 4
  delay(1000);               // Wait for 1 second
  digitalWrite(RELAY4, HIGH); // Turn OFF Relay 4
}

Troubleshooting and FAQs

Common Issues

  1. Relays Not Activating:

    • Ensure the module is powered with a stable 5V supply.
    • Verify the control signals are correctly connected and configured as LOW to activate the relays.
    • Check for loose or incorrect wiring.
  2. Erratic Relay Behavior:

    • Use a decoupling capacitor near the power supply pins to reduce electrical noise.
    • Ensure the power supply can handle the current requirements of all four relays.
  3. Load Not Switching:

    • Verify the load connections to the relay output terminals (COM, NO, NC).
    • Ensure the load does not exceed the relay's maximum ratings.

FAQs

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

Q2: Can I control AC and DC loads simultaneously?
A2: Yes, each relay is independent, so you can control a mix of AC and DC loads as long as the ratings are not exceeded.

Q3: What precautions should I take when working with high voltage?
A3: Always disconnect power before making changes to the circuit. Use proper insulation and avoid touching exposed wires.