HOME APPLIANCES MONITORING AND CONTROL USING SMARTPHONE APPLICATION AHMAD DANIAL BIN AHMAD NAZRI

Similar documents
HOME APPLIANCE CONTROL SYSTEM TAN WEI SYE

BORANG PENGESAHAN STATUS TESIS

PROTOTYPE OF POWER LINE INTERFACE SOCKET USING EMBEDDED CONTROLLER FOR DATA ACQUISITION AND CONTROL. LAI CHING HUAT

BORANG PENGESAHAN STATUS TESIS

DEVELOPMENT OF VENDING MACHINE WITH PREPAID PAYMENT METHOD AMAR SAFUAN BIN ALYUSI

AN ANDROID-BASED SMART SECURITY TOURING SYSTEM FOR REAL-TIME DATA RECORDING USING NFC, GPS AND GSM TECHNOLOGY.

DESIGN ANALYSIS OF EXTERIOR CAR BODY PART BASTIAN WIBAR BIN MOMANG

UNIVERSITI MALAYSIA PAHANG BORANG PENGESAHAN STATUS TESIS

SESSION BASED ACTIVITY MONITORING APPLICATION FOR ANDROID TAN LEIK HO

ZIGBEE-BASED SMART HOME SYSTEM NURUL ILMI BINTI OMAR

SMART PARKING SYSTEM USING LABVIEW MUHAMMAD NAZIR BIN MAT ISA

AUTO SILENT MODE FOR ANDROID SMARTPHONES MUHAMMAD AZLAN SHAHARIMAN BIN AHMAD

PERFORMANCE EVALUATION OF LEACH PROTOCOL FOR WIRELESS SENSOR NETWORKS USING NS2 MUHAMAD FAIZ BIN RAMDZAN

SMART BODY MONITORING SYSTEM MOHAMAD KASYFUL AZIM BIN AHMAD

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

THE APPLICATION OF DIFFERETIAL BOX-COUNTING METHOD FOR IRIS RECOGNITION AHMAD AZFAR BIN MAHMAMI

UPGRADE FMS200: SHAFT SUPPLY MODULE THOUGH HUMAN MACHINE INTERFACE LEE HO CHUNG

COORDINATION PROTECTION SYSTEM IN INDUSTRIAL PLANTS AHMAD TARMIZI BIN MD NOR

PERFORMANCE ANALYSIS OF VIDEO TRANSMISSION OVER IEEE ARCHITECTURE NOOR HURUL-AIN BINTI MOHAMAD

PREDICTION OF SURFACE ROUGHNESS IN TURNING OPERATION OF LOW CARBON STEEL AISI 1018 FAKHRUR RAZI BIN BAHRIN UNIVERSITI MALAYSIA PAHANG

HOME APPLIANCES AND SECURITY CONTROLLED VIA GSM SYSTEM NUR SYAFIQAH BINTI YUSOP

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DEVELOPMENT OF HOME ENERGY MANAGEMENT SYSTEM (HEMS) CHEA MENG HUAT UNIVERSITI TEKNIKAL MALAYSIA MELAKA

NUR FARAH DIYANA BINTI SABARUDIN

BORANG PENGESAHAN STATUS TESIS* TERHAD (Mengandungi maklumat TERHAD yang telah ditentukan oleh organisasi/badan di mana penyelidikan dijalankan)

LOW COST MP3 PLAYER USING SD CARD KHAIRIL AMRI BIN MUHAMAD UNIVERSITI TEKNIKAL MALAYSIA MELAKA

TUITION CENTRE MANAGEMENT SYSTEM (TCMS) ZARIFAH BINTI MOHD PAHMI UNIVERSITI TEKNIKAL MALAYSIA MELAKA

WEB-BASED DEVICE CONTROL AND COMMUNICATION VIA PARALLEL PORT MOHD RASHDAN BIN ABD RAHMAN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

IMPLEMENTATION OF DIAMOND SEARCH (DS) ALGORITHM FOR MOTION ESTIMATION USING MATLAB SITI HAJAR BINTI AHMAD

