Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 50

ANDROID AI DIET CONSULTANT

USING WEB DEVELOPMENT


A MINI PROJECT REPORT

Submitted by
KAVYADHARSHINI.A 812020205026

SANTHIYA.R 812020205041

SUBASRI.V 812020205048

in partial fulfillment for the


award of the degree of

BACHELOR OF TECHNOLOGY

in
INFORMATION TECHNOLOGY

M.A.M COLLEGE OF ENGINEERING AND TECHNOLOGY


ANNA UNIVERSITY , CHENNAI-600 025
MAY 2023 ANNA UNIVERSITY
BONAFIDE CERTIFICATE

Certified that this project report “ANDROID AI DIET CONSULTANT


USING WEB DEVELOPMENT” is the bonafide work of
Kavyadharshini.A(812020205026), Santhiya.R(812020205041),
Subasri.V (812020205048) who carried out the project work under my
supervision.

SIGNATURE SIGNATURE

Dr.K.Geetha,M.E.,Ph.D., Ms.M.MATHUMITHA
Head of the Department Supervisor
Department of IT Department of IT
M.A.M. College of Engineering M.A.M College of Engineering
and Technology and Technology
Tiruchirappalli – 621 105. Tiruchirappalli – 621 105.

Submitted for B.E. degree viva-voce held at M.A.M. College of


Engineering and Technology on …………………

INTERNAL EXAMINER EXTERNAL EXAMINER


ACKNOWLEDGEMENT

With warm hearts and immense pleasure, I thank the almighty for his
grace and blessing bestowed on me, which drove me to the successful
completion of this project. I take this opportunity to express my sincere
thanks to the respected Director Dr.M.A.Maluk Mohammed, M.E.,
Ph.D., and Secretary & Correspondent Mrs. Fathima Bathool Maluk,
M.B.A., who is guiding light for all activities in our college.

I express my sincere and humble tone of thanks to our Principal Dr.


X. Susan Christina, M.E., Ph.D., for providing me with all facilities
needed for the successful completion of my work.

I would like to thank our Head of the Department Dr. K. Geetha, M.E.,
Ph.D., for her cooperation, advice and suggestions at every stage of my
project work.

I would also like to express with gratitude and my sincere thanks to my


guide Ms.M.MATHUMITHA, ASSISTANT PROFESSOR Department of
Information Technology for motivating me throughout the project work.

I am very proud to extend my sincere thanks and gratitude to our Project


coordinator Ms. P. Suganya (Assistant Professor), Department of
Information Technology, M.A.M College of Engineering and Technology,
for her excellent guidance, advice and encouragement which boosted up
our energy throughout the project Development.

I also thank all the teaching faculty and non-teaching faculty of the
Department of Computer Science and Engineering, my parents and all my
friends for their help and support to complete this project successfully.
ABSTRACT

In today's lifestyle, people are moving towards achieving a fit and healthy body.
This shift has changed the way of living in almost every household. Now everyone
craves for healthy and nutritious food to be placed on their plates. Hence, healthy
eating and nutritious food have become an essential part of everyone’s lifestyle to
achieve a balanced and healthy life in such busy and hectic environment. Hence,
to make their fitness path a bit smoother and to enhance their experience, I have
created an Android [Personal Dietician] application to provide a broader approach
in providing a better living through nutritious and fit diet plan to the users. In this
project, the Personal Dietitian android application will use food ontology APIs,
which is a part of knowledge representation and semantic web technology to
produce diet plans for the users. Additionally, the app will provide an activity
tracker which will track the steps walk, climb, and run by the user. The activity
tracker is built using an API which uses accelerometer and gyroscope sensors built
into the Android device. v The application will start by signing up or logging the
user with the Personal Dietitian application. The signup and login screen which
will be useful to the user to manage their activities in the application. The
application provides four main user functionalities, namely, the activity tracker,
meal planner, reports, and health blog. (1) The Activity Tracker is used for tracking
the user steps including the walking, running and stairs time along with the total
step taken in a day. (2) The Meal planner activity is used to get the suggested
meal plans with the help of the user's general information (Height, Weight,
Gender, Age, and Body fat) and the food ontology database APIs. This
functionality also allows the user to add foods manually using text search and
voice search. (3) The third feature, Progress Report activity is used to present the
weekly and monthly reports of the activity tracker and nutrients consumed by the
user in the form of a line and pie chart. Moreover, the user can also see his/her
weekly progress for the activity tracker and meal planner by just clicking the icons
on the activities in the form of bar chart as well as a daily report in a list format.
(4) The last activity is the health blog which can be used to see different blogs
available online related to the health and life improvement.
TABLE OF CONTENTS

CHAPTE TI PAG
R NO. T E
L NO.
E

ABSTRACT Iv

LIST OF FIGURES Viii

LIST OF ABBREVIATION Ix

1 INTRODUCTION 10

1.1 OVERVIEW 10

1.2 OBJECTIVE 11

2 LITERATURE SURVEY 12

2.1 A REVIEW ON HOME AUTOMATION USING 12


AUGMENTED REALITY

2.2 HOME AUTOMATION USING AUGMENTED REALITY.


18

2.3 BASED ON IoT HOME AUTOMATION.


