A 12V relay is an electrically operated switch that uses a 12-volt power supply to control a high-power circuit with a low-power signal. This component is widely used in various applications, including home automation, industrial control systems, and automotive electronics. By isolating the control circuit from the high-power circuit, relays provide a safe and efficient way to manage electrical loads.
Parameter | Value |
---|---|
Operating Voltage | 12V DC |
Trigger Voltage | 5V DC (for control) |
Current Rating | 10A @ 250V AC / 10A @ 30V DC |
Contact Type | SPDT (Single Pole Double Throw) |
Coil Resistance | 400Ω |
Switching Time | 10ms (operate), 5ms (release) |
Dimensions | 19mm x 15.5mm x 15mm |
Pin Number | Pin Name | Description |
---|---|---|
1 | NO | Normally Open contact |
2 | COM | Common contact |
3 | NC | Normally Closed contact |
4 | VCC | 12V DC power supply for the relay coil |
5 | GND | Ground |
6 | IN | Control signal input (typically 5V from a microcontroller) |
Power Supply:
Control Signal:
Load Connection:
/*
* Example code to control a 12V relay with an Arduino UNO.
* The relay is connected to digital pin 7.
*/
const int relayPin = 7; // Define the relay control pin
void setup() {
pinMode(relayPin, OUTPUT); // Set the relay pin as an output
digitalWrite(relayPin, LOW); // Initialize the relay as off
}
void loop() {
digitalWrite(relayPin, HIGH); // Turn the relay on
delay(1000); // Wait for 1 second
digitalWrite(relayPin, LOW); // Turn the relay off
delay(1000); // Wait for 1 second
}
Relay Not Switching:
Chattering or Buzzing:
Overheating:
No Response from Load:
Q: Can I use a 12V relay with a 5V microcontroller?
Q: What is the purpose of a flyback diode?
Q: Can I control multiple relays with a single microcontroller?
By following this documentation, users can effectively integrate a 12V relay into their projects, ensuring safe and reliable operation.