You are on page 1of 60

JAYAWANT SHIKSHAN PRASARAK MANDAL’s

Bhivrabai Sawant Polytechnic


(Approved by AICTE, New Delhi, Govt. of Maharashtra, Affiliated to MSBTE Mumbai)
Gat No. 720 (1&2), Wagholi, Pune
Pune-Nagar Road, Pune-412207)
412207)
Phone: 020 – 65335100 Tele fax: - + 91-020-65335100
E-mail: bspoly@rediffmail.com Website: www.jspm.edu.in

A
PROJECT REPORT
ON
Home Automation
“Using NodeMCU & Blynk’’
Blynk
Under Guidance
Of

Prof. – V.B.Takale

Submitted
By

1. Ms. Aishwarya Jadhav


2. Mr.Ganesh Sawant
3. Ms. Swapnali Kumbhar
4. Ms. Pooja Kadam

DEPARTMENT OF
ELECTRONICS & TELECOMMUNICATION ENGINEERING

Academic Year
2019-2020
Maharashtra State Board of Technical Education
Mumbai -51

Certificate
Title Name Enrollment Number.

This is to certify that Ms. Aishwarya Jadhav 1707100253


This is to certify that Mr.Ganesh Sawant 1707100532
This is to certify that Ms. Swapnali Kumbhar 1707100275
This is to certify that Ms. Pooja Kadam 1407100153

Submitted in partial fulfilment of requirement for award of diploma in


Electronics & Telecommunications Engineering by Maharashtra State Board of
technical Education Mumbai-51, as a record of the student own work carried out by
them under my guidance & supervision.

PROJECT GUIDE PROJECT CO-ORDINATOR

(Prof. V. B. TAKALE) (Prof. V. B. TAKALE)

EXTERNAL EXAMINER

H.O.D PRINCIPAL

( Prof. R.S. DHORJE ) (Dr. SACHIN ADMANE )


ACKNOWLEDGMENT

A project of such comprehensive coverage cannot be prepared without help of


numerous source & people in this field. We are specially indebt to Prof. R .S. Dhorje
Mam Head of Department Of Electronics & Telecommunication. For inspiring us
for take this project. We also express our sincere attitude of Prof. V .B. Takale. For
their valuable guidance to solve the queries and motivate us throughout the project
work, to solve it in the possible manner. Finally we are also thankful to the staff of the
E&TC Dept. And all our friends who are always encourage and support us for
completion of our project.

Student Name Seat No. Signature

1. Ms. Aishwarya Jadhav 214713

2. Mr.Ganesh Sawant 214722

3. Ms.Swapnali Kumbhar 214719


4. Ms. Pooja Kadam 214709
JAYAWANT SHIKSHAN PRASARAK MANDAL’s

Bhivrabai Sawant Polytechnic


(Approved by AICTE, New Delhi, Govt. of Maharashtra, Affiliated to MSBTE Mumbai)
Gat No. 720 (1&2), Wagholi, Pune
Pune-Nagar Road, Pune-412207)
Phone: 020 – 65335100 Tele fax: - + 91-020-65335100
E-mail: bspoly@rediffmail.com Website: www.jspm.edu.in

Electronics & Telecommunication Engineering Department

VISION

To develop Electronics & Telecommunication Engineers with sound technical


knowledge focusing on social and industrial demands with professional ethics.

MISSION

M1: To create environment for imparting technical education through effective


teaching- learning process.

M2:: To develop industry driven & Entrepreneurial Skills through co-curricular


co
and extra co-curricular
curricular activities.

M3: To provide value based education for socio


socio-economic
economic enhancement of
nation.
JAYAWANT SHIKSHAN PRASARAK MANDAL’s

Bhivrabai Sawant Polytechnic


(Approved by AICTE, New Delhi, Govt. of Maharashtra, Affiliated to MSBTE Mumbai)
Gat No. 720 (1&2), Wagholi, Pune
Pune-Nagar Road, Pune-412207)
Phone: 020 – 65335100 Tele fax: - + 91-020-65335100
E-mail: bspoly@rediffmail.com Website: www.jspm.edu.in

Institute vision & Mission

To develop globally competent technocrats by imparting quality technical


education for soco- economic enhancement of the Nation.

Mission of Institute

 M1- To nurture re and maintain an environment oof high


h academic
standard for diplomat students, encouraging for higher education and
entrepreneurial abilities
abilities.

 M2- To deliver quality education by inserting basic and engineering


