Skip to content

Automated-irrigation project using PlatformIO (ESP8266 Arduino) settable via the browser.

License

Notifications You must be signed in to change notification settings

lucamoroz/AutoIrrigator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoIrrigator

This projects allows to setup an automated solution for the irrigation of a garden. The setup is made via web by defining a set of time intervals during which water will be delivered.

Prerequisites

Install platformio core: https://docs.platformio.org/en/latest/core/installation.html

Build & Upload

The following steps are required:

  1. Define the port that is connected to the board by changing the upload_port value in the platformio.ini file. See https://docs.platformio.org/en/latest/projectconf/section_env_upload.html#upload-port for more.
  2. Open the file src/CONFIG.h and define:
    • WiFi SSID & PASSWORD
    • Time zone values (HOUR_OFFSET and MINUTES_OFFSET)
    • Digital pin connected to the water pump (WATER_PUMP_PIN)
    • If you are not using the ESP 12-E, you may want to change the EEPROM memory size (EEPROM_SIZE)

Finally you can:

  • Build project: platformio run
  • Erase EEPROM flash memory (very important for the first upload!): pio run --target erase
  • Upload to board: platformio run -- target upload

Hardware requirements & setup

The list of components is the following:

Intallation:

  1. Connect relay VCC and GND to ESP8266 +3V and GND
  2. Connect relay SIG to the WATER_PUMP_PIN (see Build & Upload - step 2)
  3. Connect water power supply output to a relay pin and power supply GND to water pump/valve GND
  4. Connect the remaining relay pin to water pump/valve VCC

Available platforms & boards

Currently the project has been tested only on the espressif8266 platform (ESP 12E) with the Arduino framework.

You can change platform & board by modifying the platform.ini file: see https://docs.platformio.org/en/latest/projectconf/section_env_platform.html for more information.

Note that the only dependency is the NTP client, that is available for a wide range of platforms shown here: https://platformio.org/lib/show/1734/EasyNTPClient/

Further development

Here follows a "nice to have" list of features:

  • Check via internet the weather to avoid irrigating when raining
  • Improve web page look

About

Automated-irrigation project using PlatformIO (ESP8266 Arduino) settable via the browser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published