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

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

Image of 4 Channel Relay 5v
Cirkit Designer LogoDesign 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!
Battery-Powered 4-Channel Relay Control with LED Indicators
Image of RELLAY BOARD TEST: A project utilizing 4 Channel Relay 5v 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
Wi-Fi Controlled Relay System Using ESP8266
Image of Smart House Automation: A project utilizing 4 Channel Relay 5v in a practical application
This circuit uses an ESP8266 microcontroller to control a 4-channel relay module, which can switch various loads. The ESP8266 is powered by a 12V DC supply converted from an AC source, and it interfaces with the relay module to control the relays via its digital output pins.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled 4-Channel Relay Module
Image of wifi esp32: A project utilizing 4 Channel Relay 5v in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Controlled Smart Lighting System with Relay and Micro Switches
Image of sketch: A project utilizing 4 Channel Relay 5v in a practical application
This circuit uses an Arduino UNO to control a 4-channel relay module, which in turn controls four bulbs. Each relay channel is connected to a bulb and can be toggled by corresponding micro switches, allowing for manual control of the bulbs.
Cirkit Designer LogoOpen Project in Cirkit Designer

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 RELLAY BOARD TEST: A project utilizing 4 Channel Relay 5v 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 Smart House Automation: A project utilizing 4 Channel Relay 5v in a practical application
Wi-Fi Controlled Relay System Using ESP8266
This circuit uses an ESP8266 microcontroller to control a 4-channel relay module, which can switch various loads. The ESP8266 is powered by a 12V DC supply converted from an AC source, and it interfaces with the relay module to control the relays via its digital output pins.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of wifi esp32: 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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of sketch: A project utilizing 4 Channel Relay 5v in a practical application
Arduino UNO Controlled Smart Lighting System with Relay and Micro Switches
This circuit uses an Arduino UNO to control a 4-channel relay module, which in turn controls four bulbs. Each relay channel is connected to a bulb and can be toggled by corresponding micro switches, allowing for manual control of the bulbs.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Home automation (e.g., controlling lights, fans, or appliances)
  • Industrial equipment control
  • Robotics and mechatronics
  • IoT (Internet of Things) projects
  • Switching high voltage AC or DC loads using low-power microcontrollers

Technical Specifications

Key Technical Details

  • Manufacturer: Keyestudio
  • Part ID: XC4441
  • Operating Voltage: 5V DC
  • Trigger Voltage: 3.3V to 5V (compatible with most microcontrollers)
  • Relay Type: SPDT (Single Pole Double Throw)
  • Maximum Load:
    • AC: 250V at 10A
    • DC: 30V at 10A
  • Isolation: Optocoupler isolation for safe operation
  • Dimensions: 75mm x 55mm x 19mm
  • Weight: ~60g

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

  • Isolation: The module uses optocouplers for isolation, but ensure proper grounding to avoid electrical noise or interference.
  • Power Supply: Use a stable 5V power source to prevent erratic relay behavior.
  • Load Ratings: Do not exceed the maximum load ratings (250V AC/10A or 30V DC/10A) to avoid damage.
  • Active LOW Logic: The relays are triggered by a LOW signal. Ensure your microcontroller logic accounts for this behavior.
  • Safety: When working with high voltage, take necessary precautions to avoid electric shock or short circuits.

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.