knowledge, interpersonal skills
skills, critical thinking and creativity.

 M3- To equip students with technical skills, ethical and moral values to
meet aspirations of the society and Industry, thereby to contribute
sustainable development of the Nation.
JAYAWANT SHIKSHAN PRASARAK MANDAL’s

Bhivrabai Sawant Polytechnic


(Approved by AICTE, New Delhi, Govt. of Maharashtra, Affiliated to MSBTE Mumbai)
Gat No. 720 (1&2), Wagholi, Pune
Pune-Nagar Road, Pune-412207)
Phone: 020 – 65335100 Tele fax: - + 91-020-65335100
E-mail: bspoly@rediffmail.com Website: www.jspm.edu.in

Programme Outcomes (Po’s)


PO 1. Basic knowledge: An ability to apply knowledge of basic mathematics, sciences and
engineering to solve the engineering problems.

PO 2. Discipline knowledge: An ability to apply discipline-specific


specific knowledge to solve,
solve score
and for
or applied engineering problems.

PO 3. Experiments and practice: An ability to Plan and perform experiments and practices
and to use the results to solve engineering problems.

PO 4. Engineering
ineering tools: Apply appropriate technologies and tools with an understanding
of the limitations.

PO 5. The engineer and society: Demonstrate knowledge to Assess societal, health, safety,
legal and cultural issues and the consequent responsibilities relevant engineering practices.

PO 6. Environment and sustainability: Understand the impact of the engineering solutions in


societal and environmental contexts, and demonstrate the knowledge aand
nd need for sustainable
development.

PO 7. Ethics: Apply ethical principles for commit to professional ethics, responsibilities and
norms of the engineering practice.

PO 8. Individual and team work: Function effectively as an individual and as a team member
or leader in diverse/ multidisciplinary teams.

PO 9. Communication: An ability to communicate effectively.

PO 10. Life-long
long learning: Recognize the need for, and have the preparation and ability to
Engage in independent and life
life-long learning in the context of technological changes
JAYAWANT SHIKSHAN PRASARAK MANDAL’s

Bhivrabai Sawant Polytechnic


(Approved by AICTE, New Delhi, Govt. of Maharashtra, Affiliated to MSBTE Mumbai)
Gat No. 720 (1&2), Wagholi, Pune
Pune-Nagar Road, Pune-412207)
Phone: 020 – 65335100 Tele fax: - + 91-020-65335100
E-mail: bspoly@rediffmail.com Website: www.jspm.edu.in

Programme Educational Objectives (Peo’s )

PEO 1: To develop the ability among student to understand the concept of


electronics & telecommunication engineering that will facilitate social & industrial
demand.

PEO 2: To give exposure to emerging technologies adequate training &


opportunities to work as an individual & team effectively in the world of work.

PEO 3: To promote innovative ideas, logical thinking & improve communication


skills, presentation skills, learning abilities & managing skills.

PEO 4: To develop & enhance ability to solve, analyze engineering problems &
provide real time solutions.

Programme Specific Outcomes (Pso’s)


PSO 1: To apply fundamentals of electronics in various domains of analog and
digital systems.

PSO2: To design and analyze functional elements of different wired and wireless
communication systems.

PSO3: Understanding the principle and construction of electrical machine and


determine their performance through testing.
Contents
Sr.No Index Page. No
1. ABSTRACT 1
2. INTRODUCTION 2
3. LITERATURE SURVEY 3-4
4. PROBLEM DEFINITION 5
5. METHODOLOGY 6
6. BLOCK DIAGRAM 7-8
7. WORKING DIAGRAM 9-10
8. CIRCUIT DIAGRAM 11-12
9. NODEMCU ESP-8266 12-E
 OVERVIEW
13-15
 PIN DIAGRAM/DESCRIPTION
 FEATURES
10.
4-CHANNEL RELAY MODULE
 INTRODUCTION
 PRINCIPLE 16-17
 PIN DESCRIPTION
 FEATURES

11.
ESP-8266
 INTRODUCTION
18-20
 PIN DIAGRAM
 PIN CONFIGURATION
 SPECIFICATION
12. POWER SUPPLY
 INTRODUCTION 21-22
 DESCRIPTION
13. FLOW CHART (PROGRAMMING) 23
14. ADVANTAGES & APPLICATIONS 24-25
15. REFERENCES 26
16. CONCLUSION 27
17. FUTURE SCOPE 28
18. COST OF COMPONENTS 29
19. APPENDIX A 30-32
Chapter No : 1

ABSTRACT
HOME AUTOMATION USING NODEMCU & BLYNK

