

A relay is an electromechanical switch that uses an electromagnetic coil to open or close a circuit. It allows a low-power signal to control a high-power device, making it an essential component in many electronic and electrical systems. Relays are widely used in applications such as home automation, industrial control systems, automotive electronics, and power distribution systems. They are ideal for isolating control circuits from high-power loads, ensuring safety and reliability.








Below are the general technical specifications for a standard single-pole, double-throw (SPDT) relay. Specifications may vary depending on the specific relay model.
The pin configuration for a standard 5-pin SPDT relay is as follows:
| Pin Number | Name | Description |
|---|---|---|
| 1 | Coil (+) | Positive terminal of the electromagnetic coil. |
| 2 | Coil (-) | Negative terminal of the electromagnetic coil. |
| 3 | Common (COM) | The common terminal connected to the moving contact inside the relay. |
| 4 | Normally Open (NO) | The terminal that is disconnected from COM when the relay is inactive. It connects to COM when the relay is activated. |
| 5 | Normally Closed (NC) | The terminal that is connected to COM when the relay is inactive. It disconnects from COM when the relay is activated. |
Below is an example of how to control a relay using an Arduino UNO:
// Example: Controlling a relay with an Arduino UNO
// Pin 7 is connected to the relay module's control pin
#define RELAY_PIN 7 // Define the Arduino pin connected to the relay module
void setup() {
pinMode(RELAY_PIN, OUTPUT); // Set the relay pin as an output
digitalWrite(RELAY_PIN, LOW); // Ensure the relay is off at startup
}
void loop() {
digitalWrite(RELAY_PIN, HIGH); // Turn the relay on
delay(1000); // Keep the relay on for 1 second
digitalWrite(RELAY_PIN, LOW); // Turn the relay off
delay(1000); // Keep the relay off for 1 second
}
Relay Not Activating
Load Not Switching
Microcontroller Cannot Drive the Relay
Relay Buzzing or Chattering
Voltage Spikes Damaging Components
Q: Can I use a relay to control an AC load?
Q: What is the difference between NO and NC terminals?
Q: Can I use a relay for high-speed switching?