Professional Documents
Culture Documents
Smart Green House
Smart Green House
SYSTEM
Supervised By
Engr. Saima Zaheer
APRIL, 2019
1
ABSTRACT
Automatic greenhouse is an active area of research, where Grower can control and
monitor irrigation and greenhouse environment locally or through internet for better plant
growth. Irrigation and environment of green house is controlled and monitored by
different type of sensors and micro controller installed in it. Threshold values for the
sensors are predefined. Microcontroller monitor and control the irrigation and
environment according to the information of the Sensed values received from the sensors.
Monitoring and controlling of Greenhouse can also be perform by wirelessly.
It performs action by using different sensors and modules which include DHT22, LDR,
YL-69, ADS1115ADC, Arduino and ESP8266. Arduino received the information of
irrigation from sensed values of soil sensors by ADS1115ADC and environmental
information of temperature, light and humidity directly from DHT22 and LDR. The
controller operates the relay board attached to Fan, Light, Water pump and Servo motor
by comparing the monitored values with predefined threshold values of each sensor. After
receiving the sensed values Arduino display all values on LCD and use ESP8266 module
for transmitting these values on mobile application. For wirelessly control, system must
be shift on manual control mode from automatic control mode. ESP8266 module is also
used to receive wireless control data from user and transmit it to microcontroller for
performing respective control according to data received.
Greenhouse can be irrigated automatically, so growers can water crops with minimal staff
while maintaining time to inspect and manage the crop growth. It offers you a longer
growing season through automatic controlling temperature, since the sun’s radiation is
trapped in the enclosure, retaining the heat within the structure and helps in growing
seasons can be extended, even in cold climates. Grower can control and monitor
greenhouse environment locally or through internet and reduce potential for human error
in mixing feed formulas.
2
CERTIFICATE
Dated:
Final Approval
It is certified that project report titled ‘Smart Green House Control & Monitoring
System’ submitted by Shaheer Ahmad Tarazi, Aftab Haider, Kiramat Aziz and
Muhammad Areeb Usama for the partial fulfillment of the requirement of “Bachelor’s
Degree in Electrical Engineering” is approved.
COMMITEE
Supervisor Signature:
3
DECLARATION
We hereby declare that our dissertation is entirely our work and genuine / original. We
understand that in case of discovery of any PLAGIARISM at any stage, our group will be
assigned an F (FAIL) grade and it may result in withdrawal of our Bachelor’s degree.
4
PLAGIARISM CERTIFICATE
This is to certify that the project entitled “SMART GREEN HOUSE CONTROL &
MONITORING SYSTEM”, which is being submitted here with for the award of the
“Degree of Bachelors” in “Electrical Engineering”. This is the result of the original
work by Shaheer Ahmad Tarazi, Aftab Haider, Kiramat Aziz and Muhammad
Areeb Usama under my supervision and guidance. The work embodied in this project
has not been done earlier for the basis of award of any degree or compatible certificate or
similar title of this for any other diploma/examining body or university to the best of my
knowledge and belief.
Similarity Index
17%
Similarity by Source
Internet Sources: 04%
Publications: 02%
Student Papers: 13%
5
Turnitin Originality Report
SMART GREEN HOUSE CONTROL & MONITORING SYSTEM by Shaheer Ahmad
Tarazi, Aftab Haider , Kiramat Aziz and Muhammad Areeb Usama
From Engr. Saima Zaheer
Similarity Index
17%
Similarity by Source
Internet Sources:
4%
Publications:
2%
Student Papers:
13%
SOURCES:
1. 7% match (Student Papers)
http://www.ti.com
6
http:// www.greenerideal.com
6. 1% matches (publication)
Vu Minh Quan, Gourab Sen Gupta, Subhas Mukhopadhyay. "Review of sensors for
greenhouse climate monitoring", 2011 IEEE Sensors Applications Symposium, 2011
http://www.randomnerdtutorials.com
8. 1% matches (publication)
http://www.gpnmag.com
http://www.universal-solder.ca
http://www.docplayer.net
http://www.ijert.org
7
Submitted to University of Duhok
http://www.iraj.in
http://www.pertanian457.blogspot.com
http://www.electronicsprojectsludhiana.com
Song, Yongxian, Juanli Ma, Xianjin Zhang, and Yuan Feng. "Design of Wireless Sensor
Network-Based Greenhouse Environment Monitoring and Automatic Control System",
Journal of Networks, 2012.
8
http://www.prezi.com
http://www.grietinfo.in
Tianhong Pan, Yi Zhu. "Designing Embedded Systems with Arduino", Springer Nature,
2018.
http://www.freepatentsonline.com
http://www.engineeringfourum.blogspot.com
http://www.bu.univ-rennes2.fr
9
http://www.google.co.kr
http://www.ugpro143.blogspot.com
http://www.acoptex.com
http://www.portal.fke.utm.my
Mohammad Shoeb Shah, P. B. Borole. "Surveillance and rescue robot using Android
smartphone and the Internet", 2016 International Conference on Communication and
Signal Processing (ICCSP), 2016.
10
TABLE OF CONTENTS
Chapter Page
Chapter 1: Introduction.....................................................................................................1
1.1 Introduction 2
3.1.3 Programming 19
11
3.1.5 Temperature and Humidity Sensor 21
4.1.1 Working 32
12
4.4.2 Sketchbook 40
4.4.3 Uploading 40
4.4.4 Libraries 40
5.6.1 Phase 1 49
5.6.2 Phase 2 50
5.6.3 Phase 3 50
5.6.4 Result 50
6.1.2 Cost 52
6.2 Improvements 52
6.4 Conclusion 53
REFERENCES.................................................................................................................60
13
LIST OF FIGURES
Figure Caption Page
14
LIST OF TABLES
Table Caption Page
15
CHAPTER 1
INTRODUCTION
1.1 Introduction
The greenhouse occupation be the quick developing sector in the world. The green
house isolates the yield to the environment; hence provides a protection against the
surface climatic situation.
Greenhouses allows effective formation about yield in order that would not be produced
in such distinct place. Green house environment allows effective control about the growth
16
environments. Using greenhouse technology production is increased and usage of
different agricultural compound is less. Crop production rate per unit field is increased as
compared to the available open field. Within the areas of control environment, power is
desired, while to the flat areas, cooling system and water accessibility are a vital interest.
The benefit about substances plus power, also the output plus nature of crops could be
affected at the operation about the variable element about the greenhouse, like warming
and chilling supplies, slot opening, drop sprinkling, and the discovery along with quantity
of CO2. Therefore, it could be familiar in order that the custom in which these commands
be controlled will affect the last profit-making result. Using Internet of thing (IoT) there
is better possibilities to manage and control different environment parameters in
greenhouse. That is considering it is approximately tough during the human to control
him also be introduce daily nearby the system. In fact, distant transmission scheme be an
important component of the improvement and applied science shift system, due to the
increasing development of mobile telecommunications [1].
Internet of Things (IoT) is the system of regular things incorporated with electronic
circuits, sensors, programming and system association that license these things to
exchange information with one another. Internet of Things (IoT) is the blend of the
advanced and physical world. In Internet of Things (IoT), millions of things or devices
will be interrelated and uniquely describe on the Internet. Web of things enables articles
to be new and controlled remotely through the real system framework, which makes
space for more straightforward joining between the physical world and the PC based
framework, and better effectiveness, precision and the monetary favourable
circumstances. Sooner rather than later, it is well-known that (IoT) will give a lot more
offices, for example, present day availability of physical articles through a thorough
system and numerous applications.
17
attained with some particular environmental conditions in the greenhouse. Here is a great
change during ecological provision in current situation. What affects the growth of yield?
Due to the lower accessibility of medicinal plants, the cost of medicines is growing.
There is also a lack of work in the present. Of entire the complication, it should have
attained that here is a demand for an automated observation and govern scheme for the
glasshouse that improve to crops in specific conditions appropriate for it [2].
The present system consists of a recognition module, a control module In the sensors
module, the detectors admit climate detectors, dampness sensors, ground humidity
sensor; Following sensors will detect the different framework to the climate. In addition,
the values displayed on LCD screen. That sensors attached to the ESP8266 (12E)
microcontroller, that is the control element. The complement detectors attached because
of the ADC. The microcontroller attached to a water pump, servo motor and LED. The
operation of Arduino UNO is a wireless module that can send all the values of
greenhouse sensors to smart devices. When the soil humidity is lower than the
18
microcontroller set value, the pump will turn on. If there is moisture present, the sensor
will distinguish it and the data will pass to the microcontroller. The microcontroller is
the main processing unit and accept inputs from the temperature sensors Humidity
sensors (DH22), Light sensors (LDR) and Humidity sensor (YL-69). The data received
from the sensors, the values are shown on the LCD screen. 15V Li-Ion battery and 5V
power bank used as a power sources. 100W blub used as a heater which increased the
required temperature and it operate external 220V power supply. The Arduino UNO
component sends system data to the owner. The system working according to the block
diagram. The sensor readings are analog input and changed into analog to digital input
and measure. Similarly, for humidity, and light sensor. The output values, which must
be saved in the cloud via the internet of things (IoT), are first transmitted from the
microcontroller to Arduino UNO through USART (universal synchronous and
asynchronous receiver and transmitter). Equalize convertors consumed to balance the
voltage equalize of the microcontroller. At last, the output framework are recorded in
the cloud structure regularly [4].
The system works with the power bank (5V) and then the process begins and, in the
initial state; the sensors detect the correspondent parameters and displayed on the LCD
screen. The temperature displayed in degrees centigrade, humidity in percentage and
light in terms of LUX. The detected values displayed on LCD screen. The detectors are
associated to the
19
Microcontroller. The simple sensors associated direct an ADC. The microcontroller is a PC
present in a particular integrated circuit, which committed to perform single task and execute
one distinct application. An Internet of Things gateway acknowledge a device to describe data
using its sensors to a remote location. Each of these greenhouses is connected to the same
entrance that forms a star network, this gateway gather data from all the greenhouses, filters
them (according to the priority of the message) and sends them systematically to the cloud,
which leads to a low conversion as IoT cloud program use the message count as a payment
unit. Sensors is a gadget whose goal is to recognize changes in its condition and after that
give a reporter yield. Definite adjustment could have related to light, warm, humidity plus in
general to the many environmental occurrences. With the Android application, the user can
monitor greenhouse framework from the location of their device because of a remote desktop
computer, a mobile phone or a tablet. The use of the Android application archive and the
observation of the sensor data are complete in actual duration. By mobile application is used
for checking update status and values for different environment parameters like temperature,
humidity, light, and soil moisture level within greenhouse [5].
20
1.9 Report Layout
The first section includes the introduction, review, resource requirement, suggested
system, problem statement, development methodology and project benefits. The second
chapter takes into account the history and the characteristic of the system. Third
representation of all the elements used in this scheme. The fourth chapter of this report
contains all the circuit diagrams, all the hardware, the software requirements and the
operation of the system. The fifth chapter discussed the authentication and analysis of the
system. In the final, that is, the sixth chapter of the conclusion of the report and the future
scope of the revised project.
21
CHAPTER 2
LITERATURE REVIEW
22
2.1 Introduction
Today agriculture is growing in response to the need of current time, where protect
supplies through process such as water saving, minimization of agrochemicals and the
required planted surface, which deposit high trait crops are in demand. Greenhouse is a
household in which plants are mature. These arrangements circle in size from small
shacks to industrial-sized buildings. Greenhouses are usually used for healthy flowers,
vegetables and fruits. Greenhouses are very effective for they give an optimal temperature
around plants, keep them from weather excess, enhance the growing season. Fundamental
components influencing plant development, for example, daylight, water to control
physically inside a nursery and there is a requirement for computerized design arises [6].
23
2.1.3 Light Effect
Growing needs energy. Human and animals get their energy from foods. Plants also need
energy for their growth and sun light is one of the main source of energy for plants.
Getting energy from sun light through a process is called photosynthesis. Without light it
is almost impossible for plants to grow. Beside from photosynthesis, light also effect
individual organs’ growth in less direct ways. The importance of sun light for plants can
be seen from two plants growing in different environment i.e. in sun light and in
darkness. The later one will have a tall and spending stems, small leaves and stems, lack
of chlorophyll are pale yellow. Different level of sun light effect the plant relatively.
Plants growing in sun light, in darkness and in shadow are totally different. Plants
growing in shadow are better than the dark one because the supply of water in growing
tissues are relatively better [9].
Darko Stipanièev and Jadranka Marasoviae [11] have recommended that the system that
is an integrated web server unit contain a TINI plate, obtaining data from scattered
sensors and enabling the actuators connected through a simple 1-wire link. The backend
server, on the aggregate side, is connected to the Internet via Ethernet or a dial-up
network [11]. According to them, the system contains all the advantages of NEST
24
(Network Embedded System Technology), such as the possibility of modifying the
physical topology and the small measurements and costs in relation to the PC framework,
maintaining the complete utility while so much [11].
Another system proposed by M. Nachidi [12] to harness the temperature of air and the
concentration of humidity in greenhouses is explained by concurrent Ventilation and
heating systems by using Takagi Sugeno (T-S) fuzzy models and PDC (Parallel
Distributed Compensation) concept. It is proved that the robust fuzzy controller
efficiently attains the desired situation/condition of climate in a greenhouse, using this
model, the issues of stability analysis and control design can be minimized to acceptable
conditions expressed as LMIs (Linear Matrix Inequalities) [12].
Qian [13] have compared the benefits of Zig Bee with other two same nature wireless
networks, Wi-Fi and Bluetooth, suggested a wireless solution. The system is based on Zig
Bee. Because of using of Zig Bee technology in Chinese greenhouse, it may support and
improve Chinese protected agriculture. With the abilities of self-organizing, self-
configuring, self-diagnosing and self-healing, it gives almost infinite installation.
Flexibility for transducers, improve network robustness, and consider ably minimizes
their costs. Therefore, they summarized that the Zig Bee-based monitoring and control
system can be an optimal solution for monitoring and control of a green house [13].
Mohammed Elmusrati [14] have proposed a new method for making WSN in nursery
condition by utilizing business remote detecting stage given by Sensinode Inc. The
proposed plan of equipment incorporates Sensinode’s Micro 2420U100 functions as
fundamental estimating unit, with four business sensors (for example light, humidity,
temperature). The objective behind this implantation is to approve the unwavering quality
and practicality of a framework model. Industry oriented practical results show that the
network can discover local difference in the greenhouse climate resulted by different
types of disturbances of the environment [14].
25
goals information, gathered by putting of a system of remote sensors to give expected
information to make pop display for the yields and its development under Aeroponic
conditions. The scientists claimed that the reliability of the star network was relatively
more, with many nodes doing with a data transmission level above 90%, where the
minimum communication speed of data for all the nodes was 70% [15].
Chen. Chiung Hsing [17] proposed a system. It is based on AVR Single Chip
microcontroller and wireless sensor networks. The observing and management center use
to control the temperature and humidity of the greenhouse, collecting the carbon dioxide
data, and get the information about illumination intensity. Other than that, it also adopts
multiple level of energy memory. It merges management of energy with energy transfer.
In this manner, oneself overseeing arrangement of vitality supply is built up. Low power
utilization, minimal effort, great strength, expanded adaptable just as a viable instrument
for checking and examination basic leadership are a portion of the upsides of the
framework [17].
A. Rahali and A. Ed-dahhak [18] have used FP (Field Point) from the National
Instrument to build the control system, and LABVIEW as language to compile. They
have used smart mobile (or PDA) to control the server of the PC (personal computer)
through a wireless network where the FP adjusts the environment of the greenhouse
through the use of the device. In addition, the user can master the state of the greenhouse
through the webcam and use the smart mobile to control the environmental system of the
26
greenhouse anywhere. The result of this proposed system showed that the designed
system could be more effective in saving personnel and increasing the economic value of
the products, that is, the Phalaenopsis [18].
Miss.Vrushali R. Deore , Prof. V.M. Umale [19] designed and implemented a WSN that
can monitor different parameters. This aid farmer to get the data about the situation and
can perform different methods according to the condition in order to improve the
production. The system is equipped with small size sensors and RF modules. The data
about the parameters are transmitted using a wireless link to cell phones for further
analysis. A cell phone better than computer terminal as it is easily manageable and
available to formers and consuming low power [19].
Mohd Fauzi Othmana and Khairunnisa Shazali [20] have given importance to WSN
(Wireless Sensor Network ) method for greenhouse monitoring and control. Using recent
ATmega microcontroller they developed and testes a system. The farmers of the
developed countries maximize their yield using designed. ATmega microcontrollers are
more useful than other controllers because of some important features i.e. 10bit ADC,
sleep mode, wide range of input voltage and high capacity of storage. The designed
system is an improved and advanced functional version of the system. Compact size, low
cost and high accuracy are some of the advantages of the system [20].
Othman and Shazali [21] have discussed and reviewed wireless sensor network
applications for environmental monitoring. A lot of work has been done in sensor
technology such as MEMS (Micro Electro Mechanical Systems), embedded systems etc.
This work contributed in WSN. It aids and enhance the working performance of industry
and our life. Wireless sensor network has huge applications especially in field of
agriculture. It is used for surveillance and monitoring purpose in agri. Monitoring
environment is very important. By using real time system, it is very easy to communicate
with the real world. There are a lot of intelligent and advanced system available and
developed by scientists to monitor and manage different parameters and conditions of air
and environment [21].
Soyoung Hwang and Donghui Yu [22] have designed hardware for green house
monitoring. Different sensors are used to control the environment parameters such as
temperature, humidity, and light intensity for green house and soil wetness for crop
growth. The system consists of sensor, ADC, microcontroller and actuators. There is
27
threshold for every environment parameter. Sensors are used for these parameters to
sense it. If the parameters value change from the threshold it senses the change and
digitized using ADC and input to microcontroller via input ports. There are few
disadvantages/shortcomings i.e. power consumption, complexity etc. which are overcome
by the system. It provides flexible and accurate form of maintaining the environment.
Hardware and software decreases over the time which makes it easy for researchers to
work on it and even for end users to purchase it because of the low cost of system. It is
reliable as it solve different quality and quantity problems of production [22].
Berezowski [23] has reviewed the landscape of the application of wireless sensor
networking in greenhouse and want to make computer engineer more aware about this
domain. Without a thorough knowledge of a domain it is almost impossible to solve any
problem relating to that domain. By getting knowledge about agriculture field engineers
can easily apply IT and communication infrastructure to solve different problems and
event optimize it. Also identified, formulated and discussed the design space of a few in
opinion most important problems in developing efficient and cost effective WSN
deployments for greenhouses. The reasons to propose such an analysis have come from
the gap have observed between the results observations coming from preliminary field
experimentation in the greenhouse [23].
28
task is to manufacture greenhouse with planned checking and controlling production of
plants. It centers around sparing water, expanding proficiency and diminishing the natural
consequences for plants generation. Based on the characteristics of accurate perception
and efficient transmission, the system gets the data about crops and their growth and
transmitted in real time. Different environmental parameters are monitored by system.
29
CHAPTER 3
HARDWARE DESCRIPTION
30
3.1 List of Components
All physical components are involved into the hardware. Project consist of the following
components. Arduino UNO, YL-69 Moisture sensor, LDR, DH22(temperature and
humidity sensor), Battery - 9V, PCB chip, Esp8266(12E) Module, 12V DC Motor Water
Pump, 12V DC Motor for fan, 220V AC Bulb, 5V Relay modules.
By using the Arduino advance condition and the programming language, the
microcontroller on the chip is customized. There are 14 advanced input / output pins.
About six pins can be used as contributions of a single quartz gem and 16 megahertz. The
other 6 pins are used as PWM performances. The board has a port to associate USB. It
has intensity card, restart capture and, in addition, an ICSP header. It consists of
everything that is expected to help the microcontroller. To begin, it can simply be
associated with the PC through the USB interface or it can be controlled by a battery or
an AC to DC connector.
31
In table 3.1 the major Specification of the component are summarized
2 Operating Volts 5V
3 Input Volts (suggested) 7 to 12 volts
4 Input volts (limit) 6 to 20 volts
5 Digital pins of Inputs/Outputs 14 (6 supply PWM
output)
6 Analog Pins (Input) 6
7 Per Input/output Pin for DC current 40mA
8 DC current for the pins of 3.3 volts 50mA
9 Flash memory 32 Kilobyte (AT
mega 328P)
10 SRAM (Static random-access memory) 2 Kilobyte (AT
mega328P)
11 EEPROM (Electrically erasable 1Kilobyte (AT
programmable read only memory) mega328P)
12 Speed of clock 16 Megahertz
13 LED_Builtin 68.6mm
14 Length 53.4mm
3.1.3 Programming
Software called the Arduino IDE is utilized to program the Arduino as open source. By
giving helpful instruments, this software lessens the amount of work. This software is
intended for all projects, for example, Linux, Windows and Mac. In projects, the
microcontroller utilized is compatible with the software, and it can also be effectively
programmed with it. software named IDE gives built-in libraries and approves
configurations with different equipment devices.
32
Arduino gives a standard structure factor that breaks the functions of a microcontroller
into an increasingly reasonable packages. Arduino programs are written in the Arduino
integrated development environment (IDE). The Arduino IDE is exceptional
programming running on your framework that enables you to compose outlines (an
equivalent word for Arduino software) for different Arduino boards. The Arduino
programming language depends on a straightforward equipment programming language
called processing, which is like the C language. After the sketch is kept in touch with the
Arduino IDE, it must be downloaded to the Arduino board for execution.
33
A Transducer is a device that converts energy from one type to another, although both
types of energy are in the same area. Typical energy domains are electrical, mechanical,
chemical, thermal, and optical. The Transducer can be further divided into sensors that
monitor the system and affect the impact on the system. The sensor is a unit for
measuring physical variable of the physical system or environment.
It is important to understand their parameters for designing a control system. In this
project, the sensors used to measure environmental parameters are: a temperature and
humidity sensor (that is, a DHT11), a light sensor (that is, an LDR), and an Earth
humidity sensor (for example, YY-69).
34
Table 3 2 Technical Specification of DHT11
3.1.6
Single
bus to
35
Most plants utilize light in the scope of 400 to 700 nanometers, which is most ordinarily
known as PAR (photo synthetically active radiation). PAR monitoring is important for
plants if plants receive enough light for photosynthesis. The light-dependent resistors
(LDR) shown in Figure 3.5 have been selected for this application. LDR is basically a
resistor whose internal resistance increases or decreases depending on the level of light
intensity acting on the sensor surface, where it measures the visible light visible to the
human eye with fast response and small size. Table 3.2 summarizes the LDR
specifications.
36
sensor YL-69. The soil moisture sensor has a built-in potentiometer to change the
sensitivity of digital performance (D0), a power LED and a digital output LED, as should
be evident in the attached figure 3.6. The output can be a digital signal (D0) LOW or
HIGH, depending on the water content in the soil. the output of the module is LOW if the
humidity of the floor exceeds a specific predetermined limit value, generally its output is
HIGH. Using a potentiometer, the threshold value for a digital signal can be balanced
3.1.12
Processing Unit
The processor performs many tasks, such as data collection and data processing.
Therefore, each transmitting and receiving stations have a built-in microcontroller.
Basically it is an integrated chip with a processor, read-only memory (ROM), random
access memory (RAM), digital-to-analog converter (DAC), timer chips and many other
components that are also represented on the computer. There are a large number of
commercially available microcontrollers on the market today. Depending on the type of
37
application, each microcontroller has its own advantages and disadvantages. The AVR
ATmega16 microcontroller was selected, shown in Figure 3.6. This particular
microcontroller was chosen for many reasons, including its simplicity, high performance,
reliability, low power consumption, programming, 8-bit CMOS microcontroller based on
RISC architecture, improved AVR.
38
of 15 to 20 mA is required. High current can be applied to control various tools and
instruments. It is powered by high current relays that operate at a constant voltage of 30
volts, 10 amperes or alternating currents of 250 volts, 10 amperes. The microcontroller
directly controls the standard interference of this relay. When the microcontroller
connects to this module, it also prevents ground fault. To control high power devices that
have moving parts, such as an electric motor, contactors are needed. Semiconductor
relays for controlling power circuits that have no moving parts alternately use
semiconductor devices to operate as switches.
3.1.15 Applications of
Relay
The relay enables the user to control the high voltage circuit with a low voltage signal.
Similarly, a high current circuit can likewise be controlled by a low current signal. The
relay is utilized for protection purposes. The relay has one favorable characteristic, that is,
a circuit in which the load is completely separated from the circuit by switching on via a
relay. In this regard, the relays can be used to control high-voltage circuits with safe low-
voltage circuits.
39
ESP8266 wireless modules were selected. ESP8266 shown in fig. 3.10, is a device used
to wirelessly transmit and receive data based on the ESP8266 network standard and
support unique needs, wireless sensor networks with low power consumption and low
cost. The ESP8266 module requires minimal power and provides reliable transmission of
demanding data between devices, where some of its characteristics were presented in
Table 3.6. The Wi-Fi ESP8266 module is a separate SOC (system on a chip) with an
integrated TCP / IP protocol stack that can provide any microcontroller approach to your
Wi-Fi network. ESP8266 can delete or place in an application all Wi-Fi network activities
from another application processor. Each ESP8266 logistics module, pre-programmed
with the contents of the AT command, consistent with the firmware, you can simply
connect to the Arduino device and get as many Wi-Fi capabilities as Wi-Fi Shield
provides. The ESP8266 module is a fairly economical board with a huge and ever-
growing community. This module has a high storage capacity and powerful enough
embedded processing that allows you to combine it with sensors and other devices other
than applications through its GPIO with nominal simple development and minimal load at
run time. Its high degree of integration on the chip allows minimizing the external circuit,
including the interface module, which occupies minimal space on the printed circuit
board. The ESP8266 supports Bluetooth and APSD matching interfaces for VoIP
applications, it consists of RF self-diagnostics, which allows it to work in any working
conditions, and does not require extraneous RF parts. There is an almost unlimited source
of information for ESP8266, and all this has been provided by amazing community
support.
40
Table 3.6:Technical Specifications of the ESP8266 wireless modules
Specification Value
Operating
system XTOS
CPU ESP8266
Memory 128kBytes
Storage 4Mbyte
Power By USB
Power Voltage 3v ,5v
Code Arduino Cpp
IDE Used Arduino IDE
41
Table 3.7: Technical Specifications of the LCD
42
carried out throughout the season. The power supply to the sensor node is provided by 3.3
V DC / 220 mA. After determining the output voltage and current of all system
components that are supported by electrical characteristics for them, to make a simple
linear power supply in Figure 3.12, use a transformer to reduce 120 VAC to the lower
required voltage. Then send a low voltage alternating current through the bridge rectifier
to make it a direct current, and use filter capacitors that limit the ripple of the rectifier to a
reasonable value. Electricity is almost exclusively generated, transmitted and distributed
in the form of alternating current due to economic feasibility, but most electronic devices
and circuits require a direct current source to operate. Dry cells and batteries can be used
for this purpose. Without a doubt, they have the advantages of portability and lack of
pulsation.
3.1.21 Analog to Digital Convertor
The gadgets ADS1113, ADS1114 and ADS1115 (ADS111x) are precision, controlled,
16-bit, easy-to-automate (ADC) converters offered in an ultra-small, lead-free X2QFN-10
package, and a VSSOP 10 group. The ADS111x devices connect a low-slip voltage
reference and an oscillator. ADS1114 and ADS1115 also solidify a programmable
increment enhancer (PGA) and a progressive comparator. These characteristics, close to a
wide expandable work source, make the ADS111x suitable for sensor estimation
applications with energy and space limitations. The ADS111x makes changes at data
rates of up to 860 precedents per second (SPS). The PGA offers input ranges of ± 256
mV to ± 6,144 V, allowing accurate and small banner estimates. The ADS1115 has a data
multiplexer (MUX) that grants two differential estimates or four complete individual data
estimates. Use the advanced comparator in the ADS1114 and ADS1115 for the
acknowledgment of overvoltage and overvoltage. The ADS111x operates in constant
change mode or single shot mode. In this way, the devices close after a change in the
single shot mode; in this sense, the use of control is basically reduced in the middle of an
inert period.
43
CHAPTER 4
44
4.1 System Working and Block diagram
The project comprises of Arduino UNO Microcontroller interfaced with various electronic
equipment’s including ADS1115adc, Power bank, ESP8266 remote module, Sensors board, 6V DC
Battery, Four channels Relay Board, Servo Motor and Water Pump.
4.1.1 Working
This framework comprises in two parts, Monitoring & Controlling of Green House and
automatic Irrigation system. This irrigation system work for three plants in green house.
The block diagram of the modules is shown in the Figure 4.1
45
This Green House consist of Arduino UNO microcontroller, Ads1115adc Analog to
Digital convertor module, Four Relays module, 1602 LCD module, 1 Water pump, 1
Servo motor, 3 Moisture sensor, DHT11 Temperature and Humidity sensor, LDR, 1 Bulb
& Fan and ESP8266 Wife module. That microcontroller is important equipment and it is
utilized to manage every other part along these lines, every one of the components are
interfaced to it. The YL-69 soil sensor check the moisture level of soil, LDR sensor check
the intensity of light in Green House and DHT22 sensor check Temperature and
Humidity of Green House. Microcontroller board takes all sensed values from sensors for
further processing and monitors the sensed values of sensors on 1602 LCD, then operates
the relay board and control water pump, bulb, fan, servo motor according to the
conditions programmed for automatic controlling green house. A ESP8266 wife Module
attached to the Arduino UNO for control and monitor greenhouse Wirelessly using
Android application.
The automatic irrigation system work using Arduino UNO, ESP8266 wireless module,
Servo Motor and relay board with water pump. Moisture sensors check the percentage of
water presence in plants and pass the signal to Arduino controller. Arduino control the
switching action of servo motor that is carried out for switching the water flow to the
determined plant based on signal pass by the soil sensor of that plant and function of
Water pump to represent the prototype that the water is pumped with the help of it
towards servo motor.
The output of ADS1115adc should be 16 bit but it gives maximum output of 15bit
integer. One bit from the output is used to denote the sign of output value. So the
maximum value that ADC convertor generate is from 0 to 32,768 instead of 0 to 65,536.
Programmable Gain Amplifier (PGA) is used to determine the value of bits. In default
mode PGA is set to +/-6.144 volts that can give the maximum output of 32,767. The
47
default program gain amplifier (PGA) have 0.1875 mV per bit of scale factor. Maximum
measurable voltage is depending upon supply voltage. DC can bear only 0.4 volts more
than input voltage. Maximum output of Moisture and LDR sensor is 3V, so in this project
PGA value will be set at +/- 4.096V with scale factor of 0.125mV.
Servo motor is performing main function for allowing water access to specific plant.
Inside there is a simple set-up is installed: a potentiometer, DC motor and master
circuitry. Potentiometer connects to motor and mastery wheel is attached to DC motor by
gears. Resistance of potentiometer change according motor rotation. Control circuit
function is to control the speed and direction of servo motor’s rotator.
48
Figure 4.3 Schematic Diagram of Smart Greenhouse
49
Figure 4.4 Schematic Diagram of Smart Greenhouse (Sensor Circuit)
A prototype small green house made of glass of size (3 x2) with at least 3 plants insides.
Humidity, Temperature & Light sensors are placed inside the green house and a moisture
sensor each is placed inside the potted plants. In addition, a small fan, a light & water
transfer mechanism is also present. Each of the parameters Temperature, Humidity &
Moisture are monitored & Controlled by Arduino. When there is change in temperature
beyond the specific limit the system automatically turns the fan ON or the Light ON
depends upon the temperature. Microcontroller attached to liquid crystal display to show
various sensors readings. User can also monitor all sensed values and can control all the
actions through ESP8266 Wi-Fi module.
In this project three plants are used for demonstration and Soil Moisture sensor sensed
value of Moisture in soil and send this information to Arduino UNO. Water pump is
controlled by Arduino depends upon Moisture present in plants. Moisture sensors check
the percentage of water presence in plants and pass the signal to Arduino controller.
Arduino control the switching action of servo motor that is carried out for switching the
water flow to the determined plant based on signal pass by the soil sensor of that plant
and function of Water pump to represent the prototype that the water is pumped with the
help of it towards servo motor. User can also monitor all sensed values and can control all
the actions through ESP8266.
50
51
Figure 4.5 Flow Chart of Smart Greenhouse Algorithm
Star
t
Connect to Router
Ye Turn on Fan
Fan = s
1
Turn off
fan
Ye
s Turn on Pump
Pump =
1
Ye
Bulb = s
Turn On Bulb
1
52
4.4 Integrated Development Environment (IDE)
IDE is used to write a program in Arduino. Nature of IDE composed of Java, transfer
handling, AVR-GCC (compiler). Its open source characteristic provide ease in its use.
Code that writes in IDE for control of Arduino called sketches. Content editor is use in
creation of these programs. Errors in a code appear after saving it and transporting the
code in message area. IDE console is used for displaying all errors in code. The Built-in
Development Environment can be verified and after that the transmitted programs allow
to open, write and save drafts. In the IDE you can also open the sequential screen.
4.4.2 Sketchbook
It is basically a default place to store programs and those saved programs will open from
File> Open Capture or from Sketchbook menu. When Arduino compiles program one
time, in this way it will make a route for the library of organized tasks. The user can use
the Preferences exchange menu to change the best focus in the program.
4.4.3 Uploading
It covers the function when code get complete and ready to execute. When code file get
exchanged, the receiver and transmitter LEDs are poured. At moment the exchange is
made, the Arduino programming (IDE) displays a message or displays an error message.
In Windows for a sequential card it is very likely that COM1 to COM7 or higher for a
Universal Serial bus card. For finding, look for a universal serial bus gadget in Ports
section of WDM.
4.4.4 Libraries
Libraries contain the instruction that how to take data from specific sensor and how to
interface specific sensor to Arduino. Each sensor has its own library and operate on
53
different communication protocol, so libraries help in communication between Arduino
and sensor. These libraries provide ease in programing. Various parts intacted with
Microcontroller, now they are accessible in particular libraries of IDE. Libraries that has
used in this project are ESP8266WiFi.h, Liquid Crystal’s, Adafruit_ADS1015.h, DHT
dht(DHTPIN, DHTTYPE),Wire’s. ESP8266WiFi.h library use in ESP8266 module
searching for Wi-Fi network, DHT dht(DHTPIN, DHTTYPE) library use for DHT11
Temperature and Humidity Sensor, Liquid Crystal.h library use for showing sensed
values on LCD, Adafruit_ADS1015.hlibrary use for interfacing ads1115adc analog to
digital convertor to Microcontroller.
54
CHAPTER 5
55
5.1 Testing & Verification
Testing is better approach for verifying the reliability and working of system. It helps to
ensure that structure work is practical and completed as suggest, a couple of approaches
have been used. For different emphases, errors are perceived in the middle of the test time
and are prohibited by different procedures.
A structural work with various line of actions use to represent series of activities
recognize by test case, regardless of, it functions legitimately. Each electronic component
tested in better way and after this normal results are compare with obtained results.
5.2.1 Test Case 1
Firstly whole working of ADS115adc was checked. ADS115adc received values from
sensor board and transmit to Arduino for further action perform. The program was loaded
in ADS1115adc through the USB port.
Table 5.7 Specifications & Working of ADS1115ADC
60
5.4 Modular Testing
This system have couple of electric modules. Every electric equipment was tried first to
check its affectivity that each equipment should perform appropriately. To accomplish
test , different experiments were made.
Subsequent to all test experiments, each electric equipment of the structural work was
associated with confirm its functionality. In the wake of amassing, the total system was
retested to check its affectivity.
The complete system was tested in a Green House of (3*5) square meters. It consisted of
three plants, Fan, Light, ADS115adc, Arduino UNO, ESP8266, Water pump, Servo motor
and controlling circuitry for testing the whole system. The framework was confirmed in
different phases.
5.6.1 Phase 1
In this phase environment control of Green House was tested. In 1 st step, temperature of
Green House was control automatically with the help of Fan and Light according to
define threshold values for sensors in Arduino. In 2nd step environment was control
successfully by user Instructions from ESP8266
5.6.2 Phase 2
In this working, controlling and effectiveness of irrigation was checked and tested. In 1 st
step, irrigation of Green House was control automatically with the help of Water pump
and Servo motor according to define threshold values for sensors in Arduino. In 2nd step
irrigation was control successfully by user Instructions from ESP8266.
5.6.3 Phase 3
In the stage 3, both control the environment of Green House and irrigation framework was
tried effectively. Every one of the functions were working appropriately.
5.6.4 Result
Managing Nurseries irrigation would be effective and by this idea crops can look after
with limited and usefull amount of water with insignificant staff while keeping up time to
examine and deal with the harvest development. Grower can control and monitor
61
greenhouse environment locally or through internet and reduce potential for human error
immixing feed formulas. It offers you a longer growing season through automatic
controlling temperature. In this model radiation from sun can come inside but it would be
difficult for them to get out so they trapped inside irrigation box and helps to cultivators
by increasing growing seasons and especially in cold climates.
62
CHAPTER 6
63
6.1 Limitations of Project
Greenhouse is made effectively for growing food, vegetable, plants, and crop production
under controlled and monitored environmental parameters like temperature, humidity,
light and soil moisture. These environmental parameters controlled and monitored under
the wall which are made of glass. In automatic mode the environment parameters is
controlled and automatically. In manual mode farmer check the status on the mobile
android application and controlled and monitored remotely. The limitation of this system
is we cannot controlled humidity automatically but monitored only. The PH value of
water and soil cannot be monitored and controlled. The sensor which sense the yellowish
coloure of the leaf of the plant cannot be used. Solar technology not used in this system
for example if power bank is discharged and battery is low then system cannot work if
power supply is accidently shutdown. The problem can be resolved using solar
technology. For proper working of system each and every components and sensors should
be working properly and it should be properly dipped in the soil and used high quality
sensors for example if sensors not sense the moisture level the motor is continually on
basic function of the system is diminished and the all the system be collapse.
6.1.2 Cost
Cost can set restricting qualities on the abilities of this task. The expense of the proposed
undertaking depends upon the features consolidated to it for further changes and upgrade.
More to additional components more will be the cost. These modifications enhance its
cost.
6.2 Improvements
Greenhouse is made of glass also called glasshouse it walls and roof made of transparent
material greenhouse used for growing plants, vegetable, fruit and plants using controlled
climate condition like temperature, light, humidity and soil moisture.
The present set-ups in greenhouse are manual setup. In manual setup there is no IoT used
and environmental parameters like temperatures, light, humidity, and soil moisture level
not controlled and monitored automatically. In manual setup for water arrangement of the
plants motor be controlled ON and OFF manually. And for controlling of temperature the
temperature controller be ON and OFF manually. And also using of pesticides and
spraying agent on plant are totally manual. It takes a lot of time, unsafe to human error
and therefore, is less accurate and uncertain. The second is the partially automated
system. The configuration that is the compound of physical monitoring plus incomplete
computerization along with analogous to physical configuration in nearly aspects, but it
decreased the work involved to configuration irrigation. Third, the designed system is
totally automatic. This system work on two mode which is automated mode and second is
manual mode. When greenhouse is on automated mode then all the parameters controlled
automatically for example if temperature is increased beyond threshold value then fan is
automatically on and it off when value of temperature is decreased from specific value
and LED is on when value of light which is in the form of LUX is decreased beyond
threshold value and it OFF when value of LUX is increased beyond threshold value. In
the system humidity is only monitored but not controlled automatically. When soil
moisture level is decreased beyond threshold value then servo motor turn the water pipe
to the specific field and on the water pump till when it increased beyond the threshold
value. Second mode is manual mode. In this mode greenhouse can’t work automatically
but farmer check status on mobile application and controlled environment parameters
which he desired. The environment parameters like temperatures, light, humidity and soil
moisture level is controlled and monitored automatically. The farmer can have controlled
greenhouse remotely using android application also check status on android application.
The farmer also controlled environmental parameters remotely using mobile android
application. Temperature is increased using 100W light bulb which act as a heater. The
power source of heater is external 220V power supply. Heater is controlled automatically
using Arduino.
6.4 Conclusion
The project presents the scheme of IoT technology application in agriculture to achieve
monitoring and greenhouse management. Technological progress makes the agricultural
sector grow very high by using IOT based system. IoT will change the manner in which
we live our day-by-day lives and the information put away about us. The created
framework can be valuable, since it will improve the assets in the nursery. This module
utilized low power and it has low cost. That is the essential concept of analysis
concerning greenhouses, however here is stiluch further to research scientifically.
66
References
[1] N. Suma, S. R. Samson, S. Saranya, G. Shanmugapriya, and R. Subhashri, “IOT
Based Smart Agriculture Monitoring System,” Int. J. Recent Innov. Trends Comput.
Commun., vol. 2, no. February, pp. 177–181, 2017.
[2] Q. Zhang, X. Yang, Y. Zhou, L. Wang, and X. Guo, “A wireless solution for
greenhouse monitoring and control system based on ZigBee technology,” J.
Zhejiang Univ. A, vol. 8, no. 10, pp. 1584–1587, 2007.
[4] D.-H. Park et al., “A Study on Greenhouse Automatic Control System Based on
Wireless Sensor Network,” Wirel. Pers. Commun., vol. 56, no. 1, pp. 117–130, Jan.
2011.
[5] A. Imam and D. Gaur, “Smart Greenhouse Monitoring using Internet of Things,”
Int. J. Adv. Res. Electron. Commun. Eng., vol. 7, no. 5, pp. 519–523, 2018.
[10] “IT Convergence and Services: ITCS & IRoA 2011 - Google Books.”
[Online]. Available:
67
control,” pp. 1350–1355, 2004.
[13] Q. Zhang, X. Yang, Y. Zhou, L. Wang, and X. Guo, “A wireless solution for
greenhouse monitoring and control system based on ZigBee technology,” J.
Zhejiang Univ. A, vol. 8, no. 10, pp. 1584–1587, Oct. 2007.
[15] L. Tik, C. Khuan, S. P.-I. J. of, and undefined 2009, “Monitoring of an aeroponic
greenhouse with a sensor network,” academia.edu.
[19] M. Deore, V. U.-I. J. of, and undefined 2012, “Wireless Monitoring of the Green
House System Using Embedded Controllers,” pdfs.semanticscholar.org.
[22] S. Hwang and D. Yu, “Remote Monitoring and Controlling System Based on
ZigBee Networks,” vol. 6, no. 3, pp. 35–42, 2012.
[23] N. R. Mohanty and C. Y. Patil, “Wireless Sensor Networks Design for Greenhouse
Automation,” vol. 3, no. 2, pp. 257–262, 2013.
69