
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 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.

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 uses an ESP8266 NodeMCU microcontroller to control a 12V single-channel relay, which in turn switches an AC-powered red light on and off. The relay's control input (IN) is connected to a digital output (D1) on the ESP8266, allowing the microcontroller to activate the relay. The relay's normally open (NO) contact is used to complete the circuit for the red light when the relay is energized, and the power for the relay's coil and the microcontroller is supplied by a 5V DC source.

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 ESP8266 NodeMCU to control a 12V single-channel relay, which in turn controls a 220V AC red light. The relay is powered by a 5V DC source, and the ESP8266 is used to switch the relay on and off via its D1 pin, allowing for remote or automated control of the AC light.
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.