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 relay_5V is an electromechanical switch that operates at 5 volts. It allows a low-power control signal to manage a high-power circuit, providing electrical isolation between the control side (low voltage) and the load side (high voltage). This makes it an essential component in applications where electrical isolation and control of high-power devices are required.

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 and Use Cases

  • Home automation systems (e.g., controlling lights, fans, or appliances)
  • Industrial control systems
  • Motor control circuits
  • Safety-critical systems requiring electrical isolation
  • Arduino and microcontroller-based projects

Technical Specifications

Below are the key technical details and pin configuration for the relay_5V:

Key Technical Details

Parameter Value
Operating Voltage 5V DC
Trigger Voltage 3.3V to 5V DC
Maximum Switching Voltage 250V AC / 30V DC
Maximum Switching Current 10A
Coil Resistance ~70Ω
Electrical Isolation Yes (via electromagnetic coil)
Contact Type SPDT (Single Pole Double Throw)
Dimensions ~19mm x 15mm x 15mm

Pin Configuration and Descriptions

Pin Name Description
VCC Connect to the 5V power supply (positive terminal).
GND Connect to the ground (negative terminal).
IN Control signal input (3.3V to 5V logic level).
COM Common terminal for the load circuit.
NO (Normally Open) Load terminal that remains disconnected until the relay is activated.
NC (Normally Closed) Load terminal that remains connected until the relay is activated.

Usage Instructions

How to Use the Relay_5V in a Circuit

  1. Power the Relay: Connect the VCC pin to a 5V DC power supply and the GND pin to the ground.
  2. Control Signal: Connect the IN pin to a microcontroller (e.g., Arduino) or any other control circuit capable of providing a 3.3V to 5V signal.
  3. Load Connection:
    • Connect the load's power source to the COM terminal.
    • Connect the load to either the NO or NC terminal, depending on the desired behavior:
      • Use the NO terminal if the load should be off by default and turn on when the relay is activated.
      • Use the NC terminal if the load should be on by default and turn off when the relay is activated.
  4. Activate the Relay: Apply a HIGH signal (3.3V to 5V) to the IN pin to activate the relay and switch the load.

Important Considerations and Best Practices

  • Flyback Diode: Always use a flyback diode across the relay coil to protect the circuit from voltage spikes caused by the collapsing magnetic field when the relay is deactivated.
  • Current Ratings: Ensure the load's current and voltage do not exceed the relay's maximum ratings (10A, 250V AC / 30V DC).
  • Isolation: Use optocouplers or transistors if additional isolation is required between the control circuit and the relay.
  • Power Supply: Ensure the 5V power supply can provide sufficient current for the relay coil (typically ~70mA).

Example: Connecting Relay_5V to an Arduino UNO

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

// Define the pin connected to the relay's IN 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 initially
}

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

Note: Ensure the relay module is connected to the Arduino's 5V and GND pins, and the IN pin is connected to pin 7.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Activating:

    • Cause: Insufficient voltage or current to the relay coil.
    • Solution: Verify that the VCC pin is receiving 5V and the control signal is within the 3.3V to 5V range.
  2. Load Not Switching:

    • Cause: Incorrect wiring of the load circuit.
    • Solution: Double-check the connections to the COM, NO, and NC terminals.
  3. Voltage Spikes Damaging Components:

    • Cause: Absence of a flyback diode across the relay coil.
    • Solution: Add a flyback diode (e.g., 1N4007) across the relay coil terminals.
  4. Relay Stuck in One State:

    • Cause: Relay contacts may be damaged due to excessive current.
    • Solution: Ensure the load's current and voltage are within the relay's rated limits.

FAQs

Q1: Can I use the relay_5V with a 3.3V microcontroller?
A1: Yes, the relay_5V can be triggered with a 3.3V control signal, but ensure the microcontroller can supply sufficient current to the IN pin.

Q2: Can I control an AC load with this relay?
A2: Yes, the relay_5V can switch AC loads up to 250V, provided the current does not exceed 10A.

Q3: Why is my relay making a clicking sound?
A3: The clicking sound is normal and indicates the relay is switching states. If the sound persists rapidly, check for issues in the control signal.

Q4: Do I need a transistor to drive the relay?
A4: If your control circuit cannot supply sufficient current to the relay's IN pin, use a transistor (e.g., 2N2222) as a driver.

By following this documentation, you can effectively integrate the relay_5V into your projects and troubleshoot common issues.