Sie sind auf Seite 1von 5

instructables

SMART IRRIGATION SYSTEM Using IoT

by AmanK113

The Smart Irrigation System is an IoT based device OFF once the soil moisture sensor has reached the
which is capable of automating the irrigation process required threshold value.
by analyzing the moisture of soil and the climate
condition (like raining).Also the data of sensors will be 3. If weather condition is such that it started raining,
displayed in graphical form on BOLT cloud page. For then the micro-controller will shut down the motor
detailed description of project click on the Research pump till raining. And after that it checks whether the
Paper link given below- soil moisture sensor has reached the threshold value
http://dx.doi.org/10.17577/IJERTV6IS060067 or not. If it crosses the threshold value then motor
pump will remain shut down otherwise it will start
In this project, we will command the arduino/328p again automatically. This helps in saving water
microcontroller through a webpage to control the resource and electricity.
motor (i.e., to start and stop the motor) and the rest of
whole irrigation process will be automatically 4.Also in case, when power supply gets cut-off and
controlled by arduino itself. motor gets switched off. It will restart again
automatically when there will be availability power
The user has only to do is –Start the motor or if he supply, user will have not to worry about restarting
desires it can switch off the motor by just a click only. the motor pump manually.

Once the Motor pump has started- following 5. Also data of various sensor like- moisture sensor ,
automated condition will work temperature sensor, humidity sensor will be displayed
on BOLT cloud in graphical form but due to limitation
1. User can switch OFF the motor if he desires by a of BOLT i have only displayed one sensor
click on the web page. data(moisture sensor data).

2. The motor pump will automatically get switched

SMART IRRIGATION SYSTEM Using IoT: Page 1


Step 1: Block Diagram of Project

DO the connection of sensors, BOLT and relay as given in diagram. I have used 328p microcontroller which is
used in ARDUINO. So you can use Arduino in place of 328P microcontroller.

Step 2: Arduino Code for Project

Hardserial.ino is arduino code which consist of interfacing of different sensors with arduino and interfacing of
Arduino with BOLT to send data of sensor on BOLT cloud page.

Download (https://cdn.instructables.com/ORIG/FXD/TRS6/J3W2BJIL/FXDTRS6J3W2BJIL.ino)

http://www.instructables.com/ORIG/FXD/TRS6/J3W2BJIL/FXDTRS6J3W2BJIL.ino

(https://cdn.instructables.com/ORIG/FXD/TRS6/J3W2BJIL/FXDTRS6J3W2BJIL.ino)

SMART IRRIGATION SYSTEM Using IoT: Page 2


Step 3: Coding of HTML Page

In this step, we will code the HTML page through which we send command to Arduino for controlling the motor(i.e.,
to START and STOP the motor).

Download (https://cdn.instructables.com/ORIG/F2H/Q9H5/J3W2BK5W/F2HQ9H5J3W2BK5W.zip)

http://www.instructables.com/ORIG/F2H/Q9H5/J3W2BK5W/F2HQ9H5J3W2BK5W.zip

(https://cdn.instructables.com/ORIG/F2H/Q9H5/J3W2BK5W/F2HQ9H5J3W2BK5W.zip)

SMART IRRIGATION SYSTEM Using IoT: Page 3


Step 4: Uploading JavaScript on BOLT Cloud

Write the following JS code notepad++

setChartType('lineGraph');
plotChart('time_stamp','temp');

and then save it using .js file extension. This is very important.This will takes the value of sensors and upload it in
graphical form on BOLT cloud.

Step 5: Configuration on BOLT Cloud Page

If you have already bought a BOLT device and iii- Select UI as default.html
registered it then
4- click on CREATE PRODUCT
1- open the bolt cloud page - click on the link
http://cloud.boltiot.com 5- AFTER that click on "YES" for creating
HARDWARE CONFIGURATION
and then login to that.
6- Then select GPIO and number of pin as 1
2- then click on DEVELOPER CONSOLE -> Click on
"+" button to create a new product in PRODUCTS 7- Choose pin as "AO" [we have connected the
section. moisture sensor at A0 pin]

3- In the CREAT NEW PRODUCT section - 8- and VARIABLE NAME as "temp" [because we
have written temp as variable in js code {STEP-4}]
i- write any name for new product
9- Lastly upload the JS file in UPLOAD FILES section
ii- choose any icon and and change the default,html file from that js file.

SMART IRRIGATION SYSTEM Using IoT: Page 4


Step 6: Deploy Configuration and Data Visulisation

1- Click on the DEVICES Tab. Your Device ID will be listed.Now, Under the product tab, Select the name of your
product “Bolt IoT Product”. For eg - temp. Now, Click on the Deploy Configuration button.

2- Go to home page and click on BOLT unit. It will redirect to you on the new page where you can see a graph for
moisture with respect to Time.

SMART IRRIGATION SYSTEM Using IoT: Page 5

Das könnte Ihnen auch gefallen