Solenoid water valve 12 V (normally closed) with ESP32
Supply 12 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| + | Not wired to the ESP32 | — | 12 V supply +. Switch it with a MOSFET or relay, never from an ESP32 pin |
| - | Not wired to the ESP32 | — | To the MOSFET drain. Add a flyback diode across the coil |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- Adafruit Plastic Water Solenoid Valve 12V product page, Normally closed; needs about 3 psi pressure to seal
Try it in 3D in BoardPilot
Related parts
18650 Li-ion cell in holder28BYJ-48 stepper + ULN2003 driver433 MHz transmitter (FS1000A)74HC595 shift registerA4988 stepper driverActive buzzer
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.