Professional Documents
Culture Documents
Mini Project
Mini Project
Mini Project
Agriculture is done in every country from ages. Agriculture is the science and art of
cultivating plants. Agriculture was the key development in the rise of sedentary human
civilization. Agriculture is done manually from ages. As the world is trending into new
technologies and implementations it is a necessary goal to trend up with agriculture also. IOT
plays a very important role in smart agriculture. IOT sensors are capable of providing
information about agriculture fields. we have proposed an IOT and smart agriculture system
using automation. This IOT based Agriculture monitoring system makes use of wireless sensor
networks that collects data from different sensors deployed at various nodes and sends it through
the wireless protocol. This smart agriculture using IOT system is powered by NODEMCU, it
consists of Temperature sensor, Moisture sensor, Fire Sensor, Relay Module, Ac Pump Motor.
Agriculture industry is developed a lot with the help of technology, it became data-
centered and smarter. The rapid growth of Internet of Things based technologies reshaped many
industries including agriculture. Such a radical change dismantles existing farming practices and
creates new opportunities along with some challenges. In this article the possibility of wireless
sensors and IoT in agriculture is highlighted, In addition some challenges are expected to be
tackled while integrating this technique with the traditional methods of farming. The IoT devices
and techniques used in agriculture applications are explained in detail. Based on this article, we
We read in the newspapers for many days about farmers losses and farmers used to work out the
soil maturity and suspicions for the production of yield. They won't worry about the temperature,
water level and simply climate conditions that are terrible to farmers.. The Internet of Things
(IOT) is reconstructing the agri-business which enables farmers to deal with challenges in the
field, for example through the broad range of strategies, such as accuracy and practical farming.
IOT assists in the assembling of information regarding conditions such as climate, humidity,
temperature and soil fertility, a IOT-based examination enables the discovery of wild plants,
water levels, exact location, field interruption, field development, horticulture. IOT helps in
assembling information IOT uses farmers to connect from anywhere to anywhere to his house.
Remote sensors are used to track household conditions and smaller controls are used to control
and mechanize the house shapes The world population is increasing at a daunting pace. Providing
the basic necessities of life for such a huge population is a great challenge. The most basic
requirement for any human being is good nutrition. However, due to the increasing population,
the old and traditional farming methods are proving insufficient for providing food in bulk
quantities. Fortunately, by making use of the latest agricultural techniques as well as smart
electronics technology we can increase efficiency and productivity too far higher levels which
can ensure our food security.
For the purpose of increasing the efficiency and productivity of agricultural crops, an IOT based
smart agriculture monitoring project using Arduino is proposed. The project consists of three
sensors for the measurement of various parameters crucial for the crop. These sensors include a
temperature sensor, a water level sensor, and a soil moisture sensor. The project also contains a
GSM modem and a WiFi module. The project also includes output devices such as a dc motor,
relays and a buzzer.
There are three sensors present in the circuit which are used for measuring the ambient
temperature, water level of the crop and the soil moisture level. Based on the monitoring of these
sensor values the smart agriculture monitoring system provides air and water to the crop. The
data from the sensors is sent to an Arduino controller which stores and processes this data and
then sends it to the IOT platform as well as GSM module. A WiFi module is interfaced with the
Arduino which sends the sensor values to the remote IOT platform using WiFi connection. The
GSM modem receives the sensor values from the Arduino board and sends these values to the
user via SMS after every 5 minutes. Some output devices are also connected to the Arduino
outputs. These devices include DC motor, relays, and buzzer. If any of the sensor values crosses
a certain predefined threshold then the buzzer is turned on to notify the user. One relay is
connected to the fan while the other is connected to the water pump. If the ambient temperature
is too hot then the fan is turned on by the controller in order to maintain the desired temperature
for the crop. If the soil moisture level is low then the water pump is turned on by the Arduino
controller to provide water to the crops. The crop status can be monitored remotely by means of a
remote IOT platform.
CHAPTER - 2
Literature Review
Experts have analysed collected data for finding correlation between environment
work and yield for standard work. They are concentrated on crop monitoring, information
of temperature and rainfall is collected as initial spatial data and analysed to reduce the
crop losses and to improve the crop production. An IOT Based Crop-field monitoring an
irrigation automation system explains to monitor a crop field. A system is developed by
using sensors and according to the decision from a server based on sensed data, the
irrigation system automated. By using wireless transmission the sensed data forwarded
towards to web server database. If the irrigation is automated then that means if the
moisture and temperature fields fall below the potential range. The user can monitor and
control the system remotely with the help of application which provides a web interface to
user. [1] Prof. K.A.Patil and Prof. N.R.Kale propose a wise agricultural model in irrigation
with ICT (Information Communication Technology).The complete real-time and historical
environment is expected to help to achieve efficient management and utilization of
resources. [2] IOT Based Smart Agriculture Monitoring System develops various features
like GPS based remote controlled monitoring, moisture and temperature sensing, intruders
scaring, security, leaf wetness and proper irrigation facilities.[3] Mahammad shareef
Mekala, Dr.P.Viswanathan demonstrated some typical application of Agriculture IOT
Sensor Monitoring Network Technologies using Cloud computing as the backbone. [4]
Prathibha S.R., Anupama Hongal Jyothi M.P. Created monitoring temperature and
Humidity in agriculture field through sensor using CC3200 Single chip. Camera is
interfaced with CC3200 to capture images and send that pictures through MMS to farmers
mobile using Wi-Fi [5]
2.1 Remote Communications
The creation of remote communications in wide and moderate distances has been
prevalent in the last few years. The usage of Wi-Fi, GSM, or GPRS is so popular they they
barely noticed. But, in the form of device to system communications, these are not as
normal, e.g. the connectivity required between a container moving through the Atlantic
ocean and a server situated thousands of kilometers away, even further taken into
consideration that there are hundreds of thousands of containers being transported everyday
in the world. Jedermann et al. (2014b) provide a comprehensive overview of technological
problems and strategies for a wireless tracking in transport, talking about pros and cons in
system connectivity, protocols, energy use and data usability. On the contrary, Badia-Melis
et al. (2015) demonstrate how a warehouse with a cold room with an equal volume of 1848
m3 can be instrumented using RFID and WSN in a way where both technologies can
benefit from each other and provide complementary knowledge.
Today, the most advanced technology in usage is RFID and it's the most commercially
available. On the other side, WSN hasn't advanced as quickly as anticipated in the agro
food market, because it has to cover several important aspects such as unit capacity, battery
life, and encapsulation (Badia-Melis et al., 2014). The first wireless sensor nodes in the
industry, including those offering monitoring of refrigerated logistics, such as temperature,
humidity and acceleration (vibration and shocks). Its downside was that it was operating in
the microwave band (2.4 GHz) and was too poor power at 1mW. (Figure 4.2). The 2.4GHz
microwave band has the benefit of being usable anywhere over the world however the
biggest drawback is the coincidence with the water resonance frequency (than is the cause
of the food heating), thus its transmission is problematic through the water and the air with
strong relative humidity. That is to suggest in a fruit and vegetable transportation, the air is
90% RH and water content in fruit and vegetables is typically more than 90%. (RuizGarcia
& Lunadei, 2011).
As Scheer (2006) mentioned in his paper, the details gathered in the conventional
tracking and tracing (T&T) systems are generally used only to remember management,
nonetheless the proposed quality based tracking and tracing framework (QTT) uses the
information collected with what we might term intelligent logistic instruments, such as
wireless sensors (temperature and humidity for instance).
A variety of scholars have been exploring agro-food logistics and supply chain
management processes for food traceability using RFID since a few years back, i.e.
Angeles (2005); Attaran (2007); Jones et al. (2004); Sugahara (2008); Twist; Ngai et al.
(2007); (2005). A method of RFID temperature monitoring for fighting feeding logistics
was developed by Amador and Emond (2010). The capacity to host tag sensors makes it
possible to transport the so-called " cold traceability " principle that has been implemented
to trace groups of temperature-sensitive items in various requirements of the atmosphere
(Ruiz-Garcia et al., 2010b). A cattle/beef traceability device was built and tested by Feng et
al. (2013), which combined RFID technology with a PDA and barcode printer. They
acquired real-time and precise data collection and delivery, and the high productivity of
cattle/beef supply chain monitoring and tracing of details. The term used in this case by
Zou et al. (2014) is an Internet of Things (IoT) framework, consisting of a two-layer
network architecture; it is a creative way to incorporate RFID for traceability in what is
considered as "intelligent food logistics" consisting of an asymmetric tag-reader connection
(RFID layer) and an adhoc link between readers (WSN layer), which are further linked to
the Internet via Wifi or cellular network.
AIM:
The main aim of this project is to develop a sensor interface device for agriculture
field through wireless sensor networks (WSN) in IOT environments.
EXISTING SYSTEM:
We physically measure physical parameters in the environment like Soil Moisture, fire
sensor and light recognition which is exceptionally troublesome and mistaken. A typical
individual can't demonstrate any enthusiasm to gauge those physical parameters esteem.
To maintain a strategic distance from this trouble we are going for our proposed
framework.
PROPOSED SYSTEM:
Node section:
POWER SUPPLY
MOISTURE SENSOR
IOT
MODULE
NODE
MCU
TEMPERATURE SENSOR
RELAY MODULE
FIRE SENSOR
AC PUMP MOTOR
Monitoring section:
MOBILE PHONE
In the era of technical progress, all science requires supervision and oversight. In order to
encourage food protection and food conservation, we propose an IoT device such that it can not
be contaminated during preparation and transport due to environmental conditions. In the current
situation, the work undertaken is in terms of the sensed values reported and a detailed analysis
has been conducted, but there are no automated alternatives to monitor. Efficient regulation of
temperature, humidity, light and other variables helps us to achieve promising productivity
without guaranteeing personal availability at the venue. Here, our key objective is to map,
manage and monitor the cold storage setting, enabling the operator to manage the information in
real time. A central node, which is a web browser, is responsible for providing information to the
management mode through a tablet or mobile phone.
The project includes the creation and programming of microcontrollers for IoT-based
cold chain management device monitoring and control.
CHAPTER – 4
HARDWARE DESCRIPTION
NodeMCU is an open source firmware for which open source prototyping board designs are
available. The name "NodeMCU" combines "node" and "MCU" (micro-controller unit). The
term "NodeMCU" strictly speaking refers to the firmware rather than the associated development
kits.
The firmware uses the Lua scripting language. The firmware is based on the eLua project, and
built on the Espressif Non-OS SDK for ESP8266. It uses many open source projects, such as lua-
cjson and SPIFFS. Due to resource constraints, users need to select the modules relevant for their
project and build a firmware tailored to their needs. Support for the 32-bit ESP32 has also been
implemented.
The prototyping hardware typically used is a circuit board functioning as a dual in-line
package (DIP) which integrates a USB controller with a smaller surface-mounted board
containing the MCU and antenna. The choice of the DIP format allows for easy prototyping
on breadboards. The design was initially was based on the ESP-12 module of the ESP8266,
which is a Wi-Fi SoC integrated with a Tensilica Xtensa LX106 core, widely used in IoT
applications
NodeMCU was created shortly after the ESP8266 came out. On December 30, 2013, Espressif
Systems began production of the ESP8266. NodeMCU started on 13 Oct 2014, when Hong
committed the first file of nodemcu-firmware to GitHub. Two months later, the project expanded
to include an open-hardware platform when developer Huang R committed the gerber file of an
ESP8266 board, named devkit v0.9. Later that month, Tuan PM ported MQTT client library
from Contiki to the ESP8266 SoC platform, and committed to NodeMCU project, then
NodeMCU was able to support the MQTT IoT protocol, using Lua to access the MQTT broker.
Another important update was made on 30 Jan 2015, when Devsaurus ported the u8glib [16] to the
NodeMCU project,[17] enabling NodeMCU to easily drive LCD, Screen, OLED, even VGA
displays.
4.1.2 WI-FI: The WI-FI module used in this project is ESP8266. It follows TCP/IP stack and is a
microchip which is less in cost. This microchip allows microcontroller to connect to a WI-FI network, by
using Hayes style command connections are done or made through TCP/IP connection. ESP8266 has
1MB of built in flash, single chip devices able to connect WI-FI. Espressif systems are the manufacturers
of this module, it is a 32 bit microcontroller. There are 16 GPIO pins in this module. This module follows
RISC processor. It has 10 bit DAC. Later Espressif systems released a software development kit(SDK)
which is used to programme on the chip, so that another microcontroller is not used. Some of the SDK’s
are Node MCU, Arduino, Micro Python, Zerynth and Mongoose OS. SPI, I2C, I2S, UART are used for
communicating between two sensors or modules.
Figure : Wi-Fi module
Specifications:
Breadboard Friendly
Pin Functions:
Pin numbers in the Arduino IDE correspond directly to the ESP8266 GPIO pin
numbers. pinMode, digitalRead, and digitalWrite functions work as usual, so to read
GPIO2, call digitalRead(2) or its alias name digitalRead(D10).
At startup, pins are configured as INPUT. Digital pins 0-15 can be INPUT,
OUTPUT or INPUT_PULLUP. Pin 16 can be INPUT, OUTPUT or
INPUT_PULLDOWN_16 and is connected to the build-in LED.
Pins may also serve other functions, like Serial, I2C, SPI. These functions are
normally activated by the corresponding library. The diagram above shows the pin
mapping for the popular ESP8266 NodeMcu module.
Reserved Pins:
GPIO pins 6—11 are not shown on this diagram because they are used to connect
flash memory 'chips on most modules. Trying to use these pins as IOs will likely cause
the program to crash.
Note that some boards and modules (ESP-12ED, NodeMCU 1.0) also break out
pins 9 and 11. These may be used as IO if flash chip works in DIO mode (as opposed to
QIO, which is the default one).
ESP8266 has a single ADC channel available to users. It may be used either to
read voltage at ADC pin or to read module supply voltage (VCC).
To read VCC voltage, use ESP.getVcc() while the ADC pin must be kept
unconnected. Additionally, the following line has to be added to the sketch:
ADC_MODE(ADC_VCC);
Analog Output:
analogWrite(pin, value) enables software PWM on the given pin. PWM may be
used on pins 0 to 16. Call analogWrite(pin,0) to disable PWM on the pin. the value may
be in the range from 0 to PWMRANGE, which is equal to 1023 by default. A value of 0,
512 and 1023 sets the PWM duty cycle to 0%, 50% and 100%, respectively. Optionally,
the PWM range may be changed by calling analogWriteRange(new_range).
18
4.2 IoT Technology and Applications
IoT development speedily assist the IoT application that focused on the heap industry and
specific users, while networks and devices allow connectivity of physical things. IoT application
gives reliable vital device-to-human and device-to-device communication. IoT device
applications need to ensure that information is received and properly acted according to a
suitable specific way, a simple example is that of logistic application monitoring that has the
transported status of goods such as organic products, fresh products, meat and dairy terms.
Furthermore, during logistics, quality control of climate change, shock and humidity is regularly
monitored and suitable movements are strategically and naturally made to preserve goods
spoilage from a long distance when connection is out of courage. To claimed that "some
examples of IoT applications in existence can be found in Smart Environment, Smart
Greenhouse, Smart Cities, Smart Water, Smart Metering, Security and Emergency, Industrial
Control, Home Automation and Electronic Health". 'IoT' is therefore stationed on devices that
can examine sensed data and then transmit it to the user. K. IoT Challenges As stated in a
previous study, there are some challenges that IoT design would face in the coming future
generation. All the devices, nodes connected in associate in nursing IoT design needs to have
terribly low latency over reliable links. Because of the vast variety of IoT devices and the use of
various frequency bands, there would be a crisis in spectrum house. Although IoT devices are
expanding on a daily basis that consumes terribly lesser power, still there'll be a big quantity of
greenhouse gas emission because of all of these devices. Finally, IoT architecture not solely must
be price effective however additionally they have to be capable of supporting heterogeneous
applications and devices. As stated above on IoT challenges, IoT applications will have some
more basic needs to tackle, for example, Device addressing, Security, Scalability, Mobility,
Anchor-less sending and so on. As mentioned, IoT applications contains numerous
heterogeneous devices, and however, content security is a key concern that plays a great roles. A
previous study has indicated the challenges of both IoT and ICN in their past study, this past
study endeavours to combine them where IoT illustrate the different challenges and on the other
hand, ICN illustrates the positive solutions. Nonetheless, their study explained initially how
different ICN features can address IoT issues and after that, some use cases and contextual
investigations are examined.
19
LIMITATIONS
1. Compatibility: As of now, there is no standard for tagging and monitoring with sensors. A
uniform concept like the USB or Bluetooth is required which should not be that difficult to do.
2. Complexity: There are several opportunities for failure with complex systems. For example,
both you and your spouse may receive messages that the milk is over and both of you may end
up buying the same. That leaves you with double the quantity required. Or there is a software
bug causing the printer to order ink multiple times when it requires a single cartridge.
3. Privacy/Security: Privacy is a big issue with IoT. All the data must be encrypted so that data
about your financial status or how much milk you consume isn’t common knowledge at the work
place or with your friends.
4. Safety: There is a chance that the software can be hacked and your personal information
misused. The possibilities are endless. Your prescription being changed or your account details
being hacked could put you at risk. Hence, all the safety risks become the consumer’s
responsibility.
Ethernet :
Systems communicating over Ethernet divide a stream of data into individual packets
called frames. Each frame contains source and destination addresses and error-checking data so
that damaged data can be detected and re-transmitted.
The standards define several wiring and signaling variants. The original 10BASE5
Ethernet used coaxial cable as a shared medium. Later the coaxial cables were replaced by
20
twisted pair and fiber optic links in conjunction with hubs or switches. Data rates were
periodically increased from the original 10 megabits per second, to 100 gigabits per second.
Since its commercial release, Ethernet has retained a good degree of compatibility.
Features such as the 48-bit MAC address and Ethernet frame format have influenced other
networking protocols
Ethernet initially competed with two largely proprietary systems, Token Ring and Token Bus.
Because Ethernet was able to adapt to market realities and shift to inexpensive and ubiquitous
twisted pair wiring, these proprietary protocols soon found themselves competing in a market
inundated by Ethernet products and by the end of the 1980s, Ethernet was clearly the dominant
network technology. In the process, 3Com became a major company. 3Com shipped its first
10 Mbit/s Ethernet 3C100 transceiver in March 1981, and that year started selling adapters for
PDP-11s and VAXes, as well as Multibus-based Intel and Sun Microsystems computers. This
was followed quickly by DEC's Unibus to Ethernet adapter, which DEC sold and used internally
to build its own corporate network, which reached over 10,000 nodes by 1986, making it one of
the largest computer networks in the world at that time.
21
Evolution:
Ethernet evolved to include higher bandwidth, improved media access control methods,
and different physical media. The coaxial cable was replaced with point-to-point links connected
by Ethernet repeaters or switches to reduce installation costs, increase reliability, and improve
management and troubleshooting. Many variants of Ethernet remain in common use.
Ethernet stations communicate by sending each other data packets: blocks of data
individually sent and delivered. As with other IEEE 802 LANs, each Ethernet station is given a
48-bit MAC address. The MAC addresses are used to specify both the destination and the source
of each data packet. Ethernet establishes link level connections, which can be defined using both
the destination and source addresses. On reception of a transmission, the receiver uses the
destination address to determine whether the transmission is relevant to the station or should be
ignored. Network interfaces normally do not accept packets addressed to other Ethernet stations.
Adapters come programmed with a globally unique address. An Ethertype field in each frame is
used by the operating system on the receiving station to select the appropriate protocol module
(i.e. the Internet protocol module). Ethernet frames are said to be self-identifying, because of the
frame type. Self-identifying frames make it possible to intermix multiple protocols on the same
physical network and allow a single computer to use multiple protocols together. Despite the
significant changes in Ethernet, all generations of Ethernet (excluding early experimental
versions) use the same frame formats (and hence the same interface for higher layers), and can
be readily interconnected through bridging.
22
ETHERNET (TCP/IP PROTOCOL)
Systems communicating over Ethernet divide a stream of data into shorter pieces called frames.
Each frame contains source and destination addresses, and error-checking data so that damaged
frames can be detected and discarded; most often, higher-layer protocols
trigger retransmission of lost frames. As per the OSI model, Ethernet provides services up to and
including the data link layer.[4]
Since its commercial release, Ethernet has retained a good degree of backward compatibility. Features
such as the 48-bit MAC address and Ethernet frame format have influenced other networking protocols.
The primary alternative for some uses of contemporary LANs is Wi-Fi, a wireless protocol standardized
as IEEE 802.11.
HISTORY :
23
Ethernet was developed at Xerox PARC between 1973 and 1974.[6][7] It was inspired
by ALOHAnet, which Robert Metcalfe had studied as part of his PhD dissertation. [8] The idea
was first documented in a memo that Metcalfe wrote on May 22, 1973, where he named it after
the disproven luminiferous ether as an "omnipresent, completely-passive medium for the
propagation of electromagnetic waves".[6][9][10] In 1975, Xerox filed a patent application listing
Metcalfe, David Boggs, Chuck Thacker, and Butler Lampson as inventors.[11] In 1976, after the
system was deployed at PARC, Metcalfe and Boggs published a seminal paper.[12][a]
Ethernet initially competed with two largely proprietary systems, Token Ring and Token Bus.
Because Ethernet was able to adapt to market realities and shift to inexpensive and
ubiquitous twisted pair wiring, these proprietary protocols soon found themselves competing in a
market inundated by Ethernet products, and, by the end of the 1980s, Ethernet was clearly the
dominant network technology.[6] In the process, 3Com became a major company. 3Com shipped
its first 10 Mbit/s Ethernet 3C100 NIC in March 1981, and that year started selling adapters
for PDP-11s and VAXes, as well as Multibus-based Intel and Sun Microsystems computers.
[17]:9
This was followed quickly by DEC's Unibus to Ethernet adapter, which DEC sold and used
internally to build its own corporate network, which reached over 10,000 nodes by 1986, making
it one of the largest computer networks in the world at that time. [18] An Ethernet adapter card for
the IBM PC was released in 1982, and, by 1985, 3Com had sold 100,000. [14] Parallel port based
Ethernet adapters were produced for a time, with drivers for DOS and Windows. By the early
1990s, Ethernet became so prevalent that it was a must-have feature for modern computers, and
Ethernet ports began to appear on some PCs and most workstations. This process was greatly
sped up with the introduction of 10BASE-T and its relatively small modular connector, at which
point Ethernet ports appeared even on low-end motherboards.
24
Since then, Ethernet technology has evolved to meet new bandwidth and market requirements.
[19]
In addition to computers, Ethernet is now used to interconnect appliances and other personal
devices.[6] It is used in industrial applications and is quickly replacing legacy data transmission
systems in the world's telecommunications networks.[20] By 2010, the market for Ethernet
equipment amounted to over $16 billion per year.
STANDARDIZATION:
Delays in the standards process put at risk the market introduction of the Xerox Star workstation
and 3Com's Ethernet LAN products. With such business implications in mind, David
Liddle (General Manager, Xerox Office Systems) and Metcalfe (3Com) strongly supported a
proposal of Fritz Röscheisen (Siemens Private Networks) for an alliance in the emerging office
communication market, including Siemens' support for the international standardization of
Ethernet (April 10, 1981). Ingrid Fromm, Siemens' representative to IEEE 802, quickly achieved
broader support for Ethernet beyond IEEE by the establishment of a competing Task Group
"Local Networks" within the European standards body ECMA TC24. On March 1982, ECMA
TC24 with its corporate members reached an agreement on a standard for CSMA/CD based on
the IEEE 802 draft.[17]:8Because the DIX proposal was most technically complete and because of
the speedy action taken by ECMA which decisively contributed to the conciliation of opinions
within IEEE, the IEEE 802.3 CSMA/CD standard was approved in December 1982. [14] IEEE
published the 802.3 standard as a draft in 1983 and as a standard in 1985.[23]
25
Standardization (ISO) Technical Committee 97 Sub Committee 6 (TC97SC6). The ISO 8802-3
standard was published in 1989.
EVOLUTION
Ethernet stations communicate by sending each other data packets: blocks of data individually
sent and delivered. As with other IEEE 802 LANs, each Ethernet station is given a 48-bit MAC
address. The MAC addresses are used to specify both the destination and the source of each data
packet. Ethernet establishes link level connections, which can be defined using both the
destination and source addresses. On reception of a transmission, the receiver uses the
destination address to determine whether the transmission is relevant to the station or should be
ignored. A network interface normally does not accept packets addressed to other Ethernet
stations.[b]Adapters come programmed with a globally unique address.[c]
An EtherType field in each frame is used by the operating system on the receiving station to
select the appropriate protocol module (e.g., an Internet Protocol version such as IPv4). Ethernet
frames are said to be self-identifying, because of the frame type. Self-identifying frames make it
possible to intermix multiple protocols on the same physical network and allow a single
computer to use multiple protocols together.[26] Despite the evolution of Ethernet technology, all
generations of Ethernet (excluding early experimental versions) use the same frame formats.
[27]
Mixed-speed networks can be built using Ethernet switches and repeaters supporting the
desired Ethernet variants.[28]
Due to the ubiquity of Ethernet, the ever-decreasing cost of the hardware needed to support it,
and the reduced panel space needed by twisted pair Ethernet, most manufacturers now build
Ethernet interfaces directly into PC motherboards, eliminating the need for installation of a
separate network card.
26
Broadcast medium─ Passive, Wired connections based.
Frame format like the IEEE 802.2
SNMP (Simple Network Management Protocol) Open system (therefore allows equipment
of different specifications)
Each one connected to a common communication channel in the network listens and if the
channel is idle then transmits. If not idle, waits and tries again.
Multi access is like in a Packet switched network
27
Ethernet LAN
Then there are six bytes. These are for the type field. These are meaningful only for the
higher network layers and the length definition.
Minimum 72 bytes and maximum 1500 bytes of data follow the length definition.
Lastly, there are 4 bytes for CRC check for the frame sequence check
Power Supply:
28
The input to the circuit is applied from the regulated power supply. The a.c. input
i.e., 230V from the mains supply is step down by the transformer to 12V and is fed to a
rectifier. The output obtained from the rectifier is a pulsating d.c voltage. So to get a pure
d.c voltage, the output voltage from the rectifier is fed to a filter to remove any a.c
components present even after rectification. Now, this voltage is given to a voltage
regulator to obtain a pure constant dc voltage.
LDRs or Light Dependent Resistors are very useful, especially in light/dark sensor
circuits. Normally the resistance of an LDR is very high, sometimes as high as 1,000,000
ohms, but when they are illuminated with light, the resistance drops dramatically.
Thus in this project, LDR plays an important role in switching on the lights based
on the intensity of light i.e., if the intensity of light is more (during daytime) the lights
will be in off condition. And if the intensity of light is less (during nights), the lights will
be switched on.
Fig LDR
29
This is an example of a light sensor circuit: When the light level is low the
resistance of the LDR is high. This prevents current from flowing to the base of the
transistors. Consequently, the LED does not light. However, when light shines onto the
LDR its resistance falls and current flows into the base of the first transistor and then the
second transistor. The LED glows. The preset resistor can be turned up or down to
increase or decrease resistance, in this way it can make the circuit more or less sensitive.
The soil moisture sensor is one kind of sensor used to gauge the volumetric content of
water within the soil. As the straight gravimetric dimension of soil moisture needs eliminating,
drying, as well as sample weighting. These sensors measure the volumetric water content not
directly with the help of some other rules of soil like dielectric constant, electrical resistance,
otherwise interaction with neutrons, and replacement of the moisture content.
The relation among the calculated property as well as moisture of soil should be adjusted & may
change based on ecological factors like temperature, type of soil, otherwise electric conductivity.
The microwave emission which is reflected can be influenced by the moisture of soil as well as
mainly used in agriculture and remote sensing within hydrology.
30
These sensors normally used to check volumetric water content, and another group of sensors
calculates a new property of moisture within soils named water potential. Generally, these
sensors are named as soil water potential sensors which include gypsum blocks and tensiometer.
Soil Moisture Sensor Pin Configuration
soil-moisture-sensor
Working Principle
This sensor mainly utilizes capacitance to gauge the water content of the soil (dielectric
permittivity). The working of this sensor can be done by inserting this sensor into the earth and
the status of the water content in the soil can be reported in the form of a percent.
This sensor makes it perfect to execute experiments within science courses like environmental
science, agricultural science, biology, soil science, botany, and horticulture.
FIRE SENSOR
31
There are several types of flame detector. The optical flame detector is a
detector that uses optical sensors to detect flames. There are also ionization flame
detectors, which use current flow in the flame to detect flame presence,
and thermocouple flame detectors.
Infrared (IR) flame detectors work within the infrared spectral band. Hot gases emit a
specific spectral pattern in the infrared region, which can be sensed with a thermal
imaging camera (TIC) a type of thermo graphic. False alarms can be caused by other
hot surfaces and background thermal radiation in the area as well as blinding from
water and solar energy. A typical frequency where single frequency IR flame detector is
sensitive is in the 4.4 micrometer range. Typical response time is 3-5 seconds.
RELAY
32
Fig 6.1: Automotive-style miniature relay, dust cover is taken off
A simple electromagnetic relay consists of a coil of wire surrounding a soft iron core, an
iron yoke which provides a low reluctance path for magnetic flux, a movable iron armature, and
one or more sets of contacts (there are two in the relay pictured). The armature is hinged to the
yoke and mechanically linked to one or more sets of moving contacts. It is held in place by a
spring so that when the relay is de-energized there is an air gap in the magnetic circuit. In this
condition, one of the two sets of contacts in the relay pictured is closed, and the other set is open.
33
Other relays may have more or fewer sets of contacts depending on their function. The relay in
the picture also has a wire connecting the armature to the yoke. This ensures continuity of the
circuit between the moving contacts on the armature, and the circuit track on the printed circuit
board (PCB) via the yoke, which is soldered to the PCB
With regard to the cattle/beef market, the key obstacles for the implementation of RFID
in their traceability scheme are the inapplicable knowledge input process, the unreliable data
input sequence and contact mechanism associated with RFID readers, and the high cost of
implementation (Feng et al., 2013). It is still not a preferable option for most businesses with
many benefits of RFID technology as it leads to additional costs for the business. The
compromise between the company's advantages and safety criteria, however, is the primary
motivating factor for the introduction of technologies such as RFID (M. Zhang & Li, 2012).
Almost every difficulty that has been surpassed by these innovations is another problem. For
certain WSN and RFID class 4, the basic ZigBee protocol may follow net topology with point-
to-point data transference (PtP). This ensures that without heading straight to the portal, the data
may be hopped from one node to the next; it enables contact to go through some item, such as
metals or liquids. It must be taken into account that this would require an increase in the number
of nodes, an increase in complexity and a consequent increase in costs. Despite the
comparatively low price of sensing equipment (from €15 to €100), the usage of routers,
gateways, concentrators and often even specialized computers is important and makes the whole
system more costly.
In the logistics of fruit and vegetables, the identification of explosive gases linked to the
condition of maturation of the cargo poses a significant problem, with ethylene and ethanol being
34
the two most relevant gases. The development of specific sensors for these two gases is an issue
that has been investigated since a few years ago, and there has been no adequate solution. Some
sensors have been developed to detect both gases, but when it is necessary to differentiate them
into the same air mass, the detectors fail. This reality renders it difficult to use these fruit sensors,
since ethylene implies the ripening of the fruit, and ethanol, on the other side, indicates the
rotting of the fruit.
CHAPTER – 5
SOFTWARE DESCRIPTION
Over the years Arduino has been the brain of lots of obligations, from regular
gadgets to complex medical gadgets. A worldwide community of makers - college
students, hobbyists, artists, programmers, and specialists - has collected spherical this
open-deliver platform, their contributions have brought as much as a terrific amount of
available know-how that can be of terrific assist to novices and experts alike.
Arduino has become born on the Ivrea interaction format Institute as a clean tool
for instant prototyping, geared towards university college students without a historic past
in electronics and programming. As quickly as it reached a miles wider community, the
35
Arduino board started converting to conform to new dreams and traumatic situations,
differentiating its provide from smooth eight-bit boards to merchandise for IoT
Arduino IDE
36
Fig Using Arduino IDE app
37
The Arduino venture gives the Arduino blanketed development surroundings (IDE), it
really is a go-platform software program software developed in the programming language
Java. It is developed to introduce programming application with software improvement.
It includes a code editor with features in conjunction with syntax highlighting, brace
matching, and automatic indentation, and offers a simple one-click mechanism to collect and
load packages to an Arduino board. A software program written with the IDE for Arduino is
known as a "cool lively film".
Arduino IDE permits the languages C and C++ the use of special hints to set up code.
The Arduino IDE materials a software program software library called Wiring from the
Wiring task, which offers many, not unusual enter and output techniques. a massive Arduino
C/C++ cool animated film embodies abilities that might be compiled and related with a utility
stub vital() into an executable cyclic government software:
• Setup (): a feature that runs as fast as on the start of software and which can
initialize settings.
• loop (): a characteristic called time and again until the board powers off.
• Writing Sketches
• Report
• Edit
• Caricature
• Equipment
• help
• Sketchbook
• importing
• Libraries
• Hardware
• Serial screen
• Possibilities
38
• Language assist
• Forums
The Arduino Software (IDE) - carries a text editor for writing code, a message
location, a text console, a toolbar with buttons for all functions, and a group of menus. It joins
to the Arduino and Genuino hardware to add packages and talk with them.
Packages written utilizing Arduino software application program (IDE) are called
sketches. Those sketches are written inside the textual content editor and saved with the
document extension .ino. The editor has capabilities for slicing/pasting and for
searching/changing textual content. The message area gives comments while saving and
exporting and presentation errors. The console shows text output thru the use of the Arduino
software program (IDE), together with complete error messages and distinctive records. The
lowest right-hand nook of the window suggests the configured board and serial port. The
toolbar buttons permit you to verify and upload packages, create, open, and keep sketches,
and open the serial show.
• verify
• upload
Compiles your code and uploads it to the board. See importing below for facts.
• Notice: if you are using an of doors programmer together with your board, you
may hold down the "shift" key for your pc while the usage of this icon. The textual content
will trade to "add the use of Programmer"
• New
• Open
In case you need to open a caricature overdue under the listing, use the document |
Sketch book menu as an alternative.
• hold
39
Saves your cool animated film.
• Serial display
Additional instructions are decided inside the five menus: record, Edit, caricature,
gear, and help.
File:
• New
Creates today's instance of the editor, with the naked minimum form of a sketch
already in the area.
• Open
Allows loading a caricature file surfing via the pc drives and folders.
• Open current-day
40
Provides a brief listing of the maximum ultra-modern sketches, equipped to be
opened.
• Sketchbook
• Examples
Any instance supplied with the useful aid of the Arduino software program
application (IDE) or library suggests up on this menu item. All of the examples are based on
a tree that lets in clean get proper of entry to by way of the usage of subject matter or library.
• keep
Saves the caricature earlier then, a call might be supplied in a "shop as.” window.
• save as...
Let’s in to maintain the cutting-edge cool animated film with a wonderful name.
Sends the cutting-edge cartoon to the printer in step with the settings defined in net
web page Setup.
• Options
Opens the possibilities window wherein a few IDE settings may be customized,
because of the fact that language of the IDE interface.
• give up
Closes all IDE windows. The identical sketches open whilst give up turned into
chosen can be robotically reopened the subsequent time you begin the IDE.
• Edit
41
• Undo/Redo
is going decrease once more of 1 or extra steps you did at the equal time as editing;
while you skip decrease returned, you can move in advance with Redo.
• duplicate
• Reproduction as HTML
• Paste
Places the contents of the clipboard on the cursor feature, in the editor.
• select all
• Statement/Uncomment
Places or gets rid of the // observation marker at the start of every decision online.
• increase/lower Indent
Adds or subtracts an area at the beginning of each decided online, transferring the
textual content one area at the proper or disposing of an area on the start.
• locate
Opens the discover and update window in which you could specify the text to search
inside the cutting-edge-day comedian strip in keeping with numerous alternatives.
• locate next
Highlights the fact that is trying to find the item within the known window, relative to
the cursor role.
• discover preceding
Highlights the seek item within the discover window relative to the cursor position.
Caricature:
42
• verify/acquire
Assessments your comic strip for errors compiling it; it's going to document
reminiscence utilization for code and variables in the console vicinity
• upload
This may overwrite the bootloader at the board; you could want to use device > Burn
Bootloader to restore it and be capable of add to the USB serial port another time. However,
it permits you to apply the overall functionality. To acquire this a system -> Burn Bootloader
command needs to be accomplished.
43
Fig 6.3.load the binary file
Saves a .hex record that can be saved as an archive or sent to the board using various
equipment.
• encompass Library
Gives a library on your caricature with the aid of placing #encompass statements at
the beginning of your code. For more facts, see libraries under. Moreover, from this menu
item, you could get proper access to the Library
• add report...
Adds a supply file to the comedian strip (it will be copied from its present-day area).
The present-day day document seems in an ultra-present day tab in the cool animated film
44
window. Documents may be eliminated from the strip the normal use of the tab menu
available clicking on the lower triangle icon below.
Device:
• Automobile layout
This formats your code properly: i.e. indents it simply so beginning and remaining
curly braces
Documents a replica of the current-day cool lively movie in .zip format. The archive
is placed in the equal listing because of the comedian strip.
Fixes viable discrepancies in most of the editor char map encoding and exceptional
on-foot structures char maps.
• Board
Pick out the board which you're the use of. See underneath for descriptions of the
numerous boards.
• Port
This menu consists of all the serial devices (real or digital) for your device. It wants to
routinely refresh each time you open the top-stage equipment menu.
• Programmer
For choosing a hardware programmer whilst programming a board or chip and not the
usage of the onboard USB-serial connection. Normally you may not need this, however, if
you're burning a bootloader to a new microcontroller, you could use this.
• Burn Bootloader
The gadgets on this menu will allow you to burn a bootloader on to the mcu on an
Arduino board. This isn't always required for use of an Arduino uno or Genuino board but is
beneficial if you purchase an extremely-cutting-edge ATmega microcontroller (which usually
comes without a bootloader). Ensure which you've decided on the right board from the
45
boards' menu in advance than burning the bootloader on the reason board. This command
additionally sets the proper fuses.
Help:
Right here you find out easy access to several files that encompass the Arduino
software program utility (IDE). You’ve got have been given get proper of entry to Getting
started, Reference, this manual to the IDE and distinct files regionally, without an internet
connection. The documents are a neighborhood reproduction of the internet ones and can
hyperlink once more to our online net internet web page.
• DISCOVER IN REFERENCE
This is the pleasant interactive characteristic of the assist menu: it straight away
selects the applicable net page in the close by a duplicate of the Reference for the
characteristic or command beneath the cursor.
LANGUAGE SUPPORT
46
SERIAL MONITOR:
Indicates serial facts being despatched from the Arduino UNO or Genuino board
(USB or serial board). To ship data to the board, enter textual content and click on on on at
the "supply" button 36 2336 or press enter. Choose out the baud price from the drop-down
that fits to Serial. 12 Begin in your comic strip. Be conscious that on domestic home
windows, Mac or Linux, the Arduino UNO or Genuino board will reset whilst you join with
the serial display.
You could also interface to the board from Processing, Flash, MaxMSP, and so on
(see the 12 interfacing net page for information). Possibilities: A few picks can be set inside
the options dialog (determined under the Arduino menu on the 36 Mac, or document on home
windows and Linux). The relaxation can get in the options file, 12 whose region is confirmed
in the choice conversation.
Arduino software (IDE) consists of the built-in to beefit for the forums in the
following listing, all primarily based on the AVR mcu. The Boards manager included inner
the fashionable set up allows to feature assist for the growing variety of new boards based
totally on special cores like Arduino UNO, Arduino 0, Edison, Galileo and so on.
• Arduino Yùn
• Arduino/Genuino Uno
47
• Arduino/Genuino Mega 2560
• Arduino Mega
An ATmega2560 on foot at sixteen MHz with vehicle-reset, sixteen Analog In, fifty-
four digital I/O, and 15 PWM.
• Arduino Leonardo
• Arduino/Genuino Micro
• Arduino Esplora
• Arduino Ethernet
• Arduino Fio
• Arduino BT w/ ATmega328
48
ATmega328 has a frequency of sixteen MHz. The bootloader burned (four KB)
consists of codes to initialize the on-board Bluetooth module, 6 Analog In, 14 digital I/O, and
6 PWM.
An ATmega32u4 frequency at 8 MHz with vehicle-reset, four Analog In, nine digital
I/O, and four PWM.
• LilyPad Arduino
• Arduino Gemma
49
5.3 BLYNK APP
Blynk was designed for the Internet of Things. It can control hardware remotely, it can
display sensor data, it can store data, visualize it and do many other cool things.
There are three major components in the platform:
1. Blynk App - allows to you create amazing interfaces for your projects using various
widgets we provide.
2. Blynk Server - responsible for all the communications between the smartphone and
hardware. You can use our Blynk Cloud or run your private Blynkj server locally. It’s open-
source, could easily handle thousands of devices and can even be launched on a Raspberry Pi.
3. Blynk Libraries - for all the popular hardware platforms - enable communication
with the server and process all the incoming and out coming commands.
50
The node MCU needs some external libraries for accessing the commands for it. For
instating node MCU library the fallowing link must be placed in the board manager which is
present in options tools of the arduino IDE software.
The link is :
http://arduino.esp8266.com/stable/package_esp8266com_index.json
The structure of your your sketchbook folder should now look like this, along with your
other sketches (if you have them):
51
Fig 4.3 : Installing Blynk library
52
After we have successfully logged into our account, start by creating a new project.
4. Auth Token
Auth Token is a unique identifier which is needed to connect our hardware to our smart
phone. Every new project that we create will have its own Auth Token. We will get Auth
Token automatically on your email after project creation. we can copy it manually. Click on
devices section and selected required device : and we see the token.
53
Fig 5.4 : Generation of auth token
joysticks, sliders, etc are available. The required video display, two joysticks, one
6. Internal Of Joystick
54
Limits for the joystick are given and the refresh rate is also given so that the value is
environment
55
CONCLUSION & FUTURE SCOPE
Conclusion:
This paper describes automated irrigation system using IOT. Internet on things and cloud
computing collectively makes a system that control agriculture sector effectively. This system
will sense all the environmental parameters and send the data to the user. User will take
controlling action according to that this will be done by using actuator. This asset allows the
farmer to improve the cultivation in a way the plant need. It leads to higher crop yield,
prolonged production period, better quality and less use of protective chemicals.
Future Scope:
It is important that any further work in developing the technology core in the field of sensor
networks is done keeping in mind the potential users of these networks, and what their needs
are. This project is based on Wi-Fi but can be further continued by adding advanced
technologies like Zigbee and GSM. Low-power design should be the mantra at all levels, be
it hardware or software.
56
References
[1]. Rajalakshmi.P, Mrs.S.Devi Mahalakshmi “IOT Based Crop-Field Monitoring And
Irrigation Automation” 10th International conference on Intelligent systems and control
(ISCO), 7-8 Jan 2016 published in IEEE Xplore Nov 2016.
[2]. Prof. K. A. Patil And Prof N. R. Kale proposes “A Model For Smart Agriculture Using
IOT” 2016 International Conference on Global Trends in signal Processing, Information
Computing And Communication.
[4]. Mahammad shareef Mekala, Dr.P.Viswanathan „A Survey: Smart agriculture IoT with
cloud Computing ‟ 978-1-5386-1716-8/17/$31.00 ©2017 IEEE
[5]. Prathibha S R1, Anupama Hongal 2, Jyothi M P3‟ IOT BASED MONITORING
SYSTEM IN SMART AGRICULTURE‟ 2017 International Conference on Recent
Advances in Electronics and Communication Technology [6]. Ibrahim Mat, Mohamed
Rawidean Mohd Kassim, Ahmad Nizar Harun, Ismail Mat Yusoff “IOT in Precision
Agriculture Applications Using Wireless Moisture Sensor Network” 2016 IEEE Conference
on Open Systems (ICOS), October 10-12- 2016, Langkaw, Malaysia.
57
[7]. Zhaochan Li, JinlongWang, Russell Higgs, LiZhou WenbinYuan4 “Design of an
Intelligent Management System for Agricultural Green houses based on the Internet of
Things” IEEE International Conference on Embedded and Ubiquitous Computing (EUC)
2017.
58