

A relay is an electromechanical switch that uses an electromagnetic coil to open or close a circuit. The 5V relay is specifically designed to operate with a 5V DC input signal, making it ideal for interfacing with microcontrollers and low-voltage control systems. It allows low-power circuits to control high-power devices such as motors, lights, and appliances.








Below are the key technical details for a standard 5V relay:
| Parameter | Value |
|---|---|
| Operating Voltage | 5V DC |
| Trigger Voltage | 3.75V to 5V DC |
| Trigger Current | 15-20 mA |
| Contact Type | SPDT (Single Pole Double Throw) or DPDT (varies by model) |
| Maximum Switching Voltage | 250V AC / 30V DC |
| Maximum Switching Current | 10A (varies by model) |
| Coil Resistance | ~70Ω to 100Ω |
| Isolation | Electrical isolation between control and load circuits |
| Dimensions | Typically 28mm x 10mm x 15mm |
The 5V relay typically has 5 pins. Below is the pin configuration:
| Pin Name | Description |
|---|---|
| VCC | Connects to the 5V DC power supply to energize the relay coil. |
| GND | Ground connection for the relay coil. |
| IN | Control signal input. A HIGH signal (5V) activates the relay. |
| COM | Common terminal for the load circuit. |
| NO | Normally Open terminal. Connects to COM when the relay is activated. |
| NC | Normally Closed terminal. Connects to COM when the relay is not activated. |
Note: Some relay modules may have additional components like diodes, transistors, or optocouplers for protection and easier interfacing.
Below is an example of how to connect a 5V relay to an Arduino UNO to control a light bulb:
// Relay control example with Arduino UNO
// This code turns a relay ON for 5 seconds, then OFF for 5 seconds repeatedly.
#define RELAY_PIN 7 // Define the digital pin connected to the relay IN pin
void setup() {
pinMode(RELAY_PIN, OUTPUT); // Set the relay pin as an output
digitalWrite(RELAY_PIN, LOW); // Ensure the relay is OFF initially
}
void loop() {
digitalWrite(RELAY_PIN, HIGH); // Turn the relay ON
delay(5000); // Wait for 5 seconds
digitalWrite(RELAY_PIN, LOW); // Turn the relay OFF
delay(5000); // Wait for 5 seconds
}
Relay Not Activating:
Load Not Switching:
Relay Clicking but No Output:
Voltage Spikes Damaging Circuit:
Q1: Can I use a 5V relay with a 3.3V microcontroller?
A1: It depends on the relay's trigger voltage. Some 5V relays can be triggered with 3.3V, but others may require a transistor or MOSFET to amplify the control signal.
Q2: Can I control an AC load with a 5V relay?
A2: Yes, as long as the load's voltage and current are within the relay's maximum switching ratings.
Q3: Why is my relay module heating up?
A3: Excessive current through the relay coil or load can cause overheating. Ensure the relay is operating within its specified ratings.
Q4: Can I use the relay to switch DC loads?
A4: Yes, the relay can switch DC loads as long as the voltage and current are within the specified limits.
By following this documentation, you can effectively use a 5V relay in your projects while ensuring safety and reliability.