DESIGN OF ENERGY SAVING AIR CONDITIONING CONTROL SYSTEM MOHD KHUZAIRIE BIN MOHD TAUFIK

PROJECT TITLE JARIPAH BINTI ADZHAR

KARAOKE MACHINE TOOL MOHD AIEZATT DANIAL B RAMIZAN

PLC APPLICATION FOR FLOOD DETECTION AND PROTECTION VIA COMMUNICATION SYSTEM MOHD AKMAL BIN ZAINAL ABIDIN

AUTOMATIC RAILWAY GATE CONTROLLERUSING ZIGBEE NURLIYANA HAZIRAH BINTI MOHD SAFEE (B )

BORANG PENGESAHAN STATUS TESIS*

BORANG PENGESAHAN STATUS TESIS

SYSTEM MANAGEMENT AQIQAH AND QURBAN ONLINE (SMAQO)

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

VIDEO DISTORTION MEASUREMENT USING PSNR IN WAVELET DOMAIN MOK YUNG LENG

REMOVING AL-QURAN ILLUMINATION AMIRUL RAMZANI BIN RADZID UNIVERSITI TEKNIKAL MALAYSIA MELAKA

DEVELOPMENT OF TIMETABLING PROGRAM FONG WOON KEAT

FORCE ANALYSIS ON ROBOTIC DEBURRING PROCESS

BORANG PENGESAHAN STATUS TESIS JUDUL: TAILOR SYSTEM (TailorSys) (HURUF BESAR)

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

THE DEVELOPMENT OF MODULAR PRODUCT DESIGN: FOLDABLE CHAIR

SIT1 NURI-IAZA BINTI MOHD RAMLI

Study of Distributed Coordination Function (DCF) and Enhanced DCF (EDCF) in IEEE MAC Protocols for Multimedia Applications.

COMPARATIVE STUDY BETWEEN FEATURE EXTRACTION METHODS FOR FACE RECOGNITION

MD RIDZUAN BIN TALIB DESIGN A MULTI-FUNCTION DIGITAL THERMOMETER

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

HOME MAILBOX NOTIFICATION MOHD HAZWAN BIN MOHAMED HARITH

EDUCATION PATH SYSTEM MOHD ZULHAFIZ BIN HUSSIN

Performance of Real Time Traffic In The Ethernet And WLAN Using TCP And UDP Protocols. Punitha Subbramaniam

BORANG PENGESAHAN STATUS TESIS*

7 I I, BORANG PENGESAHAN STATUS TESIS* SESI PENGAnAN: 2012 I Saya MOHD FARID BIN MOHD YUSOF (B )

NUR ZURAIN BT ZUBAIDI B

UNIVERSITI TEKNIKAL MALAYSIA MELAKA OPTIMIZATION OF MEASUREMENT PARAMETERS IN NON- CONTACT MEASURING SYSTEM

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

2D CUT-OUT ANIMATION "MAT TUNANGKU"

SMART AQUARJUM (A UTOMATIC FEEDING MACHINE) SY AFINAZ ZURJATI BINTI BAHARUDDIN

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNOLOGI MALAYSIA

LOGICAL OPERATORS AND ITS APPLICATION IN DETERMINING VULNERABLE WEBSITES CAUSED BY SQL INJECTION AMONG UTM FACULTY WEBSITES NURUL FARIHA BINTI MOKHTER

DETECTION OF WORMHOLE ATTACK IN MOBILE AD-HOC NETWORKS MOJTABA GHANAATPISHEH SANAEI

PERPUSTAKAAN UTHM *

DEVELOPMENT OF MOBILE ROBOT CONTROLLER BASED ON BLUETOOTH COMMUNICATION SYSTEM MUHAMAD ROZAIMI BIN MUHAMAD SABRI B

SUPERVISED MACHINE LEARNING APPROACH FOR DETECTION OF MALICIOUS EXECUTABLES YAHYE ABUKAR AHMED

