Smart Farming
Smart Farming
Chapter 1
INTRODUCTION
The primary issue of Smart Farming: Techno Environment Farming horticulture is to
manage the greenhouse environment optimally in order to comply with the economic and
environmental requirements. Pests and diseases, and extremes of heat and humidity, have
to be controlled, and irrigation is necessary to provide water. The solution to these
problems is by designing an automatic controlled system. Two sensors are used in this
project. Soil moisture sensor needed to automatically control the valve of watering system.
Temperature sensor will measure the condition of the greenhouse. This project improved
the irrigation system from manual to automatic to make it easier to monitor the condition
of the Techno Environment Farming remotely.
The Techno Environment Farming is the quickest developing part of the world. Techno
Environment Farming is a method of providing favorable environmental conditions to
plants by growing them under a farmed structure covered with a transparent material.
Internet of things can be expressed as the architecture of physical things implanted with
electronic circuits, sensors and programming along with an associative system these things
to trade information from each other. Techno Environment Farming is a best option to
enhance the performance. Hand-operated Techno Environment Farming has drawbacks
like visual inspection of plant growth, turning on and off the temperature controllers.
Techno Environment Farming monitoring on Internet of Things is time consuming,
vulnerable to human error and less accurate and unreliable. So fully automized Techno
Environment Farming may be best. The humidity and temperature of air in a greenhouse
are, measured by sensor and whenever temperature is high or air moisture becomes too
low, fogger is turned on to provide the required moisture and cool down the temperature.
The purpose of the greenhouse monitoring using wireless sensor network prototype that is
targeted at transmitting and receiving data within the greenhouse infrastructure. It was used
as the target for the amount of data that is useful for an analysis of the factor that enable
proper functioning of farming.
Chapter 2
LITERATURE SURVEY
Sujeet More, “Machine Learning Techniques with IoT in Agriculture”, International
Journal of Advanced Trends in Computer Science and Engineering 8(3):742-747
DOI:10.30534/ijatcse/2019/63832019, June 2019, Traditionally methods developed for
agriculture focused on the specific functionality/ domain-dependent such as temperature,
humidity pressure, etc and lacks of knowledge base for smart irrigation. In modern
generation, the volume of information gathered by numerous sensors over a period,
with a diverse series of applications nowadays, is acknowledged by means of Internet
of things.[1]
Geo Abraham, Raksha R, M. Nithya, “Smart Agriculture Based on IoT and Machine
Learning”, 2021 5th International Conference on Computing Methodologies and
Communication(ICCMC),80-10 April 2021, DOI: 10.1109/ICCMC51019.2021.9418392,
The IoT advancements have majorly influenced in redefining the agricultural field. A
reliable remote monitoring system is the need of the hour. In this paper, two objectives are
addressed. Firstly, an app-based solution is presented which helps in displaying the current
sensor values that efficiently aid in remotely administrating the field. Secondly, an IoT
based prototype system for surveillance is proposed that embeds the concept of multi-class
classification technique using Machine and Deep Learning for the labels clear farm, horse,
cow, wild elephant and wild boar. Support Vector Machines (SVM) and Convolutional
Neural Networks (CNN) were analysed for this purpose and the best model was chosen
based on accuracy metric.[2]
Somnath D. Bhagwat, Akash I.Hulloli, Suraj B.Patil, Abulkalam.A.Khan, Mr.A.S.Kamble,
“SMART GREENHOUSE USING IOT AND CLOUD COMPUTING”, International
Research Journal of Engineering and Technology, Volume 5,issue 3,March 2018. In this
paper, they have introduced the smart greenhouse farm using IOT and cloud computing
technology. The intention of this project is to design a simple, easy to install, user friendly
to monitor and record the values of temperature, humidity, soil-moisture and sunlight of
the natural environment that are continuously modified and controlled in order optimize
them to achieve maximum plant growth and yield. The result shows that the situation
specified in sensor ‘s database and system in actually is proper. The achieved test result
concludes that the system is working properly.[3]
Chapter 3
PROBLEM STATEMENT
Can you imagine an industry that involves more risk than agriculture? You reap what you
sow, they say. But what they forget to add is “if you’re lucky.” When the weather strikes
or crops get affected by disease, farmers can hardly talk about yields. Or when a global
pandemic hits, all of a sudden it gets harder to manage various processes because most are
not digital.
At the same time, the global population is growing, and urbanization is continuing.
Disposable income is rising, and consumption habits are changing. Farmers are under a lot
of pressure to meet the increasing demand, and they need a way to increase productivity.
Thirty years from now, there will be more people to feed. And since the amount of fertile
soil is limited, there will also be a need to move beyond traditional farming.
We need to look for ways to help farmers minimize their risks, or at least make them more
manageable. Implementing artificial intelligence in agriculture on a global scale is one of
the most promising opportunities.
AI can potentially change the way we see agriculture, enabling farmers to achieve more
results with less effort while bringing many other benefits. However, AI is not a technology
that works independently. As the next step on the way from traditional to innovative
farming, AI can supplement already implemented technologies.
Chapter 4
OBJECTIVE
Plants have had and still have a key role in the history of life on earth. They are responsible
for presence of oxygen needed for human survival on this planet. At the same time
agriculture is also important to human beings because it forms the basis for food security.
It helps human beings grow the most ideal food crops and raise the right animals with
accordance to environmental factors.
1. Agriculture plays a vital role in India's economy.
2. Over 58% of the rural households depend on agriculture as their principal means of
livelihood. Agricultural export constitutes 10% of the country's exports. So the
farmer's and even the nation's economy will be ruined if there are no proper yields
due to lack of knowledge of the soil nature, timely unavailability of water.
3. It is a smart farming stick based on IOT (Internet of things) technology which has
brought revolution to each and every field of common man’s life by making
everything smart and intelligent.
Aim of this project is to propose a novel smart IOT based agriculture stick assisting farmers
in getting live data (soil moisture, humidity, water level) for efficient environment
monitoring which will enable them to do smart farming and increase their overall yield and
quality of products. The smart agriculture being proposed via this project is integrated with
nodemcu technology, mixed with various sensors and live data feed can be obtained online
from mobile app.
Purpose of Machine learning is that to detect and monitor the disease and exact location of
that particular item (fruit & leaves) can be monitored using proximity sensors. Interfacing
the Machine Learning with Internet of Things will offer us wide range of features and helps
us to achieve a higher accuracy in terms of productivity and prediction.
Chapter 5
HARDWARE USED
5.1 ESP32
Arduino is a great platform for beginners into the World of Microcontrollers and Embedded
Systems. With a lot of cheap sensors and modules, you can make several projects either as
a hobby or even commercial. As technology advanced, new project ideas and
implementations came into play and one particular concept is the Internet of Things or IoT.
It is a connected platform, where several “things” or devices are connected over internet
for exchange of information. In DIY community, the IOT projects are mainly focused on
Home Automation and Smart Home applications but commercial and industrial IoT
projects have far complex implementations like Machine Learning, Artificial Intelligence,
Wireless Sensor Networks etc.
5.1.1 What is ESP32?
ESP32 is a low-cost System on Chip (SoC) Microcontroller from Espressif Systems, the
developers of the famous ESP8266 SoC. It is a successor to ESP8266 SoC and comes in
both single-core and dual-core variations of the Tensilica’s 32-bit Xtensa LX6
Microprocessor with integrated Wi-Fi and Bluetooth. The good thing about ESP32, like
ESP8266 is its integrated RF components like Power Amplifier, Low-Noise Receive
Amplifier, Antenna Switch, Filters and RF Balun. This makes designing hardware around
ESP32 very easy as you require very few external components.
5.1.2 Specifications of ESP32
ESP32 has a lot more features than ESP8266 and it is difficult to include all the
specifications in this Getting Started with ESP32 guide. So, I made a list of some of the
important specifications of ESP32 here. But for complete set of specifications, I strongly
suggest you to refer to the Datasheet.
1. Single or Dual-Core 32-bit LX6 Microprocessor with clock frequency up to 240
MHz.
2. 520 KB of SRAM, 448 KB of ROM and 16 KB of RTC SRAM.
3. Supports 802.11 b/g/n Wi-Fi connectivity with speeds up to 150 Mbps.
4. Support for both Classic Bluetooth v4.2 and BLE specifications.
5. 34 Programmable GPIOs.
6. Up to 18 channels of 12-bit SAR ADC and 2 channels of 8-bit DAC
7. Serial Connectivity include 4 x SPI, 2 x I2C, 2 x I2S, 3 x UART.
DHT11 Specifications
1. Operating Voltage: 3.5V to 5.5V
2. Operating current: 0.3mA (measuring) 60uA (standby)
3. Output: Serial data
4. Temperature Range: 0°C to 50°C
.
Fig 5.5: DHT11 Sensors.
Solenoid valves are the most frequently used control elements in fluidics. Their tasks are
to shut off, release, dose, distribute or mix fluids. They are found in many application areas.
Solenoids offer fast and safe switching, high-reliability, long service life, good medium
compatibility of the materials used, low control power and compact design.
The AI NPU is a system-on-chip (SoC) that integrates machine vision and machine hearing.
The NPU is dual-core 64-bit processors for better power performance, stability and
reliability. The NPU is best suit for Artificial Intelligence applications. The specifications
of the Neural processing unit are given below.
1. CPU: RISC-V dual-core 64bit, 400MHz adjustable frequency: Dual core 64 bit
2. FPU specification: IEEE754-2008 standard
3. Debugging support: JTAG Support Available
4. Camera: Onboard Camera support
5. Pinout: GPIOs, UART, I2C Pinout Available for easy interfacing of external
components.
6. Neural-Network Processor Unit (NPU):
• Support for the fixed-point model training framework
• 2 convolution kernels 1x1 and 3x3
• Activation Function support
7. Audio
• 4 channel Dual Input audio support
• Support beam forming in up to 16 directions
• Can support a valid voice stream output
• Inbuilt Audio Signal processor up to 32 Bit
• Support multi-channel raw signal direct output
• 192K sample rate Support
• 512-point FFT for input Audio
8. SARM
• 6MiB general purpose SARM
• 2MiB AI SRAM memory.
9. FPIOA/IOMUX: FIA with 255 internal functions to 48 GPIO
10. Video capture: Up to 640x480
11. Fast Fourier transform accelerator: Inbuilt
12. External supply voltage requirement: 5.0V±0.2V
13. External supply current demand: > 300mA @ 5V
14. Temperature rise: < 30K
15. Range of working temperature: -30 °C ~ 85 °CS
Chapter 6
HARDWARE IMPLEMENTATION
6.1 Block Diagram
The basic block diagram of smart farms : generating techno environment farming is as
shown in figure. This system consists of NODEMCU Microcontroller and there are sensors
and some electronic components.These sensors act as input to the micro controller system.
The input feed provided to the micro controller is in the form of analog data. Soil moisture
sensor senses the water content in the soil, DHT11 senses the Humidity and temperature
values, Proximity Sensor is used to detect the metal object to monitor placement of camera
and also helps to know the exact location of the unhealthy products. This data is converted
by the controller into digital format. The data is shown on the LCD display and also on the
android phone/website by the means of Internet.Thus the monitoring of temperature,
moisture and other parameters is done automatically. Once the parameter values are
monitored they can be controlled by the embedded system which is built with coding. This
is automating controlling system. The android phone is operated by the user. The android
application is used for controlling as per the user knowledge and required output.
The hardware fabrication involves designing the PCB schematic in EasyEDA software and
then fabricating and making the connections to run the entire system. After the PCB
Chapter 7
SOFTWARE IMPLEMENTATION
The software implementation consists of the development of the IOT application which
can be accessed using android and web. The application is developed using HTML
bootstrap and PHP framework and uses Connect IOT API hosted on aws.
HTML bootstrap
Bootstrap is an HTML, CSS and JS library that focuses on simplifying the development of
informative web pages (as opposed to web applications). The primary purpose of adding it
to a web project is to apply Bootstrap's choices of color, size, font and layout to that project.
As such, the primary factor is whether the developers in charge find those choices to their
liking. Once added to a project, Bootstrap provides basic style definitions for all HTML
elements. The result is a uniform appearance for prose, tables and form elements
across web browsers. In addition, developers can take advantage of CSS classes defined in
Bootstrap to further customize the appearance of their contents. For example, Bootstrap
has provisioned for light- and dark-colored tables, page headings, more prominent pull
quotes, and text with a highlight.
How your devices and apps access AWS IoT
AWS IoT provides the following interfaces for AWS IoT
1. AWS IoT Device SDKs: Build applications on your devices that send messages to and
receive messages from AWS IoT.
2. AWS IoT Core for LoRaWA: Connect and manage your long-range WAN
(LoRaWAN) devices and gateways by using AWS IoT Core for LoRaWAN.
3. AWS Command Line Interface (AWS CLI: Run commands for AWS IoT on
Windows, macOS, and Linux. These commands allow you to create and manage thing
objects, certificates, rules, jobs, and policies.
4. AWS IoT API: Build your IoT applications using HTTP or HTTPS requests. These
API actions allow you to programmatically create and manage thing objects,
certificates, rules, and policies.
5. AWS SDKs: Build your IoT applications using language-specific APIs. These SDKs
wrap the HTTP/ HTTPS API and allow you to program in any of the supported
languages.
Chapter 8
MACHINE LEARNING INTERFACE
What is machine learning?
IoT and machine learning deliver insights otherwise hidden in data for rapid, automated
responses and improved decision making. Machine learning for IoT can be used to project
future trends, detect anomalies, and augment intelligence by ingesting image, video and
audio.
Why use machine learning for IoT?
Machine learning can help demystify the hidden patterns in IoT data by analyzing massive
volumes of data using sophisticated algorithms. Machine learning inference can
supplement or replace manual processes with automated systems using statistically derived
actions in critical processes.
Sample use cases
Companies are utilizing machine learning for IoT to perform predictive capabilities on a
wide variety of use cases that enable the business to gain new insights and advanced
automation capabilities.
With machine learning for IoT, you can:
1. Ingest and transform data into a consistent format
2. Build a machine learning model
3. Deploy this machine learning model on cloud, edge and device
For example, using machine learning, a company can automate quality inspection and
defect tracking on its assembly line, track activity of assets in the field and forecast
consumption & demand patterns.
Machine learning is to train the system over a large observed data to predict outcomes or
categorize observations in future data, by other means, to generate extraction patterns or
build a model and use the generated patterns or model to make predictions in the future for
unknown cases. The data set used to learn the model is known as the training data set. The
records making up the training set are referred to as training samples and are randomly
selected from the sample population. The resulting model is typically applied to new
samples to categorize or predict values of the outcome for previously unseen observations,
and its performance evaluated by comparing predicted values to actual values for a set of
test samples, this step is known as supervised learning. Machine learning techniques are
used to analyse important clinical parameters and their combinations for prognosis in
Infected Leaves
Normal Leaves
Chapter 9
ADVANTAGES AND DISADVANTAGES
Chapter 10
RESULT
Smart farming based on IoT technologies enables growers and farmers to reduce waste and
enhance productivity ranging from the quantity of fertilizer utilized to the number of
journeys the farm vehicles have made, and enabling efficient utilization of resources such
as water, electricity, etc. IoT smart farming solutions is a system that is built for monitoring
the crop field with the help of sensors (light, humidity, temperature, soil moisture, crop
health, etc.) and automating the irrigation system. The farmers can monitor the field
conditions from anywhere.
REFERENCES
[1] Sujeet More, “Machine Learning Techniques with IoT in Agriculture”,
International Journal of Advanced Trends in Computer Science and
Engineering 8(3):742-747 DOI:10.30534/ijatcse/2019/63832019, June 2019.
[2] Geo Abraham, Raksha R, M. Nithya, “Smart Agriculture Based on IoT and
Machine Learning”, 2021 5th International Conference on Computing
Methodologies and Communication (ICCMC),80-10 April 2021,DOI :
10.1109/ICCMC51019.2021.9418392
[4] Mohammad Woli Ullah, Mohammad Golam Mortuza, Md Humayan Kabir, Zia
Uddin Ahmed, Sovan Kumar Dey Supta, ParthoDas,“Internet of Things Based
Smart Greenhouse: Remote Monitoring and Automatic Control”, International
Conference on Electric and Intelligent Vehicles (ICEIV 2018).
[5] Prof. D.O.Shirsath, Punam kamble, Rohini Mane, Ashwini kopla, prof.R.S.More
“IOT Based Smart Green House Automation using Arduino.”International Journal
of Innovative Research in computer Science & Technology (IJIRCST), Volume-5,
Issue-2, March 2017.