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

How to Use 4 Channel Relay : Examples, Pinouts, and Specs

Image of 4 Channel Relay Design with 4 Channel Relay in Cirkit Designer

Introduction

The 4 Channel Relay by JLC PCB (Manufacturer Part ID: UNIO) is an electromechanical switch designed to control up to four independent circuits using a single control signal. This component is widely used in automation, home appliances, and industrial control systems. It allows low-power control signals, such as those from a microcontroller, to switch high-power devices like motors, lights, or other electrical loads.

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

Common Applications

Technical Specifications

The following table outlines the key technical details of the 4 Channel Relay:

Parameter Specification
Operating Voltage 5V DC
Trigger Voltage 3.3V to 5V DC (logic level)
Maximum Load Voltage 250V AC / 30V DC
Maximum Load Current 10A
Relay Type SPDT (Single Pole Double Throw)
Isolation Optocoupler isolation for each channel
Dimensions 75mm x 55mm x 20mm
Weight ~60g

Pin Configuration and Descriptions

The 4 Channel Relay module has the following pin configuration:

Input Pins

Pin Name Description
1 VCC Power supply input (5V DC)
2 GND Ground connection
3 IN1 Control signal for Relay 1 (Active LOW)
4 IN2 Control signal for Relay 2 (Active LOW)
5 IN3 Control signal for Relay 3 (Active LOW)
6 IN4 Control signal for Relay 4 (Active LOW)

Output Terminals (Relay Contacts)

Each relay has three output terminals: | Terminal | Name | Description | |--------------|------------|---------------------------------------------------------------------------------| | 1 | NO (Normally Open) | Open circuit when the relay is inactive; closed when the relay is activated. | | 2 | COM (Common) | Common terminal for the relay. | | 3 | NC (Normally Closed) | Closed circuit when the relay is inactive; open when the relay is activated. |

Usage Instructions

How to Use the 4 Channel Relay in a Circuit

  1. Power the Relay Module: Connect the VCC pin to a 5V DC power source and the GND pin to the ground.
  2. Connect Control Signals: Use a microcontroller (e.g., Arduino UNO) to send control signals to the IN1, IN2, IN3, and IN4 pins. These signals should be logic LOW to activate the corresponding relay.
  3. Connect the Load: For each relay, connect the load to the NO, NC, and COM terminals as required:
    • Use the NO terminal if you want the load to be off by default and turn on when the relay is activated.
    • Use the NC terminal if you want the load to be on by default and turn off when the relay is activated.
  4. Ensure Proper Isolation: The module includes optocouplers for isolation, but ensure that the high-power side and low-power side are properly separated to avoid damage.

Example: Controlling the Relay with Arduino UNO

Below is an example code to control the 4 Channel Relay using an Arduino UNO:

// Define the relay control pins
#define RELAY1 2  // Pin connected to IN1
#define RELAY2 3  // Pin connected to IN2
#define RELAY3 4  // Pin connected to IN3
#define RELAY4 5  // Pin connected to IN4

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

  // Initialize all relays to OFF state
  digitalWrite(RELAY1, HIGH); // HIGH = Relay OFF (Active LOW)
  digitalWrite(RELAY2, HIGH);
  digitalWrite(RELAY3, HIGH);
  digitalWrite(RELAY4, HIGH);
}

void loop() {
  // Example: Turn on Relay 1 for 2 seconds, then turn it off
  digitalWrite(RELAY1, LOW);  // LOW = Relay ON
  delay(2000);                // Wait for 2 seconds
  digitalWrite(RELAY1, HIGH); // Turn off Relay 1

  // Example: Turn on all relays for 1 second, then turn them off
  digitalWrite(RELAY1, LOW);
  digitalWrite(RELAY2, LOW);
  digitalWrite(RELAY3, LOW);
  digitalWrite(RELAY4, LOW);
  delay(1000);                // Wait for 1 second
  digitalWrite(RELAY1, HIGH);
  digitalWrite(RELAY2, HIGH);
  digitalWrite(RELAY3, HIGH);
  digitalWrite(RELAY4, HIGH);
}

Important Considerations

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relays Not Activating

    • Cause: Insufficient power supply or incorrect wiring.
    • Solution: Verify that the VCC and GND pins are properly connected to a 5V DC power source. Check the control signal connections.
  2. Relay Stuck in ON or OFF State

    • Cause: Faulty relay or incorrect control signal logic.
    • Solution: Test the relay with a direct LOW signal to the IN pin. If it still doesn't work, the relay may be damaged.
  3. Microcontroller Resetting When Relay Activates

    • Cause: Voltage spikes or insufficient power supply.
    • Solution: Add a flyback diode across the relay coil and ensure the power supply can handle the current draw.
  4. Load Not Switching Properly

    • Cause: Incorrect wiring of the load to the relay terminals.
    • Solution: Double-check the connections to the NO, NC, and COM terminals. Ensure the load voltage and current are within the relay's specifications.

FAQs

This concludes the documentation for the 4 Channel Relay by JLC PCB.