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

How to Use Relay 2pcs: Examples, Pinouts, and Specs

Image of Relay 2pcsDesign with Relay 2pcs in Cirkit Designer

Introduction

A relay is an electromechanical switch that uses an electromagnetic coil to open or close contacts, enabling control of a high-power circuit with a low-power signal. This package includes two relays, making it ideal for projects requiring multiple switching mechanisms. Relays are widely used in automation, home appliances, automotive systems, and industrial control applications.

Explore Projects Built with Relay 2pcs

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-Controlled Dual Relay AC Light Switching Circuit: A project utilizing Relay 2pcs in a practical application
ESP32-Controlled Dual Relay AC Light Switching Circuit

This circuit features an ESP32 microcontroller connected to a 2-Channel Relay module, which is used to control two AC-powered bulbs. The ESP32 is powered via a USB connection and interfaces with the relay module through two GPIO pins (D22 and D23) to switch the bulbs on and off. The AC supply is connected to the relay module, which switches the bulbs' power lines while their neutral lines are tied together and to the AC supply neutral.

Open Project in Cirkit Designer

Common Applications:

Technical Specifications

Below are the key technical details for the relays included in this package:

General Specifications:

Pin Configuration:

Each relay has 5 pins, as described in the table below:

Pin Number Name Description
1 Coil (+) Positive terminal of the electromagnetic coil (connect to 5V DC).
2 Coil (-) Negative terminal of the electromagnetic coil (connect to ground).
3 Common (COM) Common terminal for the switching mechanism.
4 Normally Open (NO) Open circuit when the relay is inactive; closes when the relay is activated.
5 Normally Closed (NC) Closed circuit when the relay is inactive; opens when the relay is activated.

Usage Instructions

How to Use the Relay in a Circuit:

  1. Power the Coil: Connect the coil pins (1 and 2) to a 5V DC power source. Use a transistor or microcontroller to control the coil activation.
  2. Connect the Load:
    • Connect the high-power circuit to the Common (COM) pin (Pin 3).
    • Use the Normally Open (NO) pin (Pin 4) if you want the circuit to close only when the relay is activated.
    • Use the Normally Closed (NC) pin (Pin 5) if you want the circuit to remain closed until the relay is activated.
  3. Control the Relay: Use a low-power signal (e.g., from an Arduino or other microcontroller) to activate the relay coil, which will switch the high-power circuit.

Important Considerations:

Example: Connecting a Relay to an Arduino UNO

Below is an example of how to control a relay using an Arduino UNO:

Circuit Connections:

Arduino Code:

// Define the relay pin
const int relayPin = 7;

void setup() {
  pinMode(relayPin, OUTPUT); // Set the relay pin as an output
  digitalWrite(relayPin, LOW); // Ensure the relay is off at startup
}

void loop() {
  digitalWrite(relayPin, HIGH); // Activate the relay
  delay(1000); // Keep the relay on for 1 second
  digitalWrite(relayPin, LOW); // Deactivate the relay
  delay(1000); // Keep the relay off for 1 second
}

Best Practices:

Troubleshooting and FAQs

Common Issues:

  1. Relay Not Activating:

    • Cause: Insufficient voltage or current to the coil.
    • Solution: Verify the power supply and ensure the control signal is sufficient.
  2. Relay Stuck in One State:

    • Cause: Damaged contacts due to overcurrent or arcing.
    • Solution: Replace the relay and ensure the load does not exceed the rated current.
  3. Voltage Spikes Damaging the Circuit:

    • Cause: Lack of a flyback diode across the coil.
    • Solution: Install a flyback diode (e.g., 1N4007) across the coil terminals.
  4. Excessive Heat:

    • Cause: Overloading the relay or poor ventilation.
    • Solution: Reduce the load or improve airflow around the relay.

FAQs:

By following this documentation, you can effectively use the Relay 2pcs in your projects for reliable and efficient switching.