Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Relay : Examples, Pinouts, and Specs

Image of Relay Design 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!
Image of ESP32-Controlled 8-Channel Relay for Smart Home Automation: 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.

Open Project in Cirkit Designer

Common Applications

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

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:

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.