HARDWARE/SOFTWARE SYSTEM-ON-CHIP CO-VERIFICATION PLATFORM BASED ON LOGIC-BASED ENVIRONMENT FOR APPLICATION PROGRAMMING INTERFACING TEO HONG YAP

KOLEJ UNIVERSITI TEKNOLOGI TUN HUSSEIN ONN

PERFORMANCE ANALYSIS OF SMARTPHONE BASED REAL-TIME DRIVER ASSIST SYSTEM OVER IEEE WIRELESS NETWORKS WONG CHEE YIN

AN IMPROVED PACKET FORWARDING APPROACH FOR SOURCE LOCATION PRIVACY IN WIRELESS SENSORS NETWORK MOHAMMAD ALI NASSIRI ABRISHAMCHI

MAGNETIC FLUX LEAKAGE SYSTEM FOR WIRE ROPE INSPECTION USING BLUETOOTH COMMUNICATION MUHAMMAD MAHFUZ BIN SALEHHON UNIVERSITI TEKNOLOGI MALAYSIA

IMPLEMENTATION AND PERFORMANCE ANALYSIS OF IDENTITY- BASED AUTHENTICATION IN WIRELESS SENSOR NETWORKS MIR ALI REZAZADEH BAEE

This item is protected by original copyright

AUTOMATIC PET FEEDER WITH CLIENT/SERVER APPLICATION KHAIRUL ANWAR B MOHD YAKOP UNIVERSITI MALAYSIA PAHANG

BORANG PANGESAHAII STATUS TESIS

ENHANCEMENT OF UML-BASED WEB ENGINEERING FOR METAMODELS: HOMEPAGE DEVELOPMENT CASESTUDY KARZAN WAKIL SAID

AUTOMATIC APPLICATION PROGRAMMING INTERFACE FOR MULTI HOP WIRELESS FIDELITY WIRELESS SENSOR NETWORK

TOWER BASE STATION SAFETY SYSTEM USING GSM TECHNOLOGY NIZAR ZACARIYYA BIN SHAPHERI

INFORMATION TECHNOLOGY EQUIPMENT MANAGEMENT SYSTEM (ITEMS) MOHD NOR IRMAN BIN SULAIh4AN UNIVERSITI TEKNCKAL MALAYSIA MELAKA

INFORM DEPARTURE AND ARRIVING OF BUSSES USING BLUETOOTH MOHD SUHKRI BIN YASRI

BLOCK-BASED NEURAL NETWORK MAPPING ON GRAPHICS PROCESSOR UNIT ONG CHIN TONG UNIVERSITI TEKNOLOGI MALAYSIA

PROCESS AND YIELD IMPROVEMENT FOR HSDPA MODEM COLLABORATION WITH CUBIC ELECTRONICS SDN BHD NORUL HUSNA BINTI KHOLIAH

A TRUST MODEL FOR BUSINESS TO CUSTOMER CLOUD E-COMMERCE HOSSEIN POURTAHERI

SYSTEMATIC SECURE DESIGN GUIDELINE TO IMPROVE INTEGRITY AND AVAILABILITY OF SYSTEM SECURITY ASHVINI DEVI A/P KRISHNAN

BORANG PENCALONAN HADIAH UNIVERSITI NOMINATION FORM FOR UNIVERSITY AWARD

FINITE ELEMENT ANALYSIS OF SEEPAGE FLOW UNDER A SHEET PILE LOH LING PING

RECOGNITION OF PARTIALLY OCCLUDED OBJECTS IN 2D IMAGES ALMUASHI MOHAMMED ALI UNIVERSITI TEKNOLOGI MALAYSIA

ELECTROMAGNETIC MODELLING OF ARTIFICIAL PACEMAKER. Emelia Anak Gunggu

THE COMPARISON OF IMAGE MANIFOLD METHOD AND VOLUME ESTIMATION METHOD IN CONSTRUCTING 3D BRAIN TUMOR IMAGE

