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

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

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

Introduction

The 4 Way Channel Expansion Relay Module is a versatile electronic component designed for controlling high-power devices using low-power control signals. Manufactured by Songle with the part ID RELAY, this module features four independent relays, each capable of switching AC or DC loads. It is equipped with optocoupler isolation for enhanced safety and noise immunity, making it ideal for applications requiring reliable and isolated control.

Explore Projects Built with 4 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!

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Parameter Specification
Operating Voltage 5V DC
Communication Interface I2C (IIC)
Relay Channels 4
Relay Type Songle SPDT (Single Pole Double Throw)
Maximum Load (AC) 250V AC @ 10A
Maximum Load (DC) 30V DC @ 10A
Optocoupler Isolation Yes
Power Indicator LED Yes
Trigger Signal Voltage 3.3V or 5V logic
Dimensions 75mm x 55mm x 20mm

Pin Configuration and Descriptions

Input Pins

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

Output Terminals (Relay Channels)

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

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 to a Microcontroller: Use the SDA and SCL pins to interface the module with a microcontroller (e.g., Arduino UNO) via the I2C protocol.
  3. Load Connections: For each relay channel, connect the load to the COM and either the NO or NC terminal, depending on the desired default state.
  4. Control the Relays: Send I2C commands from the microcontroller to activate or deactivate the relays.

Important Considerations and Best Practices

Example Code for Arduino UNO

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

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

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

  // Turn off all relays at startup
  Wire.beginTransmission(RELAY_MODULE_I2C_ADDRESS);
  Wire.write(0x00); // 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_I2C_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_I2C_ADDRESS);
  Wire.write(0x00); // Command to turn off Relay 1
  Wire.endTransmission();
  Serial.println("Relay 1 is OFF.");
  delay(2000); // Wait for 2 seconds
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relays Not Activating:

    • Cause: Insufficient power supply or incorrect wiring.
    • Solution: Ensure the VCC pin is connected to a stable 5V DC source and the GND pin is properly grounded.
  2. I2C Communication Fails:

    • Cause: Incorrect I2C address or wiring.
    • Solution: Verify the module's I2C address and ensure SDA and SCL are connected to the correct pins on the microcontroller.
  3. Erratic Relay Behavior:

    • Cause: Electrical noise or unstable power supply.
    • Solution: Add decoupling capacitors near the power pins and use a regulated power source.
  4. Load Not Switching Properly:

    • Cause: Exceeding the relay's load ratings.
    • Solution: Ensure the load does not exceed 250V AC @ 10A or 30V DC @ 10A.

FAQs