Sie sind auf Seite 1von 13

Contents

1 Introduction : ............................................................................................................................................. 5
1.1Statement of Problem: ....................................................................................................................... 5
1.2.Motivation: ........................................................................................................................................ 5
1.3.Objective:........................................................................................................................................... 5
1.4 Overview benefits:............................................................................................................................. 5
2 .Estimated cost : ......................................................................................................................................... 6
3.Cirucit Diagram : ........................................................................................................................................ 6
4.Working Flowchart : ................................................................................................................................... 7
5.Coding Flowchart ....................................................................................................................................... 8
6.Project Code:.............................................................................................................................................. 9
7.Blynk app:................................................................................................................................................. 10
8.ESP8266 Wi-Fi module: ............................................................................................................................ 11
Pin configuration of NodeMCU: .................................................................................................................. 11
9.Working Principle ..................................................................................................................................... 12
10.Software used: ....................................................................................................................................... 12
11.Applications: .......................................................................................................................................... 12
12.Advantages: ........................................................................................................................................... 13
13.Disadvantages ........................................................................................................................................ 13
14.Results: ................................................................................................................................................... 13
15.Conclusion:............................................................................................................................................. 13
References : ................................................................................................................................................ 13

Page 1 of 13
Figure 1 Circuit Diagram ........................................................................................................................... 6
Figure 2 Flowchart....................................................................................................................................... 7
Figure 3 Coding Flowchart ....................................................................................................................... 8
Figure 4 Blynk app.................................................................................................................................... 10
Figure 5 dashboard of Blynk app ............................................................................................................ 10
Figure 6 NodeMcu Module ...................................................................................................................... 11
Figure 7 NodeMCU with inbuilt Wi-Fi module .................................................................................... 11
Figure 8 pin configuration of NodeMCU Module ................................................................................... 12
Figure 9 ...................................................................................................................................................... 12

Page 2 of 13
ACKNOWLEDGEMENT:

I would like to express my special thanks of gratitude to my teacher Engr.Sir Rao Raees who
gave me the opportunity to do this wonderful project on the topicWiFi Home Automation
Using NodeMCU(ESP8266).
Which also helped me in doing a lot of Research and i came to know about so many new things
I am really thankful to them. Secondly i would also like to thank my friends who helped me a lot
in finishing this project within the limited time. I am making this project not only for marks but
to also increase my knowledge.
THANKS AGAIN TO ALL WHO HELPED ME

Page 3 of 13
ABSTRACT

Traditionally electrical appliances in a home are controlled via switches that regulate the
electricity to these devices. As the world gets more and more technologically advanced, we find
new technology coming in deeper and deeper into our personal lives even at home. Home
automation is becoming more and more popular around the world and is becoming a common
practice. The process of home automation works by making everything in the house
automatically controlled using technology to control and do the jobs that we would normally do
manually. Home automation takes care of a lot of different activities in the house.

The project proposes an efficient implementation for IoT (Internet of Things) used for
monitoring and controlling the home appliances via World Wide Web. Home automation system
uses the portable devices as a user interface. They can communicate with home automation
network through an Internet gateway, by means of low power communication protocols like
Zigbee, Wi-Fi etc. This project aims at controlling home appliances via web browser using Wi-Fi
as communication protocol and node MCU as server system. The user here will move directly
with the system through a web-based interface over the web, whereas home appliances like
lights, fan etc are remotely controlled through easy website. The server will be interfaced with
relay hardware circuits that control the appliances running at home. The server communicates
with the corresponding relays. If the web affiliation is down or the server isn't up, the embedded
system board still will manage and operate the appliances domestically. By this we provide a
climbable and price effective Home Automation system

Page 4 of 13
1 Introduction :

1.1Statement of Problem:
 We are facing problems to operates home appliances by manually
sometimes in emergency basics
 when we feel tired and this will a big issue of energy consuming by home
appliances
 it is a huge breakdown of unusually use of power
 such as darkness in the room we have difficulty to switch on lights and fan
e.t.c

1.2.Motivation:
 We are making a project which is based on a device which useful for
operating home appliances by cellphone
 It useful to save energy and efficient to use
 And can easily operate with a wide range of area
 It is used for switching purposes of home appliances

1.3.Objective:
 We are making an device to operate electronics appliances in the
home and office bases its called cellphone controlled home appliances
 It is based on the NodeMCU which is based on IoT
 Its main function is to operate the home appliances for switching
on/off.

1.4 Overview benefits:


The project proposes an efficient implementation for IoT (Internet of Things) used for monitoring and
controlling the home appliances via World Wide Web. Home automation system uses the portable
devices as a user interface. They can communicate with home automation network through an Internet
gateway, by means of low power communication protocols like Zigbee, Wi-Fi etc.

This project aims at controlling home appliances via web browser using Wi-Fi as communication
protocol and node MCU as server system. NodeMCU is an open source IoT platform. The user here will
move directly with the system through a web-based interface over the web, whereas home appliances
like lights, fan etc are remotely controlled through easy website. The server will be interfaced with relay
hardware circuits that control the appliances running at home. The server communicates with the
corresponding relays.

Page 5 of 13
2 .Estimated cost :

S.no Components Price (Rs)