23

2.4 HOME AUTOMATION USING IoT . 28


2.5 BLUETOOTH BASED HOME AUTOMATION USING
ARDUINO.
33

3 SYSTEM ANALYSIS 38

3.1 EXISTING SYSTEM 38

3.1.1 Disadvantages 39

3.2 PROPOSED SYSTEM 39

3.2.1 Advantages 40

4 SYSTEM REQUIREMENTS 41

4.1 HARDWARE REQUIREMENTS 41

4.2 SOFTWARE REQUIREMENTS 41

5 SYSTEM DESIGN 42

5.1 SYSTEM ARCHITECTURE 42

42

6 MODULES 44

44

46

47
48
49

50

51

7 CONCLUSION AND FUTURE ENHANCMENT 53

7.1 CONCLUSION 53

7.2 FUTURE ENHANCMENT 53

APPENDICES 54

A.SOURCE CODE 54

B.SCREENSHOTS 59

REFERENCES 63

LIST OF FIGURES

FIGURE TITLE PAGE


NO. NO.
5.1 Block Diagram

7.1 Lights off when there is no


human

7.2 Lights on when it detects


human
LIST OF ABBREVIATION

GUI Graphical User Interface


CHAPTER 1

INTRODUCTION

1.1 OVERVIEW

The 3D objects are created in blender andunity and added features like
realistic to the 3D objects. Home of 21'st century will become more self-
controlled and automated. Home automation has become mor beneficial
because of it's safety and security. Now a days ,home automation becomes
more advance and precise to control all appliances . Home automation systems
become energy efficient and highly approachable smart home techniques. It
involves basic features to maintain user satisfaction and comfort. Modern
society wants a safe, economic, comfortable and convenient life ideal for
every family.
1.2 OBJECTIVE
The main problem that home automation faces these days is High cost,

inefficiency, not so user friendly interface and inflexibility. In our paper we

are trying to build a home automation system that is able to control and

automate most of our electrical appliances through easy and manageable


web interface. The system has great flexibility because of the wifi

technology reduces the cost automatically by decreasing the hardware and

wired communication.
CHAPTER 2

LITERATURE SURVEY

2.1 A REVIEW ON HOME AUTOMATION USING


AUGMENTED REALITY

Author-Pranav Bedekar1, Snehal Nargundi2 2020

ABSTRACT

Augmented reality usage in the field of home automation is a relatively


new idea and there has been a growing interest regarding its implementation.
The usage of AR gives us significant advantage over other models since it can
help us to control devices or machines in a real time environment and helps
anyone understand how to operate them. Using Augmented reality ,the users
are able to control the appliances more effectively and easily. Augmented
reality gives the users a virtual experience which help them identify the
different switches through their mobile devices.

INTRODUCTION
With the advent of technology, there is a wide increase in the use of smart
phones, laptops and people are getting more and more dependenton these
devices for doing their work. People can control and handle different
appliances through their devices using different techniques. Augmented
reality(AR) is one of the recent technology evolved for automation of the
electrical appliances. Augmented Reality brings virtual objects into the real
world where we live. Augmented reality is used in many areas such as
navigation in real-world environments, advertising, military, emergency
services, art, games, architecture, sightseeing, education,
entertainment,commerce, information visualization, translation and so on.
What has really brought Augmented Reality to life in the recent years is that
AR applications are now available on many smart devices and are easy to
use.In principle, AR can be implemented on any computer and handheld device
that usevideo-see through technology that allows to “see through” object the
display to view both the real world and superimposed computer-generated
objects. With advancement of Automation technology, life is getting simpler
and easier in all aspects. In today’s world Automatic systems are being
preferred over manual system. Internet has played a major role in the field of
automation. Internet ofthings is a growing network for controlling the home
appliances such as lights, fans ,Television, etc. Home Automation system using
IoT is a system that uses computers or mobile devices to control basic home
functions and features automatically through internet from anywhere around
the world. An automated home is sometimes called a smart home. Many a
times people forget to switch off their electrical appliances when they leave
their home. But due to the use of smart phones to control the home appliances
this problem has been reduced.

METHODOLOGY
In the proposed system Augmented Reality (AR) is used to allow a virtual
object to pop out on the mobile screen when the user points his camera towards
the object or a switch. For using AR, Wikitude SDK is required. Wikitude
SDK is a software library and framework for mobile apps used to create
augmented reality experiences. Using an augmented reality application, a
virtual image is mounted over the live camera image of the real world.
Augmented reality enhances the experience of the user .When the user points
the camera towards a switch ,a 3D image will pop up on the screen and the user
can turn on or off the switch using the AR buttons present on the screen. AR
uses the concept of image tracking,processing and communicating with
backend server (ARCHServ) to control the applications. Arch Server is a low
cost and efficient linux based server .It is used for handling all the appliances at
the backend. Voice control technique is also implemented which uses android
speech recognition so that the users can control the appliances through the
voice commands.For voice control user only has to select the option of the
appliance and control status through voice commands. When a user speaks a
command the voice is captured through the microphone.Once the voice is
captured, the input voice is compared with the data stored earlier before testing.
The output of the comparison is the voice matched with any of the command
trained and certain signal is produced as the input for controlling system. A
remote web control feature is used to enhance the operation of the appliances
over the mobile devices. Control data is sent to ARCHServ to activate the
General Purpose Input Output (GPIO) pins which will then trigger the
household DC or AC appliances (E.g. On/Off). The status of the appliances can
be checked through web browser or through mobile web interface and control
them using internet. An automated voice command will help the users to
navigate to different options such as (option 1 for augmentedreality, option 2
for voice control and option 3 for Remote web control.). The user only has to
select the option through its voice for that activity to start.

