ESP8266 Tutorial: Build an Automatic Plant Watering System

6,550

69

8

Introduction: ESP8266 Tutorial: Build an Automatic Plant Watering System

About: Hi,I'm from DFRobot, a dream factory for robo-holics to make a better world.

Recently, I saw many people creating smart-home equipment on the Internet, which aroused my interest, and then I created an automatic watering artifact which could surf the Internet. Programming of my device is based on DFRobot automatic watering kit. With ESP8266 module, the flower-watering kit could realize real time monitoring.

Required hardware:

ESP8266 Wifi Bee (Arduino Compatible)

Xbee USB adapter

(FTDI ready) EcoDuino - An Auto Planting Kit

12 Battery

As for mobile phone software, I used Blynk which is deasy to build up and providing Arduino library. Throughout the communication, ESP8266 WiFi Bee module was used as communication module. Arduino is the main controller here.

Step 1: ​Create a Blynk Item

Create A Blynk Item

Open Blynk software.

Add the following controls:

Value Display * 2 LED * 2 Slider * 1 Gauge * 1

Adjust the size and arrangement of controls, and then set their parameters respectively, as follows pic1:

Interface after adjustment is as follows pic2:

Channels (pins) used in controls are virtual, which transmit data to ESP8266, and then ESP8266 transfers data to watering kit motherboard.

Step 2: Download Program to ESP8266

Program source code can be found here. Switch WiFi Bee SEP module to UART port, and plug it into Sbee USB Adapter board to connect with the computer. Select FireBeetle-ESP8266 on Arduino IDE (Click here to link to the installation tutorial of FireBeetle-ESP8266).

Download program to WiFi Bee ESP module, as follows:

After downloading, switch WiFi Bee ESP module to BOOT port.
Note: before downloading program, you need to change your WiFi and password as well as the corresponding AUTHTOKENS code.

Step 3: ​Download Program to Watering Kit Motherboard

Program source code can be found here. Open Arduino programmer, select Leonrdo motherboard and download source program to motherboard:

Step 4:

Hardware Connecting

Plug WiFi Bee ESP module into watering kit motherboard in right direction:

Connect each sensor according to the silk screen of connection mode on motherboard:

Assemble the watering kit:

Check the effect of watering…

Be the First to Share

    Recommendations

    • The 1000th Contest

      The 1000th Contest
    • Battery Powered Contest

      Battery Powered Contest
    • Hand Tools Only Challenge

      Hand Tools Only Challenge

    8 Discussions

    0
    YusufZ
    YusufZ

    3 years ago

    Hi can you send the link to the firebeetle esp2866 installation again? It does not appear to exist anymore...

    0
    kirkinc
    kirkinc

    3 years ago

    Hi,

    Great project! Congrats!!

    Is it possible to control several plants with 1 Ecoduino system?

    Thank you

    0
    diy_bloke
    diy_bloke

    3 years ago

    Auto watering devices seem to be favorite things to build :-) I have so myself and i find every new one interesting to see how other people tackled the issue

    0
    Jaychouu
    Jaychouu

    Reply 3 years ago

    yes, it's true, to be a maker.

    0
    BenjaminR90
    BenjaminR90

    3 years ago

    Thank you for sharing your tutorial. I would like to implement a system like yours for myself, but before I do so, I wonder if it is possible to log water consumption over time with the programme you used. This would be especially helpful to determine the amount of water I need to supply the water tank with, before I go on holidays.

    0
    Jaychouu
    Jaychouu

    Reply 3 years ago

    It's ok, you need to modify the code, by testing the humidity of the water within a week to reduce changes.

    If you have any questions, please feel free to contact me. thank you

    0
    sahrulrashid
    sahrulrashid

    3 years ago

    hi, can you share the source code for the project ?

    0
    Jaychouu
    Jaychouu

    Reply 3 years ago

    hi, https://github.com/Chocho2017/ESP8266-for-Watering here is the source code, hope this could help you.