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

How to Use Relay : Examples, Pinouts, and Specs

Image of Relay
Cirkit Designer LogoDesign with Relay in Cirkit Designer

Introduction

The SRD-05VDC-SL-C is an electromechanical relay manufactured by Ningbo Songle Relay. It is designed to control high-power devices using low-power signals, making it an essential component in automation, home appliances, and industrial control systems. The relay operates by energizing an electromagnetic coil, which mechanically opens or closes its internal switch contacts.

Explore Projects Built with 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!
WeMos D1 R2 Controlled Relay Switching Circuit for AC Bulb and USB Charger
Image of Hand Gesture Light: A project utilizing Relay  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 8-Channel Relay for Smart Home Automation
Image of ECE STAFFROOM CONTROLS: A project utilizing Relay  in a practical application
This circuit is designed to control multiple AC-powered devices and fans using an ESP32 microcontroller and an 8-channel relay module. The ESP32 is programmed to interface with the relays, allowing for both manual control via rocker switches and remote control through the ESP RainMaker platform. The circuit provides real-time feedback and can operate without WiFi, offering a versatile solution for smart home automation or industrial control systems.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled DC Motor with Dual Relay System
Image of LED Show v2: A project utilizing Relay  in a practical application
This circuit controls a DC motor using two 12V relays, which are powered by a 12V supply through a barrel jack. The relays are configured to switch the motor's connections, allowing for control over its operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Powered 8-Channel Relay Controller with Wi-Fi Connectivity
Image of Olimex ESP32-POE2 4Ch X 2 Switches: A project utilizing Relay  in a practical application
This circuit features an ESP32 microcontroller connected to an 8-channel relay module. The ESP32 controls the relay channels via its GPIO pins, allowing for the switching of external devices or loads through the relays.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 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 Hand Gesture Light: A project utilizing Relay  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 ECE STAFFROOM CONTROLS: A project utilizing Relay  in a practical application
ESP32-Controlled 8-Channel Relay for Smart Home Automation
This circuit is designed to control multiple AC-powered devices and fans using an ESP32 microcontroller and an 8-channel relay module. The ESP32 is programmed to interface with the relays, allowing for both manual control via rocker switches and remote control through the ESP RainMaker platform. The circuit provides real-time feedback and can operate without WiFi, offering a versatile solution for smart home automation or industrial control systems.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of LED Show v2: A project utilizing Relay  in a practical application
ESP32-Controlled DC Motor with Dual Relay System
This circuit controls a DC motor using two 12V relays, which are powered by a 12V supply through a barrel jack. The relays are configured to switch the motor's connections, allowing for control over its operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Olimex ESP32-POE2 4Ch X 2 Switches: A project utilizing Relay  in a practical application
ESP32-Powered 8-Channel Relay Controller with Wi-Fi Connectivity
This circuit features an ESP32 microcontroller connected to an 8-channel relay module. The ESP32 controls the relay channels via its GPIO pins, allowing for the switching of external devices or loads through the relays.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Home automation systems (e.g., controlling lights, fans, or appliances)
  • Industrial control systems
  • Motor control circuits
  • Microcontroller-based projects (e.g., Arduino, Raspberry Pi)
  • Power supply switching

Technical Specifications

Key Technical Details

Parameter Value
Manufacturer Ningbo Songle Relay
Part Number SRD-05VDC-SL-C
Coil Voltage 5 V DC
Operating Voltage Range 3.75 V DC to 5.25 V DC
Coil Resistance 70 Ω ±10%
Contact Type SPDT (Single Pole Double Throw)
Contact Rating 10 A at 250 V AC / 10 A at 30 V DC
Switching Voltage (Max) 250 V AC / 30 V DC
Switching Current (Max) 10 A
Insulation Resistance ≥100 MΩ (at 500 V DC)
Dielectric Strength 500 V AC (coil to contact)
Operating Temperature -40°C to +85°C
Dimensions 19.0 mm x 15.5 mm x 15.0 mm

Pin Configuration and Descriptions

The SRD-05VDC-SL-C relay has five pins, as described below:

Pin Number Pin Name Description
1 Coil Positive Positive terminal of the electromagnetic coil
2 Coil Negative Negative terminal of the electromagnetic coil
3 Common (COM) Common terminal for the relay switch
4 Normally Open (NO) Open circuit when the relay is de-energized; closes when energized
5 Normally Closed (NC) Closed circuit when the relay is de-energized; opens when energized

Usage Instructions

How to Use the Relay in a Circuit

  1. Power the Coil: Connect the coil pins (Pin 1 and Pin 2) to a 5 V DC power source. Use a transistor or a microcontroller (e.g., Arduino) to control the coil.
  2. Connect the Load:
    • Connect the load to the Common (COM) pin (Pin 3).
    • Use the Normally Open (NO) pin (Pin 4) if you want the load to be powered only when the relay is energized.
    • Use the Normally Closed (NC) pin (Pin 5) if you want the load to be powered when the relay is not energized.
  3. Add a Flyback Diode: Place a flyback diode (e.g., 1N4007) across the coil terminals to protect the circuit from voltage spikes when the relay is turned off.
  4. Control the Relay: Use a microcontroller or a switch to control the relay coil. Ensure the control circuit can supply sufficient current to energize the coil (approximately 71 mA).

Important Considerations

  • Isolation: The relay provides electrical isolation between the control circuit and the load circuit, making it safe for high-voltage applications.
  • Current Rating: Ensure the load current does not exceed the relay's maximum contact rating (10 A).
  • Voltage Rating: Verify that the load voltage is within the relay's maximum switching voltage (250 V AC or 30 V DC).
  • Debouncing: When using the relay with a microcontroller, implement software or hardware debouncing to avoid erratic switching.

Example: Using the Relay with an Arduino UNO

Below is an example of how to control the SRD-05VDC-SL-C relay using an Arduino UNO:

// Define the pin connected to the relay module
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); // Turn the relay on
  delay(1000); // Keep the relay on for 1 second
  digitalWrite(relayPin, LOW); // Turn the relay off
  delay(1000); // Keep the relay off for 1 second
}

Notes:

  • Connect the relay module's control pin to Arduino pin 7.
  • Use an external power supply for the relay module if the Arduino cannot provide sufficient current.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Switching

    • Cause: Insufficient voltage or current to the coil.
    • Solution: Verify that the control circuit provides 5 V DC and at least 71 mA to the coil.
  2. Load Not Powering On

    • Cause: Incorrect wiring of the load to the relay pins.
    • Solution: Double-check the connections to the COM, NO, and NC pins.
  3. Relay Buzzing Noise

    • Cause: Insufficient or unstable power supply to the coil.
    • Solution: Ensure the power supply is stable and within the operating voltage range (3.75 V to 5.25 V DC).
  4. Microcontroller Resetting

    • Cause: Voltage spikes from the relay coil affecting the microcontroller.
    • Solution: Add a flyback diode across the coil terminals to suppress voltage spikes.

FAQs

Q1: Can I use the SRD-05VDC-SL-C relay with a 3.3 V microcontroller?
A1: Yes, but you will need a transistor or relay driver circuit to step up the control voltage to 5 V.

Q2: What is the purpose of the flyback diode?
A2: The flyback diode protects the control circuit from voltage spikes generated when the relay coil is de-energized.

Q3: Can this relay switch AC loads?
A3: Yes, the relay can switch AC loads up to 250 V with a maximum current of 10 A.

Q4: Is the relay suitable for continuous operation?
A4: Yes, the relay is designed for continuous operation within its rated specifications. Ensure proper ventilation to avoid overheating.