ADVANTAGES

• Raspberry pie is used for the backend processing which provides an


interface for the electrical appliances and the mobile devices.
• Raspberry pie is a small size fully functional computer capable of
running a Linux based operating system.
DISADVANTAGES
• One of the main drawbacks of this system is the cost.

• Smart devices and systems can be expensive, and the cost can add up
quickly if you want to fully automate your home.

2.2 HOME AUTOMATION USING AUGMENTED REALITY.

Author-Avni Sharma, Rinkesh Patel 2021

ABSTRACT

As the human life is heading towards busy schedule it becomes necessary


to automate our home appliances. Human error is something that cannot be
completely erased. With the busy schedule in hand there is defiantly a possibility
of missing something that may be trivial to us but can result into a catastrophe.
For these reasons home automation can increase efficiency, security and
reliability. With the advent of technology the use of smart devices, laptops, is
increasing widely also people are getting more conversant with these
technologically advancing gadgets . AR also plays a major role in developing
the concept of smart city. We can control and handle different types of
appliances using various applications. One of them is AR which has recently
evolved for the automation of various electrical appliances. Augmented reality
(AR) is used to allow virtual pop ups when the camera of the cell phone is
pointed towards the element ( lamps ,Air conditioners etc) the pop up enables us
to turn on or off the supply by simple touch selection thus improving ways of
automation .AR uses the concept of image tracking, processing and
communicating to control the applications. The remote web control feature is
used to enhance the operation of appliances over mobile devices. The control
data is sent to thGeneral Purpose Input Output Pins of microcontroller (GPIO)
which triggers the household DC and AC appliances. The status can then be
analyzed through the web browser or through mobile web interface and control
them using internet. Voice control technique can also be implemented by using
speech recognition so that the user can provide the controlling commands via
voice. AR automation along with conventional system of remote controlling
from anywhere will prove highly beneficial.

INTRODUCTION

With the day to day technological advancement our expectation for higher
living standards is increasing significantly. From higher living standards we
mean usage of smart phones, smart watch, smart glasses smart TVs, highly
upgraded laptops etc that ease human life. In this technologically developing
era automation is the need of the hour. Home automation aims towards
automating human lives. Controlling home appliances with our smart phones,
smart glasses and smart watches without the actual usage of conventional
switches is home automation. An automated home in simple terms is called a
Smart home. Automation increases our work efficiency and comfort. These
days most of us are found clinging to our smart phones and smart devices.
Hencewiththe help of this smart device and after analyzing the smart device
market we can actually automate our personal day to day tasks by personifying
our smart phones. The inclusion of AR interface in automation is a major
breakthrough as it has proved to be a prominent information visualization and
interaction medium. A typical AR interface based implementation scheme
would rely on a high-end server communicating with a mobile AR client. The
client has to provide a large database containing the information of the
potential target objects in the environment. Thus in this paper we propose a
model wherein Augmented reality proves to be a user friendly interface for
home automation.

METHODOLOGY

AR allows a virtual pop up whenever the user points his/her camera


towards the object to be controlled or the switch .Forusing AR, a software
development kit (SDK) will be required. SDK is a complementary GUI to
(Xilinx Platform Studio) and provides a development to software application
projects.SDK provides compilation environment and project management. It
provides Application build configuration and automatic file generation. Thus
we can build our very own AR app which enables virtual image mounted over
real time camera image which allows the user to choose ON/OFF option when
the camera of the smart device is pointed towards the object. AR uses the
concept of image tracking, processing and communicating to control the
applications.Raspberry Pi provides interface between the electrical equipments
and mobile devices, it plays a crucial role as a backend processing
unit .Raspberry pi is connected to the relays that will operate our electrical
equipments, also it has an IR transmitter attached that has the same frequency
as the operating remote for that particular electrical device and can be used for
the increment and decrement of a particular function (controlling of
temperature in Air conditioners). Raspberry Pi also acts as the web host,
MySQL and GPIO server. Raspberry Pi is a small computer capable of running
Linux based operating system and can be linked with the external world using
a software called WebIOPi.[3] After installing WebIOPi and running the
proper source code it generates a Web link that has to be fed to our smart
device which finally ends our linking process. Now it is the webIOPi that will
control the GPIO pins of our Raspberry Pi.Relay is used to switch power the
power socket and is controlled via Raspberry pi. The appliances connected to
the socket can be controlled from the user interface and the status can also be
monitored.

ADVANTAGES

• This system increases safety and security.


• This method offers data and control. For example, you can get notifications
whenever someone manually adjusts the thermostat.
DISADVANTAGES
• It's difficult to link systems from different vendors. Many manufacturers
develop disctinct systems, making it difficult to integrate new devices with
your existing ones made by a different brand.
• The systems can be costly.

