Team_10 FINAL Report[1]
Team_10 FINAL Report[1]
Submitted by
Mafrook A (23205028)
Mohamed Fasil J (23205031)
Priyadharshini N (23205038)
Sudhanthira S J (23205054)
Postgraduate
in
Master of Computer Applications
Rathinam Technical Campus
Eachanari – 641021
An Autonomous Institution
Affiliated to Anna University, Chennai – 600 025
DEC - 2024
ANNA UNIVERSITY, CHENNAI
BONAFIDE CERTIFICATE
Submitted for the Mini project report Viva – Voice examination held on ……………
Apart from the efforts of us, the success of this project depends largely on the
encouragement and guidelines of many others. We take this opportunity to praise the
almighty and express our gratitude to the people who have been instrumental in the
successful completion of our project
We wish to acknowledge with thanks for the excellent encouragement given by the
management of our college and we thank Dr. B.Nagaraj, M.E., Ph.D., PDF (Italy) , CBO
for providing us with a plethora of facilities in the campus to complete our project
successfully.
We wish to express our hearty thanks to Dr. K.Geetha, M.E., Ph.D., Principal of our
college, for her constant motivation regarding our internship towards project.
Finally, we extend our heartfelt thanks to the parents, friends, and faculty members for
their constant support throughout this project. The guidance and support received from all the
members who contributed to the success of the project.
MAFROOK
MOHAMED FASIL
PRIYADHARSHINI
SUDHANTHIRA
V
TABLE OF CONTENTS
1. INTRODUCTION 1
2 LITERATURE REVIEW 4
3. PROPOSED SYSTEM 6
3.1 Explanation of Block diagram 7
3.2 Hardware Component Description 7
3.3 Software Component Description 10
4. METHODOLOGY 15
4.1 Install and setup the Blynk Application 15
4.2 Setting up AEDUINO IDE and Blynk Library 18
4.3 Hardware Connection 19
4.4 Configure IFTTT 20
5. RESULT 24
5.1. Application 25
6. CONCLUSION AND FUTURE SCOPE 27
7. REFERENCES 29
VI
LIST OF TABLES
INTRODUCTION
1
1.INTRODUCTION
This paper proposes such system that uses the Google Assistant, the IFTTT (if
this than that) application, the Blynk application and the NodeMCU which the main
microcontroller and used as major components along with a relay module. Human
voice is used to give commands to the Google Assistant. All these components are
connected over the internet using Wi-Fi which puts this system under the Internet of
Things (IOT).
2
CHAPTER-2
LITERATURE REVIEW
3
LITERATURE REVIEW
The advent of smart home automation has revolutionized the way consumers interact with
household devices, particularly in managing lighting systems. One of the most influential
platforms that has contributed to this revolution is IFTTT (If This Then That). IFTTT is a
cloud-based service that enables users to create conditional "applets," where an event in one
service triggers an action in another, simplifying automation in everyday life. This
technology has proven especially effective in smart bulb control, offering a seamless
integration of lighting systems with a variety of other smart home devices.
Smart bulbs, integral to home automation, typically communicate via protocols such as Wi-
Fi, Bluetooth, or Zigbee. Popular brands like Philips Hue and LIFX have embraced IFTTT
integration, allowing users to link bulbs with other devices or services. For example, smart
bulbs can be set to turn on or off when a certain event occurs, such as a motion detector being
triggered or when a weather service predicts rain.
IFTTT facilitates the interoperability of various devices across different brands by using
APIs that allow diverse systems to communicate. This integration enables users to
personalize their lighting setups, adjusting brightness or color based on time of day, location,
or even mood, and provides opportunities to schedule or automate lighting tasks, making
homes more energy-efficient.
4
CHAPTER-3
PROPOSED SYSTEM
5
3.PROPOSED SYSTEM
6
3.1 Explanation of block diagram:
In the block diagram shown in Fig:1, NodeMCU is linked with the Blynk
application account with the IFTTT(if this than that)application which is connected to
the Google assistance cloud. Home appliances bulb, fan, motor etc. are connected to
the nodeMCU.
The system consists of two main categories:
1. Hardware.
2. Software.
1.Hardware: It is the main control unit which has the ability to control the home
appliances like bulb fan etc.
2.Software: It contains IFTTT (if this then that), Blynk application, Google Assistant.
7
Fig 3.2: NodeMCU (ESP8266) Board
The NodeMCU Development Board can be easily programmed with Arduino IDE
since it is easy to use. Programming NodeMCU with the Arduino IDE will hardly take
5-10 minutes. All we need is the Arduino IDE, a USB cable and the NodeMCU board
itself.
2. Relay:
The relay is the device that opens or closes the contacts to cause the operation of
the other electric control. It detects the undesirable condition with an assigned area and
gives the commands to the circuit breaker to disconnect the affected area through ON
or OFF.
1. Electromagnet
3. Switching points
4. Spring
8
There are 3 pins in the relay module, these are as follow:
NO: normally open – there is any contact between the common pin and the normally
open pin. So, when you trigger the relay, it connects to the COM pin and power is
provided to the load.
NC: Normally closed – there is contact between the common pin and the normally
closed pin. There is always connection between the COM and NC pins, even when the
relay is turned off. When you trigger the relay, the circuit is opened and there is no
supply provided to the load.
It works on the principle of an electromagnetic attraction. When the circuit of the relay
senses the fault current, it energizes the electromagnetic field which produces the
temporary magnetic field. This magnetic field moves the relay armature for opening or
closing the connections. The small power relay has only one contact, and the high
power relay has two contacts for opening the switch.
9
3.3 Software components description
1. BLYNK:
Blynk is a new platform that allows you to quickly build interfaces for controlling
and monitoring your hardware projects from your iOS and Android device. After
downloading the Blynk app, you can create a project dashboard and arrange buttons,
sliders, graphs, and other widgets onto the screen. Using the widgets, you can turn pins
on and off or display data from sensors. Blynk started as a Kickstarter campaign,
raising just over $49k. Currently, Blynk supports most Arduino boards, Raspberry Pi
models, the ESP8266, Particle Core, and a handful of other common microcontrollers
and single-board computers, and more are being added over time. Arduino Wi-Fi and
Ethernet shields are supported, though you can also control devices plugged into a
computer’s USB port as well.
10
2. IFTTT (if this then that):
IFTTT derives its name from the programming conditional statement “if this,
then that.” It provide software platform that connects apps, devices and services from
different developers in order to trigger one or more automations involving those apps,
devices and services. IFTTT is simple to use. It can be downloading on the mobile app
and create a free account and running with automations in minutes. There is a
bewildering array of applets available, so IFTTT helpfully provides automation
recommendations for new users to try. Its Collections groups together applets for
different platforms – such as iOS, Android and voice assistants – and showcases
everything from applets for news and weather services to home automation. It is also
possible to search for individual applets, or browse under categories such as business
tools, connected car or health and fitness. The My Applets screen lets users manage
which applets are currently turned on, and provides a history of those that have been
used previously. Users can create their own applets by combining various app
"services” and setting trigger parameters.
11
There are several IFTTT (if this then that) application payment plans designed
for either individual or business customers. Individuals have access to a limited free
version or to the new Pro tier that launched in September 2020 – if they’re willing to
pay for additional features and access.
With the introduction of the Pro subscriptions comes a significant change:
IFTTT’s free tier no longer allows for unlimited applet creation; the maximum is set at
three (free users retain unlimited access to community applets, however).users that has
created more than three applets will need to either pay for the Pro version or delete
some applets.
3. Arduino IDE:
Arduino is an open-source electronics platform based on easy-to-use hardware and
software. Arduino boards are able to read inputs - light on a sensor, a finger on a
button, or a Twitter message - and turn it into an output - activating a motor, turning on
an LED, publishing something online. You can tell your board what to do by sending a
set of instructions to the microcontroller on the board. To do so you use the Arduino
programming language (based on Wiring), and the Arduino Software (IDE), based on
Processing.
12
Fig 3.6: Arduino IDE application
The Arduino software is easy-to-use for beginners, yet flexible enough for advanced
users. It runs on Mac, Windows, and Linux. Arduino also simplifies the process of
working with microcontrollers, but it offers some advantage for teachers, students, and
interested amateurs over other systems:
1.Inexpensive:
Arduino boards are relatively inexpensive compared to other microcontroller
platforms. The least expensive version of the Arduino module can be assembled by
hand, and even the pre-assembled Arduino modules cost less than $50.
2.Cross-platform:
The Arduino Software (IDE) runs on Windows, Macintosh OSX, and Linux
operating systems. Most microcontroller systems are limited to Windows.
3.Simple, clear programming environment :
The Arduino Software (IDE) is easy-to-use for beginners, yet flexible enough
for advanced users to take advantage of as well.
13
CHAPTER - 4
METHODOLOGY
14
4.METHODOLOGY
There are mainly four steps involving in the working of the project.
1. Install and setup the blynk application.
2. Setting up Arduino ide and blynk library.
3. Hardware connections .
4. Configure IFTTT.
4.1 Install and setup the blynk application
1. Create a Blynk Account:
After downloading the Blynk App, there is need to create a New Blynk
account. This account is separate from the accounts used for the Blynk Forums, in case
one has already have one account.
An account is needed to save the projects and have access to them from multiple
devices from anywhere. It’s also a security measure.
2.Create a New Project:
After successfully logged into the account, start by creating a new project.
15
Fig 4.2: Create new project
3.Choose Your Hardware:
Select the hardware model as NodeMCU.
4.Auth Token:
Auth Token is a unique identifier which is needed to connect the hardware to the
smartphone. Every new project that has been create will have its own Auth Token. The
Auth Token will automatically send on the email after project creation. It can also be
copied manually. Click on devices section and selected required device:
16
Fig 4.4: Auth token
5. Add a Widget: Add a button to control the LED. Tap anywhere on the canvas to
open the widget box. All the available widgets are located here. Now pick a button.
17
downloading the blynk library from github >after this,connect the nodemcu to the Pc
for uploading the code to it.
2.Open Arduino ide>go to tools> select the board as nodeMCU 1.0 then select the
port.
3.The next is writing the code.for this go to
files>example>selectblynk>selectboard>wifi>choose ESP8266_standalone.
4.Next step is changing few lines in the code.
5.Copy the auth token of blynk app in the auth token field>write the name of
Wi.Fi n/w and password to connect to nodemcu.
6.Next step is to verify and upload the code to the nodemcu board, When nodemcu gets
18
power,it will automaticaaly connet to the wi-fi.
4.3 Hardware Connections
Hardware req:
Nodemcu, one channel relay module(active low),1 bulb, Jumper
wires,breadboard,Arduino board.
Connections:
1. Attach the nodemcu to the breadboard then connect digital Pin D2 of nodemcu
to the input pin of relay board using the Jumper wires, ground pin of nodemuc to the
and pin of relay.
2. Connect the one end of bulb to the open ends of relay using wire and other end
of bulb to the socket to supply power to the bulb.
3. Use data cable to power the nodemcu via PC and to power the relay using
Arduino board (can use battery also), connect vcc of relay board to the 3.5v of Arduino
board.
4. Attach the bulb to the wire and in the end plug the light bulb to the power socket
and turn this on.
5. Tap the play button in the blynk app of any smartphone to test the project, but to
control the home appliances using voice commands, this will be done using the
platform called IFTTT.
19
4.4 configure IFTTT (if this then that)
1. Open the ifttt.com and and sign up using google account>click on my
applet>new applet>click on THIS>search google assistant and select it>connect.
2.Ifttt will ask the permission to use google account to add commands for
assistant>allow>in choose trigger,click on first one which says “say a simple
phrase”.fill in the commands that we say to the assistant such as turn on the
bulb> finally click on create trigger.this means we are sending request to blynk
app to turn on the bulb Fig 14: configure IFTTT (is this then that)application.
3. Next to program this.click on THAT>search for webhook>connect>click
on make a web request>for url field type
http://188.166.206.43/authtoken/update/pin(use gpio pin of d2 i.e GPIO4,use
D4)>select method as PUT>content type as application/json>body as [“0”](0
means to turn on). Similarly make another applet to turn off the bulb.for turning
off,use body as[“1”].
This is finally done, after this if we say “okay google, turn on the bulb or
turn off the bulb”, the bulb will be turn on or off using the commands we will
give to the assistant.
20
Fig4.8: Applets
21
22
CHAPTER-5
RESULT
23
5.RESULT
The result of the project was positive and the system responded well. The demo
shown below is the complete implementation of the proposed system.
24
5.1. APPLICATIONS
1. Using voice, we can interact with google Assistant and it can search on the
internet, schedule events, set alarms, control appliances, etc. This service is available
on smartphones and Google Home devices. We can control smart home devices
including lights, switches, fans and thermostats using our Google Assistant.
2. Lighting control system: a "smart" network that incorporates communication
between various lighting system inputs and outputs, using one or more central
computing devices.
3. Home automation for the elderly and disabled.
4. Smart Kitchen and Connected Cooking. Using voice control devices like Google
Home to kitchen appliances.
25
CHAPTER:6
26
6.CONCLUSION AND FUTURE SCOPE
The aim of the proposed system was to implement a low cost, reliable and
scalable google assistant based voice controlled home automation system that can be
used to switch on/off any home appliances. The purpose of this project is to make
homes simpler, better, or more accessible. This system is highly reliable and efficient
for the elderly folks in the house and differently abled person on a wheel chair who are
dependent on others and cannot reach the switch for the turning on/off.
FUTURESCOPE
Thefuturescope for googleassistant based home automation can be huge. There are many
factors that make the project more reliable, intelligent, scalable, and to become better
overall for home automation. For example, controlling the speed of the fan, more number
of devices can be integrated, like a coffee machine, AC etc. Well, no system is ever
perfect. It always has a scope for improvement. One just needs to put efforts and make
the system better.
27
CHAPTER - 7
REFERENCES
28
REFERENCES
29