ISOGEOMETRIC ANALYSIS OF PLANE STRESS STRUCTURE CHUM ZHI XIAN


UNIVERSITI TEKNIKAL MALAYSIA MELAKA

MULTICHANNEL ORTHOGONAL FREQUENCY DIVISION MULTIPLEXING -ROF FOR WIRELESS ACCESS NETWORK MOHD JIMMY BIN ISMAIL

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

90(111H7. AND 1800i1H7. MOBILE PHONE SI1Il'LATION WITH HVNIAN HEAD ANI) HAND 11ODEl.

INSTRUCTION: This section consists of TEN (10) structured questions. Answer ALL questions.

ECO HOME MONITORING SYSTEM AIDIL AMSYAR BIN MOHD AZAMEE

ENHANCING TIME-STAMPING TECHNIQUE BY IMPLEMENTING MEDIA ACCESS CONTROL ADDRESS PACU PUTRA SUARLI

Transcription:

i HOME APPLIANCES MONITORING AND CONTROL USING SMARTPHONE APPLICATION AHMAD DANIAL BIN AHMAD NAZRI This Report Is Submitted In Partial Fulfillment Of Requirements For The Bachelor Degree of Electronic Engineering (Industrial Electronic) Fakulti Kejuruteraan Elektronik dan Kejuruteraan Komputer Universiti Teknikal Malaysia Melaka JUNE 2016

ii UNIVERSTI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BORANG PENGESAHAN STATUS LAPORAN PROJEK SARJANA MUDA II Tajuk Projek : HOME APPLIANCES MONITORING AND CONTROL Sesi Pengajian : USING SMARTPHONE APPLICATION Saya AHMAD DANIAL BIN AHMAD NAZRI mengaku membenarkan Laporan Projek Sarjana Muda ini disimpan di Perpustakaan dengan syarat-syarat kegunaan seperti berikut: 1. Laporan adalah hakmilik Universiti Teknikal Malaysia Melaka. 2. Perpustakaan dibenarkan membuat salinan untuk tujuan pengajian sahaja. 3. Perpustakaan dibenarkan membuat salinan laporan ini sebagai bahan pertukaran antara institusi pengajian tinggi. 4. Sila tandakan ( ) : SULIT* TERHAD** *(Mengandungi maklumat yang berdarjah keselamatan atau kepentingan Malaysia seperti yang termaktub di dalam AKTA RAHSIA RASMI 1972) **(Mengandungi maklumat terhad yang telah ditentukan oleh organisasi/badan di mana penyelidikan dijalankan) TIDAK TERHAD Disahkan oleh: (TANDATANGAN PENULIS) (COP DAN TANDATANGAN PENYELIA) Tarikh:.. Tarikh:..

iii I hereby, declared this report entitle Home Appliances Monitoring and Control Using Smartphone Application is the result of my own work except for quotes as cited in the references Signature:..... Author: AHMAD DANIAL BIN AHMAD NAZRI Date:.

iv I hereby declare that I have read this report and in my opinion, this report is sufficient in terms of the scope and quality for the award Bachelor of Electronic Engineering (Industrial Electronics) Signature:... Supervisor s Name: ENCIK NORIZAN BIN MOHAMAD Date:.

v Every challenging work needs effort as well as guidance of elders especially those who were very close to our hearts. My humble effort I dedicated to my sweet and loving Father & Mother, Whose affection, love, encourages and pray of day and night made me able to get such success and honour, Along withal hard working and respected Brothers, Sisters & Friends

vi ACKNOWLEDGEMENT In the name of Allah, The Most Beneficent, The Most Merciful. I would like to express my sincere gratitude to Him for giving me strength, health and ability to complete my project of "HOME APPLIANCES MONITORING AND CONTROL USING SMARTPHONE APPLICATION". In completion of this project, it could not be even possible without the help and participation of many people around whose their names may not all be mentioned. I would like take this opportunity to express my gratitude and deep regards to my supervisor Encik Norizan Bin Mohamad for his guidance, concerned, kindness and constant encouragement throughout this project. Greatest credit goes to my supportive families and friends for their endless support, giving valuable information and ideas which help me in order to solve problems and complete the whole project within the given period of time.

vii ABSTRACT The aim of this project is to design home appliances monitoring and control using smart phone application system. The concept of smart phone is an emerging issue to the modern technology dependent society. Remote control technologies are widely used to control household electrical appliances without having to go to the desired places. The open-source hardware development Arduino has been growing up in recent years. Arduino platform has good specifications, cheap, easy to use and wide varieties of shields may emerge with many different purposes. This project used Arduino Mega 2560 as a microcontroller, Ethernet Shield W5100 to communicate with WiFi router via LAN cable, 2-Channel Relay Module as switches, 240VAC 18Watt lamp and 240VAC exhaust fan as electrical appliances and Android smart phone. The electrical appliances can be monitor and control only by connected the smart phone to the WiFi router on the house only (Local Area Network). The Arduino microcontroller also will act as a web server. The development of the web server page required a few computer languages. On this project, it used HyperText Markup Language (HTML), Extensible Markup Language (XML), JavaScript, and Asynchronous JavaScript and XML (AJAX) in developing the web server page. The tool that was used to create the Android application is MIT App Inventor 2 where it can be programmed online by surfing the website.

viii ABSTRAK Tujuan projek ini adalah untuk mereka bentuk peralatan rumah berdasarkan pemantauan dan mengawal menggunakan sistem aplikasi telefon pintar. Konsep telefon pintar adalah satu isu baru muncul kepada masyarakat yang bergantung dengan teknologi moden.. Teknologi kawalan jauh yang digunakan secara meluas untuk mengawal peralatan elektrik rumah tanpa perlu pergi ke tempat-tempat yang dikehendaki. Pembangunan peralatan elektronik sumber terbuka seperti Arduino telah berkembang dalam tahun-tahun dikebelakangan ini. Platfom Arduino mempunyai spesifikasi yang baik, murah, jenis mudah untuk digunakan dan mempunyai pelbagai perisai untuk tujuan yang berbeza. Projek ini menggunakan Arduino Mega 2560 sebagai pengawal mikro, Ethernet Shield W5100 untuk berkomunikasi dengan router WiFi melalui kabel LAN, 2-saluran Relay Modul sebagai suis, lampu 240VAC 18Watt dan 240VAC kipas ekzos sebagai peralatan elektrik dan telefon pintar Android. Peralatan elektrik boleh dipantau dan dikawal hanya dengan menyambungkan telefon pintar kepada router wifi di rumah sahaja (Rangkaian Kawasan Setempat). Arduino pengawal mikro juga akan bertindak sebagai pelayan sesawang. Pembangunan laman sesawang memerlukan beberapa bahasa komputer. Dalam projek ini, ia menggunakan, HyperText Markup Language (HTML) Extensible Markup Language (XML), JavaScript, dan Asynchronous JavaScript dan XML (AJAX) dalam membangunkan laman sesawang pelayan. Alat yang digunakan untuk membuat applikasi Android adalah MIT App Inventor 2 di mana ia boleh diprogramkan dalam talian dengan melayari laman sesawang.

ix TABLE OF CONTENT CHAPTER CONTENT PAGE PROJECT TITLE PROJECT STATUS FORM STUDENT'S DECLAIRATION SUPERVISOR'S DECLAIRATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK TABLE OF CONTENTS LIST OF TABLES LIST OF FIGURES LIST OF ABBREVIATIONS i ii ii iv v vi vii vii ix xii xii xvi I INTRODUCTION 1.1 Introduction 1 1.2 Problem Statement 3 1.3 Project Objectives 3 1.4 Scope of Work 4 1.5 Thesis Outline 5 II LITERATURE REVIEW 2.1 Introduction 6 2.2 Smart phone 7 2.3 Android as the Operating System 8 2.4 User Interface 10 2.4.1 Home Web Server 10

x 2.4.2 Android Application 11 2.5 Software for User Interface Creator 12 2.5.1 Android Studio 13 2.5.2 Eclipse Android Development Tools 14 2.6 Communication Interface 15 2.7 Microcontroller 20 2.8 Relay Module 23 2.9 Project Design 25 2.9.1 Android Smart phone 26 2.9.2 Wifi Router 27 2.9.3 Arduino Mega 2560 28 2.9.4 Arduino Ethernet Shield 29 2.9.5 Relay Module 30 2.9.6 Electrical Appliances 31 2.9.7 Push Button III METHODOLOGY 3.1 Design Methodology 33 3.2 Project Planning 36 3.3 Hardware Development 37 3.1.1 Circuit Design and Wiring Diagram 37 3.4 Software Development 38 3.4.1 Integrated Development Environment 39 3.4.1.1 Configure The Ethernet Shield W5100 39 3.4.1.2 Develop The Web Server Page 40 3.4.1.2.1 HyperText Markup Language (HTML) 41 3.4.1.2.2 Extensible Markup Language (XML) 42 3.4.1.2.3 JavaScript 44 3.4.1.2.4 Asynchronous JavaScript and XML 45 3.4.2 MIT Apps Inventor 2 50

xi IV RESULT AND DISCUSSION 4.1 Project Prototype 55 4.2 Test and Evaluate The Project Prototype 58 4.3 Analyze The Connectivity 65 4.4 Analysis of The Coding 66 4.5 Discussion of Overall Project 72 V CONCLUSION AND RECOMMENDATION 5.1 Conclusion 73 5.2 Recommendation 75 REFERENCES 77

xii LIST OF TABLES TABLE NO. TITLE PAGE 2.1 Summary of Literature review 25 2.2 Summary of Literature review 25 4.1 Analysis the connection between smart phone and wifi router 65

xiii LIST OF FIGURES FIGURE NO. TITLE PAGE 1.1 System block diagram 2 2.1 Few types of smart phone 7 2.2 The Android system architecture 9 2.3 Home Web Server user interface example 10 2.4 Architecture of the Home Automation Website 11 2.5 Graphic User Interface 12 2.6 Interface of Android Studio 13 2.7 Interface of Eclipse Android Development Tools 14 2.8 Android Based Electrical Housing Appliances Controlling System Block diagram 16 2.9 Home Appliances Control System Based on Android Smart phone Block diagram 17 2.10 IoT based Home Appliances Monitoring and Controlling System architecture 18 2.11 Development of an Internet Home Automation System using Java and Dynamic DNS Service system architecture 20 2.12 Infrared Learning Setup on Raspberry Pi 21 2.13 E-Controller Hardware architecture 22 2.14 Relay Module 23 2.15 Relay circuit connect to PIC circuit and Appliances 24 2.16 Relay connected between PIC and Appliances 24 2.17 System Overview 26 2.18 Android Smartphone 27 2.19 Wireless Router 27 2.20 Arduino Mega 2560 28 2.21 Arduino IDE Software 29 2.22 Arduino Ethernet Shield W5100 29

xiv 2.23 Relay Module 30 2.24 Fan and Bulb as electrical appliances 31 2.25 Push button Normally-Open type 32 3.1 Design methodology flow chart part 1 34 3.2 Design methodology flow chart part 2 35 3.3 System Block Diagram 35 3.4 Circuit Design and Wiring Diagram 37 3.5 Integrated Development Environment (IDE) for Arduino 39 3.6 IP and MAC Address 40 3.7 Tag code on HTML web page 41 3.8 Tag code on the body section 42 3.9 Components that appear on the web page 42 3.10 XML code used 43 3.11 JavaScript code 44 3.12 Flow of AJAX function 45 3.13 AJAX calling function code 45 3.14 HTML web page 46 3.15 Flow chart for switch push button 47 3.16 Flow chart for server response 48 3.17 Flow chart for web page 49 3.18 MIT Apps Inventor 2 interface 51 3.19 App (provide QR code for.apk) 52 3.20 QR code bar 52 3.21 MyHome application 53 3.22 Interface of MyHome application 53 3.23 Overall system flow chart 54 4.1 Home Appliances Monitoring and Control using Smartphone Application project prototype 56 4.2 Components inside the box 57 4.3 Electrical Appliances 58 4.4 MyHome application 59 4.5 User Interface 59 4.6 Current status of the lamp 60 4.7 Relay 1 triggered for lamp 61 4.8 Lamp has been turned on 61 4.9 Current status of the exhaust fan 62 4.10 Relay 2 triggered for fan 62

xv 4.11 Fan has been turned on 63 4.12 Relay 1 turned off 63 4.13 The lamp has been turned off 64 4.14 Ethernet declaration 66 4.15 Declaration for lamp and fan 66 4.16 Void setup function 67 4.17 Void loop function 68 4.18 Coding inside void loop function 69 4.19 Void Button Debounce function 69 4.20 Void SetOutputs function 70 4.21 Void XML response function 71 5.1 Example of User Interface on Android application 75

xvi LIST OF ABBREVIATIONS AC - Alternating Current A/D Analogue to Digital AJAX - Asynchronous JavaScript and XML APK - Android Application Package App - Application DC - Direct Current DDNS - Dynamic Domain Name System EEPROM - Electrically Erasable Programmable Read-Only Memory GSM - Global System for Mobile communication GUI - Graphic User Interface HTML - HyperText Markup Language HTTP - HyperText Transfer Protocol ID - Identification IDE - Integrated Development Environment IoT - Internet of Things IP - Internet Protocol JSP - JavaServer Pages LAN - Local Area Network LCD - Liquid Crystal Display MAC - Media Access Control OS - Operating System PC - Personal Computer PIC - Peripheral Interface Controller PWM - Pulse Width Modulation SDK - Software Development Kit

xvii UI - User Interface USB - Universal Serial Bus WiFi - Wireless Fidelity XML - Extensible Markup Language

1 CHAPTER I INTRODUCTION This chapter gives an overview of the project including introduction, problem statement, objectives and scope of the project. 1.1 Introduction Technologies such as sensor, network and data processing are advancing rapidly. Thanks to the evolution, many potential applications have been developed in the fields of analysis and automation. Numbers of smart phones users are increasing day by day. From the Harvard Business Review on 2013 (Anonymous, 2013), data shows that almost 68% of consumers use happens at home. Most of the smart phones consumers are among android user.

2 Nowadays, technologies of smart phone are advancing rapidly. With the application that has been created on the smart phone, people can monitor or control anything with only by click the button on the smart phone. This application can be implemented in monitoring or control electrical appliances in home by using smart phones. People sometimes tend to switch off electrical appliances when they don t want to use it at home. Electrical energy will be wasted and the bills will also increase. This project will attempt to develop a robust system to monitor and control electrical appliances such as lamp or fan at home wirelessly using WiFi and be connected directly to the smart phone application. This project will use smart phone Android based operating system to monitor and control electrical appliances by connected to WiFi router. A microcontroller like Arduino will also be used as a controller to process the transmitted and received data from the smart phone. Figure 1.1 below shows the system block diagram. The system overview will be explained in chapter 3. User Push Button / Switches Smartphone / Android Application WiFi Router / Network Module Arduino Microcontroller Electrical Appliances Figure 1.1 Home Appliances Monitoring and Control using Smart phones Application system block diagram

3 1.2 Problem statement People sometimes tend to switch off electrical appliances when they don t want to use it. Electrical energy will be wasted and the bills will also increases. Human characteristic like laziness is also a factor that they don t want to switch off electrical appliances. Nowadays, people always want to control anything without have to wake up and walking to desired places. There is one previous project that has been created to monitor or control home electrical appliances using smart phone application by a senior student from Universiti Teknikal Malaysia, Melaka (UTeM). The project used Bluetooth type connection. As we all know, Bluetooth connection is not a wide range as it cannot cover a wide area. In addition, it cannot cover the whole house area because it has limited range below than 30m without obstacles. Moreover, it required the user to pair with the Bluetooth devices which it is quite complicated. To reduce these problems, this project will use WiFi router as a wireless connection between the electrical appliances controller and the smart phone application to turn ON/OFF the electrical appliances. By connected to a single router, user can monitor and control the electrical appliances, and then surfing the internet without have to connect to other router. 1.3 Project Objectives There are several objectives that need to be accomplished at the end of this project are listed as follows: 1) To design home monitoring and control using smart phone application 2) To program a microcontroller and android application 3) To test and evaluate the prototype of the connection between android application and the electrical appliances.

