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!
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.
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.
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.
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.
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
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.
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.
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.
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
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.
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.
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).
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.