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

How to Use Relay5V 4channel: Examples, Pinouts, and Specs

Image of Relay5V 4channel
Cirkit Designer LogoDesign with Relay5V 4channel in Cirkit Designer

Introduction

The Relay5V 4Channel module is a versatile electronic component designed to control high-voltage devices using low-voltage signals from a microcontroller. This module features four independent relays, each capable of switching devices such as lights, fans, or appliances. Operating at 5V, it is compatible with most microcontrollers, including Arduino, Raspberry Pi, and other development boards.

Explore Projects Built with Relay5V 4channel

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 Relay5V 4channel 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 Relay5V 4channel 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 Relay5V 4channel 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
Arduino UNO Controlled Smart Lighting System with Relay and Micro Switches
Image of sketch: A project utilizing Relay5V 4channel 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 Relay5V 4channel

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 Relay5V 4channel 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 Relay5V 4channel 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 Relay5V 4channel 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
Image of sketch: A project utilizing Relay5V 4channel 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 and Use Cases

  • Home automation systems (e.g., controlling lights, fans, or appliances)
  • Industrial automation for switching high-power devices
  • Robotics and IoT projects requiring control of multiple devices
  • Smart energy management systems

Technical Specifications

Key Technical Details

  • Operating Voltage: 5V DC
  • Trigger Voltage: 3.3V to 5V (logic level compatible)
  • Relay Type: Electromechanical
  • Maximum Load (per channel):
    • AC: 250V at 10A
    • DC: 30V at 10A
  • Number of Channels: 4
  • Isolation: Optocoupler isolation for each channel
  • Indicator LEDs: One LED per channel to indicate relay status
  • Dimensions: Approximately 75mm x 55mm x 20mm

Pin Configuration and Descriptions

Input Pins (Control Side)

Pin Name Description
VCC Connect to 5V power supply to power the module.
GND Connect to ground of the power supply.
IN1 Control signal for Relay 1 (HIGH to activate, LOW to deactivate).
IN2 Control signal for Relay 2 (HIGH to activate, LOW to deactivate).
IN3 Control signal for Relay 3 (HIGH to activate, LOW to deactivate).
IN4 Control signal for Relay 4 (HIGH to activate, LOW to deactivate).

Output Pins (Relay Side)

Channel Pin Name Description
1 COM1 Common terminal for Relay 1.
NO1 Normally Open terminal for Relay 1 (connected to COM1 when relay is active).
NC1 Normally Closed terminal for Relay 1 (connected to COM1 when relay is idle).
2 COM2 Common terminal for Relay 2.
NO2 Normally Open terminal for Relay 2.
NC2 Normally Closed terminal for Relay 2.
3 COM3 Common terminal for Relay 3.
NO3 Normally Open terminal for Relay 3.
NC3 Normally Closed terminal for Relay 3.
4 COM4 Common terminal for Relay 4.
NO4 Normally Open terminal for Relay 4.
NC4 Normally Closed terminal for Relay 4.

Usage Instructions

How to Use the Component in a Circuit

  1. Power the Module:
    • Connect the VCC pin to a 5V power supply and the GND pin to ground.
  2. Connect Control Signals:
    • Connect the IN1, IN2, IN3, and IN4 pins to the digital output pins of your microcontroller.
    • Ensure the microcontroller shares a common ground with the relay module.
  3. Connect the Load:
    • For each relay, connect the device you want to control to the COM and NO (Normally Open) or NC (Normally Closed) terminals, depending on your application.
    • Use NO if you want the device to be off by default and turn on when the relay is activated.
    • Use NC if you want the device to be on by default and turn off when the relay is activated.
  4. Control the Relays:
    • Send a HIGH signal (5V) to the corresponding IN pin to activate the relay and switch the connected load.

Important Considerations and Best Practices

  • Power Supply: Ensure the power supply can provide sufficient current for the relays. Each relay may draw up to 70mA when activated.
  • Isolation: The module includes optocouplers for isolation, but ensure proper grounding to avoid electrical noise.
  • High Voltage Safety: When switching high-voltage loads, take necessary precautions to avoid electric shock or damage to the module.
  • Flyback Diodes: If controlling inductive loads (e.g., motors), use flyback diodes to protect the relays from voltage spikes.

Example Code for Arduino UNO

// Example code to control a 4-channel relay module with an Arduino UNO
// Connect IN1, IN2, IN3, and IN4 to Arduino digital pins 2, 3, 4, and 5 respectively.

#define RELAY1 2  // Define pin for Relay 1
#define RELAY2 3  // Define pin for Relay 2
#define RELAY3 4  // Define pin for Relay 3
#define RELAY4 5  // Define pin for Relay 4

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, LOW);
  digitalWrite(RELAY2, LOW);
  digitalWrite(RELAY3, LOW);
  digitalWrite(RELAY4, LOW);
}

void loop() {
  // Example sequence to activate relays one by one
  digitalWrite(RELAY1, HIGH); // Turn on Relay 1
  delay(1000);                // Wait for 1 second
  digitalWrite(RELAY1, LOW);  // Turn off Relay 1

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

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

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

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relays Not Activating:

    • Ensure the module is powered with a stable 5V supply.
    • Verify that the control signals from the microcontroller are at the correct voltage level (3.3V or 5V).
    • Check the wiring for loose connections.
  2. Load Not Switching:

    • Confirm that the load is properly connected to the relay terminals (COM, NO, or NC).
    • Ensure the load does not exceed the relay's maximum current and voltage ratings.
  3. Module Overheating:

    • Avoid exceeding the maximum current rating of 10A per channel.
    • Use proper heat dissipation techniques if switching high-power loads.
  4. Electrical Noise or Interference:

    • Use a common ground between the relay module and the microcontroller.
    • Add capacitors or snubber circuits to reduce noise when switching inductive loads.

FAQs

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

Q: Can I control AC and DC loads simultaneously?
A: Yes, as long as each relay's load does not exceed its maximum ratings.

Q: Do I need external transistors to drive the relays?
A: No, the module includes built-in driver circuitry and optocouplers for isolation.