The 1 Channel Relay Module with Optocoupler, manufactured by Songle (Part ID: SRD-05VDC-SL-C), is a versatile electronic component that allows microcontrollers to control high-power devices. This module uses an optocoupler to provide electrical isolation between the control circuit and the high-power load, ensuring safety and reliability.
Parameter | Value |
---|---|
Operating Voltage | 5V DC |
Trigger Voltage | 0-5V DC |
Trigger Current | 20mA |
Relay Type | SPDT (Single Pole Double Throw) |
Contact Rating | 10A @ 250V AC / 10A @ 30V DC |
Optocoupler | Yes |
Dimensions | 50mm x 26mm x 18.5mm |
Pin Name | Description |
---|---|
VCC | Connect to 5V DC power supply |
GND | Connect to ground |
IN | Control signal from microcontroller (0-5V) |
NO | Normally Open contact |
COM | Common contact |
NC | Normally Closed contact |
Power the Module:
Control Signal:
Load Connection:
/*
* Example code to control a 1 Channel Relay Module with Optocoupler
* using an Arduino UNO. The relay is connected to digital pin 7.
*/
const int relayPin = 7; // Define the relay control pin
void setup() {
pinMode(relayPin, OUTPUT); // Set the relay pin as an output
digitalWrite(relayPin, LOW); // Initialize the relay as off
}
void loop() {
digitalWrite(relayPin, HIGH); // Turn the relay on
delay(1000); // Wait for 1 second
digitalWrite(relayPin, LOW); // Turn the relay off
delay(1000); // Wait for 1 second
}
Relay Not Switching:
High-Power Device Not Operating:
Microcontroller Resetting:
By following this documentation, users can effectively integrate the 1 Channel Relay Module with Optocoupler into their projects, ensuring safe and reliable operation.