Uploaded by Aliharoonturk475

POC Final Report

advertisement
Voice Controlled Home Automation
COURSE TITLE: Principles of Communication Systems
SEMESTER: FALL 2020
SUPERVISED BY: Dr. Ghulam Mujtaba
CEP Report by:
NAME
Ali Haroon Turk
Yaseen Ayaz
Ammar Jadoon
Registration Number
CIIT/ FA18-BCE -001/ATD
CIIT/ FA18-BCE -020/ATD
CIIT/ FA18-BCE -034/ATD
Department of Electrical & Computer Engineering
COMSATS University Islamabad – Abbottabad Campus
DECLARATION
We Ali Haroon Turk (CIIT/ FA18-BCE-001/ATD), Yaseen Ayaz (CIIT/ FA18-BCE-020 /ATD), and
Ammar Jadoon (CIIT/ FA18-BCE-034 /ATD) hereby declare that we have produced the work presented
in this report, during the scheduled period of study. We also declare that we have not taken any material
from any source except referred to wherever due. If a violation of rules has occurred in this report, we
shall be liable to punishable action.
Date: 28/12/2020
Ali Haroon Turk
(CIIT/ FA18-BCE-001/ATD)
Yaseen Ayaz
(CIIT/ FA18-BCE-020/ATD)
Ammar Jadoon
(CIIT/ FA18-BCE-034/ATD)
1
ABSTRACT:
Home automation is one of the major growing industries that can and is
changing the way people live. Voice Controlled Wireless Home Automation
Based on Bluetooth or Wi-Fi is a project that is an integrated system with
mobile phone App to facilitate needy people, so that they can easily toggle
lights ON or OFF and open or close doors fully based on their phone through
voice command. Some of these home automation projects or products are
designed for those seeking luxury and elegant or stylish home automation
platforms but our project mainly bags needy people. The finished project or
product allows one to wirelessly turn ON or OFF lights, fans and electronic
doors etc. and perform action on any appliance that is plugged into a wall outlet
and is affiliated with voice commands, get the status of different sensors and
take decision accordingly. The system is portable and designed in such a way
that it is easy and trouble-free to install, understand, run, and maintain. This
product may also attract and suit to people that are away from their loved ones
for example students studying in another city, or employees supporting their
family from another city/country. Therefore, a voice-controlled home
automation system is designed, so that the users can perform certain tasks using
their smartphone (app) or by just the use of their voices.
2
TABLE OF CONTENTS
DECLARATION ................................................................. …………………………..1.
ABSTRACT ......................................................................... ……………………….…. 2.
1
Introduction………………………………………………………………... 4
2
Literature Survey.......................................................................................... 5
3
Proposed Methodology ................................................................................. 7
4
Simulation Results………………………………………………………….23
LIST OF FIGURES
Fig: 2.1 Single Block Diagram .......................................................................................... 7
Fig: 2.2 Flow chart............................................................................................................. 7
Fig: 2.3 Circuit Diagram ................................................................................................... 8
Fig: 3 simulation results .................................................................................................. 14
3
Introduction:
Wireless technologies are becoming more popular around the world and the consumers
appreciate this wireless lifestyle which gives them relive of the well-known “cable chaos”
that tends to grow under their desk. Now with the embedded Bluetooth technology,
digital devices form a network in which the appliances and devices can communicate
with each other. Today, home automation is one of the major applications of Bluetooth
technology. Operating over unlicensed, globally available frequency of 2.4GHz, it can
link digital devices within a range of 10m to 100m at the speed of up to 3Mbps
depending on the Bluetooth device class. With this capability of Bluetooth; we propose a
home automation system based on Bluetooth technology. There are few issues involved
when designing a home automation system. The system should be scalable so that new
devices can easily be integrated into it. It should provide a user- friendly interface on the
host side, so that the devices can be easily setup, monitored and controlled. This interface
should also provide some diagnostic services so that if there is any problem with the
system, it can be tracked down. Moreover, the overall system should be fast enough to
realize the true power of wireless technology. Finally, the system should be cost effective
in order to justify its application in home automation. We create a project consist of
Arduino-Uno and hc-05 Bluetooth module so we will control our home appliances with
our voice and then we will modulate that voice commands in jupyter notebook.
1.1
Objectives
• The objective of our project is to control our home appliances with our voice.
• To design a mobile application with will have option to record our voice
commands.
• To read that recorded voice commands on which we perform home automation.
• To do Frequency modulation, Amplitude Modulation, and Phase Modulation.
1.2 Features and Cost Estimate of our Project
Features:
1. Controlling home Appliances
4
2. Voice operative
3. Reliable
4. Easy to use
Cost Estimate:
S No#
1
2
3
4
5
6
Component
ARDUINO UNO
HC-02
RELAYS
TRANSISTOR
RESISTORS
TOTAL =
Price
Rs: 780
Rs: 400
Rs: 100
Rs: 50
Rs: 5
Rs: 1335
Literature Survey
1.1 Bluetooth based home automation system using cell phones: In Bluetooth
based home automation system the home appliances are connected to the
Arduino BT board at input output ports using relay. The program of Arduino
BT board is based on high level interactive C language of microcontrollers;
the connection is made via Bluetooth. The password protection is provided
so only authorized user is allowed to access the appliances. The Bluetooth
connection is established between Arduino BT board and phone for wireless
communication. In this system the python script is used and it can install on
any of the Symbian OS environment, it is portable. One circuit is designed
and implemented for receiving the feedback from the phone, which indicate
the status of the device.
Yadnya Adhiya, Shriya Ghuge, H.D Gadade “A survey on home automation system using IOT”
IJRITCC Volume_5_IssuesMarch_17_Volume_5_Issue_3
1.2 VOICE COMMANDS THROUGH SIRI While the apps are great, (and
essential to setting up and configuring the HomeKit environment) the real
welcome feature of HomeKit is the integration with iOS’s digital voice
assistant Siri. Due to heavy Siri integration, HomeKit system can now be
controlled with nothing more than the dedicated iOS device and user
voice. There are online guides on how to add the Philips Hue system with
5
the HomeKit. Siri’s control is pretty flexible, and if there is a
scene/room/zone and a matching task Siri can complete within the
HomeKit database, she is pretty good about following natural language
patterns to fulfill the commands. Commands such as “Turn off the office
lights”, “Set the house to 75 degrees”, or “set morning scene” are all easily
understood by Siri, if your product’s HomeKit hardware/app supports it.
There are various third party manufacturers developing for HomeKit
platform. Products such as coffee machines, colorful lights with brightness
control, smart thermostats, video door bells, automatic garage doors, and
alarm clocks are already available to common users for purchase.
Nest Thermostat: https://nest.com/thermostat/meetnest-thermostat R. Nicole, “Title of paper
with only first word capitalized,” J. Name Stand. Abbrev., in press.
1.3 . BLUETOOTH BASED WIRELESS HOME AUTOMATION SYSTEM USING
FPGA: B.Murali Krishna, V.Narasimha Nayak, K.Ravi Kishore Reddy,
B.Rakesh, P.Manoj Kumar and N.Sandhya [2] they presented a paper on
the Bluetooth based Wireless Home automation system using FPGA.They
primarily focused on Bluetooth technology. With the help of the Bluetooth
module (HC-05) and Android Phone, they control the home appliances,
which all connected to FPGA board. Thus, they have mentioned the
advantages of the home automation, which not only reduces the human
efforts, but it is also energy efficient and time saving. Moreover, they have
included that it is also help to the handicapped and old aged people to
control the home appliance without any difficulties. We need module so
that the range will be high as well as it can operate in different
frequencies. This drawback is overcome by our model.Wi-Fi based
networks work at 2.4, 3.6 and 5 GHz. In addition, it can extend up to range
100m.
B. Murali krishna, Narasimaha Nayak, Ravi kishore Reddy, B.Rakesh,P. Manoj kumar,
N.Sandhya, “Bluetooth based Wireless home automation system using FPGA” , Journal of
Theoretical and Applied Information Technology,31st July 2015,Vol-77 No.3.
6
2 Proposed Methodology
2.1 Block Diagram
2.2 FLOW CHART:
7
2.3 CIRCUIT DIAGRAM:
WORKING:
In this project we are going to control our home appliances through
mobile application using our voice through google assistance, first of all
we uploaded our program that we have written in c language to the
Arduino, the working of the program is that if the microcontroller
accepts the command of turn on or turn off in the form of a string then
it will produce the high signal on the selected pins. We have designed
the mobile application in MIT app Inventor the app is designed in java
language so it has a button through which we can record our voice and
then convert it to string form and through our mobile Bluetooth it will
then transfer it to HC-05 Bluetooth module which acts as a receiver.
Then this string command will be forwarded to Arduino microcontroller
8
through TDX pin and then Microcontroller will check that if the string is
present in the program it will turn the required pin high of the
microcontroller, otherwise it won’t do any action. On the other hand
we are 1st reading the audio commands that we are giving to Arduino
through mobile application and then we are doing amplitude, frequency
and PAM and PCM on it.
Mobile Application:
9
Code for mobile application:
2.4 Components:
HARDWARE:
1. ARDUINO UNO
2. HC-05 BLUETOOTH MODULE
3. RELAYS
SOFTWARE:
1. PROTUES SAMULATOR
2. ARDUINO UNO
3. JUPYTER NOTEBOOK
4. ANDROID APP
10
Arduino programing:
CODE:
String voice;
void setup() {
Serial.begin(9600);
pinMode(6, OUTPUT);
pinMode(5, OUTPUT);
}
void loop() {
while(Serial.available()){
delay(3);
char c = Serial.read();
voice+=c;}
if(voice.length() > 0) {
Serial.println (voice);
11
if(voice == "turn on light")
{digitalWrite(6,HIGH);}
else if (voice == "turn off light")
{digitalWrite(6,LOW);}
else if (voice == "turn on fan")
{digitalWrite(5,HIGH);}
else if (voice == "turn off fan")
{digitalWrite(5,LOW);}
else if (voice == "turn on all")
{digitalWrite(5,HIGH);}
{digitalWrite(5,HIGH);}
}
else if (voice == "turn off all")
{digitalWrite(5,LOW);}
{digitalWrite(5,LOW);}
voice = "";}
12
3 SIMULATION DIAGRAM
HARDWARE SIMULATION:
13
JUPYTER SIMULATION:
Amplitude Modulation:
14
15
Frequency Modulation
16
17
Pulse Amplitude Modulation
18
19
PCM
20
21
APPLICATIONS:
The application of this project is as follows:
1. This system is use in Smart houses petrol pumps etc.
2. The most important application of this system is to use in hospitals for patents.
3. The other application is in the big industries to control big machines.
4. To make house decorated and show it advance is the other application of this
project.
5. It can be the best option for house and office security.
CONCLUSION:
• Controlling the home utilities via voice is just an amazing step forward.
• There are many Android-based applications which have been developed to
initiate the working on this technology which also includes voice-controlled
22
wheelchair etc.
• Without a doubt, this technology will bring revolution in the people’s life if that is
implemented on the larger scale.
• We are looking on this technology with better focus to make the life even easier.
It is the century where everyone is focusing on bringing the comfort in the people
life.
• This is just one step leap towards the future goal, there are many other things
which are coming ahead with more challenges.
REFERENCE:
Yadnya Adhiya, Shriya Ghuge, H.D Gadade “A survey on home automation system using IOT”
IJRITCC Volume_5_IssuesMarch_17_Volume_5_Issue_3
https://www.slideshare.net/Aakashkumar276/project-report-on-home-automation-using-bybluetooth
Nest Thermostat: https://nest.com/thermostat/meetnest-thermostat R. Nicole, “Title of paper
with only first word capitalized,” J. Name Stand. Abbrev., in press.
https://www.researchgate.net/publication/231182479_Bluetooth_based_home_automation_
system_using_cell_phone
B. Murali krishna, Narasimaha Nayak, Ravi kishore Reddy, B.Rakesh,P. Manoj kumar,
N.Sandhya, “Bluetooth based Wireless home automation system using FPGA” , Journal of
Theoretical and Applied Information Technology,31st July 2015,Vol-77 No.3.
http://www.ir.juit.ac.in:8080/jspui/bitstream/123456789/22999/1/Wireless%20Home%20Aut
omation%20System.pdf
23
Download