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

How to Use 5V 4 Channels Relay Module: Examples, Pinouts, and Specs

Image of 5V 4 Channels Relay Module
Cirkit Designer LogoDesign with 5V 4 Channels Relay Module in Cirkit Designer

Introduction

The 5V 4 Channels Relay Module (Manufacturer: SunFounder, Part ID: 520141421286) is an electronic component designed to control high-voltage devices using low-voltage signals. It features four independent relays, each capable of switching AC or DC loads. This module is widely used in home automation, industrial control systems, and DIY projects where electrical isolation and high-power switching are required.

Explore Projects Built with 5V 4 Channels 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!
DC-DC Converter and Relay Module Power Distribution System
Image of relay: A project utilizing 5V 4 Channels Relay Module in a practical application
This circuit consists of a DC-DC converter powering a 6-channel power module, which in turn supplies 5V to a 2-relay module. The power module distributes the converted voltage to the relay module, enabling it to control external devices.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered 4-Channel Relay Control with LED Indicators
Image of RELLAY BOARD TEST: A project utilizing 5V 4 Channels Relay Module 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 5V 4 Channels Relay Module 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
Arduino-Controlled Relay Switch with Pushbutton Activation
Image of 4-Channel Relay Demo: A project utilizing 5V 4 Channels Relay Module in a practical application
This circuit utilizes a 4-channel relay module controlled by an Arduino UNO, allowing for the switching of multiple devices based on input from several pushbuttons. Each pushbutton can activate a corresponding relay channel, which can be used to control various loads, while LEDs provide visual feedback for the relay states.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 5V 4 Channels 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 relay: A project utilizing 5V 4 Channels Relay Module in a practical application
DC-DC Converter and Relay Module Power Distribution System
This circuit consists of a DC-DC converter powering a 6-channel power module, which in turn supplies 5V to a 2-relay module. The power module distributes the converted voltage to the relay module, enabling it to control external devices.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of RELLAY BOARD TEST: A project utilizing 5V 4 Channels Relay Module 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 5V 4 Channels Relay Module 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 4-Channel Relay Demo: A project utilizing 5V 4 Channels Relay Module in a practical application
Arduino-Controlled Relay Switch with Pushbutton Activation
This circuit utilizes a 4-channel relay module controlled by an Arduino UNO, allowing for the switching of multiple devices based on input from several pushbuttons. Each pushbutton can activate a corresponding relay channel, which can be used to control various loads, while LEDs provide visual feedback for the relay states.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Home automation (e.g., controlling lights, fans, or appliances)
  • Industrial equipment control
  • Robotics and IoT projects
  • Smart home systems
  • Motor and pump control

Technical Specifications

The following table outlines the key technical details of the 5V 4 Channels Relay Module:

Parameter Specification
Operating Voltage 5V DC
Trigger Voltage 5V DC (Low-level trigger)
Relay Channels 4
Maximum Load (AC) 250V AC @ 10A
Maximum Load (DC) 30V DC @ 10A
Isolation Optocoupler isolation
Dimensions 75mm x 55mm x 19mm
Weight ~60g

Pin Configuration and Descriptions

The module has two sets of pins: Input Pins for control signals and Output Terminals for connecting the load. Below is the pin configuration:

Input Pins

Pin Label Description
1 VCC 5V DC power supply for the module
2 GND Ground connection
3 IN1 Control signal for Relay 1 (Active Low)
4 IN2 Control signal for Relay 2 (Active Low)
5 IN3 Control signal for Relay 3 (Active Low)
6 IN4 Control signal for Relay 4 (Active Low)

Output Terminals (for each relay)

Terminal Label Description
1 COM Common terminal
2 NO Normally Open terminal
3 NC Normally Closed terminal
  • COM: Connects to the common point of the relay.
  • NO: Normally open; connects to COM when the relay is activated.
  • NC: Normally closed; connects to COM when the relay is deactivated.

Usage Instructions

How to Use the Module in a Circuit

  1. Power the Module: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
  2. Connect Control Signals: Use a microcontroller (e.g., Arduino UNO) to send control signals to the IN1–IN4 pins. A LOW signal activates the corresponding relay.
  3. Connect the Load:
    • For each relay, connect the load to the COM and NO terminals if you want the load to be off by default and turn on when the relay is activated.
    • Use the COM and NC terminals if you want the load to be on by default and turn off when the relay is activated.
  4. Ensure Electrical Isolation: The module uses optocouplers for isolation, but ensure proper grounding and separation between the low-voltage and high-voltage sides.

Example: Connecting to an Arduino UNO

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

Circuit Connections

  • Connect the module's VCC to the Arduino's 5V pin.
  • Connect the module's GND to the Arduino's GND pin.
  • Connect the module's IN1, IN2, IN3, and IN4 to Arduino digital pins (e.g., D2, D3, D4, D5).

Arduino Code

// Define relay control pins
#define RELAY1 2  // Pin connected to IN1
#define RELAY2 3  // Pin connected to IN2
#define RELAY3 4  // Pin connected to IN3
#define RELAY4 5  // Pin connected to IN4

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

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

void loop() {
  // Example: Turn relays ON and OFF with a delay
  digitalWrite(RELAY1, LOW);  // Turn Relay 1 ON
  delay(1000);                // Wait 1 second
  digitalWrite(RELAY1, HIGH); // Turn Relay 1 OFF
  delay(1000);                // Wait 1 second

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

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

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

Important Considerations and Best Practices

  • Power Supply: Ensure the module is powered with a stable 5V DC supply.
  • Load Ratings: Do not exceed the maximum load ratings (250V AC @ 10A or 30V DC @ 10A).
  • Isolation: Maintain proper isolation between the low-voltage control side and the high-voltage load side to prevent damage or hazards.
  • Active Low Trigger: Remember that the relays are activated by a LOW signal.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relays Not Activating:

    • Ensure the module is powered with 5V DC.
    • Verify that the control signals (IN1–IN4) are correctly connected and set to LOW to activate the relays.
    • Check for loose or incorrect wiring.
  2. Load Not Switching:

    • Confirm that the load is properly connected to the COM and NO/NC terminals.
    • Verify that the load does not exceed the relay's maximum ratings.
  3. Module Overheating:

    • Ensure the load current does not exceed 10A.
    • Use proper heat dissipation methods if the module is used for extended periods.
  4. Interference with Microcontroller:

    • Use separate power supplies for the relay module and the microcontroller if interference occurs.
    • Add decoupling capacitors to stabilize the power supply.

FAQs

Q1: Can I use this module with a 3.3V microcontroller?
A1: No, the module requires a 5V control signal. Use a level shifter or transistor circuit to interface with 3.3V microcontrollers.

Q2: Can I control all four relays simultaneously?
A2: Yes, you can activate all four relays at the same time, provided the power supply can handle the current draw.

Q3: Is the module safe for high-voltage applications?
A3: Yes, the module is designed for high-voltage applications, but proper precautions must be taken to ensure safety and compliance with local regulations.

Q4: What is the purpose of the optocouplers?
A4: The optocouplers provide electrical isolation between the control side (low voltage) and the load side (high voltage), enhancing safety and preventing damage to the microcontroller.