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

How to Use relay_5V: Examples, Pinouts, and Specs

Image of relay_5V
Cirkit Designer LogoDesign with relay_5V in Cirkit Designer

Introduction

A 5V relay is an electromechanical switch that uses an electromagnetic coil to open or close contacts. It allows a low voltage signal (5V) to control high voltage or high current circuits, making it an essential component in automation, home appliances, and industrial control systems.

Explore Projects Built with relay_5V

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO Controlled 5V Relay Switch
Image of relay: A project utilizing relay_5V in a practical application
This circuit uses an Arduino UNO to control a 5V relay. The relay is powered by the Arduino's Vin and GND pins, and its control input is connected to digital pin D9 on the Arduino. The provided code is a basic template with no specific functionality implemented.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered LED Control with Pushbutton and Relay
Image of EXP.3 E: A project utilizing relay_5V in a practical application
This circuit uses a pushbutton to control a 5V relay, which in turn powers a red LED. The MAHIR 1.mini module provides the necessary 3.7V power supply, and the relay switches the LED on and off based on the pushbutton input.
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_5V 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
Battery-Powered 4-Channel Relay Control with LED Indicators
Image of RELLAY BOARD TEST: A project utilizing relay_5V 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_5V

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_5V in a practical application
Arduino UNO Controlled 5V Relay Switch
This circuit uses an Arduino UNO to control a 5V relay. The relay is powered by the Arduino's Vin and GND pins, and its control input is connected to digital pin D9 on the Arduino. The provided code is a basic template with no specific functionality implemented.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of EXP.3 E: A project utilizing relay_5V in a practical application
Battery-Powered LED Control with Pushbutton and Relay
This circuit uses a pushbutton to control a 5V relay, which in turn powers a red LED. The MAHIR 1.mini module provides the necessary 3.7V power supply, and the relay switches the LED on and off based on the pushbutton input.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Hand Gesture Light: A project utilizing relay_5V 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 RELLAY BOARD TEST: A project utilizing relay_5V 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 fans)
  • Industrial equipment control
  • Motor control circuits
  • Microcontroller-based projects (e.g., Arduino, Raspberry Pi)
  • Safety systems (e.g., overcurrent protection)

Technical Specifications

Key Technical Details:

  • Operating Voltage: 5V DC
  • Trigger Voltage: 3.75V to 5V DC
  • Coil Resistance: ~70Ω (varies by model)
  • Switching Voltage (Contacts): Up to 250V AC or 30V DC
  • Switching Current (Contacts): Up to 10A
  • Relay Type: SPDT (Single Pole Double Throw) or DPDT (Double Pole Double Throw), depending on the model
  • Isolation: Electrical isolation between control and load circuits
  • Response Time: Typically 5ms to 10ms
  • Lifetime: Mechanical: ~10 million operations; Electrical: ~100,000 operations (varies by load)

Pin Configuration and Descriptions:

Below is the pin configuration for a typical 5V SPDT relay module:

Pin Name Description
VCC Connect to 5V DC power supply to energize the relay coil.
GND Connect to ground (0V) of the power supply.
IN Control signal input. A HIGH signal (3.75V to 5V) activates the relay.
COM Common terminal for the relay switch.
NO Normally Open terminal. Connect the load here if you want it powered when the relay is activated.
NC Normally Closed terminal. Connect the load here if you want it powered when the relay is deactivated.

Note: Some relay modules may include an onboard LED to indicate the relay's state.

Usage Instructions

How to Use the Relay in a Circuit:

  1. Power the Relay:
    • Connect the VCC pin to a 5V DC power supply and the GND pin to ground.
  2. Control Signal:
    • Connect the IN pin to a microcontroller's GPIO pin or another control circuit.
    • When the IN pin receives a HIGH signal (3.75V to 5V), the relay activates, switching the contacts.
  3. Load Connection:
    • Connect the load to the COM and either the NO or NC terminal, depending on the desired behavior:
      • NO (Normally Open): The load is powered only when the relay is activated.
      • NC (Normally Closed): The load is powered when the relay is not activated.

Important Considerations:

  • Isolation: Ensure proper electrical isolation between the control and load circuits to prevent damage to sensitive components.
  • Flyback Diode: If you're using a bare relay (not a module), add a flyback diode across the coil terminals to protect the circuit from voltage spikes when the relay is deactivated.
  • Current Ratings: Do not exceed the relay's rated current and voltage for the load.
  • Power Supply: Ensure the power supply can provide sufficient current for the relay coil (typically ~70mA for a 5V relay).

Example: Using a 5V Relay with Arduino UNO

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

// Example: Controlling a 5V relay with Arduino UNO
// Connect the relay module's IN pin to Arduino pin 7
// VCC and GND of the relay module should be connected to 5V and GND of Arduino

#define RELAY_PIN 7  // Define the pin connected to the relay module

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

void loop() {
  digitalWrite(RELAY_PIN, HIGH);  // Activate the relay
  delay(5000);  // Keep the relay on for 5 seconds
  digitalWrite(RELAY_PIN, LOW);  // Deactivate the relay
  delay(5000);  // Keep the relay off for 5 seconds
}

Note: Ensure the relay module is compatible with the Arduino's 5V logic level.

Troubleshooting and FAQs

Common Issues:

  1. Relay Not Activating:

    • Cause: Insufficient control signal voltage or current.
    • Solution: Verify that the IN pin receives a voltage between 3.75V and 5V. Check the power supply and connections.
  2. Load Not Switching:

    • Cause: Incorrect wiring of the load to the relay terminals.
    • Solution: Double-check the connections to the COM, NO, and NC terminals.
  3. Relay Clicking Rapidly:

    • Cause: Unstable control signal or insufficient power supply.
    • Solution: Use a stable power source and ensure the control signal is steady.
  4. Overheating:

    • Cause: Exceeding the relay's current or voltage ratings.
    • Solution: Ensure the load does not exceed the relay's rated specifications.

FAQs:

  • Q: Can I use a 5V relay with a 3.3V microcontroller?

    • A: Most 5V relays require at least 3.75V to activate. Use a transistor or MOSFET as an intermediary to drive the relay.
  • Q: Do I need a flyback diode with a relay module?

    • A: No, most relay modules already include a flyback diode. However, if you're using a bare relay, you must add one.
  • Q: Can I control an AC appliance with a 5V relay?

    • A: Yes, as long as the appliance's voltage and current are within the relay's rated specifications.
  • Q: Why is the relay module's LED not lighting up?

    • A: Check the power supply connections (VCC and GND) and ensure the control signal is HIGH.

By following this documentation, you can effectively integrate a 5V relay into your projects and troubleshoot common issues.