ABSTRACT

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. With the rapid increase in the number of users of internet over the past decade
has made Internet a part and parcel of life, and IoT is the latest and emerging internet
technology. Internet of things is a growing network of everyday object-from industrial
machine to consumer goods that can share information and complete tasks while you
are busy with other activities. Wireless Home Automation system (HAS) 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. It is meant to save the electric power and
human energy. The home automation system differs from other system by allowing
the user to operate the system from anywhere around the world through internet
connection. In this paper we present a Home Automation system(HAS) using Blynk
Community that employs the integration of cloud networking, wireless
communication, to provide the user with remote control of various lights, fans, and
appliances within their home and storing the data in the cloud. The system will
automatically change on the basis of sensors’ data. This system is designed to be low
cost and expandable allowing a variety of devices to be controlled

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 1


Chapter No : 2

INTRODUCTION
HOME AUTOMATION USING NODEMCU & BLYNK

INTRODUCTION

IOT or internet of things is an upcoming technology that allows us to


control hardware devices through the internet .Here we propose to use IOT in
order to control home appliances, thus automating modern homes through the
internet. This system uses 4-loads to demonstrate as house Appliances
Controlling. Our user friendly interface allows a user to easily control these
home appliances through the internet Worldwide. For this system we use an
NodeMCU (Node Microcontroller Unit).This microcontroller is interfaced with
a Relay modem to get user commands over the internet. Relays are used to
switch loads. The entire system is powered by a 5V Adaptor/Charger (Micro-
type). After receiving user commands over the internet, NodeMCU processes
these instructions to operate these loads accordingly and display the system
status on an Smart Phone Display. Thus this system allows for efficient home
automation over the internet.

In this we have used the Blynk Community Application dor controlling the
Home Appliance all over the world. The Method used for controlling are
Swiping the figures on Smartphone or Voice Control with Google assistant and
After that we have used the latest technique that is IFTTT Platform & Web-
Hooks For triggering our circuits. It will trigger the circuit as it gets input
command from the Google assistant.

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 2


Chapter No : 3

LITERATURE SURVEY
HOME AUTOMATION USING NODEMCU & BLYNK

3.1. LITERATURE SURVEY

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.

2) GSM BASED HOME AUTOMATION SYSTEM USING CELL


PHONES:

 Because of the mobile phone and GSM technology, the GSM based home
automation is lure to research.
 The SMS based home automation, GPRS based home automation and dual tone
multi frequency (DTMF) based home automation, these options we considered
mainly for communication in GSM.
 The home sensors and devices interact with the home network and communicates
through GSM and SIM (subscriber identity module).
 The system use transducer which convert machine function into electrical signals
which goes into microcontroller.
 The sensors of system convert the physical qualities like sound, temperature and
humidity into some other quantity like voltage.
 The microcontroller analysis all signal and convert them into command to
understand by GSM module.
 Select appropriate communication method among SMS, GPRS and DTFC based
on the command which received GSM module.

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 3


HOME AUTOMATION USING NODEMCU & BLYNK

3) WI-FI BASED HOME AUTOMATION SYSTEM USING CELL


PHONES:

 Wi-Fi based home automation system mainly consist three modules, the server,
the hardware interface module, and the software package.
 The figure shows the system model layout. Wi-Fi technology is used by server,
and hardware Interface module to communicate with each other.
 The same technology uses to login to the server web based application. remote
users can access server web based application through the internet using
compatible web browser. Software of the latest home automation system is split
to server application software, and Microcontroller (Arduino) firmware.
 The Arduino software, built using C language, using IDE comes with the
microcontroller itself. Arduino software is culpable for gathering events from
connected sensors, then applies action to actuators and pre- programmed in the
server.
 Another job is to report the and record the history in the server DB. The server
application software package for the proposed home automation system, is a web
based application built using asp.net.
 The server application software can be accessed from internal network or from
internet if the server has real IP on the internet using any internet navigator
supports asp.net technology.
 Server application software is culpable of; maintain the whole home automation
system, setup, and configuration.

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 4


Chapter No : 4

PROBLEM DEFINITION
HOME AUTOMATION USING NODEMCU & BLYNK

4.1. PROBLEM DEFINITION & PROBLEM STATEMENT

