loading

First off, please vote for me! Anyways......

So I was always forgetting to water my plants, and as a result they would get dry and sometimes even die. So I though it would be cool to be able to water my plants with my phone. Its connected to the internet via the ESP-01 module and can be used to water your plants or animals once a day for the duration of time you choose. The User Interface also allows you to water manually with the push of a button, and from anywhere in the world.

Items needed are as follows:

1. Blynk App (Android and iOS)

2. Vinyl Tubing - 10 feet 5/16 ID - 7/16 OD - $5.50

3. Brass Hose Fitting, Tee, 5/16" x 5/16" x 5/16" Barb - $6.71 (3D print your own or buy a plastic one)

4. DC 3.5V -9V 3W USB Submersible Water Pump - $3.79

5. LM2596 Digital Control Voltage Regulator DC Buck Converter Power Supply - $8.99 (I used this, but get the MP1584EN Adjustable Buck Converter)

6. ESP8266 ESP-01 Serial Wifi Wireless Transceiver Module - $5.92 (These can be found cheaper on ebay)

7. 1 Channel Relay Module - $4.25 (Shop around you can find these cheaper)

8. Any DC wall adapter 5VDC - FREE

9. Hammond 1591ESBK ABS Project Box Black (7"x4"x2" LxWxH) - $7.81

10. FT232RL 3.3V 5.5V FTDI USB to TTL Serial Adapter Module - $5.00

11. Breadboard(Prototyping Board)

12. Dupont Cable Assortment (M-M, M-F, F-F)

13. M3 Nylon Hex Spacers Screw Nut Plastic Stand-off Assortment

Total about $50 (The challenge is to do it cheaper ;)

Step 1: Setting Up the ESP-01 for Programming

Programming an ESP-01 is like programming an Arduino, the benefits are its smaller and has WiFi, but the downside is it doesn't have a USB port to program it through. So to fix this we need a serial to USB adapter to program the ESP-01 using 3.3V, if you get the adapter shown above you can select 3.3V or 5V via the jumper. Now wire the ESP-01 to the adapter as shown in the image above. Since you have to make 2 connections to Power and 2 connections to Ground consider using a bread board (proto board), it makes this easier. Remember its important to make the connections to the ESP-01 temporary, as you will be using it later. Once your connections are established its time to move onto setting up the software.

Step 2: Installation and Setup of Arduino IDE

Download and install Arduino IDE software. Once installed, run the software and on the top menu bar click File - Preferences and you'll see a field that says Additional Boards Manager URLS:. Copy and paste this into that field:

http://arduino.esp8266.com/stable/package_esp8266com_index.json

and Click OK


Step 3: ...Setup Continued

On the top menu bar click Tools - Board: - Boards Manager and scroll down to verify that the ESP8266 by ESP8266 Community is INSTALLED. If so, click close and once again go to Tools - Board: - Boards Manager, and you'll now see a bunch of ESP8266 type boards that you can program using the Arduino IDE.

Step 4: Add Blynk Library to Arduino IDE

Download the latest Blynk Release Library from GitHub to somewhere familiar like your desktop (it might download to your Downloads Folder). Right click on the file you just downloaded and select Extract All, (if Extract All is not available to you, download and use Winzip trial to Extract). Open the newly created folder and copy the contents to your Documents\Arduino\libraries folder. Its should look like the above pictures.

Step 5: Take a Break and Get the Blynk App

So at this point you should have the ESP-01 wired to the adapter and the software setup and running. Good Job!

Get off your chair, stretch your legs, walk around and get yourself a beverage...you deserve it.

Next we'll get the Blynk App on your phone and get the token your going to need for the sketch. Then we'll choose our hardware settings in the IDE,and modify then upload the sketch to the ESP-01. You'll soon have an internet connected automated watering system for your favorite indoor plants!

Step 6: Configure IDE Hardware Setting

Connect your USB to Serial adapter to your computer, the ESP-01 should be connected to it.

Download the attached sketch ".ino" file, then double click it and it should load into the Arduino IDE.

In the IDE click Tools - Boards and choose Generic ESP8266 Module.

Again click Tools - Port and choose the COM port of ESP-01 you just plugged into your computer. (Note you can unplug and re-plug the adapter to figure out which COM port it is)

Once again click Tools - Upload Speed and choose either 115200 or 9600. I'm using 115200 but if your code doesn't upload try 9600.

You have to change a few things in the sketch code, the "Auth Token", the "ssid" and the "password"

The next will show you where to get your "AUTH CODE"

Step 7: Download the Blynk Android / IOS App

Get the Blynk App and your Auth Token

To start:

1. Download Blynk App: http://j.mp/blynk_Android or http://j.mp/blynk_iOS

2. Touch the QR icon and point the camera to the QR code above

3. Enjoy my app!

After the scan, a new Project will be created, all the widgets, settings and layout will be cloned. You would need enough Energy Balance to clone this Project.

Once you see the project on your phone, click the nut icon on the top right hand side of your screen. And that's where you'll find your "Auth Token".

Step 8: Edit the Sketch Code

There are only 3 things you have to change for this to work for you at home.

1. The "Auth Token" (Covered in the previous step)

2. "ssid" (The name of your WiFi at home)

3. "Password" (The actual password to your WiFi at home)

And thats it! Your ready to Upload the Project!

Once the upload is complete disconnect everything from the ESP-01 and start assembling!

Step 9: Drill/Melt Some Holes

Drill 2 holes, one on each end of the enclosure.Make them large enough to accommodate the ac/dc power adapter wire coming in and the wire of the water pump going out. This particular enclosure needs to have the lid shaped for the wires as well.

Lastly drill or melt some holes in the vinyl tubing, mine are about an inch apart. I believe 3/16' drill bit was used in my case.

Step 10: Assemble Your Electronics

I used mostly dupont jumper wires that I cut to make PIN and Terminal connections easier. My 5V 550mA power plug came from an old Motorola cell phone charger that was not being used anymore. I cut the mini USB tip off of the charger and connected the negative and positive wires to the input of the Voltage Regulator and to the VCC and Ground pins of the Relay module. I also used the same positive wire and connected it to the comm terminal in the middle of the 3. The power wire from the water pump goes to the NO terminal of the relay, the bottom terminal in reference to the above picture. And the negative wire from the pump goes to the same ground as the relay and regulator.

The output of the regulator goes solely to the ESP-01. Positive goes to VCC and CH_PD and the negative goes to Ground.

Lastly connect GPIO2 to the Input Pin of the relay usualy label IN1.

I mounted everything on plastic standoffs, then hot glued the standoffs to the enclosure.

Step 11: Assemble the Tubing

Use the Barbed Tee that you bought or 3D Printed and connect all the tubing together as shown above. Connect the tubing to the water pump and fill your vase with water!

I usually have GPIO2 set to water once a day, you can also switch GPIO2 from a timer widget to a button widget and water manually with your phone.

Step 12: This Is What You Get!

Thank you following along, if you have any questions, please comment below.

<p>Nice job, but a word of</p><p>CAUTION: The FT232RL module only provides 50mA of 3.3V current, while the ESP-01 may use up to 170mA when transmitting. While it is apparently working okay, you may have intermittent operation or early failure. This may be why you had occasional errors.</p>
<p>Super Sexy Instructable ! VOTED lol !</p><p>Love this, well done, ingenuity at its best !!</p><p>Quick Question about the Blynk App in your instructions;</p><p>&quot;You would need enough Energy Balance to clone this Project.&quot;</p><p>is this 'Energy Balence' on the Blynk app like needing to put credit card/debit card/bank transfer funds into it in order to obtain this energy balence ?</p><p>May be a silly question lol</p><p>thx loads in advance and well done once again :))</p>
Hopefully Blynk is still doing this, but they start you off with several thousand &quot;Energy Points&quot; for free. The amount they give should be enough to clone this project. If you ever delete the project you get the points back. But otherwise, if you need more than that, then you will be looking at purchasing more, and if you needed to do that, it's quite cheap....Happy tinkering and let me know if you have anymore questions...
<p>Oh 1 small problem, just tried downloading the files, the last one seems to be broken, it keeps saying &quot;Failed - No File&quot; for the mp4 file at the end of your instructable, please help fix the link when you can, no rush and a great many thx in advance again :))</p>
<p>howdy and thanks so much for the answer - YOU ARE AWESOME MAN !! hehe really beautifully made instructable and device, really impressed &amp; exactly what i need !</p><p>Maybe as a finishing touch, if you could email me a schematic or a sort of block-diagram of how to connect everything up, itll make it a bit easier for my dyslexic head lol </p><p>itll take me a few days otherwise but no big deal, this is an awesome project - cannot thank you ENOUGH !!!! :))</p>
<p>Hi,,</p><p>When I compile my project give the following error:</p><p>error: espcomm_upload_mem failed</p><p>What's it?</p><p>Thanks</p>
<p>I've had the same error in the past. Make sure you have the correct &quot;Port &quot; chosen in the IDE, and double check all your connections with the esp-01 and FTDI.</p>
<p>hi sir do you have the whole set to sell me</p>
<p>yes</p>
hi sir can I have the cost for the product. I am staying in Singapore
<p>I did a non-wifi watering electronic setup and I thing i learned is that the water reservoir needs to be lower than the plant or you get siphon effect. To fix this you would need a valve. Also need to account for power outage if you are using a timer setup - I did this by writing to flash of a HC12S.</p>
No siphon effect with this project, this pump has plenty of power to push water up, down, left or right. And power outages are not common, I think our plants would survive missing 1 watering.
<p>I'd probably put the tubing in the bottom of the pot so it's watered from the underside. This promotes root growth and avoids moist top soil which can become a problem (mold/pests). Besides that this seems like a really nice project with real world benefits. Congrats! :)</p>
Thanks Eirinn, I think if you have good soil composition that promotes drainage you'll be fine. This project waters for 15 seconds, and at the end of that I have water beginning to come out the bottom. I've been watering like this for months, no mold, no pests and the biggest thriving indoor plant I've ever had.
<p>Great Instructable, from my understanding, the timer is linked to a virtual pin and the push button linked to the physical gpio pin. </p><p>Would you mind to elaborate the coding for the simple timer on V5, or how the virtual pin knows which digital pin to use?</p>
<p>The code can definitely be improved, but in this most basic setup, the physical gpio pin is tied to the timer widget. But, if you want to, you can switch it to the button by simply removing it from the timer then placing it on the button in the app. You can t have the same gpio pin for 2 widgets.</p><p>V5 can be setup to show you the uptime of your device. Just in case you lose power you'll know how long its been running. You can use Value widget for this.... </p>
I am not getting esp8266 boards on my 1.6.7 version.<br>can you help me<br>
<p>Can you list where you bought all of your parts from?</p>
<p>Can I politely sugegst aliexpress or banggood, much cheaper. I took the liberty of getting some prices off of aliexpress. No, I dont have shares, just a happy shopper there:</p><p><br><br>2. Vinyl Tubing - 10 feet 5/16 ID - 7/16 OD - $1.99 for 5 meters </p><p><a href="http://www.aliexpress.com/item/Oxygen-Soft-Pump-Hose-Air-Bubble-Stone-Aquarium-Fish-Tank-Pond-Pump-5M-Tonsee/32626316083.html?spm=2114.13010308.0.110.290ta5">http://www.aliexpress.com/item/Oxygen-Soft-Pump-Ho...</a></p><p><br>4. DC 3.5V -9V 3W USB Submersible Water Pump - various prices <a href="http://www.aliexpress.com/wholesale?catId=0&initiative_id=AS_20160826110118&SearchText=t+fitting"> http://www.aliexpress.com/wholesale?catId=0&amp;initi...</a><br><br>5. LM2596 Digital Control Voltage Regulator DC Buck Converter Power Supply - 54 ct <a href="http://www.aliexpress.com/item/DC-DC-Buck-Converter-Step-Down-Module-LM2596-Power-Supply-Output-1-23V-30V/32237597962.html?spm=2114.01010208.3.11.d2XR8m&ws_ab_test=searchweb201556_10,searchweb201602_5_10057_10056_10065_10055_10054_10059_10058_10017_107_10060_10061_10052_414_10062_10053_10050_10051,searchweb201603_7&btsid=f8c13d60-6d95-4a2e-9db8-3b1362faed6b"> http://www.aliexpress.com/item/DC-DC-Buck-Convert...</a><br>MP1584EN Adjustable Buck Converter)<br>MP1584 = 86 ct <a href="http://www.aliexpress.com/item/1pcs-free-shipping-Ultra-small-power-supply-module-DC-DC-BUCK-3A-adjustable-3V-5V-16V/32627080420.html?spm=2114.01010208.3.2.1Wehi5&ws_ab_test=searchweb201556_10,searchweb201602_5_10057_10056_10065_10055_10054_10059_10058_10017_107_10060_10061_10052_414_10062_10053_10050_10051,searchweb201603_7&btsid=a2f55eb8-fd56-4ca8-8a72-9e1debb6b4a6"> http://www.aliexpress.com/item/1pcs-free-shipping...</a><br><br>6. ESP8266 ESP-01 Serial Wifi Wireless Transceiver Module - $1.72 <a href="http://www.aliexpress.com/item/Free-shipping-ESP8266-serial-WIFI-wireless-module-wireless-transceiver/32230307007.html?spm=2114.01010208.3.1.NeB4Ft&ws_ab_test=searchweb201556_10,searchweb201602_5_10057_10056_10065_10055_10054_10059_10058_10017_107_10060_10061_10052_414_10062_10053_10050_10051,searchweb201603_7&btsid=2c21b84e-a6ac-4e40-9a9b-495034c7e7f1"> http://www.aliexpress.com/item/Free-shipping-ESP8...</a><br><br>7. 1 Channel Relay Module - $0.58 <a href="http://www.aliexpress.com/item/Free-Shipping-1PCS-5V-low-level-trigger-One-1-Channel-Relay-Module-interface-Board-Shield-For/32501322820.html?spm=2114.01010208.3.48.qFM5N0&ws_ab_test=searchweb201556_10,searchweb201602_5_10057_10056_10065_10055_10054_10059_10058_10017_107_10060_10061_10052_414_10062_10053_10050_10051,searchweb201603_7&btsid=e3f1b672-4479-4661-b427-3652474580a3"> http://www.aliexpress.com/item/Free-Shipping-1PCS...</a><br><br><br>10. FT232RL 3.3V 5.5V FTDI USB to TTL Serial Adapter Module $1.65 <a href="http://www.aliexpress.com/item/FT232RL-FT232-FTDI-USB-to-TTL-3-3V-5-5V-Serial-Adapter-Module-Download-Cable-for/32596090563.html?spm=2114.01010208.3.29.FDszIZ&ws_ab_test=searchweb201556_10,searchweb201602_5_10057_10056_10065_10055_10054_10059_10058_10017_107_10060_10061_10052_414_10062_10053_10050_10051,searchweb201603_7&btsid=ed3604a5-ab0a-474c-84c2-49a2be8b801b"> http://www.aliexpress.com/item/FT232RL-FT232-FTDI...</a></p>
<p>Thanks Dude You Just Saved Me A Bundle And My Plants So That's A Twofer</p>
<p>my pleasure</p>
<p>Everything was ordered on Amazon, search the parts described and you'll find them all. I got the black enclosure at Radio Shack though.</p>
<p>As I built several irrigation systems myself, I will always find these things fascinating.<br>I took the liberty to point out some definitely cheaper sources in my reply to kev21holtgrave</p>
<p>What firmware u use for ESP8266 ?</p>
<p>Stock firmware that the module shipped with.</p>
<p>ah great, finally someone who doesnt insist you first flash the chip with new firmware... other than ofcourse the program you load on it</p>
<p>Have you read all steps? ;)</p>
<p>Looks good, but I have a few questions:</p><p>let's say I wanted to add a little water every other day - can this be easily automated, or do I have to initiate it from a cell phone each time?</p><p>if you empty the water container, will the pump burn out from running dry?</p><p>is Blynk WiFi only, or can it be controlled from the web (anywhere)?</p>
The Blynk App runs the timer widget once everyday(every 24hrs). So if you want to water your plant a little every other day, then water it even less everyday. Otherwise yes switch GPIO2 from the timer widget to the button and water manually from you phone.<br><br>You can water your plant from anywhere with your tablet or cell phone, because your water pump will always be connected to the internet. And the app on your phone is like any other app, as long as you have internet it will work (WiFi or Carrier Data)<br><br>This particular pump also shouldn't run dry, it seems to always leave a little water behind. But I have gone a couple weeks without adding water and everything evaporated. And it still works perfect. Plus this little pump can be found for less than $5 if you look hard enough. So if it did burn out, it wouldn't set you back to much.<br><br>Hope this helps<br><br>
<p>Nice setup. It takes care of a lot of the hassle of indoor plants.</p>
Tell me about it! Instead of watering every few days, I just water the vase once a week. You can go longer without watering if you use a bigger water reservoir.
<p>Great plant automation system! Are you using the ESP8266 as a microcontroller?</p>
Yes, I don't even use Arduino microcontrollers anymore, these are faster, have more memory and wifi!

About This Instructable

33,839views

409favorites

License:

More by TapNDie:WiFi Plant Watering ESP8266 
Add instructable to: