MINISTRY OF EDUCATION AND TRAINING HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING GRADUATION PROJECT COMPUTER ENGINEERING TECHNOLOGY DESIGN AND IMPLEMENTATION OF SMART HOME SYSTEM LECTURER: PHAN VAN CA STUDENT: LE BA MINH DAT NGUYEN VAN QUANG HUY SKL012538 Ho Chi Minh City, January 2024 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY OF INTERNATIONAL EDUCATION GRADUATION PROJECT DESIGN AND IMPLEMENTATION OF SMART HOME SYSTEM LÊ BÁ MINH ĐẠT Student ID: 19119040 NGUYỄN VĂN QUANG HUY Student ID: 19119030 Major: COMPUTER ENGINEERING TECHNOLOGY Advisor: PHAN VĂN CA, Associate Professor Ph.D Ho Chi Minh City, January 2024 THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, January 9, 2024 GRADUATION PROJECT ASSIGNMENT Student name: Lê Bá Minh Đạt Student ID: 19119040 Student name: Nguyễn Văn Quang Huy Student ID: 19119030 Major: Computer Engineering Technology Class: 19119CLA Advisor: Assoc.D Phan Văn Ca Phone number: 0902994358 Date of assignment: September 3rd, 2023 Date of submission: January 8th, 2024 1. Project title: Design and implementation of smart home system. Initial materials provided by the advisor: Documents such as paper about application of smart home IoT. Content of the project: ▪ Analyze the challenges of the project.
Learn about the technical specifications, guiding thought and theoretical basis of the components of the hardware. ▪ Propose the model and summarize the overall system. Design block diagram, principle diagram. System configuration and design hardware.
▪ Test run, check, evaluate and adjust. ▪ Conduct report writing. Final product: Smart home model, device control and monitoring box, system control software, final report, demo video. CHAIR OF THE PROGRAM ADVISOR (Sign with full name) (Sign with full name) Phan Văn Ca i THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, January 9, 2024 ADVISOR’S EVALUATION SHEET Student name: Lê Bá Minh Đạt Student ID: 19119040 Student name: Nguyễn Văn Quang Huy Student ID: 19119030 Major: Computer Engineering Technology Project title: Design and implementation of smart home system Advisor: Assoc.D Phan Văn Ca EVALUATION 1.
Content of the project: ▪ Analyze the challenges of the project. Learn about the technical specifications, guiding thought and theoretical basis of the components of the hardware. ▪ Propose the model and summarize the overall system. Design block diagram, principle diagram.
System configuration and design hardware. ▪ Test run, check, evaluate and adjust. ▪ Conduct report writing 2. Strengths: The system model proposed in the thesis makes sense.
Although the prototype implemented is rather basic, it still illustrates the characteristics of the platform framework: connectivity and communication between entities in a smart home. Weaknesses: The weakness of the thesis is the design and implementation methodology. Many similar works exist in the literature. The thesis is not well organized and written.
Approval for oral defense? (Approved or denied) Approved 5. Overall evaluation: (Excellent, Good, Fair, Poor) Good 6. Eight dot Zero) Ho Chi Minh City, January 09, 2024 ADVISOR (Sign with full name) Phan Văn Ca ii THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, January 9, 2023 PRE-DEFENSE EVALUATION SHEET Student name: Lê Bá Minh Đạt Student ID: 19119040 Student name: Nguyễn Văn Quang Huy Student ID: 19119030 Major: Computer Engineering Technology Project title: Design and implementation of smart home system Name of Reviewer: Assoc.D Phan Văn Ca EVALUATION 1. Content and workload of the project ▪ Analyze the challenges of the project.
Learn about the technical specifications, guiding thought and theoretical basis of the components of the hardware. ▪ Propose the model and summarize the overall system. Design block diagram, principle diagram. System configuration and design hardware.
▪ Test run, check, evaluate and adjust. ▪ Conduct report writing. Approval for oral defense? (Approved or denied) .) Ho Chi Minh City, January…, 2024 REVIEWER (Sign with full name) iii THE SOCIALIST REPUBLIC OF VIETNAM Independence – Freedom– Happiness -------- Ho Chi Minh City, January 9, 2023 EVALUATION SHEET OF DEFENSE COMMITTEE MEMBER Student name: Lê Bá Minh Đạt Student ID: 19119040 Student name: Nguyễn Văn Quang Huy Student ID: 19119030 Major:Computer Engineering Technology Project title: Design and implementation of smart home system Advisor: Assoc.D Phan Văn Ca EVALUATION 1. Content and workload of the project ▪ Analyze the challenges of the project.
Learn about the technical specifications, guiding thought and theoretical basis of the components of the hardware. ▪ Propose the model and summarize the overall system. Design block diagram, principle diagram. System configuration and design hardware.
▪ Test run, check, evaluate and adjust. ▪ Conduct report writing.) Ho Chi Minh City, January…, 2024 COMMITTEE MEMBER (Sign with full name) iv DISCLAIMER This is the final report, "Design and implementation of a smart home system," we proclaim. The study findings are accurate, and they were completed totally under the supervision of the teacher, Assoc.D PHAN VAN CA. The report also does not replicate any other sources.
In addition, the document provides a number of referenced and labeled reference resources. I would want to completely assume responsibility for this pledge in front of the department, teachers, and school. Student LE BA MINH DAT NGUYEN VAN QUANG HUY v ACKNOWLEDGEMENTS First, we would like to express our heartfelt appreciation to the School Board of the Ho Chi Minh City University of Technology and Education, as well as the Faculty for High Quality Training, for creating ideal circumstances for me to pursue our project. Furthermore, we would like to express our heartfelt gratitude to the Assoc.
Phan Van Ca, who constantly monitors the learning environment and supports and develops growth chances for each generation of students. However, while having limited time and skills to accomplish this graduation project, the group still had several flaws when learning and presenting the project. Students want professors to provide comments so that the group's project may be finished and enhanced in the future. The contributions of the professors will assist the group obtain more information in their future studies and research.
Finally, the project implementation team wishes the instructors good health, as well as continued success in their noble vocations. Many thanks for all your help and regards. Student LE BA MINH DAT NGUYEN VAN QUANG HUY vi TABLE OF CONTENTS GRADUATION PROJECT ASSIGNMENT .i ADVISOR’S EVALUATION SHEET .ii PRE-DEFENSE EVALUATION SHEET. iii EVALUATION SHEET OF DEFENSE COMMITTEE MEMBER .vi TABLE OF CONTENTS .vii LIST OF FIGURES.
x LIST OF TABLES.xii LIST OF ABBREVIATIONS. xiv CHAPTER 1: INTRODUCTION. Object and Scope of the study. Object of the study.
Scope of the study. 3 CHAPTER 2: LITERATURE REVIEW. Internet of Thing. IoT systems structure.
SPI operating principle. UART operating principle. DHT11 temperature and humidity sensor. MQ3 alcohol gas sensor module.
Global System for Mobile communication. Short messaging Service. Introduces the SIM800L V2 module. RC522 Module RFID Reader.
Energy Meter Module PZEM-004T. 20x4 Character LCD Display. Servo Motor SG90. DC-DC XL4015 5A power module.
LDR Sensor Module. 24 CHAPTER 3: SYSTEM DESIGN AND IMPLEMENTATION. System model of a smart home. Block diagram and functions of each block.
Packaging and model construction. Smart Home control interface on Blynk App and Blynk Dashboard. 53 CHAPTER 4: RESULTS, OBSERVATIONS, AND EVALUATIONS. 55 CHAPTER 5: CONCLUSION AND FUTURE DEVELOPMENTS.
65 ix LIST OF FIGURES Figure 2. Internet of Things. IoT System Structure. The SPI communication model.
The clock diagrams for SPI with CPHA=0 and CPHA=1. UART communication standard. Transmitted in the form of packets of I2C. ESP-WROOM-32 microchip.
DHT11 temperature and humidity sensor module. MQ3 alcohol gas sensor module. Global System for mobile (GSM) network. SIM800L V2 5V Wireless GSM GPRS module.
RC522 RFID Reader with Cards Kit. Energy Meter Module PZEM-004T. 20x4 Character LCD Display. Servo Motor Pinout (Wires).
XL4015 DC-DC Voltage Regulator. LDR Sensor Module (Light Dependent Resistor). The overall scheme of the Smart Home system. Block diagram of Smart Home system.
Principle diagram of the system model. Printed circuit board of hardware. 3D simulation printed circuit. Arduino IDE Interface.
Operating model of Blynk IOT. Secondary microcontroller algorithm flow chart. Algorithm flow chart of subroutine "read RFID tag". Algorithm flow chart of transmit and receive SIM.
Algorithm flow chart of Primary microcontroller. Algorithm flow chart of subroutine “read input sensors”. Algorithm flow chart of subroutine “monitor air conditioner operation”. Blynk App & Blynk Dashboard.
The device control box. Outside lights operate in auto mode. Scan RFID card. Displays parameters on LCD.
Control the device via SIM module. Graph of electricity consumption over time. 59 xi LIST OF TABLES Table 3. Environmental Parameters Measured: Humidity, Temperature, Gas Levels.
Evaluating and choosing devices for primary microcontroller. Evaluating and choosing devices for display unit. Evaluating and choosing devices for relay. Evaluating and choosing devices for power supply.
Evaluating and choosing devices for module sim. Evaluating and choosing devices for temperature & humidity sensor. Evaluating and choosing devices for gas sensor. Evaluating and choosing devices for secondary microcontroller.
Evaluating and choosing devices for security. Evaluating and choosing devices for servo motor. Evaluating and choosing devices for device activity monitoring. Total current used in the circuit (ESP32).
Total current used in the circuit (Arduino Uno R3). List the components used. 59 xii LIST OF ABBREVIATIONS ABBREVIATIONS MEANING 1 IoT Internet of Things 2 GPIO General Purpose Input/Output 3 HTTP Hypertext Transfer Protocol 4 I2C Inter-Integrated Circuit 5 ID Identification 6 IT Information Technology 7 LCD Liquid Crystal Display 8 LED Light Emitting Diode 9 MISO Master In Slave Out 10 MOSI Master Out Slave In 11 IC Integrated Circuit 12 MCU Micro Controller Unit 13 WSN Wireless sensor network 14 WAN Wide-area network 15 SF Spreading Factor 16 BW Bandwidth 17 CR Coding Rate 18 DC Direct Current 19 AC Alternating Current 20 RFID Radio-Frequency Identification 21 RX Receive 22 SCK Serial Clock 23 SCL Serial Clock 24 SDA Serial Data 25 SPI Serial Peripheral Interface 26 TX Transmit 27 UART Universal Asynchronous Receiver/Transmitter 28 IDE Integrated Development Environment xiii ABSTRACT The incorporation of intelligent systems into homes has emerged as a clear trend in the contemporary era, as technology progressively becomes a fundamental aspect of our lives. Research on Smart Home IoT not only explores the potential for offering clever and convenient solutions for daily life but also prompts thought-provoking inquiries about human-machine interaction, safety, and the trajectory of smart living in the future.
Our project aims to create and implement a smart home system. This not only unlocks possibilities for intelligent and pragmatic solutions in daily living but also prompts engaging considerations about human-machine interaction, security, and the future of smart living. Moreover, the project serves as an opportunity to cultivate and enhance diverse skills, ranging from programming to data management and IoT devices. Therefore, it is a journey that not only supports personal growth but also makes a positive contribution to the increasingly innovative and diverse field of information technology.
xiv CHAPTER 1: INTRODUCTION The first chapter explains the project overview, the project's research object, the project methodology, and the project goals in addition to the basic goal behind smart home system. In addition, the layout of the entire report is presented below. Introduction Applying information and communication technology to the house is becoming more and more of a trend in today's environment of ever-more-modern living, as well as a full answer to the demands of comfortable and secure living [1]. However, a lot of problems need to be fixed in order to maximize this smart living area.
Integrating security and performance in an Internet of Things (IoT)-based smart home system is one of the main problems.