The Hailege 12 Volt SPST Relay (Manufacturer Part ID: 1) is a single pole, single throw relay designed to control electrical circuits by opening or closing them in response to a 12V DC signal. This relay acts as an electrically operated switch, allowing low-power control signals to manage higher-power circuits safely and efficiently.
The Hailege 12 Volt SPST Relay has 5 pins, as described in the table below:
Pin Number | Name | Description |
---|---|---|
1 | Coil (+) | Positive terminal of the relay coil. Connect to 12V DC to energize the relay. |
2 | Coil (-) | Negative terminal of the relay coil. Connect to ground. |
3 | Common (COM) | Common terminal for the relay switch. |
4 | Normally Open (NO) | The terminal that connects to COM when the relay is energized. |
5 | Not Used | This pin is not connected internally and can be ignored. |
Below is an example of how to control the Hailege 12 Volt SPST Relay using an Arduino UNO:
// Example: Controlling a 12V SPST Relay with Arduino UNO
// Pin 7 is used to control the relay via a transistor driver circuit.
const int relayPin = 7; // Define the pin connected to the relay driver circuit
void setup() {
pinMode(relayPin, OUTPUT); // Set the relay pin as an output
digitalWrite(relayPin, LOW); // Ensure the relay is off initially
}
void loop() {
digitalWrite(relayPin, HIGH); // Turn the relay on
delay(5000); // Keep the relay on for 5 seconds
digitalWrite(relayPin, LOW); // Turn the relay off
delay(5000); // Keep the relay off for 5 seconds
}
Note: Use a transistor (e.g., 2N2222) and a base resistor (e.g., 1kΩ) to drive the relay from the Arduino, as the Arduino's GPIO pins cannot supply enough current to energize the relay directly.
Relay Not Switching:
Relay Stuck in ON or OFF Position:
Microcontroller Resetting When Relay Activates:
Load Not Turning On/Off:
Q: Can this relay handle AC loads?
Q: Can I use this relay with a 5V microcontroller?
Q: Is the relay suitable for continuous operation?
Q: Can I use this relay for switching high-frequency signals?