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

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

Image of 8 Channel 5v RelayDesign with 8 Channel 5v Relay in Cirkit Designer

8 Channel 5V Relay Module Documentation

Manufacturer: AC
Part ID: Relay


1. Introduction

The 8 Channel 5V Relay Module is a versatile electronic component designed to control high-voltage devices using low-voltage signals, typically from a microcontroller such as an Arduino UNO. Each of the 8 relays on the module can independently switch devices on or off, making it ideal for automation, home control systems, and industrial applications.

Common Applications:

This module is particularly useful for projects requiring the control of multiple high-power devices with a single microcontroller.


2. Technical Specifications

Key Technical Details:

Parameter Value
Operating Voltage 5V DC
Trigger Voltage 3.3V to 5V (compatible with most microcontrollers, including Arduino)
Relay Channels 8
Maximum Load (AC) 250V AC @ 10A
Maximum Load (DC) 30V DC @ 10A
Isolation Optocoupler isolation for each channel
Indicator LEDs Yes (one LED per channel to indicate relay status)
Dimensions ~138mm x 56mm x 18mm
Weight ~120g

Pin Configuration and Descriptions:

Input Pins (Control Side):

Pin Name Description
VCC Connect to 5V DC power supply (powers the relay module).
GND Ground connection.
IN1 - IN8 Control pins for each relay channel. A LOW signal activates the corresponding relay.

Output Pins (Relay Side):

Each relay has three output terminals:
| Terminal | Description | |--------------|---------------------------------------------------------------------------------| | NO (Normally Open) | The device is disconnected when the relay is inactive. Connect the load here if you want it to turn ON when the relay is activated. | | NC (Normally Closed) | The device is connected when the relay is inactive. Connect the load here if you want it to turn OFF when the relay is activated. | | COM (Common) | Common terminal for the relay. Connect the power source or ground of the load here. |


3. Usage Instructions

Connecting the Relay Module to an Arduino UNO:

  1. Power the Module:

    • Connect the VCC pin of the relay module to the 5V pin on the Arduino UNO.
    • Connect the GND pin of the relay module to the GND pin on the Arduino UNO.
  2. Control Pins:

    • Connect the IN1 to IN8 pins of the relay module to the desired digital pins on the Arduino UNO. For example, you can connect IN1 to pin 2, IN2 to pin 3, and so on.
  3. Load Connections:

    • For each relay, connect the load (e.g., a light bulb or motor) to the NO or NC terminal, depending on whether you want the load to be ON or OFF by default.
    • Connect the power source for the load to the COM terminal.
  4. Code Example:
    Below is an example Arduino sketch to control the relays:

    // 8 Channel Relay Control Example
    // This code demonstrates how to control an 8-channel relay module
    // using an Arduino UNO. Each relay is toggled ON and OFF sequentially.
    
    // Define the relay control pins
    const int relayPins[8] = {2, 3, 4, 5, 6, 7, 8, 9};
    
    void setup() {
      // Initialize all relay pins as OUTPUT
      for (int i = 0; i < 8; i++) {
        pinMode(relayPins[i], OUTPUT);
        digitalWrite(relayPins[i], HIGH); // Set all relays to OFF initially
      }
    }
    
    void loop() {
      // Sequentially turn each relay ON and OFF
      for (int i = 0; i < 8; i++) {
        digitalWrite(relayPins[i], LOW); // Turn relay ON
        delay(1000); // Wait for 1 second
        digitalWrite(relayPins[i], HIGH); // Turn relay OFF
        delay(1000); // Wait for 1 second
      }
    }
    

Important Considerations:


4. Troubleshooting and FAQs

Common Issues and Solutions:

Issue Possible Cause Solution
Relays not activating Insufficient power supply Ensure the module is powered with a stable 5V DC source.
Relays activate randomly Electrical noise or interference Use decoupling capacitors or shield the module from interference sources.
Load not turning ON/OFF Incorrect wiring of the load to the relay terminals Double-check the connections to the NO, NC, and COM terminals.
Arduino resets when relays activate Power supply cannot handle the current surge Use a separate power supply for the relay module.

Frequently Asked Questions:

  1. Can I use this module with a 3.3V microcontroller (e.g., ESP32)?
    Yes, the module is compatible with 3.3V logic levels, but ensure the relays are powered with 5V.

  2. Can I control AC and DC loads simultaneously?
    Yes, as long as the total load does not exceed the relay ratings.

  3. Do I need external flyback diodes for the relays?
    No, the module already includes flyback diodes to protect against voltage spikes.

  4. Can I use fewer than 8 relays?
    Yes, you can use only the relays you need. Leave the unused control pins unconnected.


This documentation provides a comprehensive guide to using the 8 Channel 5V Relay Module. Whether you're a beginner or an experienced user, this module is a reliable choice for controlling multiple devices in your projects.

Explore Projects Built with 8 Channel 5v Relay

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 Wi-Fi Controlled Smart Relay Switch with ESP8266 and MCP23017: A project utilizing 8 Channel 5v Relay in a practical application
Wi-Fi Controlled Smart Relay Switch with ESP8266 and MCP23017

This circuit is designed to control an 8-channel relay module via an ESP8266 microcontroller, which interfaces with an MCP23017 I/O expander over I2C. The ESP8266 connects to a WiFi network and subscribes to MQTT topics to receive commands for toggling the relays. Additionally, there are toggle switches connected to the MCP23017 that allow manual control of the relays, with the system's state being reported back via MQTT.

Open Project in Cirkit Designer