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

How to Use 5V SPDT Relay: Examples, Pinouts, and Specs

Image of 5V SPDT Relay
Cirkit Designer LogoDesign with 5V SPDT Relay in Cirkit Designer

Introduction

The 5V Single Pole Double Throw (SPDT) relay, manufactured by Relay (Part ID: SPDT), is an electromechanical switch designed to control high-power circuits using low-power signals. It features three terminals: Common (COM), Normally Open (NO), and Normally Closed (NC), allowing it to toggle between two circuits. This relay is widely used in applications requiring electrical isolation, automation, and remote control of devices.

Explore Projects Built with 5V SPDT Relay

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered 4-Channel Relay Control with LED Indicators
Image of RELLAY BOARD TEST: A project utilizing 5V SPDT Relay 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
LDR-Activated Relay Control for Dual Bulb Illumination
Image of automatic headlight control project : A project utilizing 5V SPDT Relay in a practical application
This circuit appears to be a light-activated switch controlling two bulbs using a 5V relay, with an LDR (Light Dependent Resistor) as the sensor. The relay is powered by a 48V to 5V converter, which is switched on by a 12V battery through an SPST toggle switch. The LDR's output is connected to the relay's input, enabling the relay to switch the bulbs on or off based on the ambient light level detected by the LDR.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 Wi-Fi Controlled Relay Switch
Image of nyoba: A project utilizing 5V SPDT Relay in a practical application
This circuit uses an ESP32 microcontroller to control a 1-channel 5V relay. The ESP32 toggles the relay on and off every 5 seconds, allowing it to control an external device connected to the relay's output.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 Wi-Fi Controlled Dual Relay Module
Image of esp: A project utilizing 5V SPDT Relay in a practical application
This circuit features an ESP32 microcontroller connected to a two-channel 5V relay module. The ESP32 controls the relay channels via its GPIO pins D23 and D22, allowing it to switch external devices on and off. The relay module is powered by the 3.3V and GND pins of the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 5V SPDT Relay

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 RELLAY BOARD TEST: A project utilizing 5V SPDT Relay 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
Image of automatic headlight control project : A project utilizing 5V SPDT Relay in a practical application
LDR-Activated Relay Control for Dual Bulb Illumination
This circuit appears to be a light-activated switch controlling two bulbs using a 5V relay, with an LDR (Light Dependent Resistor) as the sensor. The relay is powered by a 48V to 5V converter, which is switched on by a 12V battery through an SPST toggle switch. The LDR's output is connected to the relay's input, enabling the relay to switch the bulbs on or off based on the ambient light level detected by the LDR.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of nyoba: A project utilizing 5V SPDT Relay in a practical application
ESP32 Wi-Fi Controlled Relay Switch
This circuit uses an ESP32 microcontroller to control a 1-channel 5V relay. The ESP32 toggles the relay on and off every 5 seconds, allowing it to control an external device connected to the relay's output.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of esp: A project utilizing 5V SPDT Relay in a practical application
ESP32 Wi-Fi Controlled Dual Relay Module
This circuit features an ESP32 microcontroller connected to a two-channel 5V relay module. The ESP32 controls the relay channels via its GPIO pins D23 and D22, allowing it to switch external devices on and off. The relay module is powered by the 3.3V and GND pins of the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Home automation systems
  • Motor control circuits
  • Industrial equipment
  • IoT projects
  • Switching between power sources
  • Controlling high-voltage devices with microcontrollers (e.g., Arduino)

Technical Specifications

Below are the key technical details of the 5V SPDT relay:

Parameter Value
Operating Voltage 5V DC
Coil Resistance ~70Ω
Switching Voltage Up to 250V AC / 30V DC
Switching Current Up to 10A
Contact Configuration SPDT (Single Pole Double Throw)
Isolation Voltage 1500V AC
Operating Temperature -40°C to +85°C
Dimensions ~19mm x 15mm x 15mm

Pin Configuration

The 5V SPDT relay has five pins, as described in the table below:

Pin Name Description
COM Common terminal. Connects to the load or power source.
NO Normally Open terminal. Disconnected from COM when the relay is inactive.
NC Normally Closed terminal. Connected to COM when the relay is inactive.
VCC Positive terminal for the relay coil. Connect to a 5V DC power source.
GND Ground terminal for the relay coil. Connect to the ground of the power source.

Usage Instructions

How to Use the 5V SPDT Relay in a Circuit

  1. Power the Relay Coil: Connect the VCC pin to a 5V DC power source and the GND pin to the ground.
  2. Control the Relay: Use a microcontroller (e.g., Arduino) or a transistor to control the relay coil. When the coil is energized, the relay switches from NC to NO.
  3. Connect the Load:
    • Connect the load to the COM terminal.
    • Use the NO terminal if you want the load to be powered only when the relay is active.
    • Use the NC terminal if you want the load to be powered when the relay is inactive.

Important Considerations

  • Back-EMF Protection: Always use a flyback diode (e.g., 1N4007) across the relay coil to protect the driving circuit from voltage spikes.
  • Isolation: Ensure proper electrical isolation between the control and load circuits to prevent damage.
  • Current Rating: Do not exceed the relay's maximum current rating (10A) to avoid overheating or failure.
  • Power Supply: Use a stable 5V DC power source to ensure reliable operation.

Example: Connecting to an Arduino UNO

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

Circuit Connections

  • Connect the relay's VCC pin to the Arduino's 5V pin.
  • Connect the relay's GND pin to the Arduino's GND pin.
  • Connect the relay's control pin (e.g., IN) to Arduino digital pin 7.
  • Use a flyback diode across the relay coil for protection.

Arduino Code

// Example code to control a 5V SPDT relay with Arduino UNO

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

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

void loop() {
  digitalWrite(RELAY_PIN, HIGH);  // Turn the relay on (activates NO terminal)
  delay(1000);  // Keep the relay on for 1 second
  digitalWrite(RELAY_PIN, LOW);  // Turn the relay off (activates NC terminal)
  delay(1000);  // Keep the relay off for 1 second
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Switching:

    • Cause: Insufficient voltage or current to the relay coil.
    • Solution: Ensure the control signal provides 5V and sufficient current (typically ~70mA).
  2. Load Not Powering On:

    • Cause: Incorrect wiring of the load to the relay terminals.
    • Solution: Verify the load is connected to the correct terminals (COM and NO/NC).
  3. Microcontroller Resetting:

    • Cause: Voltage spikes from the relay coil.
    • Solution: Add a flyback diode across the relay coil to suppress back-EMF.
  4. Relay Overheating:

    • Cause: Exceeding the relay's current rating.
    • Solution: Ensure the load current does not exceed 10A.

FAQs

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

  • Q: Is the relay suitable for AC loads?
    A: Yes, the relay can switch AC loads up to 250V, provided the current does not exceed 10A.

  • Q: Do I need an external power supply for the relay?
    A: If your microcontroller cannot supply sufficient current, use an external 5V power supply for the relay.

  • Q: Can I use the relay for PWM signals?
    A: No, relays are not suitable for high-frequency switching. Use a solid-state relay or MOSFET for PWM applications.