

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 circuits and controlling high-current loads with minimal input power.








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 of a typical SPDT relay is as follows:
| Pin Name | Description |
|---|---|
| Coil (+) | Positive terminal of the electromagnetic coil. |
| Coil (-) | Negative terminal of the electromagnetic coil. |
| Common (COM) | The common terminal that connects to either the Normally Open (NO) or Normally Closed (NC) contact. |
| Normally Open (NO) | The terminal that remains disconnected from COM when the relay is inactive. It connects to COM when the relay is activated. |
| Normally Closed (NC) | The terminal that remains 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 5V relay module using an Arduino UNO.
// Define the relay control pin
const int relayPin = 7;
void setup() {
pinMode(relayPin, OUTPUT); // Set the relay pin as an output
digitalWrite(relayPin, LOW); // Ensure the relay is off at startup
}
void loop() {
digitalWrite(relayPin, HIGH); // Turn the relay on
delay(1000); // Keep the relay on for 1 second
digitalWrite(relayPin, LOW); // Turn the relay off
delay(1000); // Keep the relay off for 1 second
}
Relay Not Activating:
Relay Stuck in One State:
Voltage Spikes Damaging the Circuit:
Load Not Switching Properly:
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-frequency switching?
Q: How do I protect my circuit from relay-induced voltage spikes?