Академический Документы
Профессиональный Документы
Культура Документы
By
Haris Ijaz
M. Ahsan Raza
M. Bilal Javed
BEE-FA15-013
BEE-FA15-020
BEE-FA15-059
Supervisor
Dr. Asim Khan
Engr. Hafiz Ahsan
School of Electrical Engineering
A thesis submitted in partial fulfillment of the requirements for the degree
of Electrical Engineering Specialization in Computer System
In
School of Electrical Engineering,
The University of Faisalabad (TUF),
Faisalabad, Pakistan.
(27 June 2019)
Abstract
i
APPROVAL CERTIFICATE
This Project Thesis Report titled ”Intelligent Smart Switch Using IoT
and Machine Learning” has been found satisfactory in terms of scope,
quality and presentation as partial fulfillment of the requirement for the
Bachelor of Electrical Engineering (Computer Systems) in the University of
Faisalabad.
Project Supervisor:
Signature:
Date:
Project Co-Supervisor:
Signature:
Date:
ii
Dedication
iii
Certificate of Originality
We hereby declare that this submission is our own work and to the best
of our knowledge it contains no materials previously published or written by
another person, nor material which to a substantial extent has been accepted
for the award of any degree or diploma at The University of Faisalabad or
at any other educational institute, except where due acknowledgment has
been made in the thesis. Any contribution made to the research by others,
with whom we have worked at The University of Faisalabad or elsewhere, is
explicitly acknowledged in the thesis. We also declare that the intellectual
content of this thesis is the product of our own work, except for the assistance
from others in the project’s design and conception or in style, presentation
and linguistics which has been acknowledged.
Haris Ijaz
M. Ahsan Raza
M. Bilal Javed
iv
Acknowledgment
All praises to Almighty Allah, whose enormous blessings give us strength and
make us able to complete this thesis. We would like to express our gratitude
to our kind Supervisor Dr. Asim Khan and Co-supervisor Engr. Hafiz Ahsan
for their guidance, support and encouragement. Working with them has been
a true privilege and great experience for us. Their guidance and advice has
been a great source of inspiration for us throughout the thesis work. We are
grateful to the The University of Faisalabad for such a wonderful education
system, who welcomed us to complete our BS Electrical Engineering. Finally,
all blessings upon our beloved parents and families whose prayers and moral
support always motivated us to complete our studies.
v
Table of Contents
1 Introduction 1
1.1 Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Problem statement . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Methodology . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Breakdown of Report . . . . . . . . . . . . . . . . . . . . . . . 2
2 Automation 3
2.1 Home Automation . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1.1 History of Home Automation . . . . . . . . . . . . . . 3
2.1.2 Modern Smart Homes . . . . . . . . . . . . . . . . . . 3
2.1.3 Smart Controllers . . . . . . . . . . . . . . . . . . . . . 3
2.1.4 Smart Devices . . . . . . . . . . . . . . . . . . . . . . . 3
2.1.5 Elements of Smart Home Automation . . . . . . . . . . 3
2.2 Application of Smart Home Automation . . . . . . . . . . . . 3
2.3 Automation Office . . . . . . . . . . . . . . . . . . . . . . . . 3
2.4 Building Automation . . . . . . . . . . . . . . . . . . . . . . . 3
2.5 Automatic Power . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 Hardware 4
3.1 ESP8266 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2 Electromagnetic Relay . . . . . . . . . . . . . . . . . . . . . . 4
3.3 ZMCT103C Current Sensor . . . . . . . . . . . . . . . . . . . 4
3.4 Optocoupler . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.5 74HC4051 Multiplexer . . . . . . . . . . . . . . . . . . . . . . 4
3.6 Fuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.7 PCB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.8 Sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4 Software 5
4.1 Arduino IDE . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4.2 Arduino Sketches . . . . . . . . . . . . . . . . . . . . . . . . . 5
vi
TABLE OF CONTENTS vii
5 Cloud Platforms 7
5.1 Google Firebase . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5.2 ThingSpeak Server . . . . . . . . . . . . . . . . . . . . . . . . 7
6 User Interface 8
6.1 Android Application . . . . . . . . . . . . . . . . . . . . . . . 8
6.2 Web App . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
7 Hardware Enclosure 9
7.1 3D Modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
7.2 3D Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
viii
List of Tables
ix
Chapter 1
Introduction
Elixir provides a simple and comprehensive solution for saving energy, just by
swapping traditional switches by intelligent smart switches. It is based on a
low-cost wireless controlled IoT based intelligent smart switch for controlling
and monitoring the home appliances. The user can control appliances using
mobile application and web browser. The intelligent smart switch sends the
sensor data to the cloud platform which stores the data for future use.
Elixir provides a simple and comprehensive solution for saving energy,
just by swapping traditional switches by intelligent smart switches. It is
based on a low-cost wireless controlled IoT based intelligent smart switch
for controlling and monitoring the home appliances. The user can control
appliances using mobile application and web browser. The intelligent smart
switch sends the sensor data to the cloud platform which stores the data for
future use.
1.1 Objective
The aim of the project is to eliminate energy wastage by monitoring energy
usage of each appliance in the home and provide an energy proficient plan
to the user. It will be able to predict the behavior of appliances operating in
the location and provide a competent profile of the user. Our intention is to
use modern technologies and advance knowledge to capitalize on the quality
measures.
1
CHAPTER 1. INTRODUCTION 2
1.3 Methodology
Elixir is a low-cost wireless controlled IoT based intelligent smart switch. For
controlling and monitoring the home appliances. User can control appliances
using Android application and Web page. Elixir sends the sensor data to
the cloud platform. Machine Learning algorithms use to get effective energy
plan.
Automation
3
Chapter 3
Hardware
3.1 ESP8266
3.2 Electromagnetic Relay
3.3 ZMCT103C Current Sensor
3.4 Optocoupler
3.5 74HC4051 Multiplexer
3.6 Fuse
3.7 PCB
3.8 Sensors
4
Chapter 4
Software
5
CHAPTER 4. SOFTWARE 6
Cloud Platforms
7
Chapter 6
User Interface
8
Chapter 7
Hardware Enclosure
7.1 3D Modeling
7.2 3D Printing
9
Chapter 8
10
Bibliography
11