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

How to Use Relay 3 Channel Optocoupler: Examples, Pinouts, and Specs

Image of Relay 3 Channel OptocouplerDesign with Relay 3 Channel Optocoupler in Cirkit Designer

Introduction

The Relay 3 Channel Optocoupler module, manufactured by Arduino (Part ID: Relay), is a versatile electronic component designed to control high-voltage devices using low-voltage signals. This module features three independent relays, each capable of switching AC or DC loads, and is equipped with optocouplers for electrical isolation. The optocouplers ensure safe operation by isolating the control circuit from the high-voltage load.

Explore Projects Built with Relay 3 Channel Optocoupler

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 ESP32-S3 Based Smart IoT Distance Sensor with Ethernet Connectivity: A project utilizing Relay 3 Channel Optocoupler in a practical application
ESP32-S3 Based Smart IoT Distance Sensor with Ethernet Connectivity

This circuit features an ESP32-S3 microcontroller interfaced with a KY-019 Relay module, a VL53L1X time-of-flight sensor, and a W5500 Ethernet module. The ESP32-S3 controls the relay and communicates with the VL53L1X sensor via I2C, as well as with the network through the Ethernet module. An AC source is converted to DC for powering the components, and a micro USB connection is used to trigger the relay.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Input Pins (Control Side)

Pin Name Description
VCC Connect to 5V power supply
GND Ground connection
IN1 Control signal for Relay 1 (active LOW)
IN2 Control signal for Relay 2 (active LOW)
IN3 Control signal for Relay 3 (active LOW)

Output Pins (Load Side)

Pin Name Description
COM1 Common terminal for Relay 1
NO1 Normally Open terminal for Relay 1
NC1 Normally Closed terminal for Relay 1
COM2 Common terminal for Relay 2
NO2 Normally Open terminal for Relay 2
NC2 Normally Closed terminal for Relay 2
COM3 Common terminal for Relay 3
NO3 Normally Open terminal for Relay 3
NC3 Normally Closed terminal for Relay 3

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: Use digital output pins from a microcontroller (e.g., Arduino UNO) to control the IN1, IN2, and IN3 pins. A LOW signal activates the corresponding relay.
  3. Connect the Load: Attach the high-voltage device to the relay's output terminals (COM, NO, and NC). Use the NO terminal for devices that should be off by default and the NC terminal for devices that should be on by default.
  4. Test the Circuit: Upload the control code to the microcontroller and verify the relay operation.

Important Considerations and Best Practices

Example Code for Arduino UNO

// Example code to control a 3-channel relay module with Arduino UNO
// Ensure the relay module is connected to pins 7, 8, and 9 on the Arduino

#define RELAY1 7  // Define pin for Relay 1
#define RELAY2 8  // Define pin for Relay 2
#define RELAY3 9  // Define pin for Relay 3

void setup() {
  // Set relay pins as outputs
  pinMode(RELAY1, OUTPUT);
  pinMode(RELAY2, OUTPUT);
  pinMode(RELAY3, OUTPUT);

  // Initialize all relays to OFF state (HIGH signal)
  digitalWrite(RELAY1, HIGH);
  digitalWrite(RELAY2, HIGH);
  digitalWrite(RELAY3, HIGH);
}

void loop() {
  // Example sequence to toggle relays
  digitalWrite(RELAY1, LOW);  // Turn ON Relay 1
  delay(1000);                // Wait for 1 second
  digitalWrite(RELAY1, HIGH); // Turn OFF Relay 1

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

  digitalWrite(RELAY3, LOW);  // Turn ON Relay 3
  delay(1000);                // Wait for 1 second
  digitalWrite(RELAY3, HIGH); // Turn OFF Relay 3
}

Troubleshooting and FAQs

Common Issues Users Might Face

  1. Relays Not Activating:

    • Ensure the VCC and GND pins are properly connected to a 5V power supply.
    • Verify that the control signals (IN1, IN2, IN3) are set to LOW to activate the relays.
    • Check for loose or incorrect wiring.
  2. Load Not Switching:

    • Confirm that the load is connected to the correct output terminals (COM, NO, or NC).
    • Ensure the load does not exceed the relay's voltage and current ratings.
  3. Interference or Noise in the Circuit:

    • Use decoupling capacitors near the power supply pins to reduce noise.
    • Keep high-voltage and low-voltage wiring separated.

Solutions and Tips for Troubleshooting

By following this documentation, users can safely and effectively integrate the Relay 3 Channel Optocoupler module into their projects.