Twitter/X

On 2026-08-06 @om_patel5 posted a fully 3D-printable irrigation valve that reads…

Brief

A fully 3D-printable irrigation valve posted by @om_patel5 on 2026-08-06 reads soil moisture and, via software he 'vibe coded' using Claude Code, opens a motor-driven pinch valve only when the soil is below a threshold. The bistable, water-contact-free design runs ~3 months on a 9V battery, works at 0 bar, handles dirty water, uses 1/2" BSPP fittings, and is fully open source with an interactive web demo.

Why it matters

On 2026-08-06 @om_patel5 posted a fully 3D-printable irrigation valve that reads a soil moisture sensor and, using software he 'vibe coded' with Claude Code, opens when soil is drier than a set threshold and closes when moisture rises so it waters more in heat and less after rain.

Key details

  • The valve uses a motor-driven pinch mechanism that never contacts water, operates at literally 0 bar (so a rain barrel or elevated tank suffices, no pump), tolerates dirty water/algae/liquid fertilizer, is bistable (no power required to hold open/closed) and reportedly runs about 3 months on a single 9V battery.
  • All custom plastic parts print on a standard 3D printer, threads are standard 1/2 inch BSPP for normal irrigation hardware, and the project is open source (3D models, PCB, BOM, firmware) with an interactive web demo; units have been run in the creator's and friends' gardens through full summer seasons.
Source evidence

SOMEONE BUILT A FULLY 3D PRINTABLE IRRIGATION VALVE THAT WATERS YOUR PLANTS ONLY WHEN THEY ACTUALLY NEED IT

normal watering timers run on a fixed schedule, so they water in the rain and skip a heatwave

but this one reads the soil and decides for itself with software he vibe coded using claude code

> a soil moisture sensor checks the dirt, and if its drier than your threshold the valve opens
> water flows until the sensor detects moisture rising, then it shuts off
> so it waters more in hot weather and less after rain, without you touching anything

the valve mechanism is crazy:

> instead of a normal solenoid valve it uses a motor driven pinch valve, it squeezes a flexible tube shut, so no moving part ever touches the water
> that means it works at literally 0 bar pressure, so a rain barrel or an elevated tank is enough, no pump needed
> and it handles dirty water, algae and liquid fertiliser, because the water only ever passes through the tube
> its bistable too, so it needs no power to hold open or closed, and runs about 3 months on a single 9v battery

every custom plastic part prints on a standard 3d printer, and the threads are standard half inch bspp, so it connects to normal irrigation hardware

the whole thing is open source, the 3d models, the pcb, the bill of materials and the firmware

he even built an interactive web version of the device so you can click through every led pattern and button state before you build one

hes got units running in his own garden and in friends and family gardens through full summer seasons

Video