Professional Documents
Culture Documents
Smart Green House Control
Smart Green House Control
SYSTEM
Supervised By
Engr. Saima Zaheer
APRIL, 2019
i
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.
i
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:
ii
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.
iii
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%
iv
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
v
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
vi
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.
vii
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
viii
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.
ix
TABLE OF CONTENTS
Chapter Page
Chapter 1: Introduction.....................................................................................................1
1.1 Introduction................................................................................................................2
3.1.3 Programming...................................................................................................................19
x
3.1.6 Single bus to transfer data defined...............................................................................22
4.1.1 Working..........................................................................................................................32
4.4.2 Sketchbook....................................................................................................................40
xi
4.4.3 Uploading......................................................................................................................40
4.4.4 Libraries.........................................................................................................................40
5.6.4 Result.............................................................................................................................50
6.1.2 Cost...............................................................................................................................52
6.2 Improvements......................................................................................................52
6.4 Conclusion...........................................................................................................53
REFERENCES.................................................................................................................60
xii
LIST OF FIGURES
Figure Caption Pag
xiii
LIST OF TABLES
Table Caption Page
xiv
CHAPTER 1
INTRODUCTION
15
1.1 Introduction
The greenhouse occupation be the quick developing sector in the world. The greenhouse
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
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 CO 2. 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.
16
1.2 Problem Domain
When population is increased then there is requirement of greater yield of crop production. The
increasing claim to crop yield and attribute take greatly enlarged the use to the glasshouse. Due
to the increase in society. There is an absence of food in our country. The population require a
large amount of crop production. Cultivation of crops is 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].
17
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 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].
18
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].
19
1.9 Report Layout
The first section includes the introduction, review, resource requirement, suggested
system, problem statement, and 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.
1
CHAPTER 2
LITERATURE REVIEW
2
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].
3
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
4
(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].
5
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
6
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
7
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].
8
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.
9
CHAPTER 3
HARDWARE DESCRIPTION
10
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.
11
3.1.2 Specification of Arduino UNO ATmega328
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
12
programmed with it. software named IDE gives built-in libraries and approves
configurations with different equipment devices.
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.
13
3.1.4 Sensing Unit
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).
14
Table 3 2 Technical Specification of DHT11
3.1.6
Single bus to transfer data defined
Data is conveyed and matched between the microprocessor and DHT11 using a single-
bus data format, transmitting 40 data, high signal first.
15
Figure 3.4 Data Timing Diagram
3.1.8 Light Sensor
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.
16
identify the presence of water. Electric current can easily pass through the sensor if there
is moisture in the soil and, in addition, the humidity level is difficult to quantify and
provides an accurate and effective moisture sensor. Figure 3.6 shows the soil moisture
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
17
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
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.
18
3.1.14 Four Channel Relay Module
A relay can be defined as a switch that works electrically. Often, relays are used as an
electromagnet for the mechanical operation of a switch system, but there are also many
other operating principles that can be used. Using a relay, a circuit that has a low power
signal can drive a high power output device. In other words, it is used when different
devices had to be controlled with a single signal. The 1-channel relay module consists of
an interface board and operates at a low 5-volt level, and for each channel a driver current
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.
19
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.
20
21
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
22
Table 3.7: Technical Specifications of the LCD
23
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.
24
CHAPTER 4
25
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
26
Figure 4.1 Block Diagram of Greenhouse Control Board
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.
27
remaining six pins are for power, Communications and address allocation. Its input pins
can be configured for Differential, Comparator or Single Ended Measurements. This
module can be used with four different base addresses of 7-Bitof 0x48 (1001000) using
ADR pin with GND, VCC, SDA, SCL. So it means four ADS115adc convertors can be
used with one micro-controller.
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
default program gain amplifier (PGA) have 0.1875 mV per bit of scale factor. Maximum
28
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.
29
4.2.1 Circuit Diagram
30
Figure 4.4 Schematic Diagram of Sensor Board
31
4.3 Smart Greenhouse Algorithm
When power given to Arduino all the sensors Starting measuring values. Arduino Takes
the Sensed values from sensors. Arduino use these sensed values and compare them to
pre-defined threshold values of each sensor to control the irrigation and environment of
greenhouse. User application is connected to Arduino through ESP8266 module. The
flow chart of Smart Greenhouse is shown in figure (4.5 & 4.6).
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. A LCD is connected with Arduino UNO to display the
reading of various sensors. User can also monitor all sensed values and can control all the
actions through ESP8266 Wi-Fi module.
32
Figure 4.5 Flow Chart of Smart Greenhouse Algorithm
33
Star
t
Connect to Router
Ye Turn on Fan
Fan = s
1
Turn off
fan
Ye
s Turn on Pump
Pump =
1
Ye
s
Bulb =
1
34
4.4 Arduino 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.
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
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
35
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.
36
37
CHAPTER 5
38
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.
39
5.2.2 Test Case 2
Servo motor was checked for testing after successful test of ADS115ADC convertor.
Central objective was to direct the servomotor rotator in specific direction. A special
program was written in the IDE for microcontroller to set the particular rotator angels of
servomotor for the automatic water system to be installed.
40
5.2.3 Test Case 3
Working of ESP8266 was monitored after successful test of Servo Motor. Wireless
Module was interfaced with Arduino UNO. The program for sending sensed values,
receiving instruction operation values from user and configuring of ESP8266 with
microcontroller was accomplish in IDE.
43
5.3 Static Testing
Static Test helps to found intelligent errors and encodings demonstrate language structure.
As function of smart Greenhouse depended on the coding, all the electronic elements, all
writing software, were examined.
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 2 nd 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.
44
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.7 Result
Managing Nurseries irrigation would be effective and by this idea crops can look after
with limited and useful amount of water with insignificant staff while keeping up time to
examine and deal with the harvest development. Grower can control and monitor
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.
45
CHAPTER 6
46
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.
48
6.3 Future Scope
In future work, the system will be more specific to the demand of the plant by adding other
sensor specification such as pH level, fertilizer, airflow and oxygen. By developing solar
technology and providing the nodes within the greenhouse, less energy will be used and
receive optimal periodic acquiring data. These extra highlights will enable the framework to
alarm the client immediately of any sporadic change in the earth of the nursery through the
transmission of a short and straightforward instant message, for the most part, if the client did
not have an Internet association with get data from the framework.
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.
49
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:
50
[11] D. Stipanicev and J. Marasovic, “Networked embedded greenhouse monitoring and
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.
[16] M. H. H. Izzat Din Abdul Aziz, M. J. Ismail, M. Mehat, and N. S. Haroon, “Remote
monitoring in agricultural greenhouse using wireless,” Int. J. Engg. Techlon, vol. 9,
no. 9, pp. 35–43, 2009.
[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
51
Automation,” vol. 3, no. 2, pp. 257–262, 2013.
52