4 1.4 Scope of Work The scope of this project are: 1) This project will use a smart phone based Android operating system to monitor and control home electrical appliances 2) Application on the smart phone will act as interface and will create by using MIT App Inventor 2. 3) A WiFi router as network communication between smart phone and controller. 4) Arduino as microcontroller to process the transmitted and received data from smart phone and relay circuit as switches to turn ON/OFF the electrical appliances. 5) An Ethernet shield will be use for network communication between microcontroller and WiFi router. 6) A 240VAC bulb and 240VAC exhaust fan will be use as electrical appliances 7) The electrical appliances can be monitor and control by connected to the WiFi on the house only or in Local Area Network (LAN).

5 1.5 Thesis Outline This thesis contains five chapters that describe Home Appliances Monitoring and Control Using Smartphone Application system where the first chapter contains Introduction followed by Literature Review, Methodology, Results and Discussion and Conclusion. Chapter I This section describes the background of the whole project. It includes objectives, problem statement and scope of work in developing this project. Chapter II Literature Review consist of findings that have been done before. The content of the studies includes the information about all the components used. Chapter III Method or approaches that have been used for this project were describes in this chapter. For example, all the steps taken in wiring and program the microcontroller and android application. Chapter IV Concentrates on the results and discussions of this project. This chapter consist of the result of monitoring and control the electrical appliances via smart phone and analyze the connection between the WiFi router. Chapter V Conclusion consist of the summary of the project. After the project completed, recommendations are made for the betterment of the project or upgrades that might be done in the future.

