Mẫu: 03/ĐT-KLTN/BM Form 1: Glitter-printed hard cover VIETNAM NATIONAL UNIVERSITY, HANOI INTERNATIONAL SCHOOL GRADUATION PROJECT PROJECT NAME SMART VEGETABLE GARDEN Student’s name NGUYỄN VĂN TIẾN Hanoi - Year 2021 Form 2: half-cover page VIETNAM NATIONAL UNIVERSITY, HANOI INTERNATIONAL SCHOOL GRADUATION PROJECT PROJECT NAME SMART VEGETABLE GARDEN SUPERVISOR: NGUYỄN THANH TÙNG (Academic title, academic degree, full name) STUDENT: NGUYỄN VĂN TIẾN STUDENT ID: 17071397 COHORT: MAJOR: INFORMATION COMPUTER ENGINEERING Hanoi - Year. LETTER OF DECLARATION I hereby declare that the Graduation Project: SMART VEGETABLE GARDEN is the results of my own research and has never been published in any work of others. During the implementation process of this project, I have seriously taken research ethics; all findings of this projects are results of my own research and surveys; all references in this project are clearly cited according to regulations. I take full responsibility for the fidelity of the number and data and other contents of my graduation project.
Hanoi, (day) 25 (month 12 (year) 2021 Student (Signature and Full name) Tiến Nguyễn Văn Tiến ACKNOWLEDGEMENT Along with the continuous development of computer technology and network electronics, information technology has also improved advanced technologies and made significant progress. The Internet is one of the products of great value and is increasingly becoming an indispensable tool, it is the main platform for the transmission and exchange of information globally and is applied in both industries and sectors. Especially, the development of hi-tech agriculture, scientific and technological innovation is considered as one of the key and key solutions. Applying science and technology solves challenges in agricultural development with the advantages of technologies such as: biotechnology, greenhouse technology, drip irrigation technology, sensor technology, automation , internet of things.
helps agricultural production save costs, increase productivity, lower costs and improve the quality of agricultural products, protect the environment. On the other hand, high-tech agriculture helps farmers be proactive in production, overcome seasonality, reduce dependence on weather and climate, and meet market demand for quality agricultural products. , to meet this urgent need, I made a project with the theme: SMART VEGETABLE GARDEN With my relentless efforts to learn and understand and with the dedicated help of the teachers of the Faculty of Informatics - Computer Engineering, especially the dedicated attention and guidance of the teachers. - Supervisor: NGUYỄN THANH TÙNG Up to now, the project has been completed and achieved quite successful results, but because it is the first time to apply all the basic knowledge to implement the project, it is inevitable that there will be shortcomings.
Therefore, I hope that the teachers will sympathize and tell me what I am lacking so that I can add more knowledge and prepare for the next step on my career path. Once again I would like to express my gratitude and respect to my teachers throughout my career and to everyone who has helped me during my graduation thesis. Wishing you and your family good health and success. Hanoi, (day) 25 (month) 12 (year) 2021 Student (Signature and Full name) Tiến Nguyễn Văn Tiến TABLE OF CONTENT LIST OF TABLE.
6 LIST OF FIGURES. The urgency of the topic. The reason for choosing the topic. Objectives of the study.
Object and scope of the study. 11 CHAPTER 2: OVERVIEW OF THE TOPIC. Overview of the topic. What is the Internet of Things?.
Architecting an Internet of Things. Applications of the Internet of things. Some related research works. Some models of smart vegetable gardens in the world.
Smart vegetable garden model in Vietnam. Advantages and strengths of the smart vegetable garden model. 18 CHAPTER 3: THEORETICAL BASIS. Photosynthetic properties of green plants.
Effect of light on photosynthesis. Effect of CO2 concentration. Effect of temperature on photosynthesis. Effect of water on photosynthesis.
Effect of mineral elements on photosynthesis. Increase crop yield. 26 CHAPTER 4: CALCULATION- DESIGN AND HARDWARE SELECTION. Analysis and selection of design options.
Requirements in the structure of the house plant. Analysis of the current smart vegetable garden model structure. Choosing a structure for a smart vegetable garden. Hardware device selection.
Board NodeMCU ESP8266 Lua. Soil moisture sensor. LEDs to stimulate growth. Introduce about ESP32-CAM-Thinker.
ESP32-CAM's AI-Thinker Components. ESP32-CAM AI-Thinker Board Pinout. Features and Specifications of ESP32-CAM. Programming ESP32-CAM AI-Thinker.
How esp32 cam works in this topic. 52 CHAPTER 5: CONTROL PROGRAM AND MODEL INSTALLATION. Principle of operation. Printed circuit design.
56 CHAPTER 6: BUILDING A SUPERVISION AND CONTROL PROGRAM THROUGH BLYNK. What is needed to use Blynk. How data is stored in this topic. Confidentiality and regulation.
Real-time data updates. 64 CHAPTER 7: CONCLUSION AND DEVELOPMENT DIRECTION OF THE THESIS. Development direction of this topic. 65 TABLE OF NOTATIONS AND ABBRVIATIONS Abbreviation Meaning IoT Internet of things RFID Radio Frequency Identification ID Identification IP Internet Protocol LED Light Emitting Diode MCU Multipoint Control Unit API Application Programming Interface UART Universal Asynchronous Receiver /Transmitte SPI Serial Peripheral Interface SDIO Serial Digital Input/Output ESCP Espressif Systems' Intelligent Connectivity Platform GSM Global System for Mobile Communication JSON JavaScript Object Notation LIST OF TABLE Table 1: UART PINS.
45 Table 2: GPIO pins. 46 Table 3: GPIO pin connections to Camera OV2640 and corresponding variable name. 47 Table 4: Features and specifications of ESP32-CAM. 49 Table 5: Connection between ESP32-CAM and FTDI cable.
51 LIST OF FIGURES Figure 1: Smart vegetable garden in Israel. 15 Figure 2: Photosynthesis diagram of green plants. 20 Figure 3: Effect of light intensity on photosynthesis. 21 Figure 4: Effect of CO2 concentration.
23 Figure 5: Increased productivity through photosynthetic control. 24 Figure 6: People change the tree structure. 25 Figure 7: People apply science and technology to farming. 25 Figure 8: Covered vegetable garden.
28 Figure 9: Smart vegetable garden with ventilation door. 28 Figure 10: Mist irrigation system. 30 Figure 11: General diagram of the topic. 31 Figure 12: Board ESP8266 Lua.
33 Figure 13: DHT11 SENSOR. 34 Figure 14: Soil moisture sensor. 35 Figure 15: LEDs to stimulate growth. 36 Figure 16: Mini pump 12V Japan Sinleader 60W - Full set of accessories.
38 Figure 17: Module 2 Relay. 39 Figure 18: Servo MG90S. 40 Figure 19: Components of ESP32-CAM. 42 Figure 20: Internal diagram of esp32-cam.
43 Figure 21: Board pinout of ESP32-CAM. 43 Figure 22: ESP32-CAM built in LED. 44 Figure 23: The flashlight pins of esp32-cam. 46 Figure 24: Programming ESP32-CAM AI-Thinker.
50 Figure 25: General model of system. 53 Figure 26: Data on app Blynk. 54 Figure 27: Control devices on the Blynk app. 54 Figure 28: Realtime database.
55 Figure 29: Wiring diagram. 55 Figure 30: Printed circuit design. 56 Figure 31: Installation of equipment connection. 56 Figure 32: Installation of equipment connection.
57 Figure 33: Installation of equipment connection. 57 Figure 34: Blynk overview. 60 Figure 35: Installing the library for Blynk. 61 Figure 36: Console for the project.
62 Figure 37: Control interface and funtions. 63 Figure 38: Closed rule, need authentication to read and write data. 64 Figure 39: Closed rule, need authentication to read and write data. The urgency of the topic Our country's agriculture is still backward and there are not many scientific and technical applications applied to reality.
Many technical processes of cultivation and care are conducted subjectively and do not guarantee the correct requirements. It can be said in agronomy in addition to planting techniques Planting, basic care, watering, soil moisture, light and temperature conditions are extremely important factors that determine the growth and yield of plants and also pest resistance. On the other hand, at present, our country is in the stage of industrialization and modernization, with automatic machinery and equipment being put into service to replace human labor. Therefore, equipment such as watering, monitoring humidity, temperature and light for agriculture are being researched, designed, manufactured and put into practice.
The calculation to select equipment for a smart vegetable garden model that meets the growth needs of plants and is suitable for economic and technical conditions for high efficiency is essential for large-scale development of this smart vegetable garden model. The smart vegetable garden model responds to conditions such as soil moisture, air humidity, temperature and automatically water the plants when the soil moisture is less than the allowable level to help plants look good. In addition, the model uses watering in the form of misting so we can save more water than conventional watering methods and create conditions for plants to absorb nutrients without causing leaching and degradation. soil, does not pollute the environment.
Moreover, with the design of a smart vegetable garden model, people will save a lot of time and labor compared to traditional farming methods. With this model, planting and taking care of plants is extremely simple without depending on weather conditions or depending on the seasons of the year… 1. The reason for choosing the topic Smart vegetable garden is a system to meet the growth requirements of plants, the system is a form of automatically providing water, light and monitoring humidity, ambient temperature and soil moisture correctly to take care of plants in the best way, achieve high efficiency and save labor, time and effort. In addition, the demand for vegetables in each family is increasing day by day, and the purchase of vegetables of unknown origin, clear origin and the assurance of food hygiene and safety is not guaranteed.
It has become a burning problem of society and up to now there is still no solution. So the idea of an IoT smart garden was born. In addition, the invention of a smart vegetable garden with IoT application also helps our country's agriculture reach a new height, promotes the growth of crop output and quality, and brings Vietnam's agriculture to life. map of the world.
To achieve this goal, we need to expand and bring this model to more families in the context that our country's agriculture is still too dependent on the natural climate with traditional farming methods. Therefore, it is necessary to have the support of technical equipment capable of accurately measuring and controlling environmental parameters such as: temperature, air humidity, soil moisture and light to provide adequate quality. nutrients for plants at each stage of plant growth. Stemming from the above practical problems, I researched and designed:“The smart garden model is controlled by Esp8266 and some other sensor devices such as: humidity sensor, temperature sensor, light sensor light, soil moisture sensor and some other electronic devices".
Objectives of the study Applying learned knowledge to research, design and manufacture a model of a smart vegetable garden that meets functions such as monitoring humidity, temperature, and light of the environment and setting up an automatic irrigation system when the temperature is low. The soil moisture is less than the allowable level and the LED system is to warm the plants in cold weather and provide enough light for the plants to help the plants grow healthy and able to resist pests. Since then put into practical application to help our country's agriculture have a new farming method, achieve high efficiency, save time and effort and help Vietnam's agricultural industry develop more and more. Object and scope of the study - How to monitor and control esp32-cam - How to monitor humidity, temperature, light and soil moisture - How the esp8266 communicates with the sensor - How to push data from Blynk to Firebase - How to design Blynk and Firebase interfaces - Photosynthetic properties of green plants - How to power the model 1.