1 Nodemcu (esp8266)Module Rs=420
2 2xRelay Module Rs=150
3 Jumpers wires Rs=200
4 2xbulbs holders &bulbs Rs=140
5 9volts Battery&connector Rs=70

Table 1 Estimated Cost

3.Cirucit Diagram :

Figure 1 Circuit Diagram

Page 6 of 13
4.Working Flowchart :

Start

NodeMCU is turn on and


connected to preset with Wi-
Fi(SSID and Password)

Wait For bylnk app


Dashboard Online Node MCU receive Relay board receives
status from blynk app The signal from signals from NodeMCU
Server

ON/OFF ON/OFF

Relay 1 Relay 2

Figure 2 Flowchart

Page 7 of 13
5.Coding Flowchart :
Start

Char auth[]<-Auth
Token
Char SSID[]<-iPhone
Char pass[]<-fahad2244

Serial begen(9600)
pinMode(D1 &
D2 As an Output)
DigitalWrite(D1
&D2 is High)
Blynkbegin(auth,s
sid and pass)

If Bynk app No
runs

yes

D1 or D2
Executed

End program

Figure 3 Coding Flowchart


Page 8 of 13
6.Project Code:
#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[] = "83ccb13973dd42b0b4550a0af1f9517c"; //You will get this Auth Token in Gmail
if you signin Blynk app with your Gmail ID
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "iPhone"; //Enter your WIFI Name
char pass[] = "fahad2244";//Enter your WIFI Password
void setup()
{
// Debug console
Serial.begin(9600);
pinMode(D1,OUTPUT);
pinMode(D2,OUTPUT);
digitalWrite(D1,HIGH);
digitalWrite(D2,HIGH);
Blynk.begin(auth, ssid, pass);
}

void loop()
{
Blynk.run();
}

Page 9 of 13
7.Blynk app:
Blynk was designed for the Internet of Things. It can control hardware remotely, it can display
sensor data, it can store data, visualize it and do many other cool things. It's a digital dashboard
where you can build a graphic interface for your project by simply dragging and dropping
widgets. It's really simple to set everything up and you'll start tinkering in less than 5 mins.
Blynk is not tied to some specific board or shield. Instead, it's supporting hardware of your
choice. Whether your Arduino or Raspberry Pi is linked to the Internet over Wi-Fi, Ethernet or
this new ESP8266 chip, Blynk will get you online and ready for
the Internet Of Your Things.

Figure 4 Blynk app


Figure 5 dashboard of Blynk app

Page 10 of 13
8.ESP8266 Wi-Fi module:
NodeMCU is an open source LUA based firmware developed for ESP8266 wifi chip. By exploring
functionality with ESP8266 chip, NodeMCU firmware comes with ESP8266 Development board/kit
i.e. NodeMCU Development board.

Figure 6 NodeMcu Module

The ESP8266 is a low cost Wi-Fi microchip with full TCP/IP stack and microcontroller capacity

Figure 7 NodeMCU with inbuilt Wi-Fi module

Pin configuration of NodeMCU:

Page 11 of 13
Figure 8 pin configuration of NodeMCU Module

Figure 9

9.Working Principle
The home automation circuit is built around ESP8266, Blynk Android App, and a 4-channel
relay board. The hardware set up should be according to the circuit diagram. AC mains
appliances(Bulbs) will be connected to relays which are controlled by the ESP8266.User has to
install and configure the Blynk App as per the above instructions. Whenever the user presses a
icon in the app, then that information will be send to ESP8266 via WiFi. The ESP8266 analyses
the received commands and turns ON/OFF of the respective device via 4 – channel Relay board.

10.Software used:
In this project we used the software called Arduino software. We wrote our program also in
Arduino only. We used C language to writ the program

11.Applications:
 Lighting Control
 Air Conditioning
 Ventilation
 Heating
 Outdoor Lawn Irrigation
 Kitchen Appliances
 Security Systems

Page 12 of 13
12.Advantages:
 Equipment can be placed almost anywhere
 No unsightly cords running through your home
 No need for an additional Ethernet output
 Keeps your router’s ports free

13.Disadvantages
 The operation of the circuit depends on the working internet connection.
 If the working internet connection is not available then it will not run.
 It also depends on the free server provided by the third party,
 if the free server is not working then it will not run.
 NODE MCU has less resources of official documentation

14.Results:
The experimental model was made according to the circuit diagram and the results were as
expected. The loads are switched on when the NODE MCU gets the signal correctly from Blynk
app and it drives the particular load relay correctly. The loads are switched off only when the
NODE MCU gets the OFF signal from blynk app i.e. from the user.

15.Conclusion:
Wi-Fi technology capable solution has proved to be controlled remotely, provide home security
and is cost-effective as compared to the previously existing systems.

With the help of smart phones or computer the devices can be operated according to the user
wish with complete accuracy. In this project we overcome the problem of large data handling by
making this smart home technology even smarter and efficient by enabling smart home
appliances by sitting at any corner of the globe with the help of internet.

References :
1. https://www.instructables.com/id/Home-Automation-Using-Esp826612ENodeMcu-and-Blynk-/
2. https://www.hackster.io/abhijitbrain/iot-home-automation-node-mcu-blynk-12cc34
3. https://www.factoryforward.com/iot-home-automation-using-blynk-nodemcu/

Page 13 of 13

Das könnte Ihnen auch gefallen