Beruflich Dokumente
Kultur Dokumente
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.
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 :
3.Cirucit Diagram :
Page 6 of 13
4.Working Flowchart :
Start
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
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.
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.
The ESP8266 is a low cost Wi-Fi microchip with full TCP/IP stack and microcontroller capacity
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