Today people are looking at ways and means to better their life-style using the latest
technologies that are available. Any new facility for home appliance that promises to
enhance their life-style is grabbed by the consumers. The more such facilities and
appliances are added, it becomes inevitable to have easy and convenient methods and
means to control and operate these appliances. Conventional wall switches are located
in different parts of a house and thus necessitates manual operations like to switch on
or off these switches to control various appliances. It gets virtually impossible to keep
track of appliances that are running and also to monitor their Performances. And Aim
is to Built an system which controls home appliances with less efforts , like control
using mobile, or voice based controlled….

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 5


Chapter No : 5

METHODOLOGY
HOME AUTOMATION USING NODEMCU & BLYNK

5.1. METHODOLOGY

1) Make Connection As Per Circuit Diagram, Make Connection On NodeMCU


2) And Then Connect NodeMCU To The Wifi using hotspot/Router.
3) Then Connect The NodeMCU pins Output To The Relay Driver Circuit
4) Then Start Programming the NodeMCU Module.
5) Programme The NodeMCU Using Aurdino IDE Software.
6) Download the Blynk Liberary zip File, Install it from add liberary files.
7) Downold the NodeMCU boards From preferences, by inserting the library link
in it.
8) Set The Output Of NodeMCU (D0 – D14) For Different Control Function.
9) Compile the Typed Programme check whether errors are occur or not….
10) Upload the Programme onto NodeMCU using mocro-type USB Cables.
11) Then Connect The NodeMCU Module To the Internet using Router/Hotspot.
12) Now Pair The NodeMCU Module With Android Application . i.e Blynk App.

CONTROL TYPE
 MANUAL CONTROL.

1. Now Set The Function of Switches In Application.


2. Checkout All The Connection First..
3. Now To Test The Model…..

 VOICE CONTROL

1. GoTo site IFTTT sign in Create the Google Assistant Applets (triggers for
controlling).
2. Then after creating applets Configure those applets with WebHooks.
3. Connect Blynk the Web-Hooks by creating the Trigger weblink to Blynk App.
4. The link is available on net.. just copy the link and add AuthToken and set the
pin Number.
5. All set now just check the set-up with google assistant by giving commands

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 6


Chapter No : 6

BLOCK DIAGRAM
HOME AUTOMATION USING NODEMCU & BLYNK

6.1. BLOCK DIAGRAM

Fig. Block Diagram Of Home Automation.

1.1. DESCRIPTION

SMART PHONE

Used for controlling Purpose, for giving command and gain output, for this blynk
Android app is required.
required

NodeMCU Esp-8266
8266 (Wi-Fi Enable Microcontroller).

To take input and perform operation. As per programme fed in the Microcontroller and
obtain output as per user requirements.

JSPM’s Bhivrabai of E&TC


bai Sawant Polytechnic, Wagholi. Dept.of Page | 7
HOME AUTOMATION USING NODEMCU & BLYNK

RELAY DRIVER

Basically the output of microcontroller is in Mili-volts so this output volt is not


sufficient to run the bulky load output.

So as to run the appliances on 230v we require an Relay module so the output is fed to
the relay module according to given input to the relay module it will generate output
and drive various appliances and load e.g. Lamp, Fan ,Tube light ,T.V, etc.

Output

These are the output Generated from the given input by the user The user can set the
various output sections and can gain output through any of the section like Home
appliance A for lights, Home appliance B for fans, Home appliance C for T.V .and
many more……….

Home appliance A

Home appliance B

Home appliance C

Home appliance D

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 8


Chapter No : 7

WORKING DIAGRAM
HOME AUTOMATION USING NODEMCU & BLYNK

7.1. WORKING OF HOME AUTOMATION

Fig. Working Diagram Of Home Automation.

 PROCESS OF OPERATION

Fig. Flow Chart Of Home Automation.

JSPM’s Bhivrabai of E&TC


bai Sawant Polytechnic, Wagholi. Dept.of Page | 9
HOME AUTOMATION USING NODEMCU & BLYNK

1) Android Device –

The Device used to provide the Commands, Control the


Appliances, Switch the Loads over the Internet
(Internet of Things ) Through Voice Commants Or Swiping
on Screen/Display of Smartphones.

2) NodeMCU Processing –

The Heart Of Home Automation, Used to Process the


Information/Commands/Instruction provided by the User or
Owner, Its function is to Process the data & Pass the signal to
the Relay and Switch the loads as per given Input.

3) Applications/Appliances-
The Load Can be of any type which is the output of the circuit. The Output oif relay
drives the appliances. i.e switch the Loads.

1) Fan
2) Led Bulbs
3) Computers
4) Motors
5) Pumps
6) Tele-Vision(T.V)
7) Speakers
8) DVD players
9) Switches etc…………….

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 10


