

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 high-power devices, making it an essential component in automation, control systems, and power management. Relays are widely used in applications such as home automation, motor control, industrial equipment, and automotive systems.
Common applications include:








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 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 connected to the moving part of the switch. |
| Normally Open (NO) | The terminal that is disconnected from COM when the relay is inactive. |
| Normally Closed (NC) | The terminal that is connected to COM when the relay is inactive. |
Connect the Coil Terminals:
Connect the Load:
Power the Relay:
Test the Circuit:
Below is an example of how to control a relay using an Arduino UNO:
// Example: Controlling a relay with Arduino UNO
// Pin 7 is connected to the relay module's control pin
#define RELAY_PIN 7 // Define the 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 initially
}
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
}
Note: Ensure the relay module is compatible with the Arduino's 5V output. Use an external power supply if required.
Relay Not Switching:
Voltage Spikes Damaging Circuit:
Relay Buzzing or Chattering:
Overheating Contacts:
Q1: Can I use a relay to switch DC and AC loads?
A1: Yes, most relays can switch both DC and AC loads, but ensure the load voltage and current are within the relay's contact ratings.
Q2: Why is a transistor often used with a relay?
A2: Microcontrollers like Arduino cannot supply enough current to directly drive a relay. A transistor acts as a switch to amplify the current.
Q3: What is the purpose of the NO and NC terminals?
A3: The NO terminal is used for devices that should turn on when the relay is activated, while the NC terminal is used for devices that should turn off when the relay is activated.
Q4: Can I use a relay for high-frequency switching?
A4: Relays are not suitable for high-frequency switching due to their mechanical nature. Use solid-state relays or transistors for such applications.