Project Numericals
Project Numericals
Project Numericals
Internet of Things likewise considered the Internet of Objects refers to the idea that the
Internet is never again only a worldwide system for individuals to communicate with
each other using computers, but it is also a platform for devices to communicate
electronically with their general surroundings. The Internet of Things (IoT) is a typical
example that is quickly making progress in the modern wireless telecommunication. IoT
is the system of physical devices, home appliances, vehicles and different things
embedded with hardware, software, sensors, and network which empowers these things
to connect, collect and exchange data. The Internet of Things allows objects to be
controlled and sensed remotely across existing network and creating opportunities for
more direct co-ordination of the computer-based systems with physical world and
bringing about accuracy, improved efficiency and economic benefit. IoT is continuously
changing and developing. There are difficulties related with the IoTs. The zones of trust
and
reliable open IoT which offers some benefit to every one of the things in the society. The
perception layer and application layer. Perception layer incorporates sensor nodes. Sensor
nodes and Information communication technology enabled devices are the basic
components of the sensor technology. It comprises of cameras, RFID tags, sensors and
sensor network used to distinguish items and gathering data. Network layer is framework
layer of IoT. It coordinates towards the combination of the application layer and the
1
perception layer. The application layer incorporates the IoT with the innovation of
explicit industry. The IoT is connected in the vast majority of the fields including
agriculture. ‘Things’ in the IoT can refer to different objects. These objects gather
valuable data with the assistance of different existing technologies and after that
automatically
transfer the information between different objects. IoT is likewise expected to produce a
lot of information from different areas that is aggregated in all respects rapidly, in this
manner expanding the need to record, store and process such information. In the first
and objects to network and to extensive databases and in reality, to the network of
networks (the internet), a cost effective, simple and unobtrusive system of item
identification is critical. Only then information about things be gathered and handled.
accumulation will profit by the capacity to recognize changes in the physical status of
things utilizing sensor technologies. Embedded knowledge in the things themselves can
capacities to the edges of the network. At last, progresses smaller and smaller things to be
Internet of Things that associates the world’s objects in both an intelligent and sensory
way.
background information
When I was at home during august holiday our farm was robbed and all our animals were
stolen. We were left with nothing, I came up with the idea that can control theft in the
2
farm as well increasing productivity. I shared the idea with my collegue and came up
with this project so that we can automize farming convenient and most reliable
techniques emerging in our country really pushed us to come up with this project.
In Kenya a greater part of the population relies upon agriculture and its natural income
originate from agriculture. Despite this and even the cutting edge innovation is found all
over the place, the farming area is following the old customary innovation. Our farmers
still retreat to convectional techniques like manual distribution of seeds and ploughing an
evenness of availability of water through the year causes a major problem. All this lead to
systems can reduce the use of harmful chemicals and carbon emissions.
data suggests that the world’s population will grow from 7.7 billion in 2020
production levels.
3
Achieve higher yields while reducing operating costs. Smart
➨Smart agriculture use drones and robots which helps in many ways.
and control.
➨The smart agriculture needs availability of internet continuously. Rural part of most of the
developing countries do not fulfil this requirement. Moreover internet connection is slower.
➨The smart farming based equipments require farmers to understand and learn the use of
technology. This is major challange in adopting smart agriculture farming at large scale across
the countries
Objectives
4
To increase level of productivity using an electronic system proposed for efficient
To maximize the productivity with minimal use of water through developed wireless
sensor network aiming for real time in the field sensing variables irrigation and
5
Many countries like kenya, greater part of the population relies upon agriculture and its
national income originates from agriculture. Despite this and even the cutting-edge
innovation is found all over the place, the farming area is following the old customary
innovation. Our farmers still retreat to conventional techniques like manual distribution
of seeds and ploughing, two harvests for each year design, informal frameworks of
throughout the year poses a major problem. All this leads to inadequate yield and low
environment and decreasing water tables present an urgent need of proper utilization of
water. The use of scientific methods in the agricultural field can bring about rapid
changes in the productivity of crops, due to improved efficiency and accuracy in the
farming methods. To cope up with this use of sensors like soil moisture sensor and
algorithm developed with predefined threshold values of soil moisture and temperature
the research in the agricultural field, specialists found that the yield of agricultural
the field of agriculture plays significant role in increasing the decreasing the additional
labour efforts. A portion of the research attempts are accomplished for the improvement
of farmers which gives the system that use technologies helpful for increasing the
agricultural yield. Of the various advantages that IoT brings to the table, its ability to
we come across ideas that suggest a wireless sensor network that collects data from the
6
various sensors present in the field and sends the data to the main central server. This
method focuses on studying the environmental factors to improve crop yield. But it turns
out, monitoring environmental factors alone are never adequate to increase productivity
of crops since a lot of other factors have a role to play. This may include spraying of
insecticides and pesticides to prevent invasion of pests and insects, monitoring the fields
at all times to stay aware of attacks by animals and birds, and thefts of crops during the
increased levels of productivity, and crop monitoring at all stages of cultivation and
farming. So, an electronic system is proposed for the efficient monitoring and effective
control of different environmental parameters related to the field. A remote detecting and
control irrigation system using distributed wireless sensor network aiming for real time in
field sensing, variable rate irrigation and controlling of a site-specific precision linear
move irrigation system to maximize the productivity with minimal use of water is
developed. The system designed describes details about the instrumentation and design of
wireless sensor network, real time in field sensing, variable rate irrigation, and control by
using appropriate software. The whole system is implemented using sensors which
collects the data and sends the data to the Arduino microcontroller where necessary
actions are taken for controlling irrigation automatically according to the predefined
threshold values. The system provides a low-cost wireless solution as well as remote
controlling for precision irrigation using IoT technologies. The aim of this system is to
necessary parts for the framework. In the studies related to wireless sensor network
7
technology, researchers’ monitored soil related parameters such as temperature and
humidity. Sensors were deployed below the soil which communicates with relay nodes
by the use of effective communication protocol providing very low duty cycle and hence
TABLE OF DIAGRAMS
8
H-BRIDGE ALTRASONIC
9
Apparatus
1. Hardware
a) Arduino board
d) USB cable
e) H-Bridge
g) Temperature sensor
f) ultrasonic
2. software
a) arduino IDE
procedure
10
A.
The block diagram as shown in Figure contains soil moisture sensor, PIR sensor, Gsm
module, motor, beeper, ESP8266 wife module, relay one and two.
Soil moisture sensor is an input device which sends the data about the moisture level of
soil to Arduino mega. PIR sensor also an input device. If any motion is detected
B. Arduino mega is a heart of the system, it controls all component of the system based
Relay 1 acts as a switch to the water pump. Relay 2 acts as a switch for beeper.
D. Circuit Diagram
Water pump motor is connected to the battery and to the relay which in turn is
Beeper is connected to the battery and to the relay which in turn is connected to the
arduino board.
All the ground pins of the components are connected to the ground pins of the arduino.
All the VCC pins of the components are connected to the VCC pins of the arduino.
are
11
1) Arduino IDE
editor for writing code, a message area, a text console, a toolbar with buttons for
Figure.
2) Writing Sketches
Programs written using Arduino Software (IDE) called sketches. These sketches are
written in the text editor and are saved with the file collision. The editor has features for
cutting, pasting and for searching, replacing text. The message area gives feedback while
saving and exporting and also displays errors. The console displays text output by the
Arduino Software (IDE), including complete error messages and other information. The
bottom right-hand corner of the window displays configured board and serial port. The
toolbar buttons allow you to verify and upload programs, create, open, and save sketches,
3) Libraries
Libraries provide extra functionality for use in sketches, e.g. Working with hardware or
in a sketch, select it from the Sketch Import Library menu. Because libraries are uploaded
to the board with your sketch, they increase the amount of space it takes up.
Thing Speak is an IoT analytics platform service that allows you to aggregate, visualize
and analyses live data streams in the cloud. Thing Speak provides instant visualizations
of data
12
posted by your devices to thing Speak. With the help of things peak server, we can
perform online analysis and processing of the data as it comes in. thing Speak is often
used for prototyping and proof of concept IoT systems that require analytics. Some of the
key capabilities of things speak include the ability to: Easily configure devices to send
data to
thing Speak using popular IoT protocols. Visualize your sensor data in real-time.
Aggregate data on-demand from third-party sources. Run your IoT analytics
automatically
software.
1) Arduino board
sets of
digital and analog input/output (I/O) pins that may be interfaced to various expansion
boards (shields) and other circuits. The board has 14 Digital pins, 6 Analog pins, and
programmable with the Arduino IDE (Integrated Development Environment) via a type B
C.
13
2) Soil Moisture Sensor
The soil moisture sensor comprises of two probes which are utilized to gauge the
volumetric substance of water as appeared in the Figure 4.4. The two probes enable the
current
to go through the dirt and after that it gets the opposition incentive to gauge the dampness
esteem. At the point when there is more water, the dirt will direct greater power which
implies that there will be less obstruction. Thusly, the dampness level will be higher. Dry
soil conducts power ineffectively, so when there will be less water, at that point the dirt
3) ultrasonic sensor
The pyroelectric sensor is actually divided into two halves. When there is no motion, both
halves receive the same amount of IR radiations from the surrounding. When a target
crosses the sensor, the IR radiation level received at one half is more than the radiation at
the other half. This shows that the motion is detected. Then the output will be high. The
provided in 1 pin and the digital output is obtained from another pin.
4) H-Bridge connects the motor drive to arduino and controls the movement of the motor both
5) Motor drive rotates the green house enabling closure and opening of the green house.
14
7) Charging system supply power to the arduino board.
D. E. Methodology
Methodology of Smart Agriculture System involves soil moisture sensing along with
automated irrigation system and intruders scaring. Smart Agriculture system is controlled
automatically. The farmer will be informed about the situation of the farm even he is not
present in the farm. This improved method includes no workers to control the farm
manually and wastage of water is decreased. Different sensors are deployed in the field
like, moisture sensor and ultrasonic sensor. The sensors play an important role in the IoT
system as they are the whole and sole mechanism required for proper functioning of the
system. These sensors collect real time data continuously from where it was placed. The
data collected from these sensors are sent to the Arduino mega. In control section, that is
in the Arduino mega the data from the sensors are received and the received data is then
analyzed by the Arduino mega and then passes the signal to the devices which it was
connected to. Soil moisture sensor is deployed in to the soil and is connected to Arduino
mega. This measures the moisture level continuously. If the moisture level in the soil is
lower than the given threshold value, the Arduino sends signal to the motor to turn on, it
will result in automatic smart irrigation system where the motor is turned on
automatically and water is pumped to the soil. Similarly, if the soil moisture level value is
less than the threshold value, then the Arduino sends the signal to the motor to turn off
the motor. The sensor has both analog and digital output. LED indicates whether the
output is high or low. If the soil is dry, then the current will not pass through it and it will
act as open circuit. Hence the output is said to be high. Similarly, if the soil is wet, then
E. the current will pass from one terminal to the other terminal and here the circuit is said to
15
be short. Hence the output is zero. Moisture sensor is platinum coated to increase the
efficiency. The sensor has long life because of its anti-oxidant property. It is also easily
affordable by farmers.. The method of scaring the intruder is done by using PIR sensors.
The farmland is deployed with PIR sensors. The PIR sensor is used to detect the object
crossing the farmland. If any motion is detected by the PIR, it sends signal to the
Arduino, the Arduino further sends signal to the other devices which it has been informed
before, such as buzzer. Farmland is deployed with PIR sensors. PIR sensor
stands for passive infrared sensor. The main component of a PIR sensor is the
pyroelectric sensor. The pyroelectric sensor is actually divided into two halves. When
there is no motion, both halves receive the same amount of IR radiations from the
surrounding. However, when a target crosses the sensor, the IR radiation level received at
one half is more than the radiation at the other half. The PIR reacts to this change and
makes the output HIGH. The range of detection goes up to 6- 10 meters. When any
motion is detected by the PIR sensor, it automatically turns on the buzzer. When the
motion is detected an alert, message is also sent to the farmer. The alert messages are sent
using GSM module. SIM is inserted into the GSM modem and it works as same as the
mobile phone. Soil moisture content will be passed to the ‘Things Speak’ server where
the graph will be displayed accordingly. Similarly, motion detection graph will be
displayed in the ‘Things Speak’ server which shows fluctuations whenever the motion is
detected.
16
CHAPTER FOUR: DATA ANALYSIS AND INTERPRETATION
17
RESULTS AND DISCUSSION
The project uses sensors like soil moisture sensor and PIR sensor which are connected to the
Arduino . The sensors give input to the controller and according to that microcontroller control
moisture sensor, threshold value is defined at the beginning of the procedure. The soil moisture
sensor takes the moisture content level from the place where the sensor is deployed and the soil
moisture sensor sends the input data to the microcontroller. The microcontroller computes the
result depending on the program. If the moisture level in the soil is lower than the given
threshold value, then automatic smart irrigation system is implemented where the motor is turned
on automatically and water is pumped to the soil. Similarly, if the value of the soil moisture level
value, then the motor is turned off automatically. Controlling actions will be taken by relay
which is connected to the output side. Motion is detected using PIR sensor. PIR sensor sends the
input data to the microcontroller. The microcontroller computes the result depending on the
program. The PIR sensor absorbs the IR radiation emitted by the body. Once the motion is
gets on which will scare the intruders off.. In this project serial monitor acts as a output device. It
displays current soil moisture level and status of motion detection. Soil moisture content will be
Test
Expected Actual
case Action
output output
ID
When the
Same as
2 soil moisture is above 30% The LED lights off.
expected
This table shows action and response of the soil moisture level detection. Soil moisture level can
be controlled using water pump. This table contains 2 events, based upon these events the motor
moisture level in the soil. If the soil moisture level is low, motor will be turned on and when the
moisture level reaches the threshold value, the motor will be turned off
Test
Expected Actual
case Action
output output
ID
When the
Same as
1 motion is LED is
expected
detected turned on
When there
Same as
2 is no LED is
expected
motion turned off
This table shows the results of motion detection and control. This table shows action and
response of motion detection. Motion is detected using PIR sensor. The PIR sensor
absorbs the IR radiation emitted by the body. Once the motion is detected by the PIR, the
buzzer gets turned on which will scare the intruders. An alert message is also sent to the
19
farmer using GSM when motion is detected. If the motion is not detected then the buzzer
20
Better improvement of production in crop is a major requirement in the countries like India,
people depend on agriculture for their livelihood. Implementing smart agriculture system using
IoT in the field can definitely help to improve the yield of the crops and overall production. The
system also provides cost effective method which can be carried out by the farmers easily. The
consumption to a great extent. So this is very useful in areas where the water availability is a
major problem. The system also provides a method for intruder detection which is a primary
A. Direction for Future Work The intrusion detection system implemented in the project just
detects the intruder’s motion. This can be made more accurate and reliable by capturing the
image of the intruder using a camera and sending that to the owner whenever intrusion is
detected. PIR sensor ranges up to 10 meters which is fine for the project purpose. This can be
overcome by using any advanced device in the farmland which has a longer range than PIR
sensor.
21
CHAPTER SIX: REFERENCES
Vol. 1, Issue 3.
2014).
22