Thesis Body Letters
Thesis Body Letters
Thesis Body Letters
INTRODUCTION
Nowadays, food storage, Global warming and other uncertain weather conditions pose a
threat to plants and crops cultivation. In order to address this problem, greenhouse
practice has been existed for a very long time. Now, people are modernizing and
deploying the greenhouse systems in many parts of the world. Among them, the
automatic greenhouse system is one of the technical approaches in which plants and
vegetables can be grown under a created optimum environment. But this technology has
not been embraced by many developing countries. In a developing country like Myanmar,
the agriculture plays an important role in the economy and development of the country.
Because of Myanmar is the agriculture-based country. In general, most of the planting
systems in Myanmar are manually operated. The motivation for this thesis came from the
following factors:
Preventing plant and crops damage due to global climate change conditions.
Greenhouse gardens can be grown anywhere when agricultural land is scarce due
to growing urbanization around the world.
Reducing the labor involved in plant maintenance benefits rural farmers in
Myanmar.
Greenhouse is a glass made structure that provides an adjustable environment in order to
grow plants productively. The greenhouse also protects plants from harsh weather
conditions, insect and diseases. The behavior of the greenhouse system is highly
depending on temperature, humidity and soil moisture and light intensity. Therefore, in
this project, using DHT11 temperature and humidity sensor and 12V fan for its
temperature, YL-69 soil moisture sensor and water pump are used for soil moisture
condition, Light Dependent Resistor (LDR) and 12V DC light bulb are used for light, by
controlling them with Arduino Uno. Furthermore, Using LCD display in order to show
the climatic condition of the greenhouse. In this system, Arduino can sense the
surroundings by receiving input signal from a variety of the sensors and can affect its
environment via controlling fan, water pump and light bulb. The controlling system for
this thesis involves the serial steps
1. Acquisition of data through sensors.
2. Processing of data, comparing it with desire states and finally deciding what must
be done to change the state of system.
3. At last, actuators carrying the necessary action.
This thesis has many advantages. They are:
It has the ability to monitor different climate parameters with low power
consumption.
It comprises sensor nodes that can be used to collect real-time- environmental
data.
It allows communication between the sensor and actuators.
Moreover, the system is easy to use and maintenance is relatively cheap and easy.
According to these factors, this thesis design is extremely chief design for these kinds of
greenhouse system.
CHAPTER П
BACKGROUND THEORY
The Arduino was invented over 10 years ago by the Interaction Design Institute of Ivrea
in Turin, Italy. The original purpose if the project was to support students in creating a
simple and powerful interactive system. Since then, Arduino software and hardware have
grown steadily. Today, the Arduino has become a powerful platform. Not only it is
versatile, it is also an inexpensive microcontroller board. The group of Arduino Board
consist of Arduino UNO, Arduino Mega, Arduino Nano, Arduino Leonardo, Arduino
DUE and Arduino YUN. Among them, Arduino Uno board is the most commonly used
Arduino Board. It is the latest third version of an Arduino and released in the year 2011.
This board is mainly included DIP (dual-inline-package), detachable and ATmaga328
based microcontroller board. Its advantage is if we make a mistake, we can change the
microcontroller on the board. Arduino UNO R3 is a microcontroller board based on the
ATmega328p. It contains everything needed to support the microcontroller; simply
connect it to a computer with a USB cable or power it with an AC-to-DC adapter or
battery to get start.
The word "uno" means "one" in Italian and was chosen to mark the initial release
of Arduino Software. The Uno board is the first in a series of USB-based Arduino
boards; it and version 1.0 of the Arduino IDE were the reference versions of Arduino,
which have now evolved to newer releases. The ATmega328 on the board comes
preprogrammed with a bootloader that allows uploading new code to it without the use of
an external hardware programmer.
This board includes digital I/O pins-14, a power jack, analog i/ps-6, ceramic resonator-
A16 MHz, a USB connection, an RST button, and an ICSP header. All these can
support the microcontroller for further operation by connecting this board to the
computer. The power supply of this board can be done with the help of an AC to DC
adapter, a USB cable, otherwise a battery.
The Arduino Uno power supply can be done with the help of a USB cable or an external
power supply. The external power supplies mainly include AC to DC adapter otherwise a
battery. The adapter can be connected to the Arduino Uno by plugging into the power
jack of the Arduino board. Similarly, the battery leads can be connected to the Vin pin
and the GND pin of the POWER connector. The suggested voltage range will be 7 volts
to 12 volts.
The 14 digital pins on the Arduino Uno can be used as input & output with the help of
the functions like pinMode(), digitalWrite(), & Digital Read().
Pin1 (TX) & Pin0 (RX) (Serial): This pin is used to transmit & receive TTL serial data,
and these are connected to the ATmega8U2 USB to TTL Serial chip equivalent pins.
Pins 3, 5, 6, 9, 10, & 11 (PWM): This pin gives 8-bit PWM o/p by the function of
analogWrite().
SPI Pins (Pin-10 (SS), Pin-11 (MOSI), Pin-12 (MISO), Pin-13 (SCK): These pins
maintain SPI-communication, even though offered by the fundamental hardware, is not
presently included within the Arduino language.
Pin-13(LED): The inbuilt LED can be connected to pin-13 (digital pin). As the HIGH-
value pin, the light emitting diode is activated, whenever the pin is LOW.
Pin-4 (SDA) & Pin-5 (SCL) (I2C): It supports TWI-communication with the help of the
Wire library.
AREF (Reference Voltage): The reference voltage is for the analog i/ps with
analogReference().
2.1.3 Memory
2.1.4 Communications
USB: The Arduino Uno uses an onboard ATmega16U2 to connect the serial TX and RX
pins on the ATmega328. The 16u2 replaces the FTTI USB chip used on other boards.
This serial data is sent out by the USB chip to appear as a virtual com port on the
computer connected to the USB port. The Arduino IDE Serial monitor also uses the USB
port to send serial data to and from the Arduino board. The TX and RX LEDs will flash
when data is sent and received via the USB port.
Serial TTL: The Arduino Uno board has a TTL level (5V) serial communication on the
digital pins 0 (RX) and 1 (TX). This could also be connected to a RS232 or RS484 chip to
provide serial communications to another device. Note: The onboard TX and RX LEDs
will NOT flash when using serial comms on digital pins 0 and 1. These LEDS are USB
comms only. I2C and SPI communications: The Arduino Uno supports both of these
serial communication formats. Use the Wire library for the I2C bus. Use the SPI library
for the SPI bus.
Table2.1: Arduino Uno specifications
Feature Specification
Operating Voltage 5V
Length 68.6mm
Width 53.44mm
Weight 25g
Figure2.1: Arduino Uno R3 Pin Diagram
2.2 DHT11 Temperature and humidity sensor
The DHT11 is a commonly used Temperature and humidity sensor. The sensor comes
with a dedicated NTC to measure temperature and an 8-bit microcontroller to output the
values of temperature and humidity as serial data, offering fabulous quality, quick
reaction, hostile to obstruction capacity and expense adequacy. The sensor is also factory
calibrated and hence easy to interface with other microcontrollers. By utilizing the
selective computerized sign securing system and temperature & dampness sensing
innovation, it ensures high reliability and 19 excellent long-term stability.
Each DHT11 component will be entirely balanced in the lab that will be to a great degree
exact on dampness adjustment. The adjustment coefficients are put away as projects in
the OTP memory, which are utilized by the sensor's inner sign distinguishing
methodology. The single-wire serial interface makes framework reconciliation brisk and
simple. Its little size, low power utilization and up-to-20-meter signal transmission
settling on it the best decision for different applications, including those most requesting
ones. The part is 3-pin single line pin bundle. It is advantageous to associate and unique
bundles can be given in response to popular demand.
The soil moisture sensor or the hygrometer is usually used to detect the humidity of the
soil. So, it is perfect to build an automatic watering system or to monitor the soil moisture
of your plants. The sensor is set up by two pieces: the electronic board (at the right), and
the probe with two pads, that detects the water content (at the left). The sensor has a built-
in potentiometer for sensitivity adjustment of the digital output (D0), a power LED and a
digital output LED. The voltage that the sensor outputs change accordingly to the water
content in the soil. when the soil is dry voltage is high and when soil is wet voltage is
low. The output can be a digital signal (D0) LOW or HIGH, depending on the water
content. If the soil humidity exceeds a certain predefined threshold value, the modules
outputs LOW, otherwise it outputs HIGH. The threshold value for the digital signal can
be adjusted using the potentiometer. The output can be an analog signal and so you’ll get
a value between 0 and 1023.
This sensor works by using the relationship between electrical resistance and water
content to gauge the moisture levels of the soil. An electrical current is sent from one
probe to the other, which allows the sensor to measure the resistance of the soil between
them. When the water content in the soil is high, it has a higher electrical conductivity
(water is a good conductor of electricity!). Hence, a lower resistance reading is obtained
which indicates high soil moisture. When the water content in the soil is low, it has poorer
electrical conductivity. Hence, a higher resistance reading is obtained, which indicates
low soil moisture. This sensor includes an on-board voltage regulator which gives it an
operating voltage range of 3.3 ~ 5.5V. This soil moisture sensor is compatible with 3-pin
"Gravity" interface, which can be directly connected to the Gravity I/O expansion shield.
YL69 Soil Moisture Sensor gives you two types of digital and analog output. Digital
output is sample to use but not as accurate as the analog output. It is ideal for monitoring
an urban garden plant's water level. This is an essential tool for a connected garden. So, in
this thesis, this sensor is used with analog output.
Figure2.4 (a) YL-69 soil moisture sensor
Figure2.4 (b) YL-69 sensor board physical
pins
Current 35mA
Digital Outputs 0 or 1
Specification:
• Digital output controllable
• Compatible with any 5V microcontroller such as Arduino.
• Rated through-current: 10A (NO) 5A (NC)
• Control signal: TTL level
• Max. switching voltage 250VAC/30VDC
• Max. switching current 10A
• Size: 76mm x 56mm x 17mm
Figure2.5(a): 4-Channels Relay Pin
Diagram
Figure2.5(b): 4-Channels Relay Module Schematic diagram