Project Report
Project Report
Project Report
A Project Report
Submitted in partial fulfillment of the Requirements for the award of
the degree
of
BACHELOR OF TECHNOLOGY
in
Submitted by
At
JULY, 2021
CERTIFICATE
This is to certify that the Project entitled “Voice Controlled Home Automation
System” is a bona fide record of the Project work done by Akash Chaudhary
(1705410017), Ankit Sharma (1705410030) , Aryan Srivastava (1705410038), Aman
Verma,(1705410027)and Aditya Sahu (1705410014)under my supervision and
guidance, in partial fulfillment of the requirements for the Outcome Based Education
Paradigm in Computer Science and Engineering from BBDITM, Lucknow for the
academic year 2020-21.
Place:
Date:
DECLARATION
It gives us a great sense of pleasure to present the report of the B. Tech Project
undertaken during B. Tech. Final Year. We owe special debt of gratitude to Professor
Mr.Diwakar Yagyasen, Head, Department of Computer Science & Engineering, Babu
Banarasi Das Institute of Technology and Management, Lucknow for his constant support
and guidance throughout the course of our work. His sincerity, thoroughness and
perseverance have been a constant source of inspiration for us. It is only his cognizant
efforts that our endeavors have seen light of the day.
We also do not like to miss the opportunity to acknowledge the contribution of all faculty
members of the department for their kind assistance and cooperation during the
development of our project. Last but not the least, we acknowledge our family and friends
for their contribution in the completion of the project.
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 house hold 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, and
maintain. The perfect user interface still does not exist at present and to build a
good interface requires knowledge of both sociology and technology fields.
TABLE OF CONTENTS
Smart Homes systems are somewhat different from ordinary homes, where the different smart
devices in the presence of communications network being installed that allows the devices to
communicate with each other. Integrated communication systems provide the facility for
monitoring and managing the performance of the home, and offer the choice support to the
occupants for available facilities. The varieties of systems are installed in today’s modern home
such as central air conditioned and heating, fire and security alarms, and different other devices,
such as home theater, televisions, lights etc. These systems and devices usually exist in total
isolation from each other. Smart home provides the facility of passing information and
commands among different installed devices and systems. Such facility and control not only
provide better control locally and remotely but also supports special needs, particularly services
that support the elderly. Smart home technology also greatly improves the usability and
functionality of any home. It also allows to potentially reducing power consumption by
preventing occurrences such as lighting and air conditioning being left on longer than necessary.
A smart Home Automation system allows saving money and the environment.
CHAPTER 2: LITERATURE REVIEW
[1] is tied in with controlling home machines through a microcomputer, creator examines two
unique ways to deal with control the home apparatuses; approaches are clock choice and voice
order. The clock alternative gives control dependent on clock, and the voice order give control by
utilizing voice orders to control the apparatuses. This framework utilizes a PC and PC equal port
to control the apparatuses, and the product interface is created on the VB 6.0. This is utilized to
change over voice order in to message and give the activity to control and screen the machines.
[2] Proposed a framework that control home apparatuses through infra-red far off regulator and
electrical cable correspondence by fostering a locally established worker, this framework assist
client with checking the situation with their machines structure anyplace through the phone
organization and web.
[3] Proposed a GSM based framework for controlling the Appliances for individuals who are not
at home, this is done distantly through SMS over GSM network utilizing AT orders and on
collector the GSM modem is interfaced with the PC, the home machines control framework is
created on the PC to screen and control. In the proposed arrangement they use PC equal port
which is further interfaced with the depend circuit to give command over the apparatuses. This
framework additionally gives a criticism by essentially SMS to client which likewise helps when
there is any security breech in the home.
[4] Proposed an answer of home apparatuses control utilizing Bluetooth based controller to get to
the control of home machines inside home, creator fostered a controller with a Keypad which is
interface to a microcontroller and this is interfaced to Bluetooth module to give remote interface
to the far off to speak with the apparatuses control module. At the point when the key is squeezed
the regulator send the order with respect to the squeezed key by means of Bluetooth medium and
on the recipient end beneficiary get the order and apply the relating activity.
[5] The Author Proposed a framework that uses a PC based application to change over voice
order to txt and send this order through a client portable to the cell organization, on the
beneficiary the versatile get the SMS which is perused by the microcontroller utilizing AT order
structure, the correspondence medium between the microcontroller and versatile is RS232
standard which is a wired correspondence. After complete gathering of the order the regulator
play out the activity.
[7] the Author present a framework in which the customer framework is modified with an
application which is utilized to control and screen the apparatuses, the application that is
produced for the customer framework is convert the provided voice order to the representative
information that will be moved by means of WI-FI organization to the worker PC. The worker
PC contains the Speech acknowledgment application created in Microsoft Visual Basic.net. so as
the correspondence set up between the customer framework and the worker it start the discourse
acknowledgment and when the given information is gotten this is move to the control circuit by
means of PC equal port and the given burden is turned on.
Nguyen et al. [8] proposed a Home apparatus control framework. Infrared beam and electrical
cable correspondence are utilized to control the home apparatuses framework. This framework
helps client to checks the situation with machines and controls them distantly from all over. Also,
this is done through their wireless or Internet. The basic way to deal with control the home
machines is given in this paper.
Haque et al. [9] proposed a framework that controls the home machines utilizing the PC. This
framework is created by utilizing the Visual Basic 6.0 as programming language and Microsoft
voice motor devices for discourse acknowledgment reason. Machines can be either constrained
by clock or by voice order.
Khiyal et al. [10] proposed a framework for controlling home apparatuses distantly that is
valuable for individuals who are not at home generally. The fundamental target of the framework
is to give and cautions. The framework is executed by SMS innovation that is utilized to move
information from sender to recipient over GSM organization. At least one PCs can be utilized to
control the home machines. Framework send a ready SMS to approved client when any
interruption is recognized and client can thus react to defeat the circumstance. Besides client can
send SMS to framework to get the situation with home apparatuses and controlling
them.Jawarkar et al.
[12] proposed the product framework for correspondence among portable and PC. UART
16550A chip is customized utilizing proper control organization to help AT order. The portable
in this framework is utilized for getting and executing orders from preconfigured clients and
advising status about change in contribution to the client through SMS. The framework can
likewise send SMS to indicated versatile client if there is an adjustment of the situation with the
info ports. This framework isn't for time basic frameworks.
The creators [13] proposed a brilliant home security framework that ships off the proprietor when
it identifies any individual and cautions the proprietor by raising an alert when it recognizes any
gatecrasher. Additionally, the equivalent can likewise be actuated for home computerization by
building the brilliant home with the utilization of the comparative arrangement of sensors. The
microcontroller utilized by the flow model is the TI-CC3200 Launchpad board which
accompanies an in-constructed miniature regulator and an installed Wi-Fi safeguard utilizing
which all the electrical and gadgets machines inside the home can be gotten to and observed. In
the proposed technique, we utilize Arduino uno3, ESP8266 Node-MCU which is smallest
expense when contrasted with the current frameworks TI-CC3200 Launchpad, ESP8266 is
additionally given the Wi-Fi which gets directions from the Wi-Fi gadget associated, and controls
the situation with the gadgets associated.
This work [14] presents a most minimal expense adaptable and reliable home mechanization
framework with extra security utilizing Arduino pack, with Internet Protocol network through
nearby Wi-Fi for checking and directing gadgets by validated clients distantly utilizing the cell
phone application. They introduced a shrewd home utilizing Arduino UNO and esp8266-01 as a
network module. It assists the client with controlling different electrical and hardware
apparatuses distantly. In the current framework, IP address must be brought each time from the
LCD show, to confirm the activity in the telephone. In the proposed framework, this IP address
verification can be stayed away from, additional over the current framework doesn't uphold the
voice based orders, yet our framework can handle the home machines utilizing voice/Text .
Chapter 3:PROPOSED SYSTEM
3.2Proposed Approach
This project aims to provide an easy and efficient way to interact with home appliances by giving
voice commands in human language. The appliances are connected to the mobile device through
a Bluetooth or Arduino that establishes the concept of Internet of Things. Bluetooth and Arduino
are interfaced with the appliances and programmed in such a way that they respond to mobile
inputs. Our project automates the operation of every single appliance in the house, which greatly
reduces the power consumption due to excess use/wastage of the appliance services. It also
reduces the effort put by human beings to a great extent. The proposed system has a great
flexibility by using Wi-Fi technology to interconnect its distributed sensors to home automation
server. This decreases the deployment cost and increases the ability of system reconfiguration
and upgradation. Also flexibility is increased by giving users an option to specify the commands
according to their comfort and also in the language they prefer. Automatic switching on and off
certain appliances such as lights and fan happen by identifying the presence of human beings as
well as by identifying the environmental conditions through sensors. This system satisfies the
users to a better extent by enabling them to operate their devices using specific, personalized
operations pertaining to devices of the user’s choice.
Chapter 4:RESULT ANALYSIS
4.1 Methodolgy
Step 1: Hardware and Software Selection.
Step 2: Coding of firmware.
Step 3: Software for Mobile.
Step 4: Integration of all module and testing.
Step 1:
Hardware Used:
Bluetooth module HC-05
Atmega16 microcontroller
12V relay
Voltage regulator 7805
Software Used:
AVR studio 4 for programming microcontroller.
Step 2:
4.7K resistor
1k resistor
LED
AVR Chip: atmega328p
Programmer: AVRISP mkII
AVR Programmer Adapter (optional)
Jumper Wires
5V Power supply.
Software
AVR Studio 5
Circuit Set Up
Simply find the pins in and match them to the pins in your chip and connect them. Also connect
the resistor from pin 7 to power.
Now because the programmer doesn’t have one squared hole, or at least mine doesn’t, it has
many, let me show how how that looks in real life, and yes it is like a mirror image of the image
above (weird right?).
AVRisp mkII holes
AVR Programming
Next you will be greeted with an almost blank C file.
AVR Studio blank template C file
So what software are we going to write? how about we make an led blinker. Connect an LED to
port C5 of your microcontroller through the 1k resistor and then to ground.
red led connected to port C5 (pin 28) of the ATmega328.
1. #include <avr/io.h>
2. #include <avr/delay.h> // has some delay functions you can use
3.
4. int main(void)
5. {
6. DDRC=0xff; // all C ports as output
7. while(1)
8. {
9. //TODO:: Please write your application code
10.
11. PORTC=0xff; // turn on all C porst
12. _delay_ms(200); // wait 200 milliseconds
13. PORTC=0x00; // turn off all c ports
14. _delay_ms(200); // wait 200 milliseconds
15.
16.
17. }
18. }
The code that gets uploaded to the microcontroller is actually a HEX file, we have to make this
file.
Step 3:
The Android platform includes support for the Bluetooth network stack, which allows a device to
wirelessly exchange data with other Bluetooth devices.
The application framework provides access to the Bluetooth functionality through the Android
Bluetooth APIs.
Step 4:
The voice controlled home automation system has been tested in different methods. It has been
tested in both noisy and quite environments, and is found to give better results in quite
environments, where it picks less or no noise signals. The hand-held device is also tested with
multiple speakers, speaking onto the device at the same time and separately as well. The device
responds to only the voice, which is used to train the HC 05, and not to any other voices. The
system o has also been tested with the range of the room it covers. Another method of testing
was, to train HC 05, with different commands to operate the same kinds of devices located in
different rooms, example ‘Fan1-on’ for fan of room 1 and ‘Fan2-on’ for the fan of room 2,
without the commands being mixed or confused by the device.
4.1 COMPONENTS
A. MICROCONTROLLER ATMEGA16
The ATmega16 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC
architecture. By executing powerful instructions in a single clock cycle, the ATmega16 achieves
throughputs approaching 1 MIPS per MHz allowing the system designed to optimize power
consumption versus processing speed.
Fig
C.BLUETOOTH HC-05
Description: It is a class-2 bluetooth module with Serial Port Profile , which can configure as
either Master or slave. a Drop-in replacement for wired serial connections, transparent usage.
You can use it simply for a serial port replacement to establish connection between MCU, PC to
your embedded project and etc.
HC-05 Specification:
Bluetooth protocal: Bluetooth Specification v2.0+EDR
Frequency: 2.4GHz ISM band
Modulation: GFSK(Gaussian Frequency Shift Keying)
Emission power: ≤4dBm, Class 2
Sensitivity: ≤-84dBm at 0.1% BER
Speed: Asynchronous: 2.1Mbps(Max) / 160 kbps, Synchronous: 1Mbps/1Mbps
Security: Authentication and encryption
Profiles: Bluetooth serial port
Power supply: +3.3VDC 50mA
Working temperature: -20 ~ +75Centigrade
Dimension: 26.9mm x 13mm x 2.2 mm
C. PROPOSED SOLUTION
We Any person who wants to control the electrical appliances will use his voice with this
system.
Android mobile phone will be used as Voice recognition module, it will be connected
with this system by using Bluetooth link.
When any voice command will speak then it will send the command to this system.
These commands will be given to microcontroller Atmega16.
According to the received command microcontroller will Turn ON/OFF the LED Lights .
4.3: ARCHITECTURE
Using different commands it will control lights, fans or machines at the receiver end. According
to these commands appliances at the receiver end will Turn ON/OFF.
Figure 3 depicts how to schedule the devices. In the experimental results, two different setups of
this application are shown. One with single lamp control another with three lamp controls, all the
lamps can be scheduled together or separately. Figure 3 shows, on receiving the command from
mobile the single lamp glows, in figure 3 the status is set to ON, so the lamp is glowing. Figure 3
depicts how the two lamps are turning to ON state after receiving the voice command from the
user. Voice processing of instructions received from the user starts with the node red skill using
the JavaScript, which debugs and deploy the skill to the cloud. It tests with voice input whether
all the commands are recognized appropriately and integrated with NodeMCU board. When it
receives API call from the cloud, ESP8266 understands the command and checks the current
status of the appliances and redirects message to API. ESP8266 processes the instructions based
on the received message such as ON/OFF.
Chapter 5:Conclusion
5.1 Summary
The purpose is to control some of the major household devices by voice. It is not only aimed at
providing a healthy and comfortable lifestyle to the users, but also at aiding the sick or
handicapped and people living alone, so that they can easily handle all their tasks at a
convenience. Making the design sleeker and easier to handle, with a method to control more
appliances at a time is the future requirement. We have so far achieved in controlling the same
appliance, example, a light bulb, at the same time in two different rooms, and we have been able
to control larger loads, for example, an air conditioner. The design of the voice controlled home
automation system, is both portable and ready to be installed in your main household circuit. We
have introduced portability in the entire system, both the voice controlling remote, and the
application end.
With the increasing demand for convenience and entertainment, home automation is just a step
away from being the most in demand technology in the near future. We can develop a wireless
home automation system that will take voice commands from the user to control various
appliances throughout the house. We plan to make our system adapt to the existing appliances of
the house rather than buying exclusive appliances that the various existing home automation
systems require. The basic objective of this project is making this technology more economical
and thus more reachable to the common man. We intend to use Raspberry Pie 3 for this project
which will help in making the system wireless.
Chapter 6: REFERENCES