

A 12V relay is an electromechanical switch that uses an electromagnetic coil to open or close its internal contacts. This allows a low-power control signal to manage a high-power circuit, making it an essential component in many electronic and electrical systems. The relay operates at a nominal voltage of 12 volts, which energizes the coil to toggle the switch.








Below are the key technical details and pin configuration for a standard 12V relay:
| Parameter | Value |
|---|---|
| Nominal Voltage | 12V DC |
| Operating Voltage Range | 9V to 15V DC |
| Coil Resistance | ~400Ω (varies by model) |
| Contact Type | SPDT (Single Pole Double Throw) or DPDT (Double Pole Double Throw) |
| Maximum Switching Voltage | 250V AC / 30V DC |
| Maximum Switching Current | 10A (varies by model) |
| Isolation | Electrical isolation between control and load circuits |
| Dimensions | Typically ~28mm x 10mm x 15mm |
The 12V relay typically has 5 pins for SPDT relays. Below is the pinout description:
| Pin Number | Name | Description |
|---|---|---|
| 1 | Coil (+) | Positive terminal of the electromagnetic coil. Connect to 12V DC. |
| 2 | Coil (-) | Negative terminal of the electromagnetic coil. Connect to ground. |
| 3 | Common (COM) | Common terminal for the load circuit. |
| 4 | Normally Open (NO) | Open when the relay is de-energized; closes when the relay is energized. |
| 5 | Normally Closed (NC) | Closed when the relay is de-energized; opens when the relay is energized. |
Below is an example of how to control a 12V relay using an Arduino UNO:
// Define the pin connected to the relay module
const int relayPin = 7;
void setup() {
// Set the relay pin as an output
pinMode(relayPin, OUTPUT);
// Ensure the relay is off at startup
digitalWrite(relayPin, LOW);
}
void loop() {
// Turn the relay on (energize the coil)
digitalWrite(relayPin, HIGH);
delay(5000); // Keep the relay on for 5 seconds
// Turn the relay off (de-energize the coil)
digitalWrite(relayPin, LOW);
delay(5000); // Keep the relay off for 5 seconds
}
Note: Use a transistor (e.g., 2N2222) or a relay driver module to interface the Arduino with the relay, as the Arduino's GPIO pins cannot directly supply enough current to energize the relay coil.
Relay Not Switching:
Relay Buzzing or Clicking Rapidly:
Load Not Turning On/Off:
Microcontroller Resetting When Relay Activates:
Q: Can I use a 12V relay with a 5V microcontroller?
A: Yes, but you will need a transistor or relay driver module to interface the 5V control signal with the 12V relay.
Q: What is the difference between NO and NC pins?
A: The NO (Normally Open) pin is disconnected from the COM pin when the relay is off and connects when the relay is energized. The NC (Normally Closed) pin is connected to the COM pin when the relay is off and disconnects when the relay is energized.
Q: Can I use a 12V relay to switch AC loads?
A: Yes, as long as the relay's contact ratings (voltage and current) are sufficient for the AC load. Always follow safety precautions when working with AC circuits.
Q: Why is a flyback diode necessary?
A: A flyback diode protects the circuit from voltage spikes generated when the relay coil is de-energized, preventing damage to the control circuit.
By following this documentation, you can effectively use a 12V relay in your projects while avoiding common pitfalls.