MINISTRY OF EDUCATION AND TRAINING HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION GRADUATION PROJECT OF COMPUTER ENGINEERING TECHNOLOGY DESIGN AND IMPLEMENTATION FOR SMART HOME USING LOT SYSTEM INSTRUCTOR: DR.TRUONG QUANG PHUC STUDENT: BUI TUAN DAT TRAN PHAN BAO KHANG SKL012543 Ho Chi Minh City, JANUARY, 2024 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY OF INTERNATIONAL EDUCATION GRADUATION PROJECT DESIGN AND IMPLEMENTATION FOR SMART HOME USING LOT SYSTEM BÙI TUẤN ĐẠT Student ID: 19119039 TRẦN PHAN BẢO KHANG Student ID: 19119059 Major: COMPUTER ENGINEERING TECHNOLOGY Advisor: TRƯƠNG QUANG PHÚC, M.ENG Ho Chi Minh City, January 2024 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY OF INTERNATIONAL EDUCATION GRADUATION PROJECT DESIGN AND IMPLEMENTATION FOR SMART HOME USING IOT SYSTEM BÙI TUẤN ĐẠT Student ID: 19119039 TRẦN PHAN BẢO KHANG Student ID: 19119059 Major: COMPUTER ENGINEERING TECHNOLOGY Advisor: TRƯƠNG QUANG PHÚC, M.ENG Ho Chi Minh City, January 2024 Faculty of International Education – HCMC University of Technology and Education THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, January 6, 2024 GRADUATION PROJECT ASSIGNMENT Student name: Bùi Tuấn Đạt Student ID: 19119039 Student name: Trần Phan Bảo Khang Student ID: 19119059 Major: Computer Engineering Technology Class: 19119CLA Advisor: Trương Quang Phúc, MEng Phone number: _________________ Date of assignment: _____________________ Date of submission: _____________ 1. Project title: Design and implementation for smart home using IoT system 2. Initial materials provided by the advisor: Referring to IoT projects and courses completed by previous colleagues. Content of the project: Execute this project including contents: designed the system, constructed circuits using Proteus software, implemented hardware models and system control interface, and finally, documented the project in a report 4.
Final product: Final product: IoT system model for smart homes CHAIR OF THE PROGRAM ADVISOR (Sign with full name) (Sign with full name) Trương Quang Phúc Faculty of International Education – HCMC University of Technology and Education THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, January 6, 2024 ADVISOR’S EVALUATION SHEET Student name: Bùi Tuấn Đạt Student ID: 19119039 Student name: Trần Phan Bảo Khang Student ID: 19119059 Major: Computer Engineering Technology Project title: Design and implementation for smart home using IoT system. Advisor: Trương Quang Phúc, MEng EVALUATION 1. Content of the project:. Approval for oral defense? (Approved or denied) Approved 5.
Overall evaluation: (Excellent, Good, Fair, Poor) Fair 6.) Ho Chi Minh City, January 6, 2024 ADVISOR (Sign with full name) Trương Quang Phúc Faculty of International Education – HCMC University of Technology and Education THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, January 20, 2024 PRE-DEFENSE EVALUATION SHEET Student name: Bùi Tuấn Đạt Student ID: 19119039 Student name: Trần Phan Bảo Khang Student ID: 19119059 Major: Computer Engineering Technology Project title: Design and implementation for smart home using IoT system. Name of Reviewer:. Content and workload of the project. Approval for oral defense? (Approved or denied) .) Ho Chi Minh City, … …, … REVIEWER (Sign with full name) Faculty of International Education – HCMC University of Technology and Education THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, January 20, 2024 EVALUATION SHEET OF DEFENSE COMMITTEE MEMBER Student name: Bùi Tuấn Đạt Student ID: 19119039 Student name: Trần Phan Bảo Khang Student ID: 19119059 Major: Computer Engineering Technology Project title: Design and implementation for smart home using IoT system.
Name of Defense Committee Member:. Content and workload of the project .) Ho Chi Minh City, … …, … COMMITTEE MEMBER (Sign with full name) Faculty of International Education – HCMC University of Technology and Education ACKNOWLEDGMENTS Throughout the four years of studying and training at the Ho Chi Minh City University of Technology and Education's Faculty of International Education, under the dedicated guidance of the faculty members, especially the professors and lecturers in the Computer Engineering department, we have been allowed to learn and apply valuable and practical knowledge. We would like to express our deepest gratitude to our esteemed professors for their diligent efforts in imparting valuable knowledge and precious experiences to us. Their commitment has enabled us to apply these leanings in our future endeavors.
We would like to express sincere and profound gratitude to Mr. Truong Quang Phuc, M., for his dedicated guidance, valuable suggestions, and sharing of experiences. His support and facilitation played a crucial role in the research efforts and successful completion of this graduation project. We also extend our gratitude to all members of the class 19119CLA for sharing their knowledge and relevant experiences related to the project.
Despite our best efforts, we acknowledge that this thesis has inevitable defects. Therefore, we hope to receive advice, constructive feedback, and corrections from the Defense Council, teachers, and our classmates, with an understanding of our still- developing skills and experiences. Thank you very much! i Faculty of International Education – HCMC University of Technology and Education ABSTRACT In today's rapidly evolving world across various fields, human aspirations for lifestyle have undergone significant changes. The concept of a home has transformed from being a simple living space to a smart and convenient environment.
Smart homes have become a popular trend, representing a desire to surpass the limitations of traditional housing. The amenities and advanced technologies integrated into smart homes provide safety, convenience, and energy optimization, transforming our daily lives. Recognizing the increasing demand for smart home systems, we have decided to undertake the project "Design and Implementation for Smart Home using IoT system". The project "Design and Implementation for Smart Home using IoT system" aims to create an advanced smart home system where users can easily manage and control devices within the home through mobile phones and a website.
Additionally, in our design, we have structured the house with three rooms, each equipped with an independent control node. Each node includes an ESP32 for data collection purposes and is equipped with sensors to collect data from the surrounding environment. This data will be provided to MQTT Cloud for use in monitoring and control, ensuring user safety. ii Faculty of International Education – HCMC University of Technology and Education TABLE OF CONTENTS ACKNOWLEDGMENTS.
ii TABLE OF CONTENTS. iii LIST OF FIGURES .vi LIST OF TABLES .ix LIST OF ABBREVIATIONS. Scope of object. IoT Model Application in Smart Home.
Communication standards in IoT. Wireless Communication Standards. Wired Communication Standards. Data Transmission Protocols.
ESP32-WROOM-32 Microcontroller. LM2596 DC Voltage Regulator Step-Down Buck Converter Module. RFID RC522 NFC 13.19 iii Faculty of International Education – HCMC University of Technology and Education 2. Infrared Obstacle Sensor.
LCD to I2C communication conversion circuit. DHT11 temperature and humidity sensor module. Gas sensor MQ-2. LED Bar SAMSUNG.
Overview of HTML, CSS, and JavaScript. DESIGN AND IMPLEMENTATION. Living room design block. Bedroom design block.
Kitchen design block. Detail hardware designs. Power supply design. Living room design.
Bedroom design block. Detail software designs. Host IoT design. Mobile application design.59 iv Faculty of International Education – HCMC University of Technology and Education 3.
Android mobile application. Summary of testing result and evaluate model. CONCLUSIONS AND FUTURE WORK. Develop new features to serve daily usage requirements.
Develop application and website interfaces to improve technical features. Apply specialized equipment to the system. Handle the problem of losing Wi-Fi connection and losing power during operation. 84 v Faculty of International Education – HCMC University of Technology and Education LIST OF FIGURES Figure 2.
IoT model applied in Smart Home. I2C Master-Slave communication diagram. Frame transfer in I2C protocol. UART communication connection diagram.
UART data transmission frame. SPI communication in case of multiple Slave pins. SPI communication in case there is 1 Slave pin. ESP32-WROOM-32 Microcontroller.
ESP-WROOM-32 pinout. Schematic Diagram of the LM2596 DC Voltage Regulator Module. Pin Functions of the SIM800L Module. Infrared Obstacle Sensor.
Green 16×2 LCD screen. I2C Interface Conversion Circuit for LCD. DHT11 temperature and humidity sensor module. Gas sensor MQ-2.
LED Bar Samsung. MQTT Cloud Logo. Block diagram for the smart home system design. Block diagram for the living room design.
33 vi Faculty of International Education – HCMC University of Technology and Education Figure 3. Block diagram for the bedroom design. Block diagram for the kitchen design. Power supply block design.
The schematic for living room design. Flowchart for the living room MCU program. Schematic for power supply circuit. Schematic for DHT11 connection.
Schematic for connection between Infrared Obstacle Sensor and living room’s MCU. Schematic for connection between RFID RC522 and living room's MCU. Schematic for connection between button block and living room' MCU. Schematic for connection between warning block and living room's MCU 44 Figure 3.
Schematic for connection between device block and living room's MCU. Schematic for connection between LCD using I2C module and living room’s MCU. Schematic for bedroom design. Flowchart for bedroom MCU program.
Schematic for connect between power supply block and bedroom’s MCU. Schematic for connection between button block and bedroom’s MCU. Schematic for connection between device block and bedroom’s MCU. Schematic for connect between LCD using I2C module and bedroom ‘s MCU.
Schematic for kitchen design. Flowchart for kitchen MCU program. Schematic for connection between power supply block and kitchen’s MCU. Schematic for connection between sensor block and kitchen’s MCU.
Schematic for connection between button block and kitchen's MCU. Schematic for connection between warning block and kitchen’s MCU. MQTT Cloud Interface of the IoT Host. IoT Mobile App Interface.
59 vii Faculty of International Education – HCMC University of Technology and Education Figure 3. Flowchart for IoT mobile app script. Main Interface of the IoT Website. Flowchart for the IoT website Java Script.
Result of Top-Down view of Smart Home System. Layout of PCB Circuit and Living Room Component Connections. Result of living room implementation. Layout of PCB Circuit and Bedroom Component Connections.
Result of bedroom implementation. Layout of PCB Circuit and Kitchen Component Connections. Result of kitchen implementation. Result of IoT Website implementation.
IoT mobile app Icon. Result of IoT mobile app User Interface. Result of changing value when connect with website. Result of change values when connect with mobile app.
Result of system control by IoT mobile app. Result of system control by IoT Website. Comparison values between mobile app and living room LCD. Result of a correctly accessed card.
Result of an incorrect access card. Result of an access warning. Result of add access card mode. Result of adding a new member card.
Result of deleting access card mode. Result on Kitchen LCD when ESP32 detects a fire or gas leakage. Result on the host when the ESP detects a fire or gas leakage. Result of the fire warning message.
Result of the access warning message. 78 viii Faculty of International Education – HCMC University of Technology and Education LIST OF TABLES Table 2-1. General command of Sim800l module. Call command of Sim800l module.
Message command of Sim800l module. Connection table of esp32. Connection interface between the DHT11 sensor and ESP32. Connection interface between RFID RC522 module and ESP32.
Connection interface between LCD I2C module and ESP32. Connection table of ESP32 in bedroom design. Connection interface between DHT11 and ESP32 in bedroom design. Connection interface between LCD I2C module and ESP32 in bedroom design.
Connection table of ESP32 in kitchen. Summary of testing result table .