6 CHAPTER II LITERATURE REVIEW This chapter contains all of the information from previous study that are related to "Home Appliances Monitoring and Control using Smartphone Application". It was done by reviewing several related journals, article, books or other sources in order to obtain the best method in developing the display board. Table 2.1 and 2.2 shows the comparison of several sets of journal. 2.1 Introduction Based on the main objective of this project which is to design a home appliances monitoring and control using smart phone application, some research have been done in order to understand the whole idea of this project. Several criteria need to be considered for this project such as, type of communication interface, microcontroller, Android operating device, software to create the application on the

7 smart phone, relay to turn ON/OFF the electrical appliances and electronic components to monitor the state of the electrical appliances. Home Appliances Monitoring and Control using Smart Phone Application is an enhancement project that has been made previously by one of the senior student in Universiti Teknikal Malaysia Melaka (UTeM). The previous project only control the electrical appliances by turning ON or OFF only and the type of connection was by using Bluetooth connection. The different that will be made to improve the previous project is user can monitor and control the electrical appliances and the type of connection will be use is WiFi router as it can cover the whole house area. 2.2 Smart phone According to Kishor Khadke, with the development of technology and the continuous improvement of people's living standard, people are in pursuit of automated, intelligent and convenient home control systems. At present, the PC is used as the remote control terminal for most home control systems; however, there are some problems in the PC monitor terminal, such as its great bulk, inconvenience to carry, high cost, limited monitoring range and so on. Therefore, it s a good choice to design a terminal based on phone. With the popularity of smart phones, particularly, the phone based on Android system is rapidly developed [2]. Figure 2.1 Few types of smart phone