2.3 .BASED ON IoT HOME AUTOMATION.

Author name- Deep Vakharia


ABSTRACT
Home Automation industry is growing rapidly, this is fulfilled by the need
to provide supporting systems for the elderly and the disabled, especially those
who live alone. Coupled with this, the world population is confirmed to be
getting older. Home automation systems must comply with the household
standards and convenience of usage.Home automation is one of the major
growing industries that can change the way people live. Some of these home
automation systems target those seeking luxury and sophisticated home
automation platforms; others target those with special needs like the elderly
and the disabled. Typical wireless home automation system allows one to
control household appliances from a centralized control unit which is wireless.
These appliances usually have to be specially designed to be compatible with
each other and with the control unit for most commercially available home
automation systems. The developed system can be integrated as a single
portable unit and allows one to wirelessly control lights, fans, air conditioners,
television sets, security cameras, electronic doors, computer systems,
audio/visual equipment’s etc... and turn ON or OFF any appliance that is
plugged into a wall outlet, get the status of different sensors and take decision
accordingly. The system is portable and constructed in a way that is easy to
install, configure, run, andmaintain. The perfect user interface still does not
exist at present and to build a good interface requires knowledge of
bothsociology and technology fields.
INTRODUCTION
Home Automation industry is growing rapidly, this is fulfilled by the need
to provide supporting systems for the elderly and the disabled, especially those
who live alone. Coupled with this, the world population is confirmed to be
getting older. Home automation systems must comply with the household
standards and convenience of usage. Home automation is one of the major
growing industries that can change the way people live. Some of these home
automation systems target those seeking luxury andsophisticated home
automation platforms; others target those with special needs like the elderly
and the disabled. Typical wireless home automation system allows one to
control household appliances from a centralized control unit which is wireless.
These appliances usually have to be specially designed to be compatible with
each other and with the control unit for most commercially available home
automation systems. The developed system can be integrated as a single
portable unit and allows one to wirelessly control lights, fans, air conditioners,
television sets, security cameras, electronic doors, computer systems,
audio/visual equipment’s etc. and turn ON or OFF any appliance that is
plugged into a wall outlet, get the status of different sensors and take decision
accordingly. The system is portable and constructed in a way that is easy to
install, configure, run, andmaintain. The perfect user interface still does not
exist at present and to build a good interface requires knowledge of
bothsociology and technology fields. Arduino Uno is a microcontroller board
developed by Arduino CC. Arduin UNO is a microcontroller board having a
number of input and output pins. It is not only a processing node in Wireless
Sensor Networks(WSN) but also acts as a centralized controller in a Wireless
Sensor Network(WSN). Further integrating the Home AUtomation
System(HAS) to the voice assistant makes it controlled using voice commands.
The light in the system will be triggered based on the motion sensor which will
indeed trigger the light sensor to check the ambient light and turn the light on if
the sensor senses the reading below the threshold value.
METHODOLOGY
Arduino Uno is a microcontroller board based on the
ATmega328P(datasheet). It has 14 digital input/output pins (of which 6 can be
used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator
(CSTCE16M0V53-R0), a USB connection, a power jack, an ICSP header and a
reset button. A relay is an electrically operated switch. It consists of a set of
input terminals for a single or multiple control signals,and a set of operating
contact terminals. The switch may have any number of contacts in multiple
contact forms, such as make contacts, break contacts, or combinations
thereof.Visible LEDs are used in many electronic devices as indicator lamps, in
automobiles as rear-window and brake lights, and on billboards and signs as
alphanumeric displays or even full-colour posters. NodeMCU is an open
source firmware for which open source prototyping board designs are
available. The name "NodeMCU" combines "node" and "MCU" (micro-
controller unit). The term "NodeMCU" strictly speaking refers to the firmware
rather than the associated development kits. Home Automation using Internet
Of Things(IOT) refers to the automation wherein it allows the users to control
their devices using the Internet. It requires the user to connect his/her
appliances, which he wishes to be remotely controlled, to the Arduino circuit.
It also requires the user to connect the Arduino to the NodeMCU Wi-Fi module
in order to allow the devices to becontrolled from anywhere in the world using
the Internet. The Wi-Fi module is connected to the Firebase real-time database
using Database secrets in order to receive the triggering signals. On the front
end, we developed an Android app to pass signals to the Arduino circuit. We
used a real-time database as a backbone of the project to send signals over the
Internet. The Android app is linked to the database using the Firebase API
readily available.
ADVANTAGES

• Easy to use.

• Saves unnecessary power consumption.

• Has good processing power and can handle multiple functions at the
same time. Uses reliable wireless connection.

DISADVANTAGES
• Needs large capital expenditure.

• Bringing automation into your plant requires a major capital investment.

2.4 HOME AUTOMATION USING IoT .

Authors- McGraw-Hill/TAB Electronics. 1999

ABSTRACT

It specifically focuses on the development of an IOT based home


automation system that is able to control various components via internet or be
automatically programmed to operate from ambient conditions. In this project,
we design the development of a firmware for smart control which can
successfully be automated minimizing human interaction to preserve the
integrity within whole electrical devices in the home. We used Node MCU, a
popular open source IOT platform, to execute the process of automation.
Different components of the system will use different transmission mode that
will be implemented to communicate the control of the devices by the user
through Node MCU to the actual appliance. The main control system
implements wireless technology to provide remote access from smart phone.
We are using a cloud server-based communication that would add to the
practicality of the project by enabling unrestricted access of the appliances to
the user irrespective of the distance factor. We provided a data transmission
network to create a stronger automation. The system intended to control
electrical appliances and devices in house with relatively low cost design, user-
friendly interface and ease of installation. The status of the appliance would be
available, along with the control on an android platform. This system is
designed to assist and provide support in order to 1fulfil the needs of elderly
and disabled in home. Also, the smart home concept in the system improves
the standard living at home.

INTRODUCTION

Internet of Things (IOT) is a concept where each device is assign to an IP


address and through that IP address anyone makes that device identifiable on
internet. The mechanical and digital machines are provided with unique
identifiers (UIDs) and the ability to transfer data over a network without
requiring human-to-human or human-to-computer interaction. Basically, it
started as the “Internet of Computers.” Research studies have forecast an
explosive growth in the number of “things” or devices that will be connected to
the Internet. The resulting network is called the “Internet of Things” (IoT). The
recent developments in technology which permit the use of wireless controlling
environments like, Bluetooth and Wi-Fi that have enabled different devices to
have capabilities of connecting with each other. Using a WIFI shield to act as a
Micro web server for the Arduino which eliminates the need for wired
connections between the Arduino board and computer which reduces cost and
enables it to work as a standalone device. The Wi-Fi shield needs connection to
the internet from a wireless router or wireless hotspot and this would act as the
gateway for the Arduino to communicate with the internet. With this in mind,
an internet based home automation system for remote control and observing
the status of home appliances is designed. Due to the advancement of wireless
technology, there are several different type of connections are introduced such
as GSM, WIFI, and BT. Each of the connection has their own unique
specifications and applications. Among the four popular wireless connections
that often implemented in HAS project, WIFI is being chosen with its suitable
capability. The capabilities of WIFI are more than enough to be implemented
in the design. Also, most of the current laptop/notebook or Smartphone come

with built-in WIFI adapter. It will indirectly reduce the cost of this system.

METHODOLOGY

The proposed model provides a method for automation with sensor based
learning. The system uses temperature sensor for development but other
sensors can also be used as per requirement. These smart home devices with
sensors can configure themselves autonomously and can operate without
human intervention. This work minimizes encryption decryption and focuses
on authentication and automation of smart home devices with learning. The
system bypasses local gateway mentioned in existing system to provide better
security for smart home devices and sensor data and save computation
overhead. The real time broker cloud is directly connected with smart home
and manages all incoming and outgoing request between users and devices.
The main purpose to use real time broker cloud is save time of cryptographic
operations.The prototype uses Arduino MK1000, known as Genuino MK1000.
The NLP in this project gives the user the freedom to interact with the home
appliances with his/her own voice and normal language rather than
complicated computer commands. The appliances are connected to the mobile
device through an Arduino Board that establishes the concept of Internet of
Things. The Arduino Boards are interfaced with the appliances and
programmed in such a way that they respond to mobile inputs.

ADVANTAGES
• The advantage of IOT is monitoring. Knowing the exact quantity of
supplies or the air quality in your home, can further provide more
information that could not have previously been collected easily.
• The biggest advantage of IOT is saving money. If the price of the
tagging and monitoring equipment is less than the amount of money
saved, then the Internet of Things will be very widely adopted.
DISADVANTAGES
• There is no international standard of compatibility for the tagging
and monitoring equipment.
• With all of this IOT data being transmitted, the risk of losing
privacy increases.
2.5 BLUETOOTH BASED HOME AUTOMATION USING
ARDUINO
Author-M.Muthukumaran1,M.Kannusamy2,
M.Kanagaraj3,A.Guruveswaran4

ABSTRACT

Technology is a never ending process. To be able to design a product


using the current technology that will be beneficial to the lives of others is a
huge contribution to the community. This paper presents the design and
implementation of a low cost but yet flexible and secure cell phone based home
automation system. The design is based on a standalone Arduino BT board and
the home appliances are connected to the input/ output ports of this board via
relays. The communication between the cell phone and the Arduino BT board
is wireless. This system is designed to be low cost and scalable allowing
variety of devices to be controlled with minimum changes to its core. Password
protection is being used to only allow authorized users from accessing the
appliances at home.

INTRODUCTION

Home automation system is use of information technologies and


control system to reduce the human labor. The rapid growth of technologies
influence us to use smartphones to remotely control the home appliances. An
automated devices has ability to work with versatility, diligence and with
lowest error rate. The idea of home automation system is a significant issue for
Researchers and home appliances companies. Automation system not only
helps to decrease the human labor but it also saves time and energy. Early
home automation systems were used in labor saving machines but nowadays its
main objective is provide facilities to elderly and handicapped people to
perform their daily routine tasks and control the home appliances remotely. A
Bluetooth based wireless home automation system can be implement with a
low cost and it is easy to install in an existing home. A research work proved
that Bluetooth system are faster than wireless and GSM systems. Bluetooth
technology has ability to transmit data serially up to 3 Mbps within a physical
range of 10m to 100m depending on the type of Blue tooth device. The design
of proposed method is based on Arduino board, Bluetooth module, sensors and
smartphone application. Bluetooth module HC-05 is interfaced with Arduino
board and home appliances are connected with Arduino board via relay.
Smartphone application is used for serial communication between smartphone
and Bluetooth module which is further connected with Arduino board..
METHODOLOGY
The hardware part consists of three main hardware components smartphone,
Arduino board and Bluetooth module. Software part consist of Arduino
integrated development environment (IDE) and Bluetooth terminal smartphone
application which is used for wireless communication between smartphone and
Arduino board. Smartphone is used to communicate with Arduino board using
a smartphone application and Bluetooth technology. In this research work
Bluetooth module HC 05 and Arduino Uno are used for hardware
implementation. Arduino is a tool for making computers that can sense and
control more of the physical world than your desktop computer. It's an open-
source physical computing platform based on a simple microcontroller board,
and a development environment for writing software for the board. Arduino
can be used to develop interactive objects, taking inputs from a variety of
switches or sensors, and controlling a variety of lights, motors, and other
physical outputs. Arduino projects can be stand-alone, or they can
communicate with software running on your computer (e.g. Flash, Processing.)
The boards can be assembled by hand or purchased preassembled; the open
source IDE can be downloaded for free. The Arduino Uno is a microcontroller
board based on the ATmega328. It has 14 digital input/output pins (of which 6
can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a
USB connection, a power jack, an ICSP header, and a reset button. It contains
everything needed to support the microcontroller; simply connect it to a
computer with a USB cable or power it with a AC-to-DC adapter or battery to
get started.

ADVANTAGES
• This adds a protection from unauthorized users.

• This system can be used as a test bed for any appliances that requires
on-off switching applications without any internet connection.

DISADVANTAGES
• It has low bandwidth as compared to Wi-Fi.
• It allows only short range communication between devices.
CHAPTER 3

SYSTEM ANALYSIS

• 3.1 EXISTING SYSTEM

This system contains three hardware components smartphone, Arduino


board and Bluetooth module. Smartphone is used to communicate with Arduino
board using a smartphone application and Bluetooth technology. In this research
work Bluetooth module HC 05 and Arduino Uno are used for hardware
implementation.Bluetooth module HC-05 is used for wireless communication
between Arduino Uno and smartphone. HC-05 is a slave device and it can operates
at power 3.6 to 6 volts. It has 6 pins: State, RXD, TXD, GND, VCC and EN. For
serial communication connect TXD pin of Blue tooth module HC-06 with RX (pin
0) of Arduino Uno and RXD pin with TX (pin 1) of Arduino Uno. Connection
diagram of Adriano and Bluetooth (BT) module is illustrated.The working
principle of ultrasonic sensor is demonstrated. Ping is input ultrasonic waves which
are transmitted at the velocity of 340 mls and Echo is reflected output of sensor
which is used to determine the distance. The ultrasonic sensor HC- SR04
parameter specification with their limitations. In proposed work ultrasonic sensor
isused for the measurement of water level inside the water tank. It measure the
distance of water level from the top of water tank and gives its report on
smartphone application using Bluetooth technology.

3.1.1. DISADVANTAGE
• Replacing humans is dangerous May take time and learning
• Security concerns
• Vulnerable to attacks
• Most of the times range is restricted
• High dependency on sensor devices which makes the system vulnerable
if sensor fails

3.2 PROPOSED SYSTEM


The electronic devices turns on automatically when it sence human. The
human are detected using sensors and that signal is send to the controller. Then
check the power source ,the respective operation will hapened. They are
dependent on others which causes a lot of inconvenience to many people. With
the emergence of smart home devices and easy use of mobile devices people
can communicate and control the home appliances. But in many cases the
GUI(Graphical User Interface)of the mobile is difficult to use for the disabled
people. This system uses Augmented Reality (AR) technique for automation
which is getting increasingly popular for controlling of home appliances.Using
this technology it will greatly helpthe disabled and elderly people to control the
appliances easily. A mobile application along with ARCH Server will help the
users to control a switch by simply pointing their mobile camera to it from a
distance. Different virtual switches will appear when the camera is pointed to
different appliances, thus allowing the user to control different appliances
easily and conveniently. Instead of 2D buttons,3D switches will appear on the
screen which gives a familiar interface to the user. Voice Control technology
will also be used so that the users can control the appliances using voice
commands. A remote web browser interface will also be implemented which
will allow the users to control the appliances through Internet even if they are
not present at home.
3.2.1. ADVANTAGES
• This system doesn't requier human effort to switch on the
electronic devices.
• This system also proposes features such as voice control and
remote web control interface for controlling the appliances.
• This system will mainly help the disabled and elderly people to
control the appliances giving them a real world experience with
the help of Augmented reality.

• Cost wise it's too sufficient.

CHAPTER 4

SYSTEM REQUIREMENTS

4.1. HARDWARE REQUIREMENTS


Processor : Core i3 2.4GHz
System type : 32 bit/64 bit
RAM : 2GB

4.2 SOFTWARE REQUIEMENTS


Operating system : Windows 7/8/8.1/10
Programming language :C#
Blender
Unity

CHAPTER 5

SYSTEM DESIGN

5.1 SYSTEM ARCHITECTURE

Using an augmented reality application, a virtual image is


mounted over the live camera image of the real world. Augmented reality enhances
the experience of the user . When the user points the camera towards a switch ,a
3D image will pop up on the screen and the user can turn on or off the switch using
the AR buttons present on the screen. AR uses the concept of image tracking,
processing and communicating with backend server (ARCHServ) to control the
applications. Arch Server is a low cost and efficient linux based server . It is used
for handling all the appliances at the backend. Using an augmented reality
application, a virtual image is mounted over the live camera image of the real
world. Augmented reality enhances the experience of the user . When the user
points the camera towards a switch ,a 3D image will pop up on the screen and the
user can turn on or off the switch using the AR buttons present on the screen. AR
uses the concept of image tracking, processing and communicating with backend
server (ARCHServ) to control the applications. Arch Server is a low cost and
efficient linux based server . It is used for handling all the appliances at the
backend.
Fig 5.1 Block diagram
CHAPTER 7

CONCLUSION AND FUTURE


ENHANCEMENT

7.1 CONCLUSION

Augmented reality as suggested by the survey results proved to be the most


user friendly method for automation. The system is mainly designed for
specially challenged and elderly people. (User friendly interface). It is also
helpful for the less educated cluster of people as the interface is very user
friendly. The technique can be used in our day to day life to control and
monitor our electric power consumption as well as to avoid any hazardous
situation. Can be used in industrial maintenance and to aid patients in
hospitals. Considering all aspects an ideal system should be available to the
user from anywhere and in real time and our proposed model is the eligible
candidate for the same.Augmented reality when introduced in other smart
devices like google glass, smart watchetc will not only increasethe market
of these products but also evelop our standards. Currently In major cities
home automation is increasing rapidly but still this is less than 30% of the
total number.

7.2 FUTURE ENHANCEMENT


Augmented reality allows people to visually perceive a thing at
a position without it standing there in actuality. That's the power that
Augmented Reality (AR) holds. Thus, AR allows people to put 3D
models of furnishings in a live environment to experience what the
bedroom will seem like furnished.Future scope for the home automation
systems involves making homes even smarter. Homes can be interfaced
with sensors including motion sensors, light sensors and temperature
sensors and provide automated toggling of devices based on conditions.
APPENDICES

• SOURCE CODE
{
"dependencies": {
"com.unity.collab-proxy": "1.17.6",
"com.unity.feature.development": "1.0.1",
"com.unity.ide.rider": "3.0.15",
"com.unity.ide.visualstudio": "2.0.16",
"com.unity.ide.vscode": "1.2.5",
"com.unity.test-framework": "1.1.31",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.6.4",
"com.unity.ugui": "1.0.0",
"com.unity.visualscripting": "1.7.8",
"com.unity.xr.management": "4.2.1",
"com.unity.xr.oculus": "3.2.1",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.cloth": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0",
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.physics2d": "1.0.0",
"com.unity.modules.screencapture": "1.0.0",
"com.unity.modules.terrain": "1.0.0",
"com.unity.modules.terrainphysics": "1.0.0",
"com.unity.modules.tilemap": "1.0.0",
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.modules.umbra": "1.0.0",
"com.unity.modules.unityanalytics": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
"com.unity.modules.unitywebrequestaudio": "1.0.0",
"com.unity.modules.unitywebrequesttexture": "1.0.0",
"com.unity.modules.unitywebrequestwww": "1.0.0",
"com.unity.modules.vehicles": "1.0.0",
"com.unity.modules.video": "1.0.0",
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0"
}
}
{
"dependencies": {
"com.unity.collab-proxy": {
"version": "1.17.6",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.services.core": "1.0.1"
},
"url": "https://packages.unity.com"
},
"com.unity.editorcoroutines": {
"version": "1.0.0",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.ext.nunit": {
"version": "1.0.6",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.feature.development": {
"version": "1.0.1",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.ide.visualstudio": "2.0.16",
"com.unity.ide.rider": "3.0.15",
"com.unity.ide.vscode": "1.2.5",
"com.unity.editorcoroutines": "1.0.0",
"com.unity.performance.profile-analyzer": "1.1.1",
"com.unity.test-framework": "1.1.31",
"com.unity.testtools.codecoverage": "1.0.1"
}
},
"com.unity.ide.rider": {
"version": "3.0.15",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.ext.nunit": "1.0.6"
},
"url": "https://packages.unity.com"
},
"com.unity.ide.visualstudio": {
"version": "2.0.16",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.test-framework": "1.1.9"
},
"url": "https://packages.unity.com"
},
"com.unity.ide.vscode": {
"version": "1.2.5",
"depth": 0,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.nuget.newtonsoft-json": {
"version": "3.0.2",
"depth": 2,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.performance.profile-analyzer": {
"version": "1.1.1",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.services.core": {
"version": "1.5.2",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.nuget.newtonsoft-json": "3.0.2",
"com.unity.modules.androidjni": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.settings-manager": {
"version": "1.0.3",
"depth": 2,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.subsystemregistration": {
"version": "1.1.0",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.modules.subsystems": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.test-framework": {
"version": "1.1.31",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.ext.nunit": "1.0.6",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.testtools.codecoverage": {
"version": "1.0.1",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.test-framework": "1.0.16",
"com.unity.settings-manager": "1.0.1"
},
"url": "https://packages.unity.com"
},
"com.unity.textmeshpro": {
"version": "3.0.6",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.ugui": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.timeline": {
"version": "1.6.4",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.modules.director": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.ugui": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0"
}
},
"com.unity.visualscripting": {
"version": "1.7.8",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.ugui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.xr.legacyinputhelpers": {
"version": "2.1.10",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.xr": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.xr.management": {
"version": "4.2.1",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.modules.subsystems": "1.0.0",
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.xr": "1.0.0",
"com.unity.xr.legacyinputhelpers": "2.1.7",
"com.unity.subsystemregistration": "1.0.6"
},
"url": "https://packages.unity.com"
},
"com.unity.xr.oculus": {
"version": "3.2.1",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.xr.management": "4.2.0"
},
"url": "https://packages.unity.com"
},
"com.unity.modules.ai": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.androidjni": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.animation": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.assetbundle": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.audio": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.cloth": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.physics": "1.0.0"
}
},
"com.unity.modules.director": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.animation": "1.0.0"
}
},
"com.unity.modules.imageconversion": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.imgui": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.jsonserialize": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.particlesystem": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.physics": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.physics2d": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.screencapture": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.imageconversion": "1.0.0"
}
},
"com.unity.modules.subsystems": {
"version": "1.0.0",
"depth": 1,
"source": "builtin",
"dependencies": {
"com.unity.modules.jsonserialize": "1.0.0"
}
},
"com.unity.modules.terrain": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.terrainphysics": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.terrain": "1.0.0"
}
},
"com.unity.modules.tilemap": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.physics2d": "1.0.0"
}
},
"com.unity.modules.ui": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.uielements": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.uielementsnative": "1.0.0"
}
},
"com.unity.modules.uielementsnative": {
"version": "1.0.0",
"depth": 1,
"source": "builtin",
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
}
},
"com.unity.modules.umbra": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.unityanalytics": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
}
},
"com.unity.modules.unitywebrequest": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.unitywebrequestassetbundle": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0"
}
},
"com.unity.modules.unitywebrequestaudio": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.audio": "1.0.0"
}
},
"com.unity.modules.unitywebrequesttexture": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.imageconversion": "1.0.0"
}
},
"com.unity.modules.unitywebrequestwww": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
"com.unity.modules.unitywebrequestaudio": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.imageconversion": "1.0.0"
}
},
"com.unity.modules.vehicles": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.physics": "1.0.0"
}
},
"com.unity.modules.video": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0"
}
},
"com.unity.modules.vr": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.xr": "1.0.0"
}
},
"com.unity.modules.wind": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.xr": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.subsystems": "1.0.0"
}
}
}
}

