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

How to Use 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication: Examples, Pinouts, and Specs

Image of 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication
Cirkit Designer LogoDesign with 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication in Cirkit Designer

Introduction

The 8 Way Channel Expansion Relay Module by Songle (Part ID: RELAY) is a versatile and reliable relay module designed for controlling high-power devices using low-power control signals. This module features 8 independent relays, each capable of switching AC or DC loads, making it ideal for home automation, industrial control, and IoT applications. The module is equipped with optocoupler isolation for enhanced safety and noise immunity, and it supports I2C communication for easy integration with microcontrollers like Arduino, Raspberry Pi, and other development boards.

Explore Projects Built with 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication

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 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication 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
ESP32-Based Industrial Control System with RS485 Communication and I2C Interface
Image of DRIVER TESTER : A project utilizing 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication in a practical application
This circuit integrates a microcontroller with a display, digital potentiometer, IO expander, and opto-isolator board for signal interfacing and isolation. It includes a UART to RS485 converter for serial communication and a power converter to step down voltage for the system. The circuit is designed for control and communication in an isolated and protected environment.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wi-Fi Controlled Smart Relay Switch with ESP8266 and MCP23017
Image of Bed Room: A project utilizing 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Powered Wi-Fi Controlled 8-Channel Relay Module
Image of Olimex ESP32-POE2 8Ch Switch and Sensors: A project utilizing 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication in a practical application
This circuit features an ESP32 microcontroller connected to an 8-channel relay module. The ESP32 controls the relay channels via its GPIO pins, allowing it to switch multiple external devices on and off. The ESP32 also provides power to the relay module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication

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 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication 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 DRIVER TESTER : A project utilizing 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication in a practical application
ESP32-Based Industrial Control System with RS485 Communication and I2C Interface
This circuit integrates a microcontroller with a display, digital potentiometer, IO expander, and opto-isolator board for signal interfacing and isolation. It includes a UART to RS485 converter for serial communication and a power converter to step down voltage for the system. The circuit is designed for control and communication in an isolated and protected environment.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Bed Room: A project utilizing 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication 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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Olimex ESP32-POE2 8Ch Switch and Sensors: A project utilizing 8 Way Channel Expansion Relay Module 5V Power Supply Optocoupler Isolation Board IIC I2C Communication in a practical application
ESP32-Powered Wi-Fi Controlled 8-Channel Relay Module
This circuit features an ESP32 microcontroller connected to an 8-channel relay module. The ESP32 controls the relay channels via its GPIO pins, allowing it to switch multiple external devices on and off. The ESP32 also provides power to the relay module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Home automation (e.g., controlling lights, fans, and appliances)
  • Industrial equipment control
  • IoT projects requiring multiple device control
  • Robotics and motor control
  • Smart energy management systems

Technical Specifications

Key Technical Details

Parameter Specification
Manufacturer Songle
Part ID RELAY
Operating Voltage 5V DC
Relay Channels 8
Communication Interface I2C (IIC)
Control Signal Voltage 3.3V or 5V (logic level compatible)
Maximum Load (AC) 250V AC @ 10A
Maximum Load (DC) 30V DC @ 10A
Isolation Optocoupler isolation
Dimensions 135mm x 55mm x 20mm
Mounting Screw holes for secure installation

Pin Configuration and Descriptions

Power and Communication Pins

Pin Name Description
VCC 5V DC power supply input for the module.
GND Ground connection.
SDA I2C data line for communication with the microcontroller.
SCL I2C clock line for communication with the microcontroller.

Relay Output Terminals

Each relay channel has three terminals:

Terminal Name Description
NO (Normally Open) The relay is open (disconnected) when inactive. Closes when activated.
COM (Common) Common terminal for the relay.
NC (Normally Closed) The relay is closed (connected) when inactive. Opens when activated.

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 the I2C Interface:
    • Connect the SDA pin to the SDA pin of your microcontroller.
    • Connect the SCL pin to the SCL pin of your microcontroller.
  3. Load Connections:
    • For each relay, connect the load to the NO (Normally Open) and COM (Common) terminals if you want the load to be off by default.
    • Alternatively, use the NC (Normally Closed) and COM terminals if you want the load to be on by default.
  4. Control the Relays: Use I2C commands from your microcontroller to activate or deactivate the relays.

Important Considerations and Best Practices

  • Ensure the total current drawn by the relays does not exceed the power supply's capacity.
  • Use proper insulation and safety precautions when working with high-voltage AC loads.
  • Avoid switching inductive loads (e.g., motors) without proper flyback diodes or snubber circuits to prevent damage to the relays.
  • Double-check the I2C address of the module (default is typically 0x20, but consult the datasheet for confirmation).

Example Code for Arduino UNO

Below is an example code snippet to control the relay module using an Arduino UNO:

#include <Wire.h> // Include the Wire library for I2C communication

#define RELAY_MODULE_ADDRESS 0x20 // Default I2C address of the relay module

void setup() {
  Wire.begin(); // Initialize I2C communication
  Serial.begin(9600); // Initialize serial communication for debugging

  // Set all relays to OFF initially
  Wire.beginTransmission(RELAY_MODULE_ADDRESS);
  Wire.write(0x00); // Send command to turn off all relays
  Wire.endTransmission();
  Serial.println("Relay module initialized. All relays are OFF.");
}

void loop() {
  // Example: Turn ON relay 1
  Wire.beginTransmission(RELAY_MODULE_ADDRESS);
  Wire.write(0x01); // Command to turn ON relay 1
  Wire.endTransmission();
  Serial.println("Relay 1 is ON.");
  delay(2000); // Wait for 2 seconds

  // Example: Turn OFF relay 1
  Wire.beginTransmission(RELAY_MODULE_ADDRESS);
  Wire.write(0x00); // Command to turn OFF relay 1
  Wire.endTransmission();
  Serial.println("Relay 1 is OFF.");
  delay(2000); // Wait for 2 seconds
}

Notes:

  • Replace 0x20 with the actual I2C address of your module if it differs.
  • Modify the Wire.write() commands to control other relays (e.g., 0x02 for relay 2, 0x04 for relay 3, etc.).

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relays Not Activating:

    • Ensure the module is powered with a stable 5V DC supply.
    • Verify the I2C connections (SDA and SCL) are correctly wired to the microcontroller.
    • Check the I2C address of the module and update the code if necessary.
  2. High Voltage Load Not Switching:

    • Confirm the load is connected to the correct relay terminals (NO/COM or NC/COM).
    • Ensure the load does not exceed the relay's maximum current and voltage ratings.
  3. I2C Communication Errors:

    • Use a pull-up resistor (4.7kΩ to 10kΩ) on the SDA and SCL lines if not already present.
    • Check for conflicting I2C addresses if multiple devices are connected to the same bus.
  4. Module Overheating:

    • Ensure the relays are not switching loads beyond their rated capacity.
    • Provide adequate ventilation or cooling if the module is used in a high-power application.

FAQs

Q: Can this module be used with a 3.3V microcontroller?
A: Yes, the module is compatible with 3.3V logic levels for I2C communication, but the power supply must still be 5V.

Q: How do I change the I2C address of the module?
A: Refer to the module's datasheet or user manual for instructions on changing the I2C address, typically done via solder jumpers or DIP switches.

Q: Can I control all 8 relays simultaneously?
A: Yes, you can send a single I2C command to control all 8 relays at once. Refer to the module's command set for details.

Q: Is optocoupler isolation necessary?
A: Optocoupler isolation enhances safety and prevents electrical noise from affecting the microcontroller, especially in high-voltage applications.