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

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

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

Introduction

The Relay 4 Channel 5V module 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 IoT projects. Its ability to interface with microcontrollers like Arduino, Raspberry Pi, and other logic-level devices makes it a versatile choice for controlling lights, motors, fans, and other appliances.

Explore Projects Built with Relay 4 Channel 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 Relay 4 Channel 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 Relay 4 Channel 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
Arduino UNO Controlled Smart Lighting System with Relay and Micro Switches
Image of sketch: A project utilizing Relay 4 Channel 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
ESP32-Controlled 4-Channel Relay Module
Image of wifi esp32: A project utilizing Relay 4 Channel 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

Explore Projects Built with Relay 4 Channel 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 Relay 4 Channel 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 Relay 4 Channel 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 sketch: A project utilizing Relay 4 Channel 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
Image of wifi esp32: A project utilizing Relay 4 Channel 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

Common Applications

  • Home automation systems (e.g., controlling lights, fans, or appliances)
  • Industrial equipment control
  • IoT projects for remote device management
  • Robotics and motor control
  • Security systems (e.g., activating alarms or locks)

Technical Specifications

Key Technical Details

  • Operating Voltage: 5V DC
  • Trigger Voltage: 3.3V to 5V (logic-level compatible)
  • Relay Channels: 4 (independent)
  • Relay Type: SPDT (Single Pole Double Throw)
  • Maximum Load (per relay):
    • AC: 250V at 10A
    • DC: 30V at 10A
  • Isolation: Optocoupler isolation for each channel
  • Indicator LEDs: One LED per relay to indicate activation
  • Dimensions: Approximately 75mm x 55mm x 20mm

Pin Configuration and Descriptions

The Relay 4 Channel 5V module has two main interfaces: the input control pins and the relay output terminals.

Input Control Pins

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

Relay Output Terminals

Each relay has three output terminals:

Terminal Description
COM Common terminal for the relay
NO Normally Open terminal (connected to COM when active)
NC Normally Closed terminal (connected to COM when inactive)

Usage Instructions

How to Use the Component 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 digital output pins from a microcontroller (e.g., Arduino) to control the IN1, IN2, IN3, and IN4 pins. A LOW signal activates the corresponding relay.
  3. Connect the Load: For each relay, connect the device you want to control to the COM and NO or NC terminals, depending on whether you want the device to be normally off or on.
  4. Activate the Relays: Send LOW signals to the input pins to activate the relays and control the connected devices.

Important Considerations and Best Practices

  • Isolation: Ensure proper electrical isolation between the high-voltage side (relay outputs) and the low-voltage control side to avoid damage to your microcontroller.
  • Power Supply: Use a stable 5V power supply to avoid erratic relay behavior.
  • Inductive Loads: When controlling inductive loads (e.g., motors), use a flyback diode across the load to protect the relay from voltage spikes.
  • Active LOW Logic: Remember that the relays are activated by a LOW signal on the input pins.

Example: Connecting to an Arduino UNO

Below is an example of how to control the Relay 4 Channel 5V 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 IN1, IN2, IN3, and IN4 to Arduino digital pins 7, 6, 5, and 4, respectively.
  • Connect a load (e.g., a light bulb) to the COM and NO terminals of one relay.

Arduino Code

// Define relay control pins
#define RELAY1 7  // Pin connected to IN1
#define RELAY2 6  // Pin connected to IN2
#define RELAY3 5  // Pin connected to IN3
#define RELAY4 4  // 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 (HIGH state)
  digitalWrite(RELAY1, HIGH);
  digitalWrite(RELAY2, HIGH);
  digitalWrite(RELAY3, HIGH);
  digitalWrite(RELAY4, HIGH);
}

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

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

  // Repeat for other relays as needed
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relays Not Activating:

    • Cause: Insufficient power supply.
    • Solution: Ensure the module is powered with a stable 5V DC source.
  2. Erratic Relay Behavior:

    • Cause: Electrical noise or unstable control signals.
    • Solution: Use decoupling capacitors near the power supply and ensure proper grounding.
  3. Microcontroller Resetting:

    • Cause: High current draw from the relays.
    • Solution: Use an external power supply for the relay module instead of powering it directly from the microcontroller.
  4. Load Not Switching:

    • Cause: Incorrect wiring of the load to the relay terminals.
    • Solution: Double-check the connections to the COM, NO, and NC terminals.

FAQs

Q: Can I use this module with a 3.3V microcontroller?
A: Yes, the module is compatible with 3.3V logic levels, but ensure the VCC pin is still powered with 5V.

Q: Can I control DC motors with this module?
A: Yes, but for inductive loads like motors, use a flyback diode to protect the relay from voltage spikes.

Q: What is the maximum current the relays can handle?
A: Each relay can handle up to 10A at 250V AC or 30V DC. Ensure your load does not exceed these ratings.