A SCREENSHOTS
REFERENCES
• Evil Genius, McGraw-Hill/TAB Electronics. "Raspberry Pi Projects for the
Evil Genius", 1'1 Edition, 2014.
• 2014, Autodesk, Inc, Web Control of Raspberry Pi GPIO, accessed on 22
Jan 2015. http://www.instructables.comlid/WebControl-of-Raspberry-Pi-
GPIOI
• Kimmo Karvinen & Tero Karvinen, Make: Getting Started with Sensors,
Measure the world with Electronics, Arduino and Raspberry Pi, 1 st Edition,
2014
• Michal Varchola, Milos Drutarovsky, “Zigbee based home automation
wireless sensor network” IEEE PERCOM Workshops, pp. 141-146, 2011.
• Leroy Zi Wei Tang, Kian Sin Ang, Mohamad Amirul Maricar Bin Mohamed
Yusoff, “Augmented Reality Control Home (ARCH) for Disabled and
Elderlies”2015 IEEE Tenth International Conference on Intelligent Sensors,
Sensor Networks and Information Processing (ISSNIP)
• K. Bromley, M. Perry, and G. Webb. "Trends in Smart Home
Systems,Connectivity and Services", www.nextwave.org.uk, 2003.
• 2015 Wikitude GmbH, Wikitude AR project, accessed 22 Jan 2015.
http://www.wikitude.com/app
• J. Dizdarevi´c, F. Carpio, A. Jukan, X. Masip-Bruin, A survey of commu-
nication protocols for internet of things and related challenges of fog and
cloud computing integration, ACM Computing Surveys (CSUR) 51 (6)
(2019) 1–29.
• J. Gubbi, R. Buyya, S. Marusic, M. Palaniswami, Internet of things (iot): A
vision, architectural elements, and future directions, Future generation
computer systems 29 (7) (2013) 1645–1660.
• P. Ferrara, A. K. Mandal, A. Cortesi, F. Spoto, Cross-programming lan-
guage taint analysis for the iot ecosystem, Electronic Communications ofthe
EASST 77 (2019).

You might also like