MINISTRY OF EDUCATION AND TRAINING HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION CAPSTONE PROJECT MECHATRONICS ENGINEERING TECHNOLOGY ADVISOR VU QUANG HUY, PhD STUDENT VU VIET THANH NGUYEN N[.]
MINISTRY OF EDUCATION AND TRAINING HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION CAPSTONE PROJECT MECHATRONICS ENGINEERING TECHNOLOGY INTELLIGENT GREENHOUSE CONTROL AND MONITORING MODEL DESIGN USING IOT (INTERNET OF THINGS) ADVISOR: VU QUANG HUY, PhD STUDENT: VU VIET THANH NGUYEN NHUT LINH S K L0 0 Ho Chi Minh City, July 2017 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING DEPARTMENT OF MECHATRONICS TECHNOLOGY GRADUATION THESIS INTELLIGENT GREENHOUSE CONTROL AND MONITORING MODEL DESIGN USING IOT (INTERNET OF THINGS) ADVISOR: HUY STUDENT’S NAME: PhD VU QUANG ACADEMIC YEAR: 2017 MAJOR : MECHATRONICS Vu Viet Thanh 12146271 Nguyen Nhut Linh 12146097 Ho Chi Minh City, July 26th 2017 SOCIALIST REPUBLIC OF VIETNAM Independence - Freedom - Happiness *** -Ho Chi Minh City, July 26th 2017 MISSION OF THESIS Student’s name: Vu Viet Thanh Nguyen Nhut Linh 12146271 12146097 Major: MECHATRONICS Class: 12146CLC Advisor: PhD Vu Quang Huy Phone number: Delivery date: Submission date: Title of thesis: Intelligent greenhouse control and monitoring model design using IoT (internet of things) The original data, documents: • Greenhouse gases in agriculture are available on the internet • IoT related documents and documentation on the greenhouse sensors Main content: • Research the sensors and execute the process • Design and manufacture of automated control models managed by Arduino Mega • Implement model, electronic circuit and control via website, app Product: Automatic control and monitoring is controlled by website, app by Arduino Mega Dean of Department Advisor i SOCIALIST REPUBLIC OF VIETNAM Independence - Freedom - Happiness *** ADVISOR’S COMMENT Student’s name: Vu Viet Thanh 12146271 Nguyen Nhut Linh 12146097 Major: MECHATRONICS Title of thesis: Intelligent greenhouse control and monitoring model design using IoT (internet of things) Advisor’s name: PhD Vu Quang Huy REMARK The content of thesis and the workload: Advantages: Disadvantages: Project defence approval: Evaluate: Grade: (by letters: ) Ho Chi Minh City, July 26th 2017 Advisor ii SOCIALIST REPUBLIC OF VIETNAM Independence - Freedom - Happiness *** REVIEWER’S COMMENT Student’s name: Nguyen Nhut Linh 12146097 Vu Viet Thanh 12146271 Major: MECHATRONICS Title of thesis: Intelligent greenhouse control and monitoring model design using IoT (internet of things) Reviewer’s name: MSc.Dinh Nhat Huy REMARK The content of thesis and the workload: Advantages: Disadvantages: Project defence approval: Evaluate: Grade: (by letters: ) Ho Chi Minh City, July 26th 2017 Reviewer iii ACKNOWLEDGEMENT First, we would like to send our thank for our parents and family who have given us the opportunity to study and complete the course at Ho Chi Minh City University of Technical Education During the project implementation and completion of this report, we have received the valuable help and guidance of teachers, siblings and friends in the same course With deep respect and gratitude, we would like to express our sincere thanks for: PhD Vu Quang Huy, our beloved teacher, has helped us with all the things that help us in the process of implementing the project Once again, please send your deep gratitude to the teachers, brothers and sisters and friends, good health and success Ho Chi Minh City, July 26th, 2017 Group of students: Vu Viet Thanh Nguyen Nhut Linh 12146271 12146097 iv ABSTRACT Project title: "Intelligent greenhouse control and monitoring model design using IoT (Internet of things)" Intelligent greenhouse was developed by on the application of technology monitoring IoT The model includes equipment for agriculture as: screen, lights, fans, water pump and combined with the sensor parameters: temperature, humidity, soil moisture, pH, the brightness in the greenhouse models The system of data was collected and processing operated by on the Arduino Mega 2560, that combined with Enthernet Shield and internet The system is controlled by two modes: automation and manual More specifically, the system collects the data entirely on the server and is controlled on the App or Website VU VIET THANH NGUYEN NHUT LINH v CONTENTS MISSION OF THESIS i ADVISOR’S COMMENT ii REVIEWER’S COMMENT iii ACKNOWLEDGEMENT iv ABSTRACT v CONTENTS vi LIST OF ABBREVIATIONS x LIST OF TABLE xi LIST OF FIGURES xii CHAPTER 1: INTRODUCTION 01 1.1 Introduce to the subject 01 1.2 The scientific significance of the topic 02 1.3 Purpose of the study and its limitations 02 1.4 Research situation at home and abroad 03 1.4.1 Foreign 03 1.4.2 Domestic 11 1.5 Design ideas 16 1.6 Detailed study syllabus 17 1.7 Object of study 17 1.8 Research Methodology 17 CHAPTER 2: THEORETICAL BASIS 18 2.1 Internet of Things(IoTs) 18 2.1.1 Introduction 18 vi 2.1.2 Important IoTs Components 18 2.1.3 Development of IoTs 19 2.1.4 IoTs application to life 21 2.1.5 The Challenges of Internet of Things 21 2.2 Web Server 21 2.2.1 Introduction 21 2.2.2 Specifications 22 2.3 Web services 22 2.3.1 Introduction 22 2.3.2 Specifications 23 2.4 Analyze topic tasks 24 2.4.1 Issues to address 25 2.4.2 The solving problem 25 2.4.2.1 Data transfer between the central and web board 25 2.4.2.2 Data transfer between the central board and the controller 26 2.4.2.3 Synchronize data between the web and the controller 26 2.5 The analysis 27 2.5.1 Arduno Mega2560 27 2.5.1.1 Structure 27 2.5.1.2 Specifications 27 2.5.2 Arduino Ethernet Shield 28 2.5.2.1 Structure 28 2.5.2.2 Specifications 28 2.5.3 DHT11 sensor 30 vii 2.5.3.1 Introduction 30 2.5.3.2 Specifications 30 2.5.3.3 Operating principle of DHT11 sensor 31 2.5.4 Sensitivity of soil moisture 32 2.5.4.1 Introduction 32 2.5.4.2 Specifications 32 2.5.4.3 Operating principle of soil moisture 33 2.5.5 pH sensor 34 2.5.5.1 Introduction 34 2.5.5.2 Specifications 34 2.5.5.3 Operating principle 35 2.5.6 Brightness sensor 36 2.5.6.1 Introduction 36 2.5.6.2 Specifications 36 2.5.6.3 Operating principle 37 2.5.7 Molded LCD HD44780 38 2.5.7.1 Introduction 38 2.5.7.2 Specifications 38 2.5.7.3 Operating principle 41 2.5.8 Module real time clock DS3231 42 2.5.8.1 Introduction 42 2.5.8.2 Specifications 36 2.5.9 Relay Module 43 2.5.10 Other Operating Devices 44 viii Well, then we have created the graph of the parameters to display: Figure 32 Sensor parameter graphs Devices have been programmed and set up according to the timetable: Figure 33 : Device running in the schedule’s time 69 And controls on the App: Figure 34: App Cayenne 3.7 Conclusion chapter ➢ The connection between the devices and the servers that were tested during the project was demonstrated in the experiment Both severs are written on the Java platform and have been optimized Java is a specialized language written for App or heavy to light gaming Blynk has not been created on the web HTML5, so it can not be controlled on the website So, the team decided to program and use Cayenne for the project IoTs 70 CHAPTER 4: EXPERIMENT AND RESULTS 4.1 Device system Figure Camera Figure Fans systems System (Hikvision and Yoosee)[6] Figure Lights systems 71 Figure 4 Device closed motor Figure Motor and Conveyor 72 4.2 Operational model Figure 4.6 To complete description Figure Flights systems and motor tranfer Figure Electrical box display LCD and keyboard control 73 Figure LCD show in the evening on the experiment 4.3 Experiment and the analysis 4.3.1 Experiment Figure 10 Before drill (Left: Over glass ouse, right: In glass house 74 Figure 11: After drill (Left: Over glass ouse, right: In glass house 75 Time Schedule for greenhouse with experimental vegetable: Hum Tem Day 70-75 21-23 Day 70-75 21-23 Day 70-75 21-23 Day 70-75 21-23 Day 70-75 21-23 Day 70-75 21-23 lots Open lights from 18:00 to 23:00 Day 70-75 21-23 lots Open lights from 18:00 to 23:00 Day 70-75 21-23 lots Open lights from 18:00 to 23:00 Lights Brightness Brightness A little A little A little A little A little Close the curtain from 9:00 to 15:00 Close the curtain from 9:00 to 15:00 Close the curtain from 9:00 to15:00 Close the curtain from 9:00 to 15:00 Close the curtain from 9:00 to 15:00 9:00 and 13:00 9:00 and 13:00 9:00 and 13:00 9:00 and 13:00 9:00 and 13:00 9:00 and 13:00 9:00 and 13:00 9:00 and 13:00 70-75% Final phase: Day 5- Day from18:00 to 23:00 Tem 21-23oC Pum 9:00 and 13:00 Curtain Pump Close the curtain from 9:00 to 15:00 Table 4.1: Time Schedule 76 4.3.2 The analysis Greenhouse plants Plants The environmental factors Can control None control Disease Limited None linmited Time schedules Can setup None setup Experience No more More and actualy Table 4.2: Analysis table We have a little- experiment in the three days, these are the result of the most suitable plants under greenhouse conditions, environment, development and growth than the average speed of test trees planted in the natural environment Greenhouse gardening carries multiple advantages—not just for your plants, but also for the gardener Here are four of them: ✓ Protected Environment: Unlike backyard gardens exposed to changing weather conditions and the threat of pests, a greenhouse creates a safe haven for plants—from fragile ornamentals to hardier vegetables In this consistent environment, not only are plants protected, but also gardeners don’t have to make emergency preparations for blizzards, high winds, heavy rains and the like This isolation also limits exposure to insects and animals that may harm or destroy your gardening efforts ✓ Multipurpose Environment: Under the roof of your greenhouse, you can tend to a variety of plants—vegetables, fruits, herbs, flowers and more Because they aren’t planted directly into the soil, this assortment can be combined in one place without much restriction An added bonus is that a greenhouse can function as a storage space, as well as gardening space Tools, implements and accessories can be organized close to where you’ll be using them 77 ✓ Save on Grocery Bills: Growing your own fruits and vegetables—in a backyard garden or in a greenhouse—will help you reduce your food bills Prices of fresh produce are affected by weather and transportation costs that often fluctuate But opting to your food gardening in a greenhouse gives you more control over the costs, as well as the control to grow your favorite types year round ✓ Control of Produce: Greenhouse gardening isn’t just good for your budget; it’s also good for your health Growing your own in a greenhouse means you have complete control over the growing environment Unlike commercial farms, you don’t have to use pesticides and toxic chemicals to improve growing conditions and increase production Greenhouses give gardeners the option to cultivate fresh, delicious produce without adding pesticides that could harm them or their families 78 CHAPTER 5: CONCLUSIONS AND FUTURE DIRECTIONS 5.1 Conclude Our graduation project is an IoT agricultural application systems, The name is the “Clean Vegetable Garden” In addition to vegetables, the system can be applied to many other areas Process of understanding and implementation of the project, the group has access to many IoT powerful processors such as Raspberry, Intel Galileo Gen, Arduino, Msp340, but the team chose Board Arduino, Arduino Ethernet Shield, Actuators, are components available, well handling system requirements set out About the Server system, there are now many IoT development platforms such as Thingspeak, Ubidots, Xively, Carriots, Bosch Software Innovations Suite, Nearbus… At the first, our team wrote a Web Server to send data to: Figure Web interface 79 Also implemented on many different servers such as Nearbus, Xively, but because the server does not meet the needs of the topic should finally decided to choose Cayenne, simple, easy to access, friendly and responsive Meet the requirements of the system The project has designed, successfully built mini vegetable garden model with the functions: ❖ Collection of environmental parameters including temperature, humidity, soil moisture, rainfall ❖ Send parameters to Server over Internet and software via Internet ❖ Server storage, management of data on the Cloud ❖ Web Server interface is quite intuitive, easy to use ❖ Voice control system ❖ The system warns the users ❖ Data transmission and control over the Internet meet real-time well ❖ Remote control system Development: Improve service quality with higher QoS levels More security for the system Integration of sensors to better monitor the parameters of the farming environment, more efficient and economical planting Software that controls more functions, via wifi rather than Bluetooth, is more eye-catching.Add automatic functionality on the software 80 And in specially, we need to come up with an algorithm for solving problems related to commercialization Our team make had wrote a website displaying the ease of operation on the internet and introducing the project Link website: www.green-house.cf Figure Wesbite to display my project [7] 5.2 Future directions The thesis presents the methodology for the most optimal control and optimization of the greenhouse model and selects the optimal control protocol and the best accuracy For the future, an algorithm to meet issues related to commercialization is needed, especially the SVM For empirical research, building a smart greenhouse model to collect data and accurately assess the pros and cons of the Support Vector Machines algorithm provides Intelligent greenhouse systems need to be good at controlling and monitoring, using the MySql database and the SVM algorithm will make the greenhouse smarter and easy database lookup Easier and more homogenous 81 REFERENCES [1] Massimo Banzi : "Getting Started with Arduino" [1] Brian W Evans, "Arduino Programing Noterbook", Creative Common, August 2007 [2] Đặng Trung Thành: Learn about the Ethernet: http://luanvan.net.vn/luan-van/doan-tim-hieu-ve-ethernet-21752/ [3] Pavlo Bayborodin : Learn about the Blynk.cc/ [4] Cayenne support website http://www.cayenne-ydevices.com/docs/#introduction [5] Project Weather Station – Temperature, Humidity, Brightness, pH and Relays [6]Learn about the Camera: www.hikvisionvietnam.vn and Yoosee: www.camerayoosee.com and natport to see in the over internet [7]Learn about the Wordpress: https://vi.wordpress.org/ to show my website [8] Lê Thế Trường: Learn about IoTs: http://aptechstudy.com/iot/iot-co-ban-5-cuonsach-can-doc-de-hieu-iot.html [9]About comment on IoTs: https://en.wikipedia.org/wiki/Internet_of_things 82