MINISTRY OF EDUCATION AND TRAINING HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION GRADUATION PROJECT COMPUTER ENGINEERING TECHNOLOGY DESIGN AND IMPLEMENTATION AN IOT APPLICATION PLATFORM FOR SALANGANE HOUSE MANAGEMENT SYSTEM LECTURER: TRUONG QUANG PHUC, M.Eng STUDENT: PHAN TAN DUNG NGUYEN VAN DAO SKL010592 Ho Chi Minh City, December 2022 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING GRADUATION PROJECT DESIGN AND IMPLEMENTATION AN IOT APPLICATION PLATFORM FOR SALANGANE HOUSE MANAGEMENT SYSTEM PHAN TẤN DŨNG Student ID: 18119011 NGUYỄN VĂN ĐẠO Student ID: 18119013 Major: COMPUTER ENGINEERING TECHNOLOGY Advisor: TRƯƠNG QUANG PHÚC, M.Eng Ho Chi Minh City, December 2022 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING GRADUATION PROJECT DESIGN AND IMPLEMENTATION AN IOT APPLICATION PLATFORM FOR SALANGANE HOUSE MANAGEMENT SYSTEM PHAN TẤN DŨNG Student ID: 18119011 NGUYỄN VĂN ĐẠO Student ID: 18119013 Major: COMPUTER ENGINEERING TECHNOLOGY Advisor: TRƯƠNG QUANG PHÚC, M.Eng Ho Chi Minh City, December 2022 THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -Ho Chi Minh City, December 17, 2022 GRADUATION PROJECT ASSIGNMENT Student name: Phan Tấn Dũng Student ID: 18119011 Student name: Nguyễn Văn Đạo Student ID: 18119013 Major: Computer Engineering Technology Class: 18119CLA Advisor: Trương Quang Phúc, MEng Phone number: _ Date of assignment: _ Date of submission: _ Project title: Design and Implementation an IoT Application Platform for Salangane House Management System Initial materials provided by the advisor: _ Content of the project: _ Final product: CHAIR OF THE PROGRAM ADVISOR (Sign with full name) (Sign with full name) Trương Quang Phúc THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -Ho Chi Minh City, December 17, 2022 ADVISOR’S EVALUATION SHEET Student name: Phan Tấn Dũng Student ID: 18119011 Student name: Nguyễn Văn Đạo Student ID: 18119013 Major: Computer Engineering Technology Project title: Design and Implementation an IoT Application Platform for Salangane House Management System Advisor: Trương Quang Phúc, M.Eng EVALUATION Content of the project: Strengths: Weaknesses: Approval for oral defense? (Approved or denied) Approved Overall evaluation: (Excellent, Good, Fair, Poor) Good Mark: 9.0 (in words: ) Ho Chi Minh City, Dec 17, 2022 ADVISOR (Sign with full name) Trương Quang Phúc HO CHI MINH CITY OF UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY OF HIGH QUALITY TRAINING SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom – Happiness Ho Chi Minh City, January 10, 2023 MODIFYING EXPLANATION OF THE GRADUATION PROJECT MAJOR: COMPUTER TECHNOLOGY ENGINEERING Project title: Design and Implementation an IoT Application Platform for Salangane House Management System Student name: Nguyễn Văn Đạo ID: 18119013 Student name: Phan Tấn Dũng ID: 18119011 Advisor: Trương Quang Phúc, M Eng Defending Council: Council 2, Room: A3-404, 3rd January 2023 Modifying explanation of the graduation project: No Council comments Editing results Note “System requirement” is in chapter Added “Customer needs” and “Specifications” in chapter Provide requirements, specifications in details Parameter values that are selected for Authors should show the parameter design are modified and added in values which are selected for “HARDWARE” (chapter 2) and design What are requirements of “SPECIFICATIONS” (chapter 3), and system? “System requirement” is in chapter 3 Authors should consider interaction of parameters each other The variation in the temperature can affect humidity for example Head of Department (Sign with full name) The temperature and humidity parameters are considered for auto mode that is shown in “Central processing unit block” in chapter Advisor (Sign with full name) Students (Sign with full name) Trương Quang Phúc Số hiệu: BM16/QT-PKHCN-QHQT-NCKH/02 Lần soát xét: 02 Ngày hiệu lực: 01/4/2020 Trang: 1/1 THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -Ho Chi Minh City, December 17, 2022 PRE-DEFENSE EVALUATION SHEET Student name: Phan Tấn Dũng Student ID: 18119011 Student name: Nguyễn Văn Đạo Student ID: 18119013 Major: Computer Engineering Technology Project title: Design and Implementation an IoT Application Platform for Salangane House Management System Name of Reviewer: EVALUATION Content and workload of the project Strengths: Weaknesses: Approval for oral defense? (Approved or denied) Overall evaluation: (Excellent, Good, Fair, Poor) Mark:……………….(in words: ) Ho Chi Minh City, month day, year REVIEWER (Sign with full name) THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness EVALUATION SHEET OF DEFENSE COMMITTEE MEMBER Student name: Phan Tấn Dũng Student ID: 18119011 Student name: Nguyễn Văn Đạo Student ID: 18119013 Major: Computer Engineering Technology Project title: Design and Implementation an IoT Application Platform for Salangane House Management System Name of Defense Committee Member: EVALUATION Content and workload of the project Strengths: Weaknesses: Overall evaluation: (Excellent, Good, Fair, Poor) Mark:……………….(in words: ) Ho Chi Minh City, …, …, … COMMITTEE MEMBER (Sign with full name) SUPERVISOR APPROVAL …………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ……………………………………………………………….………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… …………………………………….…………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………….……………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… ………………………………………………………………………………………… i ACKNOWLEDGMENTS We would like to thank all of the teachers in Faculty for High Quality Training who instructed the valuable knowledge in our major for my team We appreciate this knowledge to complete our graduation thesis We would like to express our very great appreciation to TRUONG QUANG PHUC, M.Eng for his valuable advice during the planning, designing, and finishing of this project His guidance helped my team to be able to enhance the idea and develop this project We would also like to extend our thanks to all of the great classmates in class 18119CLA who gave many essential comments to contribute to this project Finally, although we complete and achieve some goals in this project, there are also some inevitable defects in this project We hope teachers and classmates sympathize with the problems We wish to receive advices from teachers and classmates Thank you very much! ii Faculty for High Quality Training – HCMC University of Technology and Education Figure 4.24: Operation of controlling speaker When we choose turning on or off speaker, this device will turn on or off, the state is shown in the LCD and pushed to the GG Firebase to display on website and mobile application The figure 4.25 shows the operation of controlling fans: Figure 4.25: Operation of controlling fans When we choose direction and speed for fans, these devices will run at the following direction and speed, the state of direction and speed are shown in the LCD and pushed to the GG Firebase to display on website and mobile application The figure 4.26 shows the operation of controlling devices in auto mode: 66 Faculty for High Quality Training – HCMC University of Technology and Education Figure 4.26: Operation of auto mode When we choose auto mode, these devices will run in auto mode and the variable “auto” on Realtime database of GG Firebase is set to In this case, the humidity is low and temperature is normal Therefore, the humidifier is turned on and the dryer/light bulb is turned off automatically The figure 4.27 shows the operation in auto mode when the temperature and the humidity are satisfied: Figure 4.27: Auto mode when temperature and humidity are satisfied When the temperature is between 26 and 30 Celcius degree and humidity is between 70 and 85%, the devices are turned off The figure 4.28 shows the operation in auto mode when the temperature is low and the humidity is normal: 67 Faculty for High Quality Training – HCMC University of Technology and Education Figure 4.28: Auto mode when temperature is low and humidity is satisfied When the temperature is lower than 26 Celcius degree and humidity is between 70 and 85%, the light bulb is turned on and humidifier and fans are turned off The figure 4.29 shows the operation in auto mode when the temperature and the humidity are low: Figure 4.29: Auto mode when temperature and humidity are low When the temperature is lower than 26 Celcius degree and humidity is lower than 70%, the light bulb and humidifier are turned on The figure 4.30 shows the operation in auto mode when the temperature is high and the humidity is low: 68 Faculty for High Quality Training – HCMC University of Technology and Education Figure 4.30: Auto mode when temperature is high and humidity is low When the temperature is higher than 30 Celcius degree and humidity is lower than 70%, the light bulb is turned off, humidifier is turned on and fans are turned on with forward direaction and speed depended on temperature The figure 4.31 shows the operation in auto mode when the temperature is low and the humidity is high: Figure 4.31: Auto mode when temperature is low and humidity is high 69 Faculty for High Quality Training – HCMC University of Technology and Education When the temperature is lower than 26 Celcius degree and humidity is higher than 85%, the light bulb is turned on, humidifier is turned off and fans are turned on with reverse direaction and speed depended on humidity 70 Faculty for High Quality Training – HCMC University of Technology and Education CHAPTER CONCLUSIONS AND FUTURE WORK 5.1 CONCLUSIONS After a period of research and implementation of the topic “Design and implementation an IoT application platform for the Salangane house management system”, our team has learned and improved a lot of new knowledge Additionally, my team has designed a system with all of the functions outlined in the objectives The following are the specific initial goals: − Designing of the control circuit of the bird's nest management system can collect environmental parameter data on air temperature and humidity, as well as light intensity Provide parameter warnings on the website and the Android app on the phone − The hardware has two control modes: automatic and manual It can control via the website and the phone application, making it simple for users to understand − Build a user-friendly website and android app interfaces on mobile phones 5.1.1 Advantages − The system works consistently to meet the topic's requirements, the hardware responds well in manual and automatic modes − The controlling box clearly displays and continuously updates the most accurate temperature, humidity, and light parameters − The users can control the devices remotely through the website and Android mobile appliaction − User-friendly website and Android application interface that displays necessary information such as sensor parameters taken from the environment, parameter warnings, parameter graphs, device status, and easy device control 71 Faculty for High Quality Training – HCMC University of Technology and Education 5.1.2 Drawbacks Besides the advantages, there are still disadvantages, including: − The system is limited to the number of nodes, only tracking one location in the Salangane house − The Wi-Fi Name and Password to connect to the Internet are fixed on the processor code It can only be changed when the program is reloaded into the ESP32 − Hardware control also depends on internet connection speed − The system does not always operate exactly 5.2 FUTURE WORK The project that my group has completed, can develop and expand the operation ability of the model as follows: − Expanding the number of nodes in a monitoring network, monitoring more locations in the bird's nest to assist people in managing more locations − Install additional cameras so that the farmer can easily monitor the status of the equipment more effectively − Incorporating more infrared sensors to detect and warn of factors affecting to the bird's nest model − The system is able to connect to any Wi-Fi address 72 Faculty for High Quality Training – HCMC University of Technology and Education APPENDIX SYSTEM INSTRUCTION MANUAL FOR USERS Android mobile application installing Step 1: Use your android mobile phone to access the link below and download file apk: https://drive.google.com/drive/folders/181k9jkqIPE3hubGLDGmb95I1sfBcv5Z?usp=sharing Step 2: Install the application Step 3: After installing successfully, users can open the application named “Salangane-House” and control the system in manual mode or auto mode by the buttons Maunal Mode or Auto Mode: Users can observe the environment parameters in this main screen If the users choose the manual mode button, a new screen will be appeared: 73 Faculty for High Quality Training – HCMC University of Technology and Education This screen is manual control screen that users can control each device by each button The other screen is auto control screen: This screen displays the information about devices, environment condition and warning of the temperature, humidity and light value in the salangane house Using website Step 1: Access the link below, then download and extract file “website” https://drive.google.com/drive/folders/1KphsFCqwwgJv7BmWxVCHrbC0yTkk ZOFO?usp=sharing Step 2: Follow to the direction Step 3: Open this html file with your browser The main interface of the website will be appeared: 74 Faculty for High Quality Training – HCMC University of Technology and Education There are some options that the user can access to the new interface If the users want to know more information about salangane, they can access the INFORMATION option: This page shows the information of salangane To manage the environmental information, users can access the ENVIRONMENTAL INFORMATION option: The user can control the system manually by access MANUAL MODE: Users can control each device by click the button for each device The users can also control the system in auto mode by accessing AUTO MODE option: This page shows the state of the devices and the environmental parameters 75 Faculty for High Quality Training – HCMC University of Technology and Education Using controlling box Step 1: Connect the devices and sensors to this box Step 2: Supply power for the system When the system is supplied power, the LCD will display the information as shown in figure above Step 3: Use mobile application, website or physical buttons to control and manage the system 76 Faculty for High Quality Training – HCMC University of Technology and Education REFERENCES [1] Thao Vien (2022, April 26) “9 tác dụng yến sào” [online] Available: https://hellobacsi.com/an-uong-lanh-manh/thong-tindinh-duong/tac-dung-cua-yen-sao/ [2] Thietbinuoiyenpvh (2021, Agust 05) “Đặc điểm nhận biết vùng nuôi chim yến tiền 2021” [Online] Available: https://thietbinuoiyenpvh.com/dac-diem-nhan-biet-vung-nuoi-chimyen-tiem-nang-2021/ [3] Tran Duy Hung “nghề ni yến khó khăn,thách thức,giải pháp phát triển”.[Online] Available: https://hunggoiyen.com/nghe-nuoi-yenkho-khan-thach-thuc-va-giai-phap-phat-trien.html [4] Ha Anh (2019, May 21) “Phát triển chăn nuôi chim yến Việt Nam nay” [Online] Available: https://dangcongsan.vn/kinh-teva-hoi-nhap/phat-trien-chan-nuoi-chim-yen-o-viet-nam-hien-naythuc-trang-va-giai-phap-523075.html [5] Kham Pha Ve Chim Yen (2018, April 30) “Khám phá đặc điểm sinh học chim yến nhà” [Online] Available: https://thuongyen.com/dac-diem-sinh-hoc-cua-chim-yen-nha/ [6] Farmvina, (2022, October 02), "Nuôi yến nhà: yếu tố giúp bạn thành công" [Online] Available: https://nongnghiep.farmvina.com/nuoi-yen-trong-nha/ [7] Deviot Tutorial Series chia sẻ kiến thức lập trình [Online] Available: https://deviot.vn/tutorials/pic.22296474/giao-tiep1wire.25530962 [8] Linus Wong (Dallas Semiconductor/Maxim) 1-Wire® (Protocol) Accessed: Dec 16, 2022 [9] Philips Semiconductors THE I2C-BUS SPECIFICATION VERSION 2.1 (JANUARY 2000) Accessed: Dec 16, 2022 77 Faculty for High Quality Training – HCMC University of Technology and Education [10] Jonathan Valdez, Jared Becker (Texas Instruments) Understanding the I2C Bus June 2015 Accessed: Dec 16, 2022 [Online] Available:https://www.ti.com/lit/an/slva704/slva704.pdf?ts=166797 2181665&ref_url=https%253A%252F%252Fwww.google.com%25 2F [11] espressif ESP32-WROOM-32 Datasheet, Version 2.9 (Espressif SystemsCopyright © 2019) [12] dientu360 (2013, Nov 11) MODULE ĐIỀU KHIỂN MOTOR L298N [Online] Available: https://dientu360.com/module-dieukhien-motor-l298n [13] icdayroi Module relay 5V với opto cách ly kích H/L [Online] Available https://icdayroi.com/module-1-relay-5v-voi-opto-cach-lykich-h-l [14] icdayroi Module I2C giao tiếp LCD1602, LCD1604, LCD2004 [Online] Available https://icdayroi.com/mach-chuyen-giao-tieplcd1602-lcd1604-lcd2004-sang-i2c [15] Datasheet DHT11 Humidity & Temperature Sensor [16] icdayroi Cảm biến cường độ ánh sáng GY-30 BH1750FVI [Online] Available https://icdayroi.com/cam-bien-cuong-do-anhsang-gy-30-bh1750fvi [17] linhkien888 Màn Hình LCD 2004 5V Xanh Lá [Online] Available https://linhkien888.vn/man-hinh-lcd-2004-5v-xanhla?fbclid=IwAR0Ickv6zzkDU_G9o6auqH1rnwW2zyrGJNt8Awx7NB1Fb5l9HCqmvBKVvY 78 Faculty for High Quality Training – HCMC University of Technology and Education 79 S K L 0