Chapter No : 8

CIRCUIT DIAGRAM
HOME AUTOMATION USING NODEMCU & BLYNK

8.1. CIRCUIT DIAGRAM OF HOME AUTOMATION USING


NODEMCU

Fig. Circuit Diagram Of Home Automation.

NodeMCU Esp-8266
8266 (Wi-Fi Enable Microcontroller).

Controller Unit. It takes input from user from internet, then process
It is Node Micro-Controller
the data and perform operation. As per programme fed in the Microcontroller and
obtain output as per user requirements.

RELAY DRIVER

Mili volts so this output volt is not


Basically the output of microcontroller is in Mili-volts
sufficient to run the bulky
bu load output.

So as to run the appliances on 230v we require an Relay module so the output is fed to
the relay module according to given input to the relay module it will generate output
,T.V, etc.
and drive various appliances and load e.g. Lamp, Fan ,Tube light ,T.V,

JSPM’s Bhivrabai of E&TC


bai Sawant Polytechnic, Wagholi. Dept.of Page | 11
HOME AUTOMATION USING NODEMCU & BLYNK

OUTPUT

These are the output Generated from the given input by the user. The user can set the
various output sections and can gain output through any of the section like Home
appliance A for lights, Home appliance B for fans, Home appliance C for T.V .and
many more……….

Home appliance A

Home appliance B

Home appliance C

Home appliance D

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 12


Chapter No : 9

NODEMCU
ESP-8266 12-E
HOME AUTOMATION USING NODEMCU & BLYNK

9.1. OVERVIEW (NodeMCU)

low cost open source IoT platform. It initially included


1) NodeMCU is a low-cost
firmware which runs on the ESP8266 Wi-Fi Wi Fi SoC from Espressif Systems, and
hardware which was based ba on the ESP-12 module. Later, support for the
ESP32 32-bitbit MCU was added….
added
NodeMC stands for Node Microcontroller unit It has open source
2) The term NodeMCU
hardware and software environment. NodeMCU is also called as Devkit 1.0.
It is on board system on chip(SOC) called ESP-8266.The
ESP The ESP8266 is a low low-
cost Wi-FiFi microchip with full TCP/IP stack and microcontroller capability.
capability
3) The ESP8266 is the name of a micro controller designed by Espressif Systems.
The ESP8266 itself is a self contained WiFi networking solution offering as a
self-contained
bridge from existing micro controller to WiFi and is also capable of running
run
self-contained
contained applications.
4) This module comes with a built in USB connector and a rich assortment of pin- pin
outs. With a micro USB cable, you can connect NodeMCU devkit to your
laptop and flash it without any trouble, just like Arduino. It is also immediately
immed
breadboard friendly.

JSPM’s Bhivrabai of E&TC


bai Sawant Polytechnic, Wagholi. Dept.of Page | 13
HOME AUTOMATION USING NODEMCU & BLYNK

9.2. FEATURES OF NODEMCU

Developer ESP8266 Open-source Community

Type Single-board microcontroller

Introductory price 300-400 Rs

Operating system XTOS

CPU ESP8266

Memory 128kBytes

Storage 4MBytes

Power USB

Website www.nodemcu.com

9.3. SPECIFICATIONS

 Voltage:3.3V.
 Wi-Fi Direct (P2P), soft-AP.
 Current consumption: 10uA~170mA.
 Flash memory attachable: 16MB max (512K normal).
 Integrated TCP/IP protocol stack.
 Processor: Tensilica L106 32-bit.
 Processor speed: 80~160MHz. • RAM: 32K + 80K.
 GPIOs: 16 (multiplexed with other functions).
 Analog to Digital: 1 input with 1024 step resolution.
 +19.5dBm output power in 802.11b mode • 802.11 support: b/g/n.
 Maximum concurrent TCP connections: 5.

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 14


HOME AUTOMATION USING NODEMCU & BLYNK

9.4. PIN DIAGRAM/ PIN LOYOUT OF NodeMCU

9.5. NodeMCU GPIO pin for Lua

JSPM’s Bhivrabai of E&TC


bai Sawant Polytechnic, Wagholi. Dept.of Page | 15
Chapter No : 10

RELAY MODULE
HOME AUTOMATION USING NODEMCU & BLYNK

10.1. RELAY MODULE (5V).

Fig. RELAY MODULE 5V

