loading

In this tutorial we will show how to build plant irrigation system with ESP8266 Arduino library and EasyIoT server (Windows or Raspberry). With web interface we can control water pump and soil humidity remotely. Now you can go on holiday and irrigate plant with your smart phone.

Main function are:

  • automatic/manual irrigation mode
  • remotely controlled in WEB interface (computer or smart phone)
  • measure soil moisture with history chart option
  • soil humidity threshold settings

See more tutorials at http://iot-playground.com/build

Step 1: Materials

  • Custom ESP Arduino board with ESP-01 interface ( or standard Arduino board + relay modue)
  • ESP8266 module
  • water pump
  • soil moisture sensor module
  • regulator module 0-30V
  • 12V power supply

See buying guide for details.

Step 2: Build

In our case we use custom Arduino board with ESP-01 interface. It uses Atmega328 at 8Mhz. Good thing about this board is that 3.3V regulator, ESP-01 interface and MOSFET are on board. It's very suitable for ESP8266 projects. Datasheet for custom board can be found here. Custom board is produced in EU, so shipping time is faster than for orders in China.

Be sure to use correct firmware version for ESP8266 module. See ESP8266 firmware flashing tutorial for details.

Custom Arduino board is suitable for EasyIoT ESP8266 Arduino library. The only thing I'm missing is reset pin connected to one Arduino DO pin. This can be solved with one short wire between digital pin 2 and reset pin on ESP8266. Board has by default solder jumpers for serial connection between ESP8266 and Arduino HW ports. In my case I want to debug program so I keep solder jumpers unconnected and added two wires to DO pins (10 and 11) for software serial. Voltage power for board is between 5 and 12V.

Humidity sensor is standard soil moisture module. We will use module analog output connected to A0 on Arduino board. Power supply for module is 3.3V connected with 3.3V power supply on custom board.
To control water pump we will use on board MOSFET transistor. Simply connect one motor wire to custom board and other motor wire to 4.5V power supply. You can use step down adjustable regulator. If you do not have custom board use relay module.

Step 3: Program

Program can be found on our GitHub. You do not need special adjustments, just set server IP, AP username and password in Esp8266EasyIoTConfig.h.

Step 4: EasyIoT Server Configuration

You need EasyIoT server (windows or Raspberry pi version). You can download EasyIoT server here. After installation in WEB user interface just add irrigation system under ESP8266 EasyIoT drivers. See tutorial how to add module. If you done everything correctly you should see something like this. Name modules like on picture below.

Hi sir can I know the circuit diagram please
<p>Very nicely done! I've come home to a few dead plants before, so this looks incredibly useful. Thanks!</p>
<p>plz send me the code of this project</p>
<p>i need a code of this project.so would anybody send me the code plz.ranahayder008@gmail.com is my id.</p>
<p>where we should connect regulator module </p>
<p>hi guys....</p><p>i need some help.. will b glad if sum1 helps me out...</p><p>ya actually i must let u know dat im in d 9th grade... n im working on a project based on arduino but im facing sum problms with my code....</p><p>my project is about the automatic irrigation system... one who is dealing wid arduino may find this out veryyy familiar but im trying to do sum thing different with it...</p><p>d basic thing is dat the moisture sensor checks the moisture level of the soil and if it finds it low than the required level... the submersible pump pumps d water and irrigates the plant</p><p>.... but wht im doing different is dat..... im going to connect an HC-05 module (bluetooth) and i want that my IRRIGATION SYSTEM AUTHENTICATES ONLY WHEN AN ANDROID DEVICE GETS CONNECTED TO IT....</p><p>and i want this output through an app called bluetooth terminal of an android device..</p><p>Automatic irrigation system..</p><p>Farm no.1</p><p>(having 24 plants)</p><p>System initialising....</p><p>Calculating soil moisture...</p><p>soil moisture=xyz</p><p>Alert!! Soil moisture is low.. // ( if or else needed )</p><p>Calculating temperature...</p><p>temperature=xyz</p><p>temperature favourable for irrigation.... // ( no need of using &quot;if&quot; or &quot;else&quot;... idea is to show the temperature.. thats all... )</p><p>Soil moisure is low.. plants need to be irrigated...</p><p>Irrigation system initialising..</p><p>watering...</p><p>..</p><p>.</p><p>irrigation done!!!!</p><p>NEW soil moisture=xyz</p><p>NEW temperature=xyz</p><p>// and after this a delay of 5 sec.. and the system starts again..</p><p>Automatic irrigation system..</p><p>Farm no.1</p><p>(having 24 plants)</p><p>System initialising....</p><p>Calculating soil moisture...</p><p>soil moisture=xyz</p><p>YUP!! the moisture level is good.. no need of watering... </p><p>Calculating temperature...</p><p>temperature=xyz</p><p>temperature favourable for irrigation....</p><p>but the moisture level is well off... no need of irrigation.. </p><p>NEW soil moisture=xyz</p><p>NEW temperature=xyz</p><p>PLS someone help me out for code... i know that the superiors will no more than half an hr.. for it.....</p><p>pls send me the code on my email.. omkarj1422001@gmail.com </p><p>i hope that sum people wud even hv liked this idea... SO plssssss help me people.. </p>
<p>i just ordered 2 of these pumps, looks interesting and can work down to 3V is incredible. do you think this would pump less water. the speed is not an issue for my project as long as it can work with just 3.3V :)</p>
<p>amazing.!!</p>

About This Instructable

21,461views

123favorites

License:

More by EasyIoT:ESP8266 Controlling 4 Relays ESP8266 Door/window Sensor With SMS Alarm ESP8266 $5 internet connected switch - improved 
Add instructable to: