

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 higher power circuit, providing isolation and control in various applications. Relays are widely used in automation, home appliances, automotive systems, and industrial control systems. They are essential for applications where electrical isolation or the ability to control high-power devices with low-power signals is required.
Common applications of relays include:








Below are the general technical specifications for a standard single-pole single-throw (SPST) relay. Specifications may vary depending on the specific relay model.
| Parameter | Value |
|---|---|
| Coil Voltage | 5V, 12V, or 24V DC (common values) |
| Coil Resistance | 70Ω to 400Ω (varies by model) |
| Switching Voltage (Load) | Up to 250V AC or 30V DC |
| Switching Current (Load) | Up to 10A |
| Contact Configuration | SPST, SPDT, DPDT, etc. |
| Isolation Voltage | 1000V or higher |
| Operating Temperature | -40°C to 85°C |
| Mechanical Life | 10 million operations (typical) |
| Electrical Life | 100,000 operations (typical) |
The pin configuration of a typical 5-pin SPDT (Single Pole Double Throw) 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) | Common terminal connected to the moving contact. |
| 4 | Normally Open (NO) | Contact that remains open until the relay is activated. |
| 5 | Normally Closed (NC) | Contact that remains closed until the relay is activated. |
Below is an example of how to control a relay using an Arduino UNO:
// Define the relay pin
const int relayPin = 7;
void setup() {
// Set the relay pin as an output
pinMode(relayPin, OUTPUT);
}
void loop() {
// Turn the relay ON
digitalWrite(relayPin, HIGH);
delay(1000); // Keep the relay ON for 1 second
// Turn the relay OFF
digitalWrite(relayPin, LOW);
delay(1000); // Keep the relay OFF for 1 second
}
Relay Not Activating:
Load Not Switching:
Voltage Spikes Damaging Components:
Relay Buzzing or Chattering:
Relay Overheating:
Q1: Can I use a relay to control an AC load?
A1: Yes, relays are commonly used to control AC loads. Ensure the relay's switching voltage and current ratings are suitable for the AC load.
Q2: What is the purpose of the flyback diode?
A2: The flyback diode protects the circuit from voltage spikes generated when the relay coil is de-energized.
Q3: Can I directly connect a relay to an Arduino pin?
A3: No, most relays require more current than an Arduino pin can supply. Use a transistor or relay driver module to control the relay.
Q4: How do I know if my relay is SPST or SPDT?
A4: Check the relay's datasheet or inspect the pin configuration. SPST relays have 4 pins, while SPDT relays typically have 5 pins.
Q5: Can a relay switch both AC and DC loads?
A5: Yes, but ensure the relay's specifications support the type of load (AC or DC) and its voltage/current requirements.