10.2.
.2. INTRODUCTION
channel relay interface board, and each channel needs a 15
This is a 5V 4-channel 15-20mA
nt. It can be used to control various appliances and equipment with large
driver current.
current relays that work under AC250V 10A or
current. It is equipped with high-current
DC30V 10A. It has a standard interface that can be controlled directly by
microcontroller.

10.3. PRINCIPLE

From the picture below, you can see that when the signal port is at low level, the
signal light will light up and the opto-coupler
opto Relay (it transforms electrical signals by
light and can isolate input and output electrical signals) will conduct, and then the
transistor will conduct, the relay coil will be electrified, and the normally open contact
of the relay will be closed. When the signal port is at high level, the normally closed
contact of the relay will be closed. So you can connect and disconnedisconnect the load by
controlling the level of the control signal port.

JSPM’s Bhivrabai of E&TC


bai Sawant Polytechnic, Wagholi. Dept.of Page | 16
HOME AUTOMATION USING NODEMCU & BLYNK

10.4. PIN DESCRIPTION

1) Input: 0-5 V
2) VCC: Positive supply voltage
3) GND: Ground
4) IN1--IN4: Relay control port
5) Output: supports various types of loads
6) Connect a load, DC 30V/10A,AC 250V/10A

10.5. FEATURES

1. Size: 75mm (Length) * 55mm (Width) * 19.3mm (Height)


2. Weight: 61g
3. PCB Color: Blue
4. There are four fixed screw holes at each corner of the board, easy for install
and fix. The diameter of the hole is 3.1mm
5. High quality Single relay is used with single pole double throw, a common
terminal, a normally open terminal, and a normally closed terminal
6. Optical coupling isolation, good anti-interference.
7. Closed at low level with indicator on, released at high level with indicator off
8. VCC is system power source, and JD_VCC is relay power source. Ship 5V
relay by default. Plug jumper cap to use
9. The maximum output of the relay: DC 30V/10A, AC 250V/10A

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 17


Chapter No : 11

ESP-8266
HOME AUTOMATION USING NODEMCU & BLYNK

11.1. ESP 8266 MODULE

Fig. Esp-- 8266.

11.2.
.2. INTRODUCTION

The chip first came to the attention of Western makers in August 2014 with the ESP-
ESP
01 module, made by a third
third-party manufacturer Ai-Thinker.

Wi Fi network and make


This small module allows microcontrollers to connect to a Wi-Fi
simple TCP/IP connections using H
Hayes-style commands.

English language documentation on the chip and


However, at first there was almost no English-language
the commands it accepted.

The very low price and the fact that there were very few external components on the
eventually be very inexpensive in volume,
module, which suggested that it could eventually
attracted many hackers to explore the module, chip, and the software on it, as well as
to translate the Chinese documentation.

built in flash, allowing for single


The ESP8285 is an ESP8266 with 1 MiB of built-in single-chip
devices capable of connecting to Wi
Wi-Fi.

of E&TC
JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of Page | 18
HOME AUTOMATION USING NODEMCU & BLYNK

11.3. PIN LAYOUT

11.4.. SPECIFICATION

1. Low cost, compact and powerful Wi-Fi


Wi Module
2. Power Supply: +3.3V only
3. Current Consumption: 100mA
4. I/O Voltage: 3.6V (max)
5. I/O source current: 12mA (max)
6. Built-in
in low power 32
32-bit MCU @ 80MHz
7. 512kB Flash Memory
8. Can be used as Station or Access Point or both combined
9. Supports Deep sleep (<10uA)
10. Supports serial communication hence compatible with many development
platform like NodeMCU

of E&TC
JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of Page | 19
HOME AUTOMATION USING NODEMCU & BLYNK

11.5. PIN CONFIGURATIONS

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 20


Chapter No : 12

POWER SUPPLY
HOME AUTOMATION USING NODEMCU & BLYNK

12.1. BLOCK DIA


DIAGRAM OF POWER SUPPLY

12.2.
.2. INTRODUCTION

Today almost every electronic device needs a DC supply for its smooth operation and
they need to be operated within certain power supply limits. This required DC voltage
or DC supply is derived from single phase ac mains.

A regulated power supply can convert unregulated an AC (alternating current or


voltage) to a constant DC (direct current or voltage). A regulated power supply is used
to ensure that the output remains constant even if the input changes. A regulated DC
power supply is also called as a linear power supply, it is an embedded circuit and
consists of various blocks.

The regulated power supply will accept an AC input and give a constant DC output.

So we have Powered the Kit/ set-up


set up with the Adaptor Which gives exact 5V output
voltage we have used the micro type USB cables for connection of Controller with
micro-type
Adaptor.

of E&TC
JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of Page | 21
HOME AUTOMATION USING NODEMCU & BLYNK

12.3. DESCRIPTION

The basic building blocks of a regulated DC power supply are as follows:

1. A step down transformer


2. A rectifier
3. A DC filter
4. A regulator

Step Down Transformer

A step down transformer will step down the voltage from the ac mains to the required
voltage level. The turn’s ratio of the transformer is so adjusted such as to obtain the
required voltage value. The output of the transformer is given as an input to the
rectifier circuit.

Rectification

Rectifier is an electronic circuit consisting of diodes which carries out the rectification
process. Rectification is the process of converting an alternating voltage or current into
corresponding direct (DC) quantity. The input to a rectifier is ac whereas its output is
unidirectional pulsating DC. Usually a full wave rectifier or a bridge rectifier is used
to rectify both the half cycles of the ac supply (full wave rectification). Figure below
shows a full wave bridge rectifier.'

DC Filtration

The rectified voltage from the rectifier is a pulsating DC voltage having very high
ripple content. But this is not we want, we want a pure ripple free DC

Regulation

This is the last block in a regulated DC power supply. The output voltage or current
will change or fluctuate when there is change in the input from ac mains or due to
change in load current at the output of the regulated power supply or due to other
factors like temperature changes. This problem can be eliminated by using a regulator.
A regulator will maintain the output constant even when changes at the input or any
other changes occur. Transistor series regulator, Fixed and variable IC regulators or a
zener diode operated in the zener region can be used depending on their applications.
IC’s like 78XX and 79XX are used to obtained fixed values of voltages at the output.
waveform. Hence a filter is used. Different types of filters are used such as capacitor
filter, LC filter, Choke input filter, π type filter.

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 22


Chapter No : 13

FLOW CHART
HOME AUTOMATION USING NODEMCU & BLYNK

13.1. FLOW CHART FOR PROGRAMMING

Fig. Flow Chart Of Programming

JSPM’s Bhivrabai of E&TC


bai Sawant Polytechnic, Wagholi. Dept.of Page | 23
Chapter No : 14

ADVANTAGES
HOME AUTOMATION USING NODEMCU & BLYNK

14.1. ADVANTAGES

1. Savings:
Smart thermostats and smart light bulbs save energy, cutting utility costs over
time. Some home automation technologies monitor water usage, too, helping to
prevent exorbitant wate r bills. Certain devices even offer rebates.

2. Convenience:
Because home automation technology performs rote tasks automatically, end
users experience great convenience. Lots of smart gadgets are compatible with
one another, and you can set different triggers between devices to automate
regular home processes. For instance, you could set your smart locks to turn on
your smart lighting when you unlock the front door.
.
3. Control:
Consumers also choose smart home devices to better control functions within
the home. With home automation technology, you can know what’s happening
inside your home at all times.

4. Comfort:
Some people use smart technology to record shows or to play music
throughout the home. Connected devices can also help create a comfortable
atmosphere—they provide intelligent and adaptive lighting, sound, and
temperature, which can all help create an inviting environment.

5. Peace of Mind:
Finally, many consumers invest in home automation technology for peace of
mind. A new mom or dad can check on their little one thanks to smart cameras
and other technologies. Or, if you can’t remember whether you closed the
garage after you left, you can verify remotely with an app.

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 24


Chapter No : 15

APPLICATIONS
HOME AUTOMATION USING NODEMCU & BLYNK

15.1. APPLICATIONS

1. Heating, ventilation and air conditioning (HVAC):


it is possible to have remote control of all home energy monitors over the
internet incorporating a simple and friendly user interface.

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. Occupancy-aware control system:


It is possible to sense the occupancy of the home using smart meters[14] and
environmental sensors like CO2 sensors,[15] which can be integrated into the
building automation system to trigger automatic responses for energy
efficiency and building comfort applications.

4. Appliance control and integration;


With the smart grid and a smart meter, taking advantage, for instance, of high
solar panel output in the middle of the day to run washing machines.

5. Home robots and security:


A household security system integrated with a home automation system can
provide additional services such as remote surveillance of security cameras
over the Internet, or access control and central locking of all perimeter doors
and windows.

6. Leak detection.
smoke and CO detectors.

7. Home automation for the elderly and disabled.

8. Smart Kitchen and Connected Cooking.


Using Voice control devices like Amazon Alexa or Google Home to kitchen
appliances.

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 25


Chapter No : 16

