MINISTRY OF EDUCATION AND TRAINING HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING ELECTRONICS AND TELECOMMUNICATION ENGINEERING TECHNOLOGY IOT-BASED AUTOMATIC MONITORING AND CONTROL SYSTEM FOR AGRICULTURE LECTURER: DO DUY TAN STUDENT : DAO DUY TUNG VO BANG TRANH SKL 0 0 9 3 2 7 Ho Chi Minh City, August, 2020 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING -------------- GRADUATION THESIS IOT-BASED AUTOMATIC MONITORING AND CONTROL SYSTEM FOR AGRICULTURE DAO DUY TUNG Student ID: 17141034 VO BANG TRANH Student ID: 17141146 Major: ELECTRONIC AND COMMUNICATION ENGINEERING TECHNOLOGY Advisor: DO DUY TAN, M. Ho Chi Minh City, August 2022 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING -------------- GRADUATION THESIS IOT-BASED AUTOMATIC MONITORING AND CONTROL SYSTEM FOR AGRICULTURE DAO DUY TUNG Student ID: 17141034 VO BANG TRANH Student ID: 17141146 Major: ELECTRONIC AND COMMUNICATION ENGINEERING TECHNOLOGY Advisor: DO DUY TAN, M. Ho Chi Minh City, August 2022 ii THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, July 27th, 2022 ADVISOR’S EVALUATION SHEET Student name: Dao Duy Tung Student ID: 17141034 Student name: Vo Bang Tranh Student ID: 17141146 Major: Electronics and Communication Engineering Technology Project title: IOT-BASED AUTOMATIC MONITORING AND CONTROL SYSTEM FOR AGRICULTURE Advisor: M. Do Duy Tan EVALUATION 1.
Content of the project: - The team implements the content that meets the requirements set out initially 2. Strengths: - The group made the graduation thesis on schedule and reported on the complete process. - The content of the report presents a clear layout. Weaknesses: -The topic of designing a garden care system using IoT technology has been implemented by many groups before show before - It is recommended to supplement the garden monitoring table in a certain period of time to evaluate the effectiveness - Some images are not good quality.
Approval for oral defense? (Approved or denied): APPROVAL 5.2 (in words: Eight point two ) Ho Chi Minh City, ADVISOR (Sign with full name) iii HCMC University of Technology and Socialist Republic of Vietnam Education Faculty for High Quality training Independence - Liberty – Happiness Ho Chi Minh City, July 27th, 2022 PROJECT ASSIGNMENT Name of Members: Dao Duy Tung Student ID: 17141034 Vo Bang Tranh Student ID: 17141146 Training system: Regular university Major: Electronics and communication engineering technology Class: 17141CLA2; 17141CLS I. NAME OF PROJECT: IOT-BASED AUTOMATIC MONITORING AND CONTROL SYSTEM FOR AGRICULTURE II. Content of implementation - Present the theoretical basis of greenhouse models, wifi standards, protocols UART, I2C communication. - Design block diagrams and schematic diagrams of the entire system.
- Present and analyze the operating modes of the system. - Analyze and evaluate the resource usage of the design. - Provide general conclusions and development direction of the topic. Product - Evaluation results on the real paradigm.
DATE OF RECEIVING TASK: IV. DATE OF TASK COMPLETION: V. Do Duy Tan CHAIR OF THE PROGRAM ADVISOR (Sign with full name) (Sign with full name) i HCMC University of Technology and Socialist Republic of Vietnam Education Faculty for High Quality training Independence - Liberty – Happiness Ho Chi Minh City, July 27th, 2022 PROJECT IMPLEMENT SCHEDULE Name of Members: Dao Duy Tung Student ID: 17141034 Vo Bang Tranh Student ID: 17141146 Class: 17141CLA2; 17141CLS Name of project: IOT-BASED AUTOMATIC MONITORING AND CONTROL SYSTEM FOR AGRICULTURE Week/Date Content Lecture Confirm 1st Meet Instructor to disseminate regulations: (7/3-13/3) choose topic, working time. - Instructor conducts review of the topic.
2st - Write a summary of the requirements of the (14/3-20/3) selected topic: Reasons and objectives of the topic, design content, limited parameters of the topic. 3nd Write the plan and detail outlines for the topic. (21/3-27/3) - Design block diagram. 4rd - Design the principal diagram and explain the (28/3-4/4) function of each block.
- Search for knowledge, information about the 5th characteristics, temperature, and humidity of (5/4-11/4) plants. - Find out the sensors used in the subject. ii - Learn about how to program apps on smartphone phone. 6th Calculate the parameter of component and (12/4-18/4) choose the suitable material.
7th Complete schematic and layout of components (19/4-25/4) on the circuit board. 8th Design and construction of central control block. (26/4-2/5) - 9th (3/5-9/5) - Programming to connect operating modules in 10th the system. (10/5-16/5) - - - Design the interface on Blynk App though 11th smartphone (17/5-23/5) 12th (14/5-30/5) 13th - Implement the circuit board.
(31/5-6/6) 14th - Model building. (7/6-13/6) 15th - Implement, test and fix the Project. (14/6-20/6) - Write the report. Complete the report and send it to Instructor to 16th review and comment for the last time before (21/6-27/6) printing the report.
17th Summit the report and slide PowerPoint. (28/6-4/7) iii DISCLAIMER We guarantee that this project is our research, under M. Do Duy Tan's guidance. The results published in this project are honest and are not replicated from any other work.
STUDENTS Vo Bang Tranh Dao Duy Tung iv ACKNOWLEDGMENTS Foremost, our group would like to express our sincere thanks to the teachers in the Faculty of High Quality Training. During the time studying at the school, the teachers were dedicated to teaching and imparting to their group knowledge, experience and motivation in the learning process. We sincerely thank to my advisor for his continued support and encouragement: M. Do Duy Tan.
We offer our sincere appreciation for the learning opportunities provided by my lecturer. Besides my advisor, we would like to thank our friends who shared knowledge and valuable experiences during the implementation of the project. Finally, we would like to thank our family for giving time to care and supporting us spiritually throughout our life. Sincerely! STUDENTS Vo Bang Tranh Dao Duy Tung v TABLE OF CONTENTS PROJECT ASSIGNMENT.
i PROJECT IMPLEMENT SCHEDULE. v TABLE OF CONTENTS. vi LIST OF FIGURES. viii LIST OF TABLES.
xii Chapter 1: INTRODUCTION. Error! Bookmark not defined. Error! Bookmark not defined. THESIS REPORT OUTLINE.
Error! Bookmark not defined. Chapter 2: LITERATURE REVIEW. INTERNET OF THINGS (IoT). System block diagram design.
Circuit design and calculation. Introduce about BLYNK APP. Design the user interface. 446 Chapter 4: EXPERIMENT RESULTS.
PLANTING EXPERIMENTS ON THE SYSTEM. 555 Chapter 5: CONCLUSION AND RECOMMENDATIONS. 656 vii LIST OF FIGURES Fig. Realistic closed garden model.
Realistic opened garden model. Applications of the Internet of Things. UART protocol format. I2C data transfer bit.
The master sends data to slave bit sequence. The master reads data from slave bit sequence. Summary of Wi-Fi standards. Block diagram of the system.
Honeycomb power supply. LM2596 Buck Converter. The schematic of LM2596 Buck Converter. Pin diagram of ESP32 Module.
ESP32-CAM pinout. DHT22 sensor pinout. Soil moisture sensor. Arduino CNC Shield V3.
Attach A4988 module to CNC shield and wire 2 step motors. Module Stepper Motor A4988 schematic. L298 Motor Driver Module. Schematic of L298 circuit.
Servo motor pinout. How to control the motor's direction. TP-43D2033 Step motor. DC pump motor.
I2C converter module for LCD. The schematic diagram of the whole system. Blynk App working diagram. The application store of the two platforms on smartphones.
How to create an account on Blynk App. Create a project and device. Enter auth token, user name and password of Wi-Fi to program. Where to add widgets.
Add the widget to the project. Configure the widget. The information displayed on the App. Flow chart of selection mode.
Manual mode flow chart. Automatic mode flow chart. Flowchart of Image processing. Automatic Monitoring and Control System in Agriculture based on IoT.
The system is covered by plastic film. The system is not connected to the network. The system is connected to the network. Camera captures live images.
The sow seeds system is working. MANUAL Configuration Mode. The garden is in ideal condition. Set the temperature and humidity.
The map of garden. Select plant varieties. Select Auto mode and press the sow seed button. Seeding system is working.
Water pump is working. Image of the garden after 36 hours of sowing. Image of the garden after 7 days of sowing. 61 x LIST OF TABLES TABLE 3.
Parameters about power consumption of components. LM2596 buck converter specifications. The pinout configurations of the ESP32 module. ESP 32 module specifications.
ESP 32 CAM specifications. Soil moisture specifications. Module steeper control A4988 specifications. Number of step control.
Pin functions of L298. L298 module technical specifications. SG90 servo specifications. The step requirement to reach desire length.
Water pump specifications. Functions of the LCD’s Pins. 40 xi ABSTRACT Currently, with the development of 4.0, products or systems that remotely monitor and control smart gardens are becoming increasingly popular and appear to be necessary tools for keeping the garden in the best condition. However, the market price of these gadgets is rather costly, making them difficult to obtain for farmers.
As a result, our team created the " Automatic Monitoring and Control System in Agriculture based on IoT" to meet the need to monitor the environmental parameters of the garden, ensuring that the garden is always in the best condition, as well as cost more affordable to farmers and tree enthusiasts. The system has the following capabilities that can be controlled via a smartphone app. Sensor data, device status, and camera images will be captured and continuously updated to the App. The system has two operating modes: manual and automatic.
In MANUAL mode, users can actively control devices, turn them on and off as needed, regardless of environmental conditions, such as watering plants, turning on lights, turning fans on and off, and most importantly, selecting the sowing place and having the app irrigate automatically. In AUTO mode, if the user activates the water pump or seeding button, the system will automatically water or sow seeds at all pre-programmed positions. In addition, the system also allows users to set temperature and humidity limits and from there the devices will operate based on environmental parameters. In this project, we tackle this problem by collecting data inside the greenhouse using ESP 32 and ESP 32 CAM, sensors, and actuators, signal processing from the sensors using programming, and controlling the actuator to keep the garden in the proper condition.
After that, the farmer can get real-time data on the smartphone. The operating model is relatively stable, the operations on the application are easy, and the online image can be observed through the Camera. xii Chapter 1: INTRODUCTION 1. PROBLEM STATEMENT According to estimation, world population could reach to 9,8 billion in 2050, it would be 25% more than it is at the moment.
Urbanization would be increasing in tendency significantly in 2050, nearly 70% of world population are expected to be urbanize (compared to 49%). Agricultural productivity must double by 2050 to support this big metropolitan population [2]. Crop production will become equally vital to industry, not only for food but crops such as cotton and rubber are also essential to the economies of many countries. These demands place a further strain on already restricted agricultural resources.
Internet of Things (IoT) is an important topic at the moment and the future of all thing and it is now changing life of everyone by doing everything smarter. Internet of Things is also known as a vast network in which any computer or practically anything with an IP address is linked to the internet or to another in order to automate operations or minimize human interaction smartphones, lights, watches, machine producing, cars, etc are some examples.