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[.]
Trang 1
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 NHUT LINH
INTELLIGENT GREENHOUSE CONTROL AND MONITORING MODEL DESIGN USING IOT
(INTERNET OF THINGS)
S KL0 1 0 0 1 6
Trang 2HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION
GRADUATION THESIS
STUDENT’S NAME: Vu Viet Thanh 12146271
Nguyen Nhut Linh 12146097
FACULTY FOR HIGH QUALITY TRAINING DEPARTMENT OF MECHATRONICS TECHNOLOGY
INTELLIGENT GREENHOUSE CONTROL AND
MONITORING MODEL DESIGN USING IOT
Trang 3SOCIALIST REPUBLIC OF VIETNAM Independence - Freedom - Happiness ***
Ho Chi Minh City, July 26 th 2017
MISSION OF THESIS
Nguyen Nhut Linh 12146097
1 Title of thesis: Intelligent greenhouse control and monitoring model design using
IoT (internet of things)
2 The original data, documents:
• Greenhouse gases in agriculture are available on the internet
• IoT related documents and documentation on the greenhouse sensors
3 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
4 Product:
Automatic control and monitoring is controlled by website, app by Arduino Mega.
Trang 4
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
6 Grade: (by letters: )
Ho Chi Minh City, July 26 th 2017
Trang 5
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
6 Grade: (by letters: )
Ho Chi Minh City, July 26 th 2017
Reviewer
Trang 6
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 12146271
Nguyen Nhut Linh 12146097
Trang 7
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
Trang 8MISSION 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
Trang 92.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
Trang 102.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
Trang 112.5.11 Against source noise, transmission line 45
CHAPTER 3: BUILDING SYSTEM AND DESIGN GREENHOUSE 47
3.1 Introduce chapter 47
3.2 Intelligent greenhouse design 47
3.3 Design the monitoring system 48
3.3.1 Block diagram 48
3.3.2 Users case diagram 49
3.3.3 Operating principle of the sensor block 51
3.4 Executive System 51
3.4.1 Connection diagram 51
3.4.2 Operating principle of pH sensor 52
3.5 Sever Blynk 52
3.6 Server Cayenne 59
3.7 Conclusion chapter 70
CHAPTER 4: EXPERIMENTS AND ANALYSIS 71
4.1 Device system 71
4.2 Operational model 73
4.3 Experiment 74
4.3.1 Experiment 74
4.3.2 The analysis 77
CHAPTER 5: CONCLUSIONS 79
5.1 Conclusions 79
5.2 Future directions 81
REFERENCES 82
Trang 13LIST OF TABLES
Table 2.1 Temperature and humidity table 31
Table 2.2: Function of the legs of the LCD 40
Table 4.1: Time schedule 76
Table 4.2: Analysis table 77
Trang 14LIST OF FIGURES
Figure 1.1: Some smart greenhouse functions 03
Figure 1.2 Temperature and humidity sensors are installed at various locations and connected to computers 07
Figure 1.3 Agronomy Engineers examining the greenhouse gases, Kibbutz Masharap, Israel 08
Figure 1.4 Environmental control automation system in orchid growing orchids 09
Figure 1.5 Greenhouse supports growers to care for, avoid pests and create a suitable environment for the crop 13
Figure 1.6 PhD.Dao Xuan Quy introduces the model "Automatic monitoring and control of solar energy using solar energy by smartphone" for students 14
Figure 1.7 Automatically monitor and control solar greenhouse environment using smartphone 15
Figure 2.1 Internet of Things Infographic 19
Figure 2.2 Statistical table of countries using IoTs 20
Figure 2.3: How to transfer data 21
Figure 2.4 Overview of the equipment used in the dissertation 24
Figure 2.5 Board Arduino Mega2560 27
Figure 2.6 Arduino Ethernet Shield 28
Figure 2.7 DHT11 sensor construction 30
Figure 2.8 Diagram of a DHT11 packet 25
Figure 2.9 Soil moisture 32
Figure 2.10 Diagram of soil moisture sensor 33
Figure 2.11 pH sensor 34
Figure 2.12 Diagram of pH sensor operation principle 35
Trang 15Figure 2.13 Brightness sensor 36
Figure 2.14 LCD display 38
Figure 2.15 Details of the 16x2 LCD pins 39
Figure 2.16 LCD circuit diagram 41
Figure 2.17 Module real time clock DS3231 42
Figure 2.18 Relay 4-channels 43
Figure 2.19 Actual 12VDC power 45
Figure 2.20 Realistic anti-interference 45
Figure 2.21 Realistic anti-interference 46
Figure 2.22 Noise filter circuit 37
Figure 3.1 System model 47
Figure 3.2 Sensor connection diagram 48
Figure 3.3 Use case diagram of the system 49
Figure 3.4 Search App Blynk in CH 52
Figure 3.5 Blynk interface 52
Figure 3.6 Create account successfully 53
Figure 3.7 Create Project 54
Figure 3.8 Take token to programing 54
Figure 3.9 Set up a sensor parameter 55
Figure 3.10 Set up a button parameter 55
Figure 3.11 Set up a graph parameter 56
Figure 3.12 Set up a sensor parameter 56
Figure 3.13 Set up a device parameter 57
Figure 3.14 Set up a mode 57
Trang 16Figure 3.15 Complete Blynk for my project 58
Figure 3.16 Code Arduino need to drop to the Arduino 59
Figure 3.17 Cayenne server 59
Figure 3.18 Fill in all the information to register 60
Figure 3.19 Choose the device which you already have 60
Figure 3.20 Prepare to connect 61
Figure 3.21 Select the attached device to access the internet 61
Figure 3.22 Drop the code to the arduino and wait for the device to be connected 62
Figure 3.23 Code arduino and drop it to start the program 62
Figure 3.24 Drop code 63
Figure 3.25 Set up successful 64
Figure 3.26 Main functions of Cayenne 65
Figure 3.27 Add devices or sensore, those project uses 66
Figure 3.28 Set up events for schedules 66
Figure 3.29 Set up trigger for warning to email and phone 67
Figure 3.30 Code arduino, to drop it 67
Figure 3.31 Cayenne has been created to control devices and show sensor parameters 68
Figure 3.32 Sensors parameter graph 69
Figure 3.33 Device running in the schedule’s time 69
Figure 3.34 App Cayenne 70
Figure 4.1 Lights systems 71
Figure 4.3 Camera System (Hikvision and Yoosee) 71
Figure 4.2 Fans systems 71
Trang 17Figure 4.5 Device closed motor 72
Figure 4.4 Motor and Conveyor 72
Figure 4.6 To complete description 73
Figure 4.7 Electrical box display LCD and keyboard control 73
Figure 4.8 Flights systems and motor tranfer 73
Figure 4.9 LCD show in the evening on the experiment 74
Figure 4.10 Before drill (Left: Over glass ouse, right: In Greenhouse) 74
Figure 4.11 After drill (Left: Over glass ouse, right: In Greenhouse) 75
Figure 5.1 Web interface 79
Figure 5.2 Wesbite to display my project 81
Trang 18CHAPTER 1: INTRODUCTION
1.1 Introduce to the subject
Now, along with the strong development of the science and technology, electronic engineering technology Especially, automatic control technology plays an important role in all fields of science and technology, management So, as the student
in mechatronics, we have to know and use it effectively to contribute to the development of technical science world In addition, it is the promotion of the economy development of the country
As we know, all almost greenhouse in the world use rudimentary and backward technologies Jobs such as fertilizing, watering plants must be through human hands Particularly with the weather issues such as temperature, humidity, brightness, wind speed are highly dependent on weather Therefore, the quality and productivity of agricultural products are not bad, but it takes too much labor, time and cost Greenhouse was born to meet the above needs
With automation in the features, peoples just need to monitor via the Website,
or directly control the Web The system automatically collects data for analysis to ensure that data is not lost and to optimize the system All features of the greenhouse are capable of self-operation or under users control via mobile phones using 3G or Internet and provide a variety of usage modes Users can monitor and control the
soil moisture, pH, brightness
From the practicals requirements, the increasing demands of that life, together with the cooperation and strong development of the mobile network, I choose the topic of "Designing greenhouse control and monitoring models intelligent use of IoT (Internet of Things) [8] "to meet the increasing needs of people and contribute to the progress, civilization, modern country and on a par with the world
Trang 191.2 The scientific significance of the topic
Today, with the development of science and technology, electrical and electronic devices are more and more in terms of types and usability In addition, the demand for automated devices are increasing, and the people want to increase entertainment and living facilities with more and more modern technology However, the smart greenhouses have not been invested and developed
From these actural demands, we would like to include some of the world's modern techniques applied to the actual conditions in the country in recent years of growing up that are the idea of controlling and monitoring greenhouses from far from birth, to meet the increasing needs of people The theme is based on using the Website
to control and monitor the greenhouse, automatically collecting data to optimize the system and increase plant productivity and efficiency With auto mode, the people just need to monitor and don’t need to control any process Using the Website to control the device has the advantage of cost saving, competitive and apply to many different objects in civil as well as in industry
1.3 Purpose of the study and its limitations
The project was studied, surveyed and implemented for the purpose of applying the knowledge by learning in the school and spending many years of practical experience such as remote monitoring and control of equipment, actual operation of the greenhouse So, I choose to "Design Intelligent Greenhouse Control and Monitoring Model using Internet of Things" with the desire to bring benefits, safety and quality of life in the country and foreign
Intelligent greenhouses are not only functional multipurpose systems, modern and economical, but also aim to improve the life of people's utilities, especially to ensure the safety of health in the state of spilled vegetables spread anywhere
Trang 201.4 Research situation at home and abroad
1.4.1 Foreign
In the world, the development of information technology and telecommunication the developed countries, controlling and monitoring is not difficult to implement and widely replicated However, the smart greenhouse has not grown expansively yet, the practical reach is enormous Some large countries, for example, the Netherland have applied IoT [9] technology to greenhouse and gained practical benefits
Figure 1 1 Some smart greenhouse functions
Users only use their mobile phones (smartphone) or computer which can monitor and control industrial and agricultural applications such as:
Factory machinery
Waste water treatment system
Irrigation agriculture
Fireplaces, chillers, air conditioners
Other household appliances: light, fan, pump, motor
Trang 21According to agricultural scientists in Israel, hi-tech greenhouses are greenhouses that utilize high technology, advanced/modern technology in the public sector Related technology to create the desired ecological environment, the most favorable ecological environment can make plant growth; Is to implement high-intensive technology; to minimize even the detrimental external factors of production
To produce agricultural products that are not favored by nature (even in the out of season), even they are not produced in the natural environment (such as the production of button mushroom in the desert); To maximize productivity, product quality and production efficiency; minimize production costs and specially to save water, because the water is considered "white gold" in Israel
Greenhouse farming is known as a key technology solution in the development
of hi-tech agriculture, is the development and make breakthrought in the development
of the "civilization of agriculture." The goal of greenhouse farming is raising or creating breakthroughs about productivity, product quality, minimizing risks in production; and to achieve the goal for producers is increasing production, production quality and ultimately the goal of economic efficiency and value of income/unit area
or investment capital On the individual farms or in areas with limited production and irrigation water supplies, the greenhouse solution is becoming increasingly important Therefore, the technology of greenhouse cultivation is opening the potential and prospects for the development of "urban agriculture"
In addition to the objective of producing "clean" and “safe” for using, greenhouse cultivation has created a revolution in productivity for crops Thanks to greenhouse cultivation, tomato yield in Israel reached 500 tonnes/ha or 3 million roses/ha, and thanks to the greenhouse technology that Israel has turned the desert sandy Negev (accounting for 65% of the country) into a "hi-tech green field" with the highest crop yields in the world Over the past few decades, Israel greenhouses are mainly used for the cultivation of flowers, vegetables, food crops/crops for highest quality products, such as peppers, onions, garlic, melons, etc At present, Israel is
Trang 22developing a type of greenhouse used to produce a few ornamental and perennial fruit trees for commercial and export purposes such as grapes, apples, peaches, pears, etc
In recent years, the type of greenhouse technology in Israel has been constantly developed to raise the level of technology to meet more detailed and diversified demands for hi-tech agricultural production Along with promoting greenhouse technology for the growing industry, Israel has recently developed several types of greenhouses used in the livestock sector, mainly for poultry and aquaculture high technology in the desert
The Israel hi-tech greenhouse, in addition to ensuring a durable structural requirement, is required to perform the highest levels of mechanization of production steps, the greenhouse may also allow for the highest levels of response The need to control "greenhouse microclimate "; Control "greenhouse biology"; Control
"greenhouse pests"; And implement computerized measures to regulate the ecological environment of the greenhouse
Structure and structure: The structure and structure of the greenhouse should ensure the principle of hard, heavy, sustainable enough to withstand strong winds (depending on local climate) At present, Israel uses all types of advanced greenhouses Common parts of a standard greenhouse are curtain systems; "Light gates" and grid shading; Control systems and regulate the ecological environment to create an optimal ecological environment that meets the physiological needs of plants, such as temperature control and control systems; Humidity/humidity control and humidity control system; Lighting control and control system; Ventilation system, etc the development of integrated technology, Israel is concentrating on exploiting and utilizing the characteristic features of "smart materials" to build greenhouses
Greenhouses should firstly be able to meet the high standards of physiology and biomass of each specific crop (creating an ecologically-friendly environment for plant growth) Greenhouse height is also a factor that facilitates ventilation and
Trang 23facilitates the suitability of crops The greenhouse should ensure and meet all technical standards and requirements, meet the requirements for care, technical management of production, plant protection, etc., such as Standards to prevent insects, prevent viruses, invasive bacteria, disease, etc And in particular, the height
of the greenhouse sometimes depends on the height of the machines, the equipment, the vehicles operating in the greenhouse -carrying out crop care/harvesting, increase labor productivity In terms of stiffness, in Israel the stiffness of the greenhouse should be standard: "It can withstand winds of at least 150 km/h." However, for greenhouses exported to countries around the world, stiffness and other standards often outstrip the standard or produce according to the specific criteria of the order
Technology for hi-tech greenhouses climate control: Israel greenhouses must meet certain regulatory technology standards, such as the " During the day and warm
up at night " The design and construction of a greenhouse is in such a way that the control and adjustment of environmental factors to create the "optimum sub-climate" for crops grows while only " Minimum energy " Because producers can not produce
at any cost Normally, the temperature control is usually combined with the humidity control and is carried out through the "spray system." The "spray nozzles" function
to absorb excess heat in the greenhouse During daytime and store this amount of heat
to warm the greenhouse at night, the control and regulation of the greenhouse temperature/humidity is constant throughout the day and night And adjust the greenhouse environment parameters, temperature and humidity sensors are installed
at various locations and directly connected to the computer to execute the commands
to irrigate, creating the ideal ecological environment for plants to grow
Trang 24With regard to biotechnology control and greenhouse gases control, greenhouse biology controls a decision role in productivity, quality of agricultural products and economic efficiency of production To detect the adverse effects of different diseases, insects, "dashes" in the greenhouse, to attract and detect harmful insects that appear in the greenhouse so that plant engineers come to the decision to use appropriate plant protection measures To help crops achieve the highest percentage of fruiting possible, greenhouse bees placed in greenhouses, which are placed in greenhouses to be pollinated freely to pollinate the plants For pollinated plants such as melons, tomatoes bio-bee is an important role in pollinating - increasing fruit yield
Figure 1.2 Temperature and humidity sensors are installed at various locations and
connected to computers
Trang 25About greenhouse technology: Israel is a country with early information technology, including hardware and software technology Israel is always trying to exploit applications to the highest level of advantages and advantages of information technology in the development of agricultural production For greenhouse production, all irrigation/fertilizing systems, temperature and humidity control systems, and climate control systems are implemented automatically through software systems technical manager
To make the most effective use of information technology in production, based producers, agri-engineer engineers and Israel software engineers are always the most effective Maintain a close-knit relationship to bring together "production
agro-Figure 1.3 Agronomy Engineers examining the greenhouse gases:Kibbutz
Masharap, Israel
Trang 26management software", the most advanced and optimal technology solutions possible
The system is built around a Programmable Automation Controller (PAC), APech-5000 series APEC, and programmable automation controllers to build control platforms, along with Webaccess Cloud HMI/SCADA software Employees of the orchid cooperative can track important data at any time through smartphone, iPad, and handheld devices, thereby altering the birth control parameters head of flower
System Requirements:
In the past, most environmental control systems of greenhouses growing in Taiwan used PLCs (Programmable Logic Controllers) with poor scalability, which could not connect to the Internet and cloud computing… The analysis of the database and network connectivity, the computer platform needs to be used Therefore, the PAC system with both PLC programming capabilities and PC functionality offers a better choice PAC controls the environment of the greenhouse by turning off appliances, such as fans, roofs, sprinklers, sprayers
Figure 1.4 Environmental control automation system in orchid growing orchids
Trang 27The APAC system controls the greenhouse environment with the following devices:
• Sensor to detect environmental conditions such as indoor and outdoor temperature and humidity, sunlight, wind direction and speed
• Control components for executing fan control commands, opening covers, grids, water pumps and other equipment
• A server capable of analysis and calculation, connecting the sensors above, control components and other electrical equipment
• HMI/SCADA software handles input parameters from a computer, with database analysis and remote monitoring capabilities
System Description:
The Greenhouse uses an APAX-5520 Advantech programmable controller as APAX-5520, APAX-5017, APAX-5028, APAX-5045, APAC-5045, and several other I/O modules Remote sensors and control them via network cables These devices constitute a complete automation control architecture
With Advantech APAX Controller and WebAccess software, staff of orchid farms can set the greenhouse environment control parameters with an easy-to-use graphical interface The system automatically informs the lighting, temperature, humidity, air circulation, and other conditions, enabling the control components to adjust the environmental conditions inside the greenhouse
The APAX-5520 servers connect to the office computer via a network cable and connect to the cloud via 3G, wifi To monitor the conditions in the greenhouse, employees simply download and install the Advantech application on their smartphone or iPad
Trang 28Conclude:
❖ The Advantech APAX control console and WebAccess software have the advantage of being cheap and easily scalable Can be easily controlled and monitored, monitored through computer, phone, tablet at any time and place
❖ By using a greenhouse management system, farmers can control flowering time, adjust output, there by improving sales and reducing market risks At the same time, the environment with optimal conditions will ensure the quality of the flowers
❖ As with orchids, automatic greenhouse gases control systems are also being developed for growing organic fruits and vegetables that increase the value of agricultural economics With climate change evolving markedly, the weather has become harsher than before Environmental monitoring, warning and control systems combined with information and communication technologies can help the agricultural sector escape the fate of "sky, land, clouds"
1.4.2 Domestic
With the rapid development of science technology and their application strategically in practice today and when Vietnam joins the WTO, we are strongly integrating into existing associations and organizations International scale, global opportunities to access, trade Integration into the world economy, that Vietnamese goods can be exported to foreign countries and vice versa, and can be imported from abroad into Vietnam, including technology items Modern equipment for production and the necessary of the people, ensuring the advanced technology in time, equivalent
to other countries in the region and worldwide
As science and technology grow, the more comfortable human life and the more widespread the application of automation, the more the topic of "Designing intelligent control and monitoring models using IoT "attracts people Greenhouse locations provide electronic controllers that can connect to the Internet, allowing
Trang 29owners to remotely control or program equipment for each type of agricultural product In addition, devices can understand each other's language and interact with each other However, there are some drawbacks, as we can see, that smart greenhouse management solutions are highly dependent on the quality of telecommunications services, including telephone networks and high-speed internet Therefore, it is necessary to optimize the system with the auto function, all functions in the greenhouse will activate the auto mode when not control over the Website
In short-time, the use of greenhouse monitoring Website in Vietnam is still very new and has not come into practical application Most of the research is spontaneous research by individuals or groups who want to learn about this technology, it is not yet a professional research activity to be able to put into application However, in the era of information technology and telecommunications
is growing rapidly as it, that is not difficult for us to do that We use the Website to control in Vietnam is the basis when most computers and phones are now available
on the Website This is an advantage for the research and development of applications
in automation control
In Asia, a typical example is the intelligent glasshouse of the Ho Chi Minh City University of Technology Intelligent glasshouse is the product of the key laboratory of digital control and system engineering, Ho Chi Minh City University of Technology
Intelligent greenhouses have the ability to provide plant nutrients over time, from the control of the gas in the model (heat and light), due to the fact that it is equipped with sensors lighting and actuators such as: boiler, drip irrigation system, fog system, air conditioner, and LEDs stimulate growth
Trang 30Figure 1 5 Greenhouse supports growers to care for, avoid pests and
create a suitable environment for the crop
The product is compact and easy to go into small alleys, suitable for agricultural departments, companies providing vegetables and fruits
Returning from France after six years of study and work, instead of becoming
a lecturer at a major university in Vietnam, young doctor Dao Xuan Quy choose another direction, working in the Faculty of Engineering Technology of Quang Binh University
Trang 31Figure 1.6: PhD.Dao Xuan Quy introduces the model " Automatically monitors and controls the greenhouse environment using solar energy by smartphone" for students
In this place, he was passionate to research and promote creativity with his colleagues to implement the project “Automatically monitors and controls the greenhouse environment using solar energy by smartphone " to apply Used in agriculture - forestry - fishery in Quang Binh
PhD Dao Xuan Quy is a former student of the French-Vietnamese quality engineer program at the Ho Chi Minh City University of Technology and one
high-of the seven students high-of the school selected for training in France under the scholarship program goverment After defending his doctoral dissertation, he returned to Vietnam with the intention of working for a foreign corporation in Ho Chi Minh City - working in a professional environment and living with his family When
322-he came to Quang Binh province in 2014, 322-he had changed his plan
Trang 32This shortage of motivation has kept the young man from staying with a single goal: to contribute his energies and intellect to contribute to the improvement of education and agriculture in this land Dry, sunny land And that is why he decided
to become a lecturer at Quang Binh University
Becoming a lecturer, he started to study the soil and climate of Quang Binh Although his PhD in automation, what he is most concerned about is how to improve the status of food contaminated with chemicals are increasingly threatening human health According to him, the demand for clean food is very important, especially clean vegetables However, the land and climate of Quang Binh are not favorable, so
it is necessary to apply science and technology to produce clean agricultural products with high economic value to promote economy, services and solidarity Especially the tourism of Quang Binh "It is unreasonable for Vietnam to be an agricultural country but to import products that it can produce In Quang Binh, people usually grow low-cost agricultural crops such as sweet potatoes, cassava and rice, while I want to experiment with growing short-term agricultural crops that provide economic value High tech and contribute to the development of tourism services such as melon, strawberry, orchid To do this, it is necessary to build a greenhouse system
Figure 1 7 Automatically monitor and control solar greenhouse environment
using smartphone
Trang 33automatically to be able to control and monitor the environment, create the environment The school is similar to Da Lat for growing plants" said Quy
So, Quy together with the research team of Quang Binh University and Combros group (a group of Startup established by lecturers of Ho Chi Minh Polytechnical University) designed and successfully created the model "Automatic Monitor and control the greenhouse environment using solar energy by smartphone
" The system automatically monitors and controls the greenhouse environment through sensors: temperature, humidity, light and actuator: fan, irrigation pump, roof cover The special feature of this model is the use of clean and endless energy sources: solar, wind power and renewable energy Moreover, this model is remotely controlled
by smartphone through wireless connection so it does not require much labor and labor Currently, the model has been initially successful and is being deployed in the real world If the trial step in the real environment succeeds, the model will be replicated for the farmers to apply to the production process However, the difficulty lies in the fact that the cost of implementation is higher than traditional farming practices and farmers themselves are still reluctant to adopt the new model "Farmers are also keen to plant new plants, but if they do not, they will not To change this, it
is necessary to have the participation of 3 houses: the State, the scientist and the investor Accordingly, the State will issue guidelines, investors provide financial, scientists put technology into application in life If all these three elements are in sync, the farmers' ideas will surely change, "he said
At present, the research team is actively seeking investors to be willing to provide capital support, funding for farmers to implement and replicate this model in practice When the model is deployed, farmers can grow high economic value trees that are not allowed by Quang Binh's natural conditions
1.5 Design ideas
Use a computer or a phone over the Web to control the device and receive responsive data from devices that indicate the ON/OFF status of devices placed in the
Trang 34system, temperature, humidity, soil moisture, pH, brightness, wind speed of the greenhouse
1.6 Detailed study syllabus
This subject is made up of 5 chapters
➢ Chapter 1: Overview
➢ Chapter 2: Overview of research these projects
➢ Chapter 3: Building system and design greenhouse
➢ Chapter 4: Experiment and results
➢ Chapter 5: Conclusions and future directions
1.7 Object of study
Board microcontroller, some kind of sensor, motor, anti-jamming device
1.8 Research Methodology
In this subject, I used research methods:
Document Reference: By collecting information from books, journals on electronics, telecommunications, Internet access, especially IoT systems from abroad
Observation method: Investigate some electrical circuits from the internet to choose a design option later
Experimental methods: From learned ideas and knowledge and work experience, incorporate teacher guidance, to develop a complete model that can be applied in practice
Trang 35CHAPTER 2: OVERVIEW OF RESEARCH THESE PROJECTS 2.1 Internet of Things (IoTs)
2.1.1 Introduction
Internet of things is an idea from computer science: connecting ordinary things like lights and doors to a computer network to make them "intelligent" An embedded system or a computer connects each thing together in a network and to the internet Some technologies used for the internet of things are: RFid and meshnets The connections allow each thing to collect and exchange data, and we can control them remotely or by setting rules or chains of actions
IoT is simply the network of interconnected things/devices which are embedded with sensors, software, network connectivity and necessary electronics that enables them to collect and exchange data making them responsive
More than a concept Internet of Things is essentially an architectural framework which allows integration and data exchange between the physical world and computer systems over existing network infrastructure
2.1.2 Important IoTs Components
Many people mistakenly think of IoT as an independent technology Interestingly internet of things is being enabled by the presence of other independent technologies which make fundamental components of IoT
The fundamental components that make internet of things a reality are:
➢ Hardware-Making physical objects responsive and giving them capability to
retrieve data and respond to instructions
➢ Software-Enabling the data collection, storage, processing, manipulating and
instructing
➢ Communication Infrastructure-Most important of all is the communication
infrastructure which consists of protocols and technologies which enable two physical objects to exchange data
Get complete insight into fundamentals of internet of things here
Trang 362.1.3 Development of IoTs
As the telecommunication, sector is becoming more extensive and efficient, broadband internet is widely available With technological advancement, it is now much cheaper to produce necessary sensors with built-in wifi capabilities making connecting devices less costly
Most important, the smart phone usage has surpassed all the predicted limits and telecommunication sector is already working on its toes to keep their customers satisfied by improving their infrastructure As IoT devices need no separate communication than the existing one building IoT tech is very cheap and highly achievable
Figure 2.1: Internet of Things Infographic
Trang 37Figure 2.2 : Statistical table of countries using IoTs
Trang 382.1.4 IoTs application to life
To put things simply any object that can be connected will be connected by the IoT This might not make sense for you on the forefront but it is of high value With interconnected devices you can better arrange your life and be more productive, safer, smarter and informed than ever before
For instance, how easy it will be for you to start your day if your alarm clock
is not only able to wake you up but also able to communicate with your brewer to inform it that you are awake at the same time notifies your geezer to start water heating Or you wearable wrist health band keeps track of your vitals to inform you when you are most productive during the day These are just few examples but applications of internet of things are numerous
On large scale transportation, healthcare, defence, environment monitoring, manufacturing and every other field you can imagine of can be benefited from IoT
It is very to conceive the whole application domain of internet of things at the moment but you can clearly understand why it is such an interesting and hot topic at the moment
2.1.5 The Challenges of IoTs
As other technology, there are challenges which make the viability of IoT doubtful Security is one of the major concerns of experts who believe virtually endless connected devices and information sharing can severely compromise one’s security and well being Unlike other hacking episodes which compromise online data and privacy with IoT devices can open gateway for an entire network to be hacked
One such flaw is well presented by Andy Greenberg on wired.com where he works with hackers to remotely kill his Jeep on the highway Another very relevant example is provided by W David Stephenson in his post Amazon Echo: is it the smart home Trojan Horse? You can estimate the amount of personal and private data the connected devices will be producing once they are on a network The major challenge for IoT tech companies is to figure out how the communication in the internet of things realm can be made truly secure
2.2 Web server
2.2.1 Introduction
A Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that form Web pages to users, in response to their requests, which are forwarded by their computers' HTTP clients Dedicated computers and appliances may be referred to as Web servers as well
Web server often come as part of a larger package of Internet- and related programs for serving email, downloading requests for File Transfer Protocol
Trang 39intranet-(FTP) files, and building and publishing Web pages Considerations in choosing a Web server include how well it works with the operating system and other servers, its ability to handle server-side programming, security characteristics, and the particular publishing, search engine and site building tools that come with it
2.2.2 Specifications
Web server respond to the client request in either of the following two ways: Sending the file to the client associated with the requested URL
Generating response by invoking a script and communicating with database
Figure 2.3 : How to transfer data
2.3 Web services
2.3.1 Introduction
A web service is a service offered by an electronic device to another electronic device, communicating with each other via the World Wide Web In a Web service, Web technology such as HTTP, originally designed for human-to-machine communication, is utilized for machine-to-machine communication, more specifically for transferring machine readable file formats such as XML and JSON
In practice, the web service typically provides an object-oriented web-based interface
to a database server, utilized for example by another web server, or by a mobile application, that provides a users interface to the end users Another common application offered to the end users may be a mashup, where a web server consumes
Trang 40several web services at different machines, and compiles the content into one users interface
2.3.2 Specifications
Webserver is a Web can contain data related to the parameters and calibration
of the equipment on the Web to help people use research and find out the cause why his crops not yet good Because of the advantages that, Webserver is a good choice for this project
We awaited introduction to the users 2 sServer has a community help very crowded which is Blynk and Cayenne
❖ Blynk:
Blynk was designed for the Internet of Things It can control hardware remotely, it can display sensor data, it can store data, vizualize it and do many other cool things
There are three major components in the platform:
- Blynk App - allows to you create amazing interfaces for your projects using various widgets we provide
- Blynk Server - responsible for all the communications between the smartphone and hardware You can use our Blynk Cloud or run your private Blynk server locally It’s open-source, could easily handle thousands of devices and can even be launched on a Raspberry Pi
- Blynk Libraries - for all the popular hardware platforms - enable communication with the server and process all the incoming and outcoming commands
Now imagine: every time you press a Button in the Blynk app, the message travels to space the Blynk Cloud, where it magically finds its way to your hardware It works
the same in the opposite direction and everything happens in a blynk of an eye But,
Blynk only have App
❖ Cayenne
Cayenne is the world’s first drag and drop IoT project builder that empowers developers, designers and engineers to quickly prototype and share their connected device projects Cayenne was designed to help users create Internet of Things prototypes and then bring them to production
There are several major components in the platform:
Cayenne Mobile Apps, Website – Remotely monitor and control your IoT projects from the Android or iOS Apps