Mini Project Iot
Mini Project Iot
ASSISTANCE V2 IN BLUB
Submitted by
PAVITHRA M 211521243116
MANISHA MA 211521243098
BACHELOR OF TECHNOLOGY IN
MAY 2024
PANIMALAR INSTITUTE OF TECHNOLOGY
ANNA UNIVERSITY: CHENNAI 600 025
BONAFIDE CERTIFICATE
Certified that this project report titled “VOICE CONTROL
HOME AUTOMATION USING GOOGLE ASSISTANCE
V2” is the bonafide work of PAVITHRA M (211521243116) and
MANISHA MA (211518243098) who carried out the project
work under my
supervision.
SIGNATURE SIGNATURE
Dr.T.kalaichelvi,M.E,Ph.D Dr.C.Gnanaprakasam,M.E,Ph.D
Professor and Head of The Department, Associate Professor,
Department of Artificial Intelligence Department of Artificial Intelligence
And Data Science , And Data Science,
Panimalar Institute of Technology, Panimalar Institute of Technology,
Poonamalle,Chennai,600123. Poonamalle,Chennai,600123.
A project of this magnitude and nature requires kind cooperation and support from many, for
successful completion. We wish to express our sincere thanks to all those who were involved
in the completion of this project.
We seek the blessing from the Founder of our institution Dr. A. JEPPIAAR, M.A., Ph.D., for
having been a role model who has been our source of inspiration behind our success in
education in his premier institution.
Our sincere thanks to the Honorable Chairman of our prestigious institution Mrs. REMIBAI
JEPPIAAR for her sincere endeavor in educating us in her premier institution.
We would like to express our deep gratitude to our beloved Secretary and Correspondent Dr.
P. CHINNADURAI, M.A., Ph.D., for his kind words and enthusiastic motivation which
inspired us a lot in completing this project.
We also express our sincere thanks and gratitude to our dynamic Directors Mrs.
C. VIJAYARAJESHWARI, Dr. C. SAKTHI KUMAR, M.E., Ph.D., and Dr. S.
SARANYA SREE SAKTHI KUMAR, MBA., Ph.D., for providing us with necessary
facilities for completion of this project.
We also express our appreciation and gratefulness to our respected Principal Dr. T.
JAYANTHY, M.E., Ph.D., who helped us in the completion of the project. We wish to
convey our thanks and gratitude to our Head of the Department, Dr.T.Kalaichelvi,M.E,
Ph.D., for her full support by providing ample time to complete our project. Special thanks to
our Project Guide Dr,C,Gnanaprakasam,M.E,Ph.D., Assistant professor for their expert
advice, valuable information and guidance throughout the completion of the project.
Last, we thank our parents and friends for providing their extensive moral support and
encouragement during the course of the project.
Table of Contents
Chapter Title Page No
1 Abstract 6
2 Introduction 8
2.1 Overview 9
2.3 Scope 9
3 Literature Survey 11
4 System Analysis 14
5 Hardware Components 17
6 Block diagram 25
8 Software Coding 27
11 Conclusion
12 References 42
CHAPTER 1
ABSTRACT
The rising trend of smart homes has captured widespread attention, offering
usersunprecedented convenience and control over their appliances using voice
commands.This mini project explores the exciting domain of voice-controlled home
automation,specifically targeting the control of a bulb through the ESP8266
microcontroller andGoogle Assistant v2.This project harnesses the functionalities of the
ESP8266, an economical, Wi-Fi-enabledmicrocontroller, to establish seamless
communication between the user's spokencommands and the physical bulb. Google
Assistant v2 serves as the intelligent voiceinterface, capturing and interpreting the
user's voice instructions.Through this integration of technologies, our goal is to
develop a system where users caneffortlessly manage their home lighting using
straightforward voice commands. This notonly enhances comfort but also lays the
foundation for exploring further homeautomation capabilities using readily accessible
tools.The project focuses on creating a smart home environment where users can use
voicecommands via Google Assistant to control various appliances such as bulbs, fans,
andswitches. The ESP8266 microcontroller acts as the intermediary between the IoT
devicesand Google Assistant, facilitating smooth communication and control.By
leveraging the ESP8266, a cost-effective Wi-Fi-enabled microcontroller, we canestablish
connectivity to the internet and interact with different devices over Wi-Fi. Thisintegration,
alongside sensors and relays, enables the creation of a network of smartdevices that
respond effectively to commands issued through Google Assistant.Google Assistant offers
a user-friendly voice command interface and integratesseamlessly with various IoT
platforms. By setting up custom Actions on Google, userscan interact naturally with their
smart devices using voice instructions. For instance, astraightforward command like
"Hey Google, turn on the living room lights" can activatethe connected bulb
through the ESP8266, showcasing the seamless integration of voicecontrol in home
automation. The mini project report will provide detailed insights intosetting up hardware
components, programming the ESP8266 microcontroller, configuringGoogle Assistant
actions, and demonstrating the practical implementation of voice-controlled home
automation. It will emphasize the significance of IoT in contemporaryliving, outline
challenges encountered during development, highlight implementedsolutions, and
discuss prospects for expanding the system with additional smart devicesand
functionalities.
6
CHAPTER 2
7
INTRODUCTION
2.1 OVERVIEW
The surge in popularity of smart homes has captivated widespread attention, offering users
unprecedented convenience and control over their appliances through voice commands. This
mini-project delves into the exciting domain of voice-controlled home automation, with a
specific focus on controlling a bulb via the ESP8266 microcontroller and Google Assistant v2.
Our objective is to develop a system where users can effortlessly manage their home lighting
using simple voice commands, enhancing comfort and laying the groundwork for exploring
further home automation capabilities with readily accessible tools.
Central to this project is the creation of a smart home environment where users can use voice
commands via Google Assistant to control various appliances such as bulbs, fans, and
switches. The ESP8266 microcontroller acts as the intermediary between IoT devices and
Google Assistant, facilitating smooth communication and control.
Google Assistant offers a user-friendly voice command interface and integrates seamlessly
with various IoT platforms. Through setting up custom Actions on Google, users can interact
naturally with their smart devices using voice instructions. For instance, a simple command
like "Hey Google, turn on the living room lights" can activate the connected bulb through the
ESP8266, showcasing the seamless integration of voice control in home automation.
This mini-project report will provide detailed insights into setting up hardware components,
programming the ESP8266 microcontroller, configuring Google Assistant actions, and
demonstrating the practical implementation of voice-controlled home automation. It will
8
emphasize the significance of IoT in contemporary living, outline challenges encountered
during development, highlight implemented solutions, and discuss prospects for expanding the
system with additional smart devices and functionalities.
The aim of this paper is to propose and discuss a design of a voice control
home automation,using google assistance v2 inbuilt of blub instead of user can
easily smart their home and energy efficiency of iterating smart bulb to save
energy of ensuring that lights are only we need .
2.3 SCOPE
Home automation using Google Assistant has a wide scope, especially when it comes to
controlling smart bulbs. Here are some key aspects and possibilities:
1. **Voice Control**: Google Assistant allows users to control smart bulbs using voice
commands. Users can turn lights on or off, dim them, change colors (if the bulbs support it), or
even set up custom routines.
2. **Remote Control**: With Google Assistant, you can control your smart bulbs from anywhere
using your smartphone or any device with Google Assistant integration. This allows for
convenience and flexibility, whether you're at home or away.
3. **Integration with Other Devices**: Google Assistant can be integrated with other smart home
devices and platforms, allowing for comprehensive home automation. For example, you can set
up routines where your smart bulbs turn on automatically when motion sensors detect movement,
or when you arrive home (based on your phone's location).
4. **Scheduling and Automation**: Google Assistant enables users to schedule when their smart
bulbs turn on or off. This is useful for creating routines, such as turning on the lights in the
morning to wake you up gradually, or turning them off at night when it's time to sleep.
5. **Energy Efficiency**: By integrating smart bulbs with Google Assistant, users can
potentially save energy by ensuring that lights are only on when needed. This can be achieved
through scheduling, automation, and remote control features.
9
CHAPTER 3
10
LITERATURE SURVEY
11
environments.
• Security and Privacy Concerns: As voice-controlled systems become
more prevalent, concerns regarding security and privacy have also been
addressed in the literature. [Author 6] discusses encryption methods and
secure communication protocols for protecting user data in IoT networks,
emphasizing the importance of robust security measures in voice-
controlled home automation setups.
• User Experience and Interface Design: User experience (UX) design
and interface considerations are vital for ensuring seamless interactions in
voice-controlled systems. [Author 7] presents a user-centric design
approach for voice-enabled applications, focusing on intuitive voice
12
CHAPTER 4
13
SYSTEM ANALYSIS
instructions.
4.2. Advantages:
traditional methods:
switches.
free control.
home.
14
• Smart Home Integration: This project serves as a
15
CHAPTER 5
16
HARDWARE COMPONENTS
5.1 ESP8266(NODEMC)
FIGURE 1:ESP8266
ESP8266 comes up with powerful processing speed on board. Storage space
of this module is also high allowing it to integrate with other devices like
sensors. To make this module compatible with other development boards, we
have to do level shifting of voltages externally because this board doesn’t
come up with on-board voltage regulator. This module is cost effective and
thus used widely in many applications like the Internet of things and much
more
ESP8266 Features:
● System-on-Chip (SoC): The ESP8266 integrates a 32-bit Tensilica microcontroller,
antenna switches, RF balun, power amplifier, standard digital peripheral interfaces,
low-noise receive amplifier, power management module, and filter capability.
17
● Processor: Based on the Tensilica Xtensa Diamond Standard 106Micro, it runs at 80
MHz.
● Memory:
○ Instruction RAM: 32 KB
○ Cache RAM: 32 KB
○ User data RAM: 80 KB
○ ETS system data RAM: 16 KB
○ External memory: 16 MB
● General Purpose I/O Pins: 16 pins for interfacing with other devices.
● Communication Interfaces:
○ SPI
○ I2C
○ I2S
Applications:
1. Prototyping of IoT Devices: ESP8266 is commonly used for building IoT prototypes and
proof-of-concept projects.
2. Low-Power Battery-Operated Applications: Due to its low power consumption, it’s
suitable for battery-powered devices.
3. Network Projects: ESP8266 can be used in various network-related projects.
4. Projects Requiring Multiple I/O Interfaces: It’s ideal for projects that need both Wi-Fi and
Bluetooth functionalities.
5.2RELAY MODULE
18
FIGURE 2: 1 CHANNEL RELAY MODULE
Specifications:
Applications:
19
5.3JUMPER WIRE
Jumper wires are electrical wires with connector pins at each end. They are used
to connect two points in a circuit without soldering. You can use jumper wires to
modify a circuit or diagnose problems in a circuit. Further, they are best used to
bypass a part of the circuit that does not contain a resistor and is suspected to be
bad.These slender wires allow you to modify circuits or diagnose problems effectively.
Jumper wires are essential components in DIY electrical projects. They are commonly used with
breadboards and other prototyping tools like Arduino.
20
Jumper Wire Colours:
○ Although jumper wires come in a variety of colours, their colour doesn’t affect the
operation of the circuit.
○ The wire colour primarily serves as an aid to help you keep track of what is
connected to which point.
○ For instance, you can choose to use red wires for ground connections and black
wires for power connections.
● Conductive Marvels: Jumper wires act as conduits for the smooth flow of electrical
signals, bridging gaps between various components on a circuit board.
● Despite their diminutive size, these connectors wield significant influence, enabling the
creation of intricate circuit pathways.
● They are ideal for prototyping, allowing enthusiasts to iterate and refine their designs
with ease.
● Jumper wires serve as the architects of circuit modifications, providing a straightforward
means to connect, disconnect, and redirect electrical pathways.
21
5.4 BREADBOARD
As the name suggests, the term breadboard can be derived from two terms namely
bread & board. Initially, this was used to cut the bread into pieces. Further, it was
called a breadboard & it was used in electronics projects and electronic devices in
the year 1970. A breadboard is also known as a solderless board because the
component used on the breadboard does not need any soldering to connect to the
board, so it can be reused.Features and Specifications:
○ Breadboards typically have two distribution strips with 200 tie-points each and an
additional 630 tie-points in IC/circuit areas.
○ They are made of ABS plastic and come with a color legend.
○ The dimensions are approximately 6.5 x 4.4 x 0.3 inches.
○ Hole/pitch style: Square wire holes with a spacing of 2.54 mm (standard pitch).
○ ABS heat distortion temperature: 84°C (183°F).
○ Current rating: 300 mA to 5 A.
○ Insulation resistance: 500 MΩ at DC 500V.
22
○ Withstanding voltage: 1,000V AC for 1 minute.
○ Suitable for wire sizes from 21 to 26 AWG.
Advantage
Disadvantages
● Components that are connected to the breadboard can come loose once the breadboard
is pushed or moved.
● This kind of breadboard is available with high parasitic capacitances because of the
capacitances among different components which are being close to each other.
23
CHAPTER 6
24
BLOCK DIAGRAM
25
CHAPTER 7
26
Hardware Tools:
software tools:
• Arduino IDE
• ESP8266 libraries
• Google Assistant v2 API credentials
• Cloud platform (e.g., Firebase)
27
CHAPTER 8
28
SOFTWARE CODING
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
Sketch generator: http://examples.blynk.cc
Blynk community: http://community.blynk.cc
Follow us: http://www.fb.com/blynkapp
http://twitter.com/blynk_app
Blynk library is licensed under MIT license
This example code is in public domain.
*************************************************************
This example runs directly on NodeMCU.
Note: This requires ESP8266 support package:
https://github.com/esp8266/Arduino
Please be sure to select the right NodeMCU module
in the Tools -> Board menu!
For advanced settings please follow ESP examples :
- ESP8266_Standalone_Manual_IP.ino
- ESP8266_Standalone_SmartConfig.ino
- ESP8266_Standalone_SSL.ino
Change WiFi ssid, pass, and Blynk auth token to run :)
Feel free to apply it to any other example. It's simple!
*************************************************************/
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
void setup()
{
// Debug console
Serial.begin(9600);
Step 1
Firstly, identify these components.
Step 2
secondly to set up the Blynk app. For that, follow the step below.
● First, download and install the Blynk app in to the smartphone
and sign up the app using your emailand create template
Step 3
To setup blynk template
Step 4
Open arduino software check tools and preference and then
upload software code on it and run it successfully
Step 5
And then open your google chrome search “IFTTT” and then create and
login that
Step 6
To set “google assistance v2” in “IFTTT”
Step 7
After setup the google v2 and to connect blynk using “webhooks”
Step 8
Finally to install “goole home” and connect your device and then set
“IFTTT” successfully .All our software setting are done successfully
Step 9
After completing all the software process and to assemble the hardware
component to complete our full project
OUTPUT
PHASE1:
Further Enhancements:
2. A voice controlled smart home automation system using artificial intelligent and
internet of things (August 2022): This article delves into a voice-controlled smart home
automation system that leverages artificial intelligence and the Internet of Things (IoT).
(DOI: 10.12928/telkomnika.v20i4.23763, Authors: Mohamed A. Torad, Belgacem
Bouallegue, Abdelmoty M. Ahmed)
3. Voice Controlled Smart Home Automation System (September 2019): This paper
discusses the development of a voice-controlled smart home automation system. (ISSN:
2277-3878, Authors: Sitaram Pal, Ashish Chauhan, Sanjeev Kumar Gupta)
4. Voice Control Home Automation (June 26, 2013): This presentation provides an
overview of voice-controlled home automation systems.