Minor Project Synopsis Report

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

GURU TEGH BAHADUR

INSTITUTE OF TECHNOLOGY

ELECTRICAL AND ELECTRONICS
ENGINEERING DEPARTMENT

MINOR PROJECT SYNOPSIS


TOPIC : IOT IRRIGATION SYSTEM

MADE BY : HARSHDEEP SINGH (00913204918)

CHARANPREET SINGH (00413204918)

GURJOT SINGH (00713204918)

DARSHAN SINGH (00613204918)


Introduction to IoT(INTERNET OF THINGS)
The internet of things, or IoT, is a system of interrelated computing
devices, mechanical and digital machines, objects, animals or people
that are provided with unique identifiers and the ability to transfer
data over a network without requiring human-to-human or
human-to-computer interaction.
IoT technology is most synonymous with products pertaining to the
concept of the "smart home", including devices and appliances (such
as lighting fixtures, thermostats, home security systems and
cameras, and other home appliances) that support one or more
common ecosystems, and can be controlled via devices associated
with that ecosystem, such as smartphones and smart speakers. The
IoT can also be used in healthcare systems.
AIM OF THIS PROJECT :
Smart agriculture is a solution to many global
agricultural issues.Sensor-based IoT technologies
collect data about soil and update a crop status and
transmit this information from sensors to farm irrigation
systems.The system should notify the farmer about the
start of watering and its finish, as well as send error
alerts.
PRACTICAL APPLICATION OF PROJECT :>
➔ Most of the farmers use large portions of farming land and it
becomes very difficult to reach and track each corner of large
lands. Sometime there is a possibility of uneven water
sprinkles. This result in the bad quality crops which further
leads to financial losses.

➔ In this scenario the Smart Irrigation System using Latest IoT


technology is helpful and leads to ease of farming

➔ The system will automatically irrigate the water based on the


moisture level in the soil and also send the data to Server to
keep track of the land condition.
❏ COMPONENTS USED IN PROJECT :
1) Nodemcu ESP8266

2) Soil Moisture Sensor

3) PIR Motion Sensor

4) Rain Drop Sensor

5) Relay Module

6) BreadBoard

7) Jumpers

8) 12V Battery

9) Blynk Application
FLOWCHART:
CIRCUIT DIAGRAM :
STEPS FOR SETTING UP THE SYSTEM :
1) Follow the circuit diagram and connect all the components with
breadboard.
2) Connect the computer with NodeMCU board with PC.
3) Install blynk app from Play Store / App Store in smartphone and
Create a New Project.
4) Selecting NodeMCU in app and add all necessary sensors.
5) In Arduino 1.8.13 we put the wifi credentials and upload the code.
6) Now the setup is ready for operation.
OPERATIONS OF SENSORS USED :
★ TEMPERATURE SENSOR- The TMP36 temperature sensor is an
easy way to measure temperature using an Arduino,the sensor
can measure a fairly wide range of temperature.

★ SOIL MOISTURE SENSOR- Measure the Volumetric Water Content in


soil.

★ RAIN SENSOR- Composed of a rain/mist detection plate with a


comparator that manages intelligence of irrigation and water saving.

★ PIS(Pyroelectric InfraRed Sensors)- Allow to sense motion of crop


destroying insects and also invading animals, moving in or out in fields.
PROGRAMMING INTERFACE OF IDE:
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
#include <DHT.h>
#define BLYNK_PRINT Serial
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS D2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
.

char auth[] = "----------------"; //Authentication code sent by Blynk


char ssid[] = "-------"; //WiFi SSID
char pass[] = "-------"; //WiFi Password
#define pirPin D1
int pirValue;
int pinValue;
#define pirPin D1
int pirValue;
int pinValue;
#define sensorPin D6
#define rainPin D5
int sensorState = 0;
int rainState = 0;
int lastState = 0;
int lastRainState = 0;
#define DHTPIN 2
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
SimpleTimer timer;
BLYNK_WRITE(V0)
{
pinValue = param.asInt();
void sendSensor()
{
float h = dht.readHumidity();
float t = dht.readTemperature();
.
if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
Blynk.virtualWrite(V5, h); //V5 is for Humidity
Blynk.virtualWrite(V6, t); //V6 is for Temperature
}
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode(sensorPin, INPUT);
pinMode(rainPin, INPUT);
pinMode(pirPin, INPUT);
dht.begin();
timer.setInterval(1000L, sendSensor);
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
sensors.begin();
}
int sensor=0;
.
void sendTemps()
{
.
sensor=analogRead(A0);
sensors.requestTemperatures();
float temp = sensors.getTempCByIndex(0);
Serial.println(temp);
Serial.println(sensor);
Blynk.virtualWrite(V1, temp);
Blynk.virtualWrite(V2,sensor);
delay(1000);

}
void getPirValue(void) //Get PIR Data
{
pirValue = digitalRead(pirPin);
if (pirValue)
{
Serial.println("Motion detected");
Blynk.notify("Motion detected");}
}
void loop()
{
Blynk.run();
.

timer.run();

.
sendTemps();
sensorState = digitalRead(sensorPin);
Serial.println(sensorState);
if (sensorState == 1 && lastState == 0) {
Serial.println("needs water, send notification");
Blynk.notify("Water your plants");
lastState = 1;
delay(1000);
//send notification
}
else if (sensorState == 1 && lastState == 1) {
//do nothing, has not been watered yet
Serial.println("has not been watered yet");
delay(1000);
}
else {
//st
Serial.println("does not need water");
lastState = 0;
.

delay(1000);

.
}rainState = digitalRead(rainPin);
Serial.println(rainState);
if (rainState == 0 && lastRainState == 0) {
Serial.println("Its Raining!");
Blynk.notify("Its Raining!");
lastRainState = 1;
delay(1000);
//send notification
}else if (rainState == 0 && lastRainState == 1) {
delay(1000);
}
else {
Serial.println("No Rains");
lastRainState = 0;
delay(1000);
}if (pinValue == HIGH)
{getPirValue();
}
Blynk.run();
.

delay(100);
}
.
SCOPE OF THIS SYSTEM :
➢ The system is setup and calibrated using an Android app which is simple
to operate.

➢ Improving irrigation system, thereby conserving water.

➢ Detection of crop destroying insects and invading animals even at night


time.

➢ Reducing dependence of farmers on conventional manual methods of


irrigation and crop protection.
CONCLUSION:
● SAVE A TON OF MONEY BY INSTALLING MOST AFFORDABLE SMART
IRRIGATION SYSTEM.

● HELPS YOU PREPARE FOR THE FUTURE OF WATER INTAKE PLANNING .

● SMART IRRIGATION CONTROLLERS HELP FARMERS TO IRRIGATE


HARDSCAPE AREAS LEADING TO ENHANCED LANDSCAPE ,CROP
HEALTH AND YIELD OF PRODUCTS.

● AVOID WASTAGE OF PRECIOUS WATER RESOURCES WITH YOUR


SMART IRRIGATION CONTROLLER AND TARGETED USAGE OF CROP
PROTECTING INSECTICIDES.
REFERENCE USED:
● https://circuito.io/

● https://iot-guider.com/

● https://www.instructables.com/

● https://www.youtube.com/watch?v=p06NNRq5NTU

● S.R. Nandurkar, V. R. Thool, R.C. Thool, Design and


Development of Precision Agriculture System Using Wireless
Sensor Network, IEEE International Conference on Automation,
ControlEnergy and systems (ACES), 2014

You might also like