Component guide · Beginner · 3 min read
12V Solenoid Water and Air Valves (1/2 Inch, Plastic and Brass)

Wiring and Control
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
A 12 V solenoid valve opens a water or air line when its coil is powered and closes again when power is removed (normally closed). The plastic 1/2 inch valve suits tank-fed irrigation and dispensers, and brass valves handle higher pressure and longer life. Many need some water pressure to seal, so check the minimum pressure.
Key specs at a glance
- Voltage
- 12 V DC (24 V and 220 V versions exist)
- Current
- About 0.3 to 0.5 A
- Type
- Normally closed
- Thread
- 1/2 inch BSP
- Pressure
- About 0.02 to 0.8 MPa (pilot types need minimum pressure)
- Media
- Water or air (check model)
This part can carry many amps. Use wire thick enough for the current, put a fuse close to the battery, check that connectors are rated for the load and give drivers and motors room to cool. A short at these currents melts wires in seconds.
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 112V Solenoid Water Valve 1/2" (Normally Closed)₹263
Option 2Solenoid Valve (Water / Air)₹209
What the 12V solenoid water valve is
A solenoid water valve is an electrically operated tap. A coil lifts a plunger to open the water path when powered, and a spring closes it when power is removed.
Pilot-operated valves use line pressure to open fully and may leak or not open with gravity-fed tanks. For low pressure, choose a direct-acting valve.
The coil gets warm when on for long; that is normal. Always fit a flyback diode.
12V solenoid water valve pinout
The pins on the 12V solenoid water valve and what each one does.
| Pin | Function |
|---|---|
| Coil terminal 1 | +12 V |
| Coil terminal 2 | Switched to ground |
- Coil terminal 1
- +12 V
- Coil terminal 2
- Switched to ground
Wiring the 12V solenoid water valve
Fit a 1N4007 across the coil, band to +12 V.
| 12V solenoid water valve pin | Arduino Uno | ESP32 |
|---|---|---|
| Load + | 12 V supply + | 12 V supply + |
| Load - | MOSFET module OUT- (or relay NO) | MOSFET module OUT- |
| Module signal | D7 | GPIO 26 |
| GND | GND (shared with 12 V -) | GND |
- Load +
- Arduino Uno:
- 12 V supply +
- ESP32:
- 12 V supply +
- Load -
- Arduino Uno:
- MOSFET module OUT- (or relay NO)
- ESP32:
- MOSFET module OUT-
- Module signal
- Arduino Uno:
- D7
- ESP32:
- GPIO 26
- GND
- Arduino Uno:
- GND (shared with 12 V -)
- ESP32:
- GND
Example code
A minimal sketch to check the part works.
const int VALVE = 26;
void setup() { pinMode(VALVE, OUTPUT); }
void loop() {
digitalWrite(VALVE, HIGH);
delay(5UL * 60 * 1000); // 5 minutes
digitalWrite(VALVE, LOW);
delay(6UL * 60 * 60 * 1000);
}Setup and tuning
for gravity-fed tanks choose a direct-acting valve; pilot-operated valves need line pressure to open fully.
fit it with the arrow on the body pointing the way the water flows.
put a filter before the valve; grit stops it sealing.
use a MOSFET module or relay with a flyback diode across the coil.
seal with PTFE tape and do not over-tighten plastic bodies.
What you need
Shop this list6 of 8 found in our store · ₹1,272
12V Solenoid Water Valve 1/2" (Normally Closed): the part this guide covers12V Solenoid Water Valve 1/2" (Normally Closed)₹263
Solenoid Valve (Water / Air): another version this guide coversSolenoid Valve (Water / Air)₹209- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
MOSFET switch module (D4184 / LR7843): to switch or PWM it from a GPIOMOSFET Switch Module, Relay Replacement (D4184 / LR7843)₹39
5V relay module with optocoupler: to switch it from a microcontroller5V Relay Module with Optocoupler₹74- 1N4007 diode: flyback protection across the coil or motorFind this part
SMPS power supply in metal enclosure (5/12/24 V): a 12 V supplySMPS Power Supply, Metal Enclosure (5V / 12V / 24V)₹298Closest match, check the specs
Alternatives and when to choose them
- Push-pull solenoid: mechanical motion.
- Water pumps overview.
Common mistakes to avoid
- Switching the coil with no flyback diode.
- Using a pilot-operated valve on a low-pressure tank.
- Installing the valve against the flow arrow.
- Skipping the strainer, so debris keeps it from sealing.
Frequently asked questions
Is this valve normally open or normally closed?
These are normally closed: water flows only while the coil is powered.
Will a solenoid valve work with a water tank?
Only a direct-acting valve, or a pilot valve with enough pressure head. Many pilot valves stay shut on low-pressure gravity tanks.
Is it normal for the valve to get hot?
Warm is normal when it stays open for long periods; too hot to touch suggests the wrong voltage.
Can it control air?
Yes, if the valve is rated for air. Check the media listed on the label.
Should I use a relay or a MOSFET?
Either works for a 12 V DC coil. A MOSFET is silent and lasts longer; always add a flyback diode.
Parts for this guide
Projects that use it
Put this into practice: 9 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


