Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

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

Image of Relay 2pcs
Cirkit Designer LogoDesign 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!
DC-DC Converter and Relay Module Power Distribution System
Image of relay: A project utilizing Relay 2pcs in a practical application
This circuit consists of a DC-DC converter powering a 6-channel power module, which in turn supplies 5V to a 2-relay module. The power module distributes the converted voltage to the relay module, enabling it to control external devices.
Cirkit Designer LogoOpen Project in Cirkit Designer
WeMos D1 R2 Controlled Relay Switching Circuit for AC Bulb and USB Charger
Image of Hand Gesture Light: A project utilizing Relay 2pcs in a practical application
This circuit uses a WeMos D1 R2 microcontroller to control a 5V 2-relay module, which in turn controls the power to an AC bulb and a cellphone charger. The microcontroller also interfaces with a line tracking sensor, which likely provides input to control the relay states. The AC bulb and cellphone charger are powered by an AC wire connection, with the relay acting as a switch for the bulb.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled Dual Relay AC Light Switching Circuit
Image of esp 32 iot project: A project utilizing Relay 2pcs in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered 4-Channel Relay Control with LED Indicators
Image of RELLAY BOARD TEST: A project utilizing Relay 2pcs in a practical application
This circuit consists of a 5V battery powering a 4-channel relay module, which controls four LEDs (red, yellow, green, and blue) through individual resistors. Each relay channel is activated by a corresponding SPST toggle switch, allowing manual control of the LEDs.
Cirkit Designer LogoOpen Project in Cirkit Designer

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 relay: A project utilizing Relay 2pcs in a practical application
DC-DC Converter and Relay Module Power Distribution System
This circuit consists of a DC-DC converter powering a 6-channel power module, which in turn supplies 5V to a 2-relay module. The power module distributes the converted voltage to the relay module, enabling it to control external devices.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Hand Gesture Light: A project utilizing Relay 2pcs in a practical application
WeMos D1 R2 Controlled Relay Switching Circuit for AC Bulb and USB Charger
This circuit uses a WeMos D1 R2 microcontroller to control a 5V 2-relay module, which in turn controls the power to an AC bulb and a cellphone charger. The microcontroller also interfaces with a line tracking sensor, which likely provides input to control the relay states. The AC bulb and cellphone charger are powered by an AC wire connection, with the relay acting as a switch for the bulb.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of esp 32 iot project: 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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of RELLAY BOARD TEST: A project utilizing Relay 2pcs in a practical application
Battery-Powered 4-Channel Relay Control with LED Indicators
This circuit consists of a 5V battery powering a 4-channel relay module, which controls four LEDs (red, yellow, green, and blue) through individual resistors. Each relay channel is activated by a corresponding SPST toggle switch, allowing manual control of the LEDs.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Home automation (e.g., controlling lights or appliances)
  • Motor control in robotics
  • Automotive systems (e.g., headlights, horns)
  • Industrial machinery
  • Signal isolation between high-power and low-power circuits

Technical Specifications

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

General Specifications:

  • Type: Electromechanical relay
  • Coil Voltage: 5V DC
  • Switching Voltage: Up to 250V AC or 30V DC
  • Switching Current: Up to 10A
  • Contact Configuration: SPDT (Single Pole Double Throw)
  • Insulation Resistance: ≥ 100MΩ at 500V DC
  • Operating Temperature: -40°C to +85°C
  • Dimensions: 19mm x 15mm x 15mm (per relay)

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:

  • Flyback Diode: Always connect a flyback diode across the coil terminals to protect your circuit from voltage spikes when the relay is deactivated.
  • Isolation: Ensure proper isolation between the low-power control circuit and the high-power load to prevent damage.
  • Current Ratings: Do not exceed the relay's maximum current and voltage ratings to avoid overheating or failure.

Example: Connecting a Relay to an Arduino UNO

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

Circuit Connections:

  • Connect the relay's Coil (+) pin to a digital pin on the Arduino (e.g., Pin 7) through a 1kΩ resistor.
  • Connect the Coil (-) pin to the Arduino's GND.
  • Connect the Common (COM) pin to one terminal of the load (e.g., a light bulb).
  • Connect the Normally Open (NO) pin to the power source for the load.

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:

  • Use a transistor (e.g., 2N2222) or a relay driver module to control the relay if the microcontroller cannot supply sufficient current.
  • Avoid switching inductive loads (e.g., motors) without proper snubber circuits to suppress voltage spikes.

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:

  • Q: Can I use this relay with a 3.3V microcontroller?
    A: Yes, but you will need a transistor or relay driver circuit to step up the control voltage to 5V.

  • Q: Can this relay switch DC motors?
    A: Yes, but ensure the motor's current and voltage are within the relay's ratings. Use a snubber circuit to suppress voltage spikes.

  • Q: How do I know if the relay is working?
    A: You should hear a clicking sound when the relay switches. You can also measure continuity between the COM and NO/NC pins.

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