Smart Irrigation System Using IoT Technology (AutoRecovered)
Smart Irrigation System Using IoT Technology (AutoRecovered)
REPORT 2021-2025
DEPARTMENT OF ELECTRONICS &COMMUNICATION
ENGINEERING
SUBMITTED BY
2. GOKULRAJ P 622221106016
4. VETRIVEL R 622221106062
GUIDED BY
MR.G.SIVARAMALINGAM M.TECH
MISS.A.P.NEHASHREE AP/ECE
BONAFIDE CERTIFICATE
Certified that this project report on“SMART IRRIGATION SYSTEM USING IOT”
is the bonafide record of work done by SUBASH S (622221106051), GOKULRAJ
P (622221106016), MOULIRAJ V.K (622221106036), VETRIVEL R
(622221106062), ROHAN KAVASKAR A (622221106045) from the department
of Electronics and Communication Engineering by Anna University,Chennai
Components:
3.Relay:
A relay in the context of Arduino is an electromechanical switch that
allows low-power devices, like an Arduino microcontroller, to control higher-
power devices or circuits.
4.Motor:
In smart irrigation systems, water may need to be pumped
from a water source (such as a well, reservoir, or water tank) to the irrigation
system itself. The motor powers the water pump, allowing for efficient water
distribution to the plants or crops.
5. Battery:
A battery is a device that stores chemical energy and
converts it into electrical energy through electrochemical reactions. It typically
consists of one or more electrochemical cells, each containing two electrodes
(an anode and a cathode) separated by an electrolyte.
6. Connecting Cables:
This is the most common type of cable used to connect an
Arduino board to a computer for programming and serial communication. The
USB cable connects the USB port on the Arduino board to a USB port on the
computer.
7.Connecting Wires:
Jumper wires are one of the most versatile options for connecting
components on a breadboard or between headers on an Arduino board
System Requirements:
2. Power Supply:
Components need a stable power supply. This can be achieved
through mains power, batteries, or solar panels, depending on the location and
requirements.
4. Data Security:
Protecting the data collected by the system is crucial. Implement
encryption protocols and access controls to prevent unauthorized access.
5. Scalability:
The system should be scalable to accommodate changes in the
size of the irrigation area or the addition of new sensors and actuators.
CIRCUIT DIAGRAM
PROGRAM
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = “asfsdfsdfsdfgsdfgdfgshdfsh”; // the auth code that you got on
your gmail
char ssid[] = “Harsh Home”; // username or ssid of your WI-FI
char pass[] = “ngfbasketball”; // password of your Wi-Fi
int water ;
int prevState = 0;
void setup()
{
Serial.begin(9600);
pinMode (D3,OUTPUT);
pinMode (D5,INPUT);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
water=digitalRead(D5);
Serial.println(water);
if (water == HIGH && prevState == 0)
{
Serial.println(“Pump Started, Water Flowing”);
digitalWrite(D3,LOW);
Blynk.notify(“Pump Started, Water Flowing”);
prevState = 1;
delay(400);
}
else if (water == HIGH && prevState == 1)
{
Serial.println(“Pump Stopped, Water Not Flowing”);
delay(400);
}
else
{
digitalWrite(D3,HIGH);
prevState =0;
}
delay(100);
}
Conclusion: