IOT HOME AUTOMATION USING BLYNK AND NODEMCU Minor Project Report
Submitted by:
ABHINEET SIVADAS (0103IT161002) DARPAN ZOPE (0103IT161036) KUNDAN JHA (0103IT161055) LALU KUMAR MANDAL (0103IT161056) Group No.- 1
in partial fulfillment for the award of the degree of
BACHELOR OF ENGINEERING IN INFORMATION TECHNOLOGY
at LAKSHMI NARAIN COLLEGE OF TECHNOLOGY KALCHURI NAGAR, RAISEN ROAD, BHOPAL (INDIA) - 462021
SESSION JAN JUNE 2019
LAKSHMI NARAIN COLLEGE OF TECHNOLOGY BHOPAL (M.P.) Department of Information Technology DECLARATION I hereby declare that the minor project entitled “IOT Home Automation Using Blynk And Nodemcu” submitted for the B.E. (Information Technology) degree is our original work and the project has not formed the basis for the award of any an y other degree, diploma, fellowship or any other similar titles.
Name & Signature of the students with date
Place:
(1)…………………………………
Date:
(2)………………………………… (3)………………………………… (4)…………………………………
ii
LAKSHMI NARAIN COLLEGE OF TECHNOLOGY BHOPAL (M.P.) Department of Information Technology CERTIFICATE This is to certify that the minor project titled “ IOT Home Automation Automation Using Blynk And Nodemcu” is the bona fide work carried out by Abhineet Sivadas (0103IT161002), Darpan Zope (0103IT161036), Kundan Jha (0103IT161055), Lalu Kumar Mandal (0103IT161056) are student/students of
B.E.(Information Technology) of Lakshmi Narain College of Technology, Bhopal affiliated to Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal, Madhya Pradesh (India) during the academic year 201819, in partial fulfillment of the requirements for the award of the degree of Bachelor of Engineering (Information Technology ) and that the project has not formed the basis for the award previously of any other degree, diploma, fellowship or any other similar title.
Signature & Seal of HOD, Information Technology Technology
Lakshmi Narain College of Technology, Bhopal
iii
Signature of the Guide with Date
LAKSHMI NARAIN COLLEGE OF TECHNOLOGY BHOPAL (M.P.) Department of Information Technology ACKNOWLEDGEMENT We express our deep sense of gratitude to our respected and learned guides, Prof. Abhishek Dwivedi for their valuable help and guidance, we are thankful to them for the encouragement they have given us in completing the project. We are also grateful to respected Prof. Manish Shrivastava, Dean R&D for permitting us to utilizeall the necessary facilities of the institution. We are also thankful to all the other faculty & staff members of our department for their kind cooperation and help. Lastly, we would like to express our deep apperception towards our classmatesand our thanks to our parents for providing us the moral support andencouragement.
Abhineet Sivadas (0103IT 161002) Darpan Zope (0103IT161036) Kundan Jha (0103IT161055) Lalu Kumar Mandal (0103IT161056)
iv
ABSTRACT Home Automation is a way to have things around your home happen automatically. Thefirst thing that comes to mind when folks think of home automation are robots, flashinglights, complicated electronics and a general feeling that their home is less of a warmhome and more of a cold science experiment. However, in most homes today, you caneasily find some simple forms of automation such as:Garage door openers, RemoteControls, Irrigation / sprinkler control systems, Motion activated lights, Securitysystems, Programmable thermostats, Programmable light timers If you want to keepgoing, you can throw in dishwasher, clothes washers and dryers, ovens, microwaves, cars, lights and switches…. switches…. The list goes on and on. You may not think of a dishwasher or light switch as home automation, but compared towashing dishes by hand and striking a match to light a candle ever time you enter aroom, it's defiantly automation. However, each of these things was designed to help us to do some complicated, strenuous, unpleasant, or repetitious action automatically. Theterm 'Home Automation' today applies to the next level of automating home electronics. Why automate your home?
The simple answer is just to make life easier. We invented TV remote controls so wedidn't have to get out of the chair to change the channel. Some people now owncomplex media systems that require the owner to press 10 different buttons on 5remotes just to watch Oprah. What if you could?
Press one button on a remote control and have it dim the lights, set the volume level,and start playing a movie and music which you desire. Not have the sprinklers turn on if it just rained. Get emails sent to you at work or on your cell phone if a motion detector or security system is tripped while out of the house. Get emails sent to you with the caller ID information of a call received at your house when out. Automatically turn the lights onin the house when the garage door goes up and it's after sundown. Automatically turnthe front porch lights on 1/2 hour before sundown every day (and automatically adjustfor daylight savings). Automatically close the garage doors every night. Automaticallyturn on holiday lights at specific times (all at once). The fu ll list is limited to imaginationand a family's lifestyle.
v
LIST OF FIGURES 1. 2. 3. 4. 5. 6. 7. 8. 9.
A typical home automation setup for controlling a lamp Flow Diagram of home automation system Data Flow Diagram of home automation system Circuit Diagram of home automation system NodeMCU Pinout Steps Configuration Appliance in ON state Appliance in OFF state Appliance reading on phone
vi
LIST OF TABLES 1. NodeMCU Pins Description
vii
Table of Contents Title Page
i
Declaration of the Student
ii
Certificate of the Guide
iii
Acknowledgement
iv
Abstract
v
List of Figures
vi
List of Tables
vii
1.
INTRODUCTION
1.1 Problem Definition 1.2 Project Overview/Specifications 1.4 Hardware Specification 1.4 Software Specification
2.
LITERATURE SURVEY
2.1 Existing System 2.2 Proposed System 2.3 Feasibility Study
3.
SYSTEM ANALYSIS & DESIGN
3.1 Requirement Specification 3.2 Flowcharts / DFDs / ERDs 3.3 A Pseudo Code 3.4 Testing Process
4.
RESULTS / OUTPUTS
5.
CONCLUSIONS / RECOMMENDATIONS
6.
REFERENCES
7.
APPENDICES
7.1 Steps to execute/run/implement the project
1. INTRODUCTION 1.1 Problem Definition A home automation system is a means that allow users to control electric appliances of varying kind. Home automation is also known as domotics, a contraction of the words “domestic robotics”. When home automation principles are applied to buildings not falling falling in the “home” category, building automation system is a commonly used term. The most common usage scenario of a home automation system is lighting control, which is fairly easy to both explain and set up. The main components are: • A hardware controller, controller, or central control unit, • an actuator, and • a lamp. The actuator in this case is a device that controls the flow of current from a wall socket to the lamp in question. It does so by being plugged into both the wall socket, and the lamp. The control unit communicates with the actuator to tell how much current to let through to the lamp. The control unit may be operated through a Web site, a remote control, or something similar. The setup is illustrated in Figure 1.1. The wireless communication between the remote, control unit, and the actuator is done using a home automation communications protocol
Figure 1.1: A typical home automation setup controlling a lamp
1.2 Project Overview/Specifications Overview/Specifications The main objective of this project is to develop a home automation system using an Node MCU board with Internet being remotely controlled by any Android OS smart phone. As technology is advancing so houses are also getting smarter. Modern houses are gradually shifting from conventional switches to Page 1 of 18
centralized control system, involving remote controlled switches. Presently, conventional wall switches located in different parts of the house makes it difficult for the user to go near them to operate. Even more it becomes more difficult for the elderly or physically handicapped people to do so. Remote controlled home automation system provides a most mod ern solution with smart phones. In order to achieve this, a relay module is interfaced to the Node MCU board at the receiver end while on the transmitter end, a GUI application on the cell phone sends ON/OFF commands to the receiver where loads are connected. By touching the specified location on the GUI, the loads can be turned ON/OFF remotely through this technology. The loads are operated by IOT board through Relay Module. NodeMCU is very popular inHome Automation. It’s WiFi capabilities and Arduino IDE support making it easier for IoT Applications. It is very tiny and has many Digital I/O pins, Serial Communication and I2C Communication. NodeMCU has a micro USB port to program it using your existing mobile cable (no additional programmer needed). There is a successor called ESP32 Development board which has more Analog pins and Digital pins. You can use any one of them for this project according to your requirements. Here we will be using NodeMCU. Blynk is a mobile application which has its own server to process user requests. It is an open source application and anybody can use it in their Home Automation to control devices, monitor sensor data and get a notification by some trigger actions. It has a nice GUI with Graphs, Timers, Slider, Joystick and even Video Streaming. You can also make your own app and publish it in Google play store.
1.3 Hardware Specification NodeMCU : NodeMCU NodeMCU is an open source IoT platform.It includes firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module. The term "NodeMCU" by default refers to the firmware rather than the development kits. The firmware uses the Lua scripting language. It is based on the eLua project, and built on the Espressif Non-OS SDK for ESP8266. It uses many open source projects, such as lua-cjson and SPIFFS. ESP8266 Arduino Core ,As Arduino.cc began developing new MCU boards based on non-AVR processors like the ARM/SAM MCU and used in the Arduino Due, they needed to modify the Arduino IDE so that it would be relatively easy to change the IDE to support alternate toolchains to allow Arduino C/C++ to be compiled for these new processors. They did this with the introduction of the Board Manager and the SAM Core. A "core" is the collection of software components required by the Board Manager and the Arduino IDE to compile an Arduino C/C++ source file for the target MCU's machine language. Some ESP8266 enthusiasts developed an Arduino core for the ESP8266 WiFi SoC, popularly called the "ESP8266 Core for the Arduino IDE".[16] This has become a leading software development platform for the various ESP8266-based modules and development boards, including Page 2 of 18
NodeMCUs. NodeMCU NodeMCUs. NodeMCU provides access to the GPIO (General (General Purpose Input/output) and a pin mapping table is part of the API documentation Table 1.1: NodeMCU Pins Description
[*]
D0
(GPIO16)
can
only
be
I/O index
ESP8266 pin
0 [*]
GPIO16
1
GPIO5
2
GPIO4
3
GPIO0
4
GPIO2
5
GPIO14
6
GPIO12
7
GPIO13
8
GPIO15
9
GPIO3
10
GPIO1
11
GPIO9
12
GPIO10
used
for
GPIO
read/write.
It
does
not
support
open-
drain/interrupt/PWM/I²C drain/interrupt/PWM/I ²C or 1-Wire.
Relay :A relay is an electrically operated switch. Many relays use an electromagnet to mechanically operate a switch, but other operating principles are also used, such as solid-state relays. Relays are used where it is necessary to control a circuit by a separate low-power signal, or where several circuits must be controlled by one signal. The first relays were used in long distance telegraph circuits as amplifiers: they repeated the signal coming in from one circuit and re-transmitted it on another circuit. Relays were used extensively in telephone exchanges and early computers to perform logical operations. A type of relay that can handle the high power required to directly control an electric motor or other loads is called a contactor. Solid-state Solid -state relays control power circuits with no moving parts, instead using a semiconductor device to perform switching. Relays with calibrated operating characteristics and sometimes multiple operating coils are used to protect electrical circuits from overload or faults; in modern electric power systems these functions are performed by digital instruments still called "protective relays". Magnetic latching relays require one pulse of coil power to move their contacts in one direction, and another, redirected pulse to move them back. Repeated pulses from the same input have no effect. Page 3 of 18
Magnetic latching relays are useful in applications where interrupted power should not be able to transition the contacts. Magnetic latching relays can have either single or dual coils. On a single coil device, the relay will operate in one direction when power is applied with one polarity, and will reset when the polarity is reversed. On a dual coil device, when polarized voltage is applied to the reset coil the contacts will transition. AC controlled magnetic latch relays have single coils that employ steering diodes to differentiate between operate and reset commands. It was used in long distance telegraph circuits, repeating the signal coming in from one circuit and re-transmitting it to another. If the relay is driving a large, or especially a reactive load, there may be a similar problem of surge currents around the relay output contacts. In this case a snubber snubbe r circuit (a capacitor and resistor in series) across the contacts may absorb the surge. Suitably rated capacitors and the associated resistor are sold as a single packaged component for this commonplace use. If the coil is designed to be energized with alternating current (AC), some method is used to split the flux into two out-of-phase components which add together, increasing the minimum pull on the armature during the AC cycle. Typically this is done with a small copper "shading ring" crimped around a portion of the core that creates the delayed, out-of-phase component, which holds the contacts during the zero crossings of the control voltage.
1.4 Software Specification ap ps to control Arduino, NodeMCU BlynkCloud :Blynk is a Platform with iOS and Android apps Raspberry Pi and the likes over the Internet. It's a digital dashboard where you can build a graphic interface for your project by simply dragging and dropping widgets.
Arduino IDE :The Arduino integrated development environment (IDE) is a cross-platform application (for Windows, macOS, Linux) that is written in the programming language Java. It is used to write and upload programs to Arduino board. The source code for the IDE is released under the GNU General Public License, version 2. The Arduino IDE supports the languages C and C++ using special rules of code structuring. The Arduino IDE supplies a software library from the Wiring project, which provides many common input and output procedures. User-written code only requires two basic functions, for starting the sketch and the main program loop, that are compiled and linked with a program stub main() into an executable cyclic executive program with the GNU toolchain, also included with the IDE distribution.The Arduino IDE employs the program avrdude to convert the executable code into a text file in hexadecimal encoding that is loaded into the Arduino board by a loader program in the board's firmware.
Page 4 of 18
2. LITERATURE SURVEY 2.1 Existing System Early home automation began with labor-saving machines. Self-contained electric or gas powered home appliances became viable in the 1900s with the introduction of electric power distribution[7] and led to the introduction of washing machines (1904), water heaters (1889), refrigerators, sewing machines, dishwashers, and clothes dryers. In 1975, the first general purpose home automation network technology, X10, was developed. It is a communication protocol for electronic devices. It primarily uses electric power transmission wiring for signaling and control, where the signals involve brief radio frequency bursts of digital data, and remains the most widely available. By 1978, X10 products included a 16 channel command console, a lamp module, and an appliance module. Soon after came the wall switch module and the first X10 timer. By 2012, in the United States, according to ABI Research, 1.5 million home automation systems were installed. As per research firm Statista more than 45 million smart home devices will be installed in U.S. homes by the end of the year 2018[11]. According to Li et al. (2016) there are three generations of home automation: •
First generation: wireless technology with proxy server, e.g. ZigBee automation;
•
Second generation: artificial intelligence controls electrical devices, e.g. Amazon Echo;
•
Third generation: robot buddy who interacts with humans, e.g. Robot Rovio, Roomba.
The word "domotics" (and "domotica" when used as a verb) is a contraction of the Latin word for a home (domus) and the word robotics. 2.1.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.1.2 Zigbee based home automation system using cell phones
To monitor and control the home appliances the system is designed and implemented using Zigbee. The device performance is record and store by network coordinators.For this the Wi-Fi network is used, which uses the four switch port standard wireless ADSL modern router. The network SSID and security Page 5 of 18
Wi-Fi parameter are preconfigured. The message for security purpose first process by the virtual home algorithm and when it is declared safe it is re-encrypted and forward to the real network device of the home. Over Zigbee network, Zigbee controller sent messages to the end. The safety and security of all messages that are received by the virtual virtual home algorithm. To reduce reduce the expense of the system system and the intrusiveness of respective installation of the system Zigbee communication is helpful. 2.1.3 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. In figure shows the logical diagram the work of A. Alheraish, it shows how 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.
2.2 Proposed System The proposed system is a distributed home automation system, consists of server (Blynk), hardware interface modules (NodeMCU). Server controls hardware one interface module, and can be easily configured to handle more hardware interface module. The hardware interface module in turn controls its alarms and actuators. Server is a normal PC, with built in WiFi card, acts as web server. The webserver software is developed using asp.net technology, so web server should support asp application and.net frame work 4.0, like IIS7.0 for windows OS.System can be accessed from the web browser of any local PC in the same LAN using server IP, or remotely from any PC or mobile handheld device connected to the internet with appropriate web browser supports asp.net technology through server real IP (internet IP). WiFi technology is selected to be the network infrastructure that connects server and hardware interface modules. WiFi is chosen to improve system security (by using secure WiFi connection), and to increase system mobility and scalability. Even if, user intends to add new hardware interface modules out of the coverage of central access point, repeaters or managed wireless LAN will perfectly solve that problem. The main functions of the server is to manage, control, and monitor distrusted system components, that enables hardware interface modules to execute their assigned tasks (through actuators), and to report server with triggered events (from sensors).In setup mode, user can add and remove hardware interface modules, and can create basic macros involving simple triggers and Page 6 of 18
to customize the macros to perform complex series of events. Macros can be activated manually or as a reaction for certain trigger like motion sensors and surveillance cameras. User can also program macros to activate at random; this feature allows your system to turn the lights on and off at random or semirandom intervals. In running mode, if hardware interface modules report server with received events and execute their pre-programmed macros. macros.
Hardware interface modules are directly connected to sensors
and actuator through direct wires connections. Hardware interface modules has the capabilities to control energy management systems like lighting, thermostats and HVAC (heating, ventilation, and cooling) systems, and security systems (door locks, cameras, motion detectors, fire alarms…).
2.3 Feasibility Study Feasibility Study is a high level capsule version of the entire process intended to answer a number of questions like: What is the problem? Is there any feasible solution to the given problem? Is the problem even worth solving? Feasibility study is conducted once the problem clearly understood. Feasibility study is necessary to determine that the proposed system is Feasible by considering the technical, Operational, and Economical factors. By having a detailed feasibility study the management will have a clear-cut view of the proposed system. The following feasibilities are considered for the project in order to ensure that the project is variable and it does not have any major obstructions. Feasibility study encompasses the following things: •
Technical Feasibility
•
Economic Feasibility
•
Operational Feasibility
In this phase, we study the feasibility of all proposed systems, and pick the best feasible solution for the problem. The feasibility is studied based on three main factors as follows. 2.3.1 Technical Feasibility
In this step, we verify whether the proposed systems are technically feasible or not. i.e., all the technologies required to develop the system are available readily or not. Technical Feasibility determines whether the organization has the technology and skills necessary to carry out the project and how this should be obtained. The system can be feasible because of the following grounds: •
All necessary technology exists to develop the system.
•
This system is too flexible and it can be ex panded further.
•
This system can give guarantees of accurac y, ease of use, reliability and the data security.
•
This system can give instant response to inquire.
Our project is technically feasible because, all the technology needed for our project is readily available.
Page 7 of 18
2.3.2 Economic Feasibility
Economically, this project is completely feasible because it requires no extra financial investment and with res pect to time, it’s completely possible to complete c omplete this project in 6 months. In this step, w e verify which proposal is more economical. We compare the financial benefits of the new system with the investment. The new system is economically feasible only when the financial benefits are more than the investments and expenditure. Economic Feasibility determines whether the project goal can be within the resource limits allocated to it or not. It must determine whether it is worthwhile to process with the entire project or whether the benefits obtained from the new system are not worth the costs. Financial benefits must be equal or exceed the costs. In this issue, we should consider: •
The cost to conduct a full system investigation.
•
The cost of h/w and s/w for the class of application being considered.
•
The development tools.
•
The cost of maintenance etc...
Our project is economically feasible because the cost of development is very minimal when compared to financial benefits of the application. 2.3.3 Operational Feasibility
In this step, we verify different operational factors of the proposed systems like man-power, time etc., whichever solution uses less operational resources, is the best operationally feasible solution. The solution should also be operationally possible to implement. Operational Feasibility determines if the proposed system satisfied user objectives could be fitted into the current current system operation. •
The methods of processing and presentation are completely accepted by the clients since they
can meet all user requirements. •
The clients have been involved in the planning and development of the system.
•
The proposed system will not cause any problem under any circumstances.
Our project is operationally feasible because the time requirements and personnel requirements are satisfied. We are a team of four members and we worked on this project for three working wo rking months.
Page 8 of 18
3. SYSTEM ANALYSIS & DESIGN 3.1 Requirement Specification The following list gives an overview of the most important requirements of the proposed Home Automation system: 1. User friendly interface: User can easily manage system locally or remotely home automation system, through easy web-based interface. 2. Security and authentication: Only authorized user can login to the system (locally, or remotely) in order to manage, control, & monitor. If system detects intruders it should immediately alert the system owner and lock login capability for a while. 3. Low cost per node / High node count: Thinking of building automation, hundreds of nodes may be needed to provide automation. However, the market requires competitive performance (compared to wired networks) to be delivered at this low system cost. Additionally, also protocols need to scale to high node count e.g., ensuring message delivery 4. Large area coverage: Another challenge lies in the fact that devices of a building automation system are dispersed over large areas. Since transceivers must not consume so much power, they cannot be built with a transmission range sufficient for sensors to reach associated controllers or actuators directly. Also, they may rely on an infrastructure of access points and a wired backbone network (or particularly sensitive receivers). 5. System Scalability: Scalability is the ability of a system, network, or process, to handle growing amount of work in a capable manner or its ability to be enlarged to accommodate that growth. For example, system upgrade/downgrade by adding/removing hardware interface module should be easy and systematic task.
3.2 Flowcharts / DFDs / ERDs 3.2.1 Flow Chart
Figure 1.2: Flow Diagram of home automation system
Page 9 of 18
3.2.2 Data Flow Diagram
Figure 1.3: Data Flow Diagram of home automation system
3.3.3 Circuit Diagram:
Figure 1.4: Circuit Diagram of home automation system Page 10 of 18
3.3.4 NodeMCU
Figure 1.5: NodeMCU Pinout
3.3.5 Configuration Diagram
Figure 1.6: Steps Configuration
3.3 Pseudo Code #define BLYNK_PRINT Serial #include #include Page 11 of 18
// You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "YourAuthToken"; // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "YourNetworkName"; char pass[] = "YourPassword"; void setup() { // Debug console Serial.begin(9600); Blynk.begin(auth, ssid, pass); Blynk.syncAll(); //This will sync the last state of your device } void loop() { Blynk.run(); }
3.4 Testing Process The Project has been successfully tested on HVAC Appliances.
Page 12 of 18
4. RESULT & OUTPUTS
Figure 1.7: Appliance in ON state
Figure 1.8: Appliance in OFF state
Page 13 of 18
Figure 1.9: Appliance reading on phone
Page 14 of 18
5. CONCLUSION
Conclusion
This project developed with a novel dual watermarking scheme, which includes encryption, to improve rightful ownership, protection and robustness. An image encryption algorithm based on logistic map is proposed. A well-designed chaos-based stream cipher can be a good candidate and may even outperform the block cipher, on speed and security. In this, the key stream generator is based on coupled chaotic logistic maps that one logistic chaotic system generates the random changing parameter to control the parameter of the other. The watermarked primary image is encrypted using the chaos-based encryption technique. Later it is embedded in the cover image and transmitted. The chaotic encryption scheme supplies us with a wide key space, high key sensitivity, and the cipher can resist brute force attack and statistical analysis. It is safe and can meet the need of image encryption. For the extraction of watermark, a reliable watermark decryption scheme and an extraction scheme is constructed for both primary and secondary watermark. Robustness of this method is carried out by variety of attacks.
Page 15 of 18
6. REFERENCES
References
[1] N. Sriskanthan and Tan Karand. “Bluetooth Based Home Automation System”. Journal of Microprocessors and Microsystems, Vol. 26, pp.281-289, 2002.
[2] Muhammad Izhar Ramli, Mohd Helmy Abd Wahab, Nabihah, “TOWARDS SMART HOME: CONTROL ELECTRICAL DEVICES ONLINE”, Nornabihah Ahmad International Conference on Science and Technology: Application in Industry and Education (2006)
[3] E. Yavuz, B. Hasan, I. Serkan and K. Duygu. “Safe and Secure PIC Based Remote Control Application for Intelligent Home”. International Journal of Computer Science and Network Security, Vol. 7, No. 5, May 2007
[4] Amul Amul Jadhav, S. Anand, Nilesh Dhangare, K.S. Wagh “Universal Mobile Application Development (UMAD) On Home Automation” Marathwada Mitra Mandal’s Institute of Technology, University of Pune, India Network and Complex Systems ISSN 2224-610X (Paper) ISSN 2225-0603 (Online) Vol 2, No.2, 2012
[5] Pratik Gadtaula, “Home Automation”, Telemark University College, Faculty of Technology, Master’s Thesis, 2015
[6] Sabin Adhikari and co., “Android Controlled Home Automation”, Kathmandu Engineering College, Faculty of Electronics, Major Project Report, 2015
Page 16 of 18
7. APPENDICES
7.1
Steps to execute/run/implement the project
Step 1: For new users Sign Up and old users just Log in. Step2: Create a New Project and Choose NodeMCU board in the Choose device drop-down and then
click create. Step 3: Now you will receive an email with the Authentication Token. You need to place it in the
Arduino Code. Before that, we will finish the App Creation. Widget box will open, We need 4 buttons to Step 4: Click on the ‘+’ Icon on the top right corner. Now Widget box control the relay. So add 4 buttons by choosing it here. Step 5: Now tap on the button from the Homepage to configure it. Choose the Output Pin D0 and Select
the Mode as Switch. Then go back. Configure the remaining buttons in the same way. Step 6: Now we have the App ready. Step 7: Now connect the NodeMCU to the PC and open Arduino IDE.
Install the Blynk library from Sketch>Include Library> Manage Library and search for blynk and install it. Or you can install using Git Method from here here.. In case, you are using ESP8266 or NodeMCU for the first time you need to add NodeMCU on boards manager and the ESP8266Wifi.h library to be installed. Otherwise, skip to step 8. Installing ESP8266 Boards:
Navigate to Tools>Board>Boards Manager. Search for esp8266 and install esp8266 boards. Installing Arduino Master (or Arduino Core) library:
The ESP8266Wifi.h library is included in Arduino Master (Core Library). You need to download and extract the file. Then navigate to libraries in the extracted file (Example:
Page 17 of 18
C:\Users\YourPCName\Downloads\Arduino-master\Arduino-master\libraries).
Then
copy
all ESP
Related folders or all the folders (depending upon your choice) and paste in inside C:\Program Files
(x86)\Arduino\libraries. Now we have set up everything. Step 8: Copy the following code or Open File->Examples and navigate to Blynk->WiFi->NodeMCU.
You need to modify only three things in this code. Paste the Authentication Token that you received in your email at ‘YourAuthToken’. Then add your SSID and Password in the code as ‘YourNetworkName’ and ‘YourPassword’.
Page 18 of 18