A 5V Relay Module is an electronic switch that allows a low voltage control signal to switch a higher voltage circuit. It typically consists of a relay, which is an electromechanical switch, and additional components to interface with microcontrollers or other control systems. This module is commonly used in automation projects to control devices like lights, motors, and other appliances.
Specification | Value |
---|---|
Operating Voltage | 5V DC |
Relay Type | Electromechanical |
Maximum Load Voltage | 250V AC / 30V DC |
Maximum Load Current | 10A |
Control Signal | 5V TTL |
Isolation | Opto-isolated |
Pin Number | Pin Name | Description |
---|---|---|
1 | IN | Control signal input (5V TTL) |
2 | GND | Ground connection |
3 | VCC | Power supply (5V) |
4 | NO | Normally Open contact (output) |
5 | NC | Normally Closed contact (output) |
6 | COM | Common contact (output) |
Wiring the Relay Module:
Controlling the Relay:
Relay Not Activating:
Relay Sticking:
Intermittent Operation:
Here is a simple example of how to control a 5V Relay Module using an Arduino UNO:
// Define the pin for the relay
const int relayPin = 7;
void setup() {
// Set the relay pin as an output
pinMode(relayPin, OUTPUT);
}
void loop() {
// Turn the relay on
digitalWrite(relayPin, HIGH);
delay(1000); // Wait for 1 second
// Turn the relay off
digitalWrite(relayPin, LOW);
delay(1000); // Wait for 1 second
}
This code will turn the relay on and off every second, allowing you to test the relay's functionality. Always ensure that the relay is connected to a load that is within its specifications.