Description
What it is
The SRD-12VDC-SL-C relay from Songle is a 5-pin electronic device designed for circuit management. This component is compatible with Arduino and other microcontrollers, providing a reliable solution for controlling electrical devices.
Features
- Model: SRD-12VDC-SL-C
- Activation Voltage: 12VDC
- More compatible with Arduino and PCB projects
What it is for
The relay is ideal for beginners and intermediates who want to build automatic systems such as a lighting system. You can connect a light sensor to the microcontroller and use the relay to turn a lamp on or off.
Tutorial: How to use SRD-12VDC-SL-C
The SRD-12VDC-SL-C relay is ideal for controlling electrical devices with a small device like an Arduino. Useful for beginners and intermediates.
What you need
- Arduino or compatible microcontroller
- 12V power supply
- Connection cable
- Breadboard (optional)
Steps
- 1. Check the datasheet for power supply specifications.
- 2. Connect the 12V power source to the relay.
- 3. Insert the relay pins onto the breadboard (if used).
- 4. Connect pins 2 and 3 of the relay to the VCC and GND of the microcontroller.
- 5. Connect pin 1 of the relay to the control pin of the microcontroller.
- 6. Connect pin 5 of the relay to the GND of the microcontroller.
- 7. Load a simple sketch onto the microcontroller to control the relay.
- 8. Verify the operation of the relay with the microcontroller.
Example code
```void setup() { pinMode(2, OUTPUT);}void loop() { digitalWrite(2, HIGH); delay(1000); digitalWrite(2, LOW); delay(1000);}```
Mini project
Build an automatic lighting system. Connect a light sensor to the microcontroller and use the relay to turn a lamp on/off.
Common mistakes
- Incorrect power supply (check the datasheet)
- Incorrect connections (check the pins)
- Incompatible microcontroller (check compatibility)
- Missing power supply
Recommended accessories
- Light sensor
- Lamp
- Breadboard
- Connection cables
Frequently asked questions
Does the relay work with a voltage different from 12V?
Check the datasheet for the allowable supply voltage.
Which pins of the relay to connect to the microcontroller?
Connect pin 1 to the control pin and pins 2 and 3 to VCC and GND.
Does the relay work with Arduino Nano?
Check the compatibility on the datasheet.







Reviews
There are no reviews yet.