Demo GIF
" data-cpx-injected="1"> ESP8266 Irrigation Zone Timer — Arduino Mechatronics Build | CodeProven

Smart Home & Building Mechatronics · Intermediate · Scheduling

ESP8266 Irrigation Zone Timer

A pump on a schedule, overridden by a page, and stopped by a reservoir float.

Firmware status: Generated from this project's own pin map and compiled with arduino-cli for esp8266:esp8266:nodemcuv2 before publication; bench validation on your hardware is still required..

Hardware scope

Scheduled output with web override, float interlock, analog moisture input. Pins assigned by the generator: out 1 → GPIO5, out 2 → GPIO15, in 1 → GPIOA0, in 2 → GPIO12.

Components

  • ESP8266 board
  • 5 V relay module for the pump
  • Float switch for the reservoir
  • Soil moisture sensor on A0
  • 5 V supply sized for the relay and pump control

Tools

  • USB programming cable
  • Multimeter
  • Current-limited bench supply (for anything that switches a load)
  • Small screwdriver and wire cutters

Build steps

  1. Test the float switch with a multimeter: it should read closed when the reservoir is full.
  2. Wire the float into a GPIO with the internal pull-up and confirm the stop works before the pump is connected.
  3. Flash and run one manual cycle from the page, timing it against a watch.
  4. Set the schedule and confirm a full day produces the cycles you asked for.

Test and expected result

Manual cycles run for the configured time, the float stops the pump regardless of schedule, and the moisture reading tracks the soil.

Acceptance checks

timed cycles, override works, float stops regardless, moisture tracks

Safety and limits

A pump that runs dry destroys itself. The float stop must work with the network down, and it must be tested before the first wet run.

Guide source: Generated from this project's own pin map and compiled with arduino-cli for esp8266:esp8266:nodemcuv2 before publication; bench validation on your hardware is still required.

Download Arduino source code

Download connection diagram SVG

Related projects

Back to all project guides · Study the course