Wirelessly Controlled Drip Irrigation System

Smartphone Controlled Plant Watering 600px
About This Project

In this project, you will control the drip irrigation system wirelessly using your smartphone. By using Bluetooth module and evive you will control the water-pump and thus be watering the plants.

Project Info


Drip irrigation system is critical to agricultural operations to ensure water distribution to crops. Irrigating crops with the exactly right amount of water is a tedious task. Drip irrigation system is most commonly used in farms to irrigate land based on crop, water source, and field size. To work smarter, farmers are adopting wireless technology to manage the different aspects of their different irrigation systems. With varied terrain and structures, a wireless control system provides real-time visibility into the operating status of the pump and other parameters of the Drip irrigation system.

Components Required

ImageComponentQuantityAvailable in Kit
Glue Gun and Glue Sticks1
  • None
12C 2A DC Adapter1
Male to Female Jumper Cable 20cm2

Building Guide

Step 1: HC-05 bluetooth

HC‐05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for transparent wireless serial connection setup. The HC-05 Bluetooth Module has 6 pins. They are as follows:

  • ENABLE: When enable is pulled LOW, the module is disabled which means the module will not turn on and it fails to communicate.
  • VCC: Supply Voltage 3.3V to 5V
  • GND: Ground pin.
  • TXD & RXD: These two pins act as a UART interface for communication
  • STATE: It acts as a status indicator.
  • BUTTON SWITCH: This is used to switch the module into AT command mode. To enable AT command mode, press the button switch for a second.

Interfacing of Bluetooth HC-05 with evive

The headers pins are inserted with an HC-05 Bluetooth module as shown in the figure. As soon as the Bluetooth is inserted in the evive board the led will start to blink continuously.


Add Bluetooth module

Step 2: Dabble App - Gamepad Module

The GamePad Module is one of the input modules, using which user can give commands to the device using the programmable buttons.


Step 3: Connecting Dabble with evive

  1. Switch ON evive, the Bluetooth module will start blinking.
  2. Open Dabble app. Click on Connect icon that appears at the top right corner of your screen beside Settings icon.
    evive Notes Icon
    Note: As soon as you click on Connect icon a dialog box appears asking for permission of turning on location in your smartphone. If you are using HM-10 module then you must grant location permission else you can press skip for now. For HM-10 tap on the screen as asked in dialog box followed by selecting “ALLOW” in the next dialog box.

    A list of nearby available Bluetooth will be visible on your screen.

  3. Check if the name of your Bluetooth module appears in the list. If you have configured name of your Bluetooth module then search for that name. However, if you have not done this then look for names like “HC-05” for HC_05 modules and “HMSoft” for original HM-10 module and “BT-05” kind of name for HM-10 clones. Select that name and you can see the change in state of Connect icon suggesting app has connected to your module successfully.
    evive Notes Icon
    Note: A dialog box asking for the Bluetooth password may appear. Enter your Bluetooth module password if you have kept any password or try some default passwords like 0000 or 1234 in case of HC-05 and HC-06 and try 000000 or 123456 for HM-10. 
    evive Notes Icon
    Note: If you are facing some trouble in connecting your module then first try to pair module from your smartphones Bluetooth settings. Follow the troubleshooting page for guidance
  4. As soon as the app is connected to your Bluetooth module you can see the notification in your smartphone telling you which board you have connected.


Step 4: Drip irrigation system setup

  1. The feeder line pipe is cut according to the required dimension of our setup. Feeder line pipe is cut in different sizes so as to fix the connection between T connector and Drip emitters.
  2. One end of the Tee junction fully connects the pipe as shown in the figure. Make sure the length of the pipe is not too long or too short.
  3. Insert the adjustable emitters to the other end of the pipe as shown in the figure.
  4. Now the setup consisting of one Drip emitter looks like as shown in the figure.
  5. We can connect the above setup in a series according to the required setup.
  6. Both the ends of the setup are open. One end is connected with the water pump, while the other end is sealed with the help of glue gun so that water does not escape out from another end.
  7. Now the water pump is interfaced with evive. The end wire contains a male connector which is connected to the female DC connector.
  8. The male end of jumper wires(2 wires) are connected to female DC connector as shown in the figure.Image result for evive motor pin
  9. The other end of female jumper cables is connected to evive motor M1 as shown in the figure.
  10. The circuit is finally set up. 

Step 5: Flow Chart

 The working of the wireless drip irrigation system is explained in the flowchart as shown in the figure.

  • The  circuit is initialised and if the timer on is 0 and the up button is pressed, the pump will remain on till the next command is given by the evive gamepad app.
  • If the timer on is 0 and down button is pressed or the timer is greater than the timer on variable the water pump will automatically turn off.
  • If the timer on is 0 and the traingle button is pressed, the pump will run for 15 seconds and the pump will stop.
  • If the timer on is 0 and the circle button is pressed, the pump will run for 30 seconds and the pump will stop.
  • If the timer on is 0 and the cross button is pressed, the pump will run for 45 seconds and the pump will stop.
  • If the timer on is 0 and the square button is pressed, the pump will run for 15 seconds and the pump will stop
  • If the timer on is 0 and the down button is pressed,the pump will stop.


Step 6: Control the system using evive app

We will now control the drip irrigation system wirelessly using the evive app. As shown in the evive gamepad 

  • When the up button is pressed the pump will start and run till another button is pressed.
  • When the down button is pressed the pump will be turned off till another button is pressed.
  • When the triangle button is pressed the water pump will run for 15 seconds.
  • When the circle button is pressed the water pump will run for 30 seconds.
  • When the cross button is pressed the water pump will run for 45 seconds.
  • When the square button is pressed the water pump will run for 60 seconds.

Step 7: PictoBlox (Scratch) Program

  1. Open PictoBlox, select the board as evive and connect to the appropriate USB port.
  2. Add the Dabble extension in PictoBlox.
    Load Extensions
  3. Make two variables:
    1. Timer – To store timer value.
    2. Pump State – To store the state of pump. 0 if the pump is OFF and 1 if the pump is ON.
      New Variable Pictoblox
  4. Make a block to set the timer value with integer input:
    MakeABlockSet Timer Block
  5. Make a Block to check the input from Dabble app and set the actions accordingly:
    Check Input Block
  6. Make the final script using when evive starts up block. 
    Main Program Block
  7. Upload the code onto evive in the upload mode.

You can control the overflow of water in your irrigation field by making wireless drip irrigation system at our home. HAPPY LEARNING…

Circuit Diagram

DescriptionCircuit Diagram

The circuit diagram is shown in the figure. It consists of HC-05 Bluetooth sensor and water pump.


DescriptionDownload Code
Wireless Drip Irrigation SystemDownload
Share this Project
Share on facebook
Share on twitter
Share on pinterest
Share on reddit
Share on print
Featured Projects