dJPoida's automated garden watering system.
This is a simple project for activating a water pump that sits inside a small reservoir to regularly water my herbs because I'm a numpty and always seem to forget. Homemade pizza is much nicer with fresh Basil, Oregano and Chilli!
The code for this project is written for the Arduino platform.
This project leverages the Blynk IoT platform for remote management and reporting.
- Clone the repo
- Copy the
config_example.h
toconfig.h
and populate with your appropriate config values. Specifically:blynkAuthToken[]
ssid[]
pass[]
- Set your board config properly before uploading or the pins and flash won't work properly:
- LOLIN(WEMOS) D1 R2 & Mini
- Flash Size: 4M (1M SPIFFS)
- Install Blynk on your control device (mobile / tablet) and load the control app by scanning the QR Code
This is what the Blynk control app looks like
To start with the Blynk app I created, scan this code in blynk
Note: the Wemos D1 R2 Fritzing part isn't perfect so this schematic is mostly representative.
Note: the Wemos D1 R2 Fritzing part isn't perfect so this breadboard diagram is mostly representative.
The data stored in SPIFFS is nothing complex and simply assists in the determination of next watering time.
- Line 1: Date last executed watering routine (stored as a
long
formattedYYYYMMDD
) - Line 2: Time of day last executed watering routine (stored as a
long
in 24hr formatHHMMSS
)
20200119
160212
The above data indicates that the watering routine was last executed at 4:02:12pm on January 19, 2020.