

A relay is an electromechanical switch that allows a low-power signal to control a high-power circuit. The 5V relay operates at a 5-volt DC input signal, making it ideal for interfacing with microcontrollers like Arduino, Raspberry Pi, and other low-voltage control systems. It provides electrical isolation between the control circuit and the load, ensuring safety and reliability.








| Parameter | Value |
|---|---|
| Operating Voltage | 5V DC |
| Trigger Voltage | 3.3V to 5V DC |
| Maximum Switching Voltage | 250V AC / 30V DC |
| Maximum Switching Current | 10A |
| Coil Resistance | ~70Ω |
| Contact Type | SPDT (Single Pole Double Throw) |
| Electrical Isolation | Yes (via electromagnetic coil) |
| Dimensions | Typically 28mm x 10mm x 15mm |
| Pin Number | Name | Description |
|---|---|---|
| 1 | VCC | Connect to 5V DC power supply |
| 2 | GND | Connect to ground |
| 3 | IN | Control signal input (3.3V to 5V logic level) |
| 4 | COM (Common) | Common terminal for the load circuit |
| 5 | NO (Normally Open) | Open by default; closes when relay is activated |
| 6 | NC (Normally Closed) | Closed by default; opens when relay is activated |
Below is an example of how to control a 5V relay using an Arduino UNO to switch a light bulb.
// Define the relay control pin
const int relayPin = 7;
void setup() {
pinMode(relayPin, OUTPUT); // Set relay pin as output
digitalWrite(relayPin, LOW); // Ensure relay is off at startup
}
void loop() {
digitalWrite(relayPin, HIGH); // Turn relay on (light bulb on)
delay(5000); // Keep it on for 5 seconds
digitalWrite(relayPin, LOW); // Turn relay off (light bulb off)
delay(5000); // Keep it off for 5 seconds
}
Relay Not Activating
Load Not Switching
Microcontroller Resetting When Relay Activates
Relay Clicking but No Load Response
Can I use the 5V relay with a 3.3V microcontroller?
Do I need an external power supply for the relay?
What is the purpose of the flyback diode?
Can I use the relay to switch DC loads?