A relay is an electromechanical switch that uses an electromagnetic coil to open or close a circuit. The 12V relay is specifically designed to operate with a 12-volt power supply. It acts as an intermediary device, allowing low-power control signals to manage high-power circuits. This makes it ideal for applications where isolation between control and load circuits is required.
Below are the key technical details of a standard 12V relay:
Parameter | Value |
---|---|
Operating Voltage | 12V DC |
Coil Resistance | ~400Ω to 500Ω (varies by model) |
Switching Voltage (Load) | Up to 250V AC or 30V DC |
Switching Current (Load) | Typically 10A (varies by model) |
Contact Type | SPDT (Single Pole Double Throw) or DPDT (Double Pole Double Throw) |
Isolation | Electrical isolation between control and load circuits |
Dimensions | Varies (e.g., 28mm x 10mm x 15mm for common models) |
Operating Temperature | -40°C to +85°C |
The 12V relay typically has 5 pins for SPDT relays. Below is the pinout description:
Pin Name | Description |
---|---|
Coil (+) | Positive terminal of the relay coil. Connect to 12V DC. |
Coil (-) | Negative terminal of the relay coil. Connect to ground. |
Common (COM) | Common terminal for the load circuit. |
Normally Open (NO) | Load terminal that remains disconnected when the relay is inactive. It connects to COM when the relay is activated. |
Normally Closed (NC) | Load terminal that remains connected to COM when the relay is inactive. It disconnects when the relay is activated. |
Coil (+)
pin to a 12V DC power source and the Coil (-)
pin to ground. This energizes the relay coil when activated.COM
and NO
pins if you want the load to turn on when the relay is activated.COM
and NC
pins if you want the load to turn off when the relay is activated.Below is an example of how to control a 12V relay using an Arduino UNO:
Coil (+)
pin of the relay to the 12V power supply.Coil (-)
pin to the collector of an NPN transistor (e.g., 2N2222).Coil (+)
and the anode to Coil (-)
.COM
and NO
pins of the relay.// 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); // Activate the relay
delay(1000); // Keep the relay on for 1 second
digitalWrite(relayPin, LOW); // Deactivate the relay
delay(1000); // Keep the relay off for 1 second
}
Relay Not Activating:
Load Not Switching:
COM
, NO
, and NC
pins.Microcontroller Resetting:
Relay Buzzing or Chattering:
Q: Can I use a 12V relay with a 5V microcontroller like Arduino?
A: Yes, but you will need a transistor or relay driver module to interface the 5V control signal with the 12V relay coil.
Q: What is the purpose of the flyback diode?
A: The flyback diode protects the circuit from voltage spikes generated when the relay coil is de-energized.
Q: Can I use the relay to switch AC loads?
A: Yes, as long as the load's voltage and current ratings are within the relay's specifications. Always ensure proper insulation and safety precautions when working with AC circuits.