
This circuit controls a DC motor using two 12V relays, which are powered by a 12V supply through a barrel jack. The relays are configured to switch the motor's connections, allowing for control over its operation.
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. Relays are widely used for automation, isolation, and control purposes.

This circuit controls a DC motor using two 12V relays, which are powered by a 12V supply through a barrel jack. The relays are configured to switch the motor's connections, allowing for control over its operation.

This circuit involves a 12V battery powering a relay system controlled by a directional switch. The relays are connected through terminal blocks and are used to switch between different outputs, indicated by the AdaGator Top components.

This circuit uses an ESP32 microcontroller to control a 12V relay, which in turn operates a plastic solenoid valve. The ESP32 toggles the relay on and off every second, allowing the solenoid valve to open and close accordingly.

This circuit consists of a 5V battery powering a 4-channel relay module, which controls four LEDs (red, yellow, green, and blue) through individual resistors. Each relay channel is activated by a corresponding SPST toggle switch, allowing manual control of the LEDs.
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 | Up to 250V AC / 30V DC |
| Switching Current | Typically 10A (check datasheet) |
| Contact Configuration | SPDT (Single Pole Double Throw) or DPDT (Double Pole Double Throw) |
| Isolation | Electrical isolation between control and load circuits |
| Dimensions | Varies by model (e.g., 28mm x 12mm x 15mm for mini relays) |
| Operating Temperature | -40°C to +85°C |
The 12V relay typically has 5 pins for SPDT configuration. Below is the pinout:
| 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 circuit when the relay is inactive; closes when the relay is activated. |
| 5 | Normally Closed (NC) | Closed circuit when the relay is inactive; opens when the relay is activated. |
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() {
pinMode(relayPin, OUTPUT); // Set the relay pin as an output
digitalWrite(relayPin, LOW); // Ensure the relay is off initially
}
void loop() {
digitalWrite(relayPin, HIGH); // Activate the relay
delay(5000); // Keep the relay on for 5 seconds
digitalWrite(relayPin, LOW); // Deactivate the relay
delay(5000); // Keep the relay off for 5 seconds
}
Note: Ensure the relay module has a built-in transistor and flyback diode for safe operation with the Arduino.
Relay Not Activating:
Load Not Switching:
Microcontroller Resetting:
Relay Clicking Rapidly:
Q: Can I use a 12V relay with a 5V microcontroller?
A: Yes, but you need a transistor or relay driver circuit to amplify the 5V signal to 12V for the relay coil.
Q: What is the purpose of the flyback diode?
A: It 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 are within the relay's rated specifications.
Q: How do I know if the relay is SPDT or DPDT?
A: Check the relay's datasheet or count the number of pins. SPDT relays typically have 5 pins, while DPDT relays have 8 pins.