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

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

Image of 5v 8 Channel Relay BoardDesign with 5v 8 Channel Relay Board in Cirkit Designer

Introduction

The 5V 8 Channel Relay Board is an electronic module designed to control up to eight devices using a 5V power supply. It acts as an interface between low-voltage control signals (e.g., from a microcontroller) and high-voltage loads, such as lights, motors, or appliances. Each relay on the board can switch devices operating at up to 250V AC or 30V DC, making it ideal for home automation, industrial control, and IoT applications.

Explore Projects Built with 5v 8 Channel Relay Board

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 5v 8 Channel Relay Board 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

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Input Pins

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

Output Terminals (for each relay)

Terminal Name Description
COM Common terminal for the relay. Connect to the power source or load.
NO Normally Open terminal. Connect to the load for default OFF state.
NC Normally Closed terminal. Connect to the load for default ON state.

Usage Instructions

How to Use the Component in a Circuit

  1. Power the Relay Board:

    • Connect the VCC pin to a 5V power supply and the GND pin to ground.
    • Ensure the power supply can provide sufficient current for all active relays (approximately 70-80mA per relay).
  2. Connect the Control Signals:

    • Connect the IN1-IN8 pins to the digital output pins of a microcontroller (e.g., Arduino UNO).
    • A LOW signal (0V) on an input pin will activate the corresponding relay.
  3. Connect the Load:

    • Identify the device or circuit you want to control.
    • Connect the power source and load to the relay's COM, NO, or NC terminals based on the desired behavior:
      • Use COM and NO for devices that should be OFF by default.
      • Use COM and NC for devices that should be ON by default.
  4. Test the Circuit:

    • Power on the relay board and microcontroller.
    • Send control signals to the relay board to toggle the relays and verify the load's behavior.

Important Considerations and Best Practices

Example: Connecting to an Arduino UNO

Below is an example of how to control the 5V 8 Channel Relay Board using an Arduino UNO:

Circuit Connections

Arduino Code

// Example code to control an 8-channel relay board with an Arduino UNO

// Define the relay control pins
const int relayPins[] = {2, 3, 4, 5, 6, 7, 8, 9};

void setup() {
  // Set all relay pins as outputs
  for (int i = 0; i < 8; i++) {
    pinMode(relayPins[i], OUTPUT);
    digitalWrite(relayPins[i], HIGH); // Set relays to OFF state (HIGH)
  }
}

void loop() {
  // Example: Turn relays ON one by one, then OFF
  for (int i = 0; i < 8; i++) {
    digitalWrite(relayPins[i], LOW); // Activate relay (LOW signal)
    delay(1000); // Wait 1 second
    digitalWrite(relayPins[i], HIGH); // Deactivate relay (HIGH signal)
    delay(1000); // Wait 1 second
  }
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relays Not Activating:

    • Cause: Insufficient power supply.
    • Solution: Ensure the power supply provides 5V and sufficient current for all active relays.
  2. Relay Stuck in ON or OFF State:

    • Cause: Incorrect wiring or damaged relay.
    • Solution: Double-check the wiring and replace the relay if necessary.
  3. Microcontroller Resetting When Relays Activate:

    • Cause: Voltage drop due to high current draw.
    • Solution: Use a separate power supply for the relay board and connect the grounds.
  4. Load Not Switching Properly:

    • Cause: Incorrect connection to the relay terminals.
    • Solution: Verify the load is connected to the correct COM, NO, or NC terminals.

FAQs