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

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

Image of 4 Channel Relay ModuleDesign with 4 Channel Relay Module in Cirkit Designer

Introduction

Explore Projects Built with 4 Channel Relay Module

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!

Technical Specifications

Pin Configuration and Descriptions

Input Pins (Control Side)

Pin Name Description
VCC Connect to 5V DC power supply to power the module.
GND Connect to ground of the power supply or microcontroller.
IN1 Control signal for Relay 1 (Active LOW).
IN2 Control signal for Relay 2 (Active LOW).
IN3 Control signal for Relay 3 (Active LOW).
IN4 Control signal for Relay 4 (Active LOW).

Output Pins (Load Side)

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

Usage Instructions

How to Use the 4 Channel Relay Module in a Circuit

  1. Power the Module: Connect the VCC pin to a 5V DC power supply and the GND pin to ground.
  2. Connect the Control Signals: Use digital output pins from a microcontroller (e.g., Arduino) to connect to the IN1, IN2, IN3, and IN4 pins. A LOW signal activates the corresponding relay.
  3. Connect the Load:
    • For each relay, connect the load to the COM and NO terminals if you want the load to be OFF by default.
    • Alternatively, connect the load to the COM and NC terminals if you want the load to be ON by default.
  4. Test the Circuit: Upload the control code to the microcontroller and verify the relays switch as expected.

Important Considerations and Best Practices

Example Code for Arduino UNO

// Example code to control a 4 Channel Relay Module with an Arduino UNO
// Each relay is controlled by a digital pin on the Arduino

// Define the pins connected to the relay module
#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 (HIGH state)
  digitalWrite(RELAY1, HIGH);
  digitalWrite(RELAY2, HIGH);
  digitalWrite(RELAY3, HIGH);
  digitalWrite(RELAY4, HIGH);
}

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

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

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

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

Troubleshooting and FAQs

Common Issues

  1. Relays Not Activating:

    • Ensure the module is powered with a stable 5V DC supply.
    • Verify the control signals from the microcontroller are set to LOW to activate the relays.
    • Check the wiring between the microcontroller and the relay module.
  2. Load Not Switching:

    • Confirm the load is connected to the correct relay terminals (COM and NO/NC).
    • Ensure the load does not exceed the relay's maximum current and voltage ratings.
  3. Indicator LEDs Not Lighting Up:

    • Check the power supply to the relay module.
    • Verify the control signal connections and ensure the microcontroller is functioning correctly.

FAQs