i AUTOMATIC GREENHOUSE WATERING SYSTEM AND MONITORING MOHAMMAD IZHAN BIN JAFRY A thesis submitted in fulfillment of the requirements for the award of the degree of Electrical Engineering (Electronics) Faculty of Electrical & Electronics Engineering Universiti Malaysia Pahang November 2007
25
Embed
AUTOMATIC GREENHOUSE WATERING SYSTEM AND MONITORING
I declare that this thesis entitled “AUTOMATIC GREENHOUSE WATERING SYSTEM AND MONITORING” is the result of my own research except as cited in the references. The thesis has not been accepted for any degree and is not concurrently submitted in candidature of any other degree.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
i
AUTOMATIC GREENHOUSE WATERING SYSTEM AND
MONITORING
MOHAMMAD IZHAN BIN JAFRY
A thesis submitted in fulfillment of the
requirements for the award of the degree of
Electrical Engineering (Electronics)
Faculty of Electrical & Electronics Engineering
Universiti Malaysia Pahang
November 2007
ii
I declare that this thesis entitled “AUTOMATIC GREENHOUSE WATERING
SYSTEM AND MONITORING” is the result of my own research except as cited in
the references. The thesis has not been accepted for any degree and is not
concurrently submitted in candidature of any other degree.
Signature : ____________________________
Author : MOHAMMAD IZHAN BIN JAFRY
Date : 17 NOVEMBER 2008
iii
Special dedication to my parents especially my mother that always inspire, love and stand beside me, my supervisor, my fellow colleagues, and all FKEE lecturers and staffs.
iv
ACKNOWLEDGEMENT
I would like to express my sincere thanks to my supervisor, Madam
Nurulfadzilah bte Hasan for her patience, guidance and advice throughout the year,
which proved valuable for the success of this thesis.
Also, I would like to thank my family, especially to my mother, Madam Jamilah
bte Uti for her encouragement and financial support through all this year.
I have to thank the helpful staffs of FKEE, for giving me the permission to do the
necessary research work and to use component needed. Furthermore thanks to Mr.
Mohammad Fadhil bin Abas for his help and advice.
Not forgetting also, my friends, heartfelt thanks to all of them for their support
and encouragement throughout the year. Their views and tips are useful indeed.
Unfortunately, it is not possible to list all of them in this limited space. Without their
continued support and interest, this thesis would not have been the same as presented here.
v
ABSTRACT
The primary issue of greenhouse based horticulture is to manage the greenhouse
environment optimally in order to comply with the economic and environmental
requirements. Pests and diseases, and extremes of heat and humidity, have to be
controlled, and irrigation is necessary to provide water. The solution to these problems is
by designing an automatic controlled system. Two sensors are used in this project. Soil
moisture sensor needed to automatically control the valve of watering system.
Temperature sensor will measure the condition of the greenhouse. Once the temperature
sensor detect that the environment temperature is higher than the predetermined
temperature value, the cooling fan will be in the on state and vice versa. Wireless
monitoring using RF are used in order to monitor the condition of the greenhouse in the
predetermine RF range. This project improved the irrigation system from manual to
automatic to make it easier to monitor the condition of the greenhouse remotely.
vi
ABSTRAK
Isu utama rumah hijau dalam pertanian adalah untuk mengurus keadaan rumah
hijau sepenuhnya dalam memenuhi keperluan ekonomi dan persekitaran. Serangga
perosak dan penyakit, suhu dan kelembapan yang keterlaluan hendaklan dikawal dan
sistem pengairan adalah diperlukan untuk membekalkan air. Untuk mengatasi masalah
ini adalah dengan mencipta satu system kawalan automatik. Dalam projek ini, dua
sensor digunakan. Sensor kelembapan tanah diperlukan untuk mengawal injap sistem
pengairan secara automatik. Sensor suhu akan meningkat keadaan suhu dalam rumah
hijau. Apabila sensor suhu mengesan keadaan sekeliling lebih tinggi daripada suhu yang
ditetapkan, kipas penyejuk akan dihidupkan atau sebaliknya. Pemantauan tanpa wayar
dengan RF digunakan untuk mengawasi keadaan rumah hijau dalam lingkungan
kawasan RF. Projek ini akan memperbaiki sistem pengairan daripada secara manual
kepada automatik untuk memudahkan pengguna mengawasi keadaan rumah hijau dari
jauh.
vii
TABLE OF CONTENTS
CHAPTER TITLE PAGE
TITLE PAGE i
DECLARATION ii
DEDICATION iii
ACKNOWLEDGEMENT iv
ABSTRACT v
ABSTRAK vi
TABLE OF CONTENTS vii
LIST OF TABLES x
LIST OF FIGURES xi
LIST OF ABBREVIATION xii
LIST OF APPENDICES xiii
1 INTRODUCTION
1.1 Background 1
1.2 Objectives 2
1.3 Scope 2
1.4 Problem Statement 3
1.5 Methodology 4
1.5 Thesis Outline 6
viii
2 LITERATURE REVIEW
2.1 Greenhouse 7
2.1 Microcontroller 8
2.2 Sensors 8
2.3 Wireless Data Communicator 10
2.4 Valve 11
2.5 Graphical User Interface GUI 12
3 STSTEM DESIGN
3.1 Introduction 13
3.2 Hardware development 14
3.3 Microcontroller MC68HC11 Board 15
3.4 Temperature Sensor 17
3.5 Soil Moisture Sensor 20
3.6 Relay 22
3.7 Irrigation Valve 23
3.8 Transmitter and Receiver 24
3.9 Four Bit Data Transmitter/Receiver 27
3.10 WP11 29
3.11 THRSim 11 Software 30
3.12 MAX 232 34
4 RESULTS
4.1 Microcontroller (MC68HC11A1) 36
4.2 Hardware 38
4.3 Software 42
5 CONCLUSION & RECOMMENDATIONS
5.1 Conclusion 47
5.2 Recommendations 49
5.3 Costing and Recommendation 50
ix
REFERENCES 52
APPENDICES 54
APPENDIX A1 55
APPENDIX A2 56
APPENDIX A3 57
APPENDIX B1 58
APPENDIX B2 65
APPENDIX B3 70
APPENDIX B4 74
APPENDIX B5 80
APPENDIX B6 86
x
LIST OF TABLES
TABLE NUMBER TITLE PAGE
4.1 Data table of fan module 39
4.2 Four bit binary data representation 40
5.1 Cost for Project 50
xi
LIST OF FIGURES
FIGURE NUMBER TITLE PAGE
3.1 Block Diagram of the System 14
3.2 Microcontroller pin connection 16
3.3 Basic Centigrade Temperature Sensor 17
3.4 Connection Diagram LM35DZ 18
3.5 Flowchart of Initializing ADC 19
3.6 Soil moisture sensor circuit 21
3.7 Development of Soil moisture sensor 21
3.8 Relay Connection 22
3.9 Irrigation Valve 23
3.10 Actual irrigation valve 26
3.11 Connection of transmission circuit 27
3.12 Connection of receiver circuit 26
3.13 Actual Transmitter and receiver module 26
3.14 Four bit transmitter/receiver circuit 27
3.15 Four bit transmitter on breadboard 28
3.16 Four bit receiver on breadboard 29
3.17 WP11 Software 30
3.18 THRSim11 Software simulator 32
3.19 EIA232 interface 34
4.1 Output waveform at pin 27 36
4.2 Output system hardware 38
4.3 Full design GUI application 41
4.4 GUI application system 42
4.5 Transmitter circuit board 44
4.6 Receiver circuit board 45
xii
LIST OF ABBREVIATION
RF Radio Frequency
ADC Analog Digital Converter
AC Alternating Current
DC Direct Current
GUI Graphical User Interface
ADPU Analog to digital power unit
CSEL Clock select
xiii
LIST OF APPENDICES
APPENDIX TITLE PAGE
A1 MC68HC11 Memory map
A2 Transmitter full circuit design
A3 Receiver full circuit design
B1 Datasheet of MAX233
B2 Datasheet of LM35DZ
B3 Datasheet of Diode 1N4004
B4 Datasheet of HT12D
B5 Datasheet of HT12E
B6 Datasheet of Transistor QN2222
1
CHAPTER 1
INTRODUCTION
1.1 Background
A Greenhouse is a building with glass walls and roof; for the cultivation and
exhibition of plants under controlled conditions. Greenhouses also are often used for
growing flowers, vegetables, fruits, and tobacco plants. Pests and diseases, and
extremes of heat and humidity, have to be controlled, and irrigation is necessary to
provide water. Greenhouses protect crops from too much heat or cold, shield plants
from dust storms and blizzards, and help to keep out pests. Light and temperature
control allows greenhouses to become suitable place for growing plants. In other word,
a greenhouse is a structure that provides protection and a controlled environment for
raising plan indoors. The primary issue of greenhouse based horticulture is to manage
the greenhouse environment optimally in order to comply with the economic and