REFERENCES
HOME AUTOMATION USING NODEMCU & BLYNK

16.1. REFERENCES

1) https://www.elprocus.com/home-automation-projects-engineering-students/
2) https://openhomeautomation.net/
3) https://publications.waset.org/5037/pdf
4) https://www.academia.edu/11182817/WIFI_BASED_WIRELESS_ADVA
NCED_HOME_AUTOMATION_SYSTEM
5) https://circuitdigest.com/microcontroller-projects/diy-smart-plug-using-
esp8266
6) https://circuitdigest.com/home-automation-projects
7) https://www.makeuseof.com/tag/getting-started-blynk-simple-diy-iot-
devices/
8) https://www.blynkcommunity.in
9) https://www.gits.in
10) https://www.iftt.in
11) https://www.arduino.in

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 26


Chapter No : 17

CONCLUSION
HOME AUTOMATION USING NODEMCU & BLYNK

17.1. CONCLUSION

While wearing down this endeavour we have grabbed a lot of finding out about
various modules being used in this errand. We are glad we can Built this Project as a
part in this endeavour and set up new musings. We believe the assignment completes
as needed and the data grabbed in the midst of this period will be used in our future
corporate life. Additionally, we might want to include that home computerization is
the fate of places of new world.

Home automation is a resource which can make home environment Automated.


People can control their electrical devices via. Smartphone These home automation
devices and set-up controlling action through mobile. In future these products may
have high potential for marketing.

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 27


Chapter No : 18

FUTURE SCOPE
HOME AUTOMATION USING NODEMCU & BLYNK

18.1. FUTURE SCOPE

1) The going with stage for home robotization advertise will happen subject to a
couple of key overhauls in the progression open in Automation, for example,
improvement in Wireless Automation blueprints and moreover bringing down of
regard appears as the market starts perceive Home mechanization use in more
noteworthy volumes. A couple of examples that we foresee for this time of the
business are,
2) Big associations like Philips, Siemens and Schneider will as time goes on bring out
truly mass market mechanization things with interfacing with UI in any case at
lower esteem point as contrast with today, and more people will be able to bear the
cost of the things.
3) Solution commitments will bit by bit move to an all the more straightforward
structure, where next to two or three key parts, customers will have the ability to
buy and use the Automation things themselves without the guide of any specific
ace .
4) Future Scope for the home automation system involves making homes even
smarter. Homes can be interfaced with the sensors including the motion sensors,
light sensors and temperature sensors and thus this may provide the automatic
toggling of the devices according to the conditions.
5) More energy can be conserved by ensuring occupation of the house before turning
on devices and checking the brightness and turning off the light if not necessary.
6) The system can be integrated closely with the home security solutions enhancing
the safety for home owners.

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 28


Chapter No : 19

COST OF COMPONENTS
HOME AUTOMATION USING NODEMCU & BLYNK

19.1. COST OF COMPONENTS

Sr. No. Component Price

1) NodeMCU Esp-8266 370

2) Relay Module 450

3) Jumper Wires/ Connection Wires 80

4) Switch Board Box 150

5) Sockets 3-phase (1x4) 160

6) Switch 20

7) LEDS’s 30

8) Motor 5v 30

9) Light Bulb (1x3) 50

10) Charger 150

11) USB Cables 100

12) Home Set-up 300

13) Paper Publishing 800

Total ₹ 2690+

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 29


Chapter No : 20

APPENDIX A
HOME AUTOMATION USING NODEMCU & BLYNK

20.1 APPENDIX A (FOR NodeMCU Esp-8266

/*************************************************************

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 code is in public domain.

*************************************************************

This Code runs directly on NodeMCU.

Note: This requires ESP8266 support package:

https://github.com/esp8266/Arduino

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 30


HOME AUTOMATION USING NODEMCU & BLYNK

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!

*************************************************************/

/* Comment this out to disable prints and save space */

MAIN PROGRAMME

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>

#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.

// Go to the Project Settings (nut icon).

char auth[] = "AuthToken";

// Your WiFi credentials.

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 31


HOME AUTOMATION USING NODEMCU & BLYNK

// Set password to "" for open networks.

char ssid[] = "Network name";

char pass[] = "Password";

void setup()

// Debug console

Serial.begin(9600);

Blynk.begin(auth, ssid, pass);

// You can also specify server:

//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);

//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);

void loop()

Blynk.run();

JSPM’s Bhivrabai Sawant Polytechnic, Wagholi. Dept.of E&TC Page | 32

You might also like