Ijraset Journal For Research in Applied Science and Engineering Technology
Authors: Anjali Kalwar, Yashika Sinha, Payal Samanta
DOI Link: https://doi.org/10.22214/ijraset.2022.41777
Certificate: View Certificate
This paper aims to present a home automation system based on IoT using the ESP8266 built-in Node MCU. IoT and Wireless systems have a rising peak in the contribution of automating our daily life devices and stepping towards a better and more comfortable future. This project describes details of the utilization of this technology to automate home appliances. Hence for the purpose, NodeMCU (ESP8266) microcontroller is utilized with the Relays to control the switching of appliances remotely from the server.
I. INTRODUCTION
The Internet of Things (IoT) describes physical objects (or groups of such objects), that are embedded with sensors, processing ability, software, and other technologies, and that connect and exchange data with other devices and systems over the Internet or other communications networks.
A smart home is defined as a home equipped with lighting, heating, and electronic devices that can be controlled remotely by smartphone or computer.
In our project, we are trying to control some home appliances using ESP8266(Node MCU) along with some relays and motor drivers. We can control the devices wirelessly from anywhere using a normal web server and Wi-Fi technology.
We also control all the direct network-connected as well as mutually connected devices from almost anywhere around the world.
As India is a developing country, stepping forward in automation with one of our topmost advanced technologies of IoT (that uses servers and the internet to control electronic devices), our objective is to build home automation using IoT that can be affordable to the people.
The objectives of our project are
II. METHODOLOGIES
Many home devices now have WiFi and can interact with other home devices, smartphone applications, and home computers. An issue is that these devices cannot communicate with each other or require an additional device to do so and need an individual application on the smartphone to be controlled. A much better option is to unify these devices into one program/device that controls them.
A. Selection Of Implementation Platform
As there are many platforms over which a home automation system can be implemented of the currently available platforms -ESP8266, WiFi, Arduino, powerline, Bluetooth was found on which we can implement home automation systems. We are using Esp8266 over Arduino as in Arduino we have to install wifi module externally while in ESP8266 wifi module is pre-installed and instead of Bluetooth module, we are using wifi as in Bluetooth the range of the network is less while in wifi it has wide range. These platforms were found most appropriate due to their low cost availability , reliability, and simplicity when used for individual control home automation systems which our project work is on .
System |
Initial Communication |
Access from |
Cost |
Speed |
Bluetooth |
Bluetooth and AT command |
Within 10 meters |
low |
Fast speed due to proximity
|
Wireless Fidelity |
Infrared, Radio waves |
Varies accordingly to using waves |
high |
Slow speed |
ZigBee |
ZigBee and AT command |
Within 10 meters |
low |
Fast speed |
B. Justification for using Node MCU compared to Arduino UNO
III. DISCUSSION
This project consists of switching on/off home appliances.
The below discussion will elaborate the hardware based system with the help of block diagram, circuit diagram, hardware components (with specifications), PCB designing and explains the basic software language requirements for developing software interface and maintaining the backend.
Fig 2 represents the circuit diagram for the relay module that is utilized in the final project circuit diagram. The relay circuit diagram consists of a npn transistor BC547 and a flyback diode 1N4007 inclusive of power and status LED. The relay attached in the final project is of 5V.The circuit consists of all three resistors of 1k ohm..
Fig 3 represents the overall circuit diagram using relay modules. All the relay modules will be replaced with the circuit diagram from fig 2.
On the input side, a logic signal is received from Node MCU and other pins connected are Vin and Gnd.
On the output side, home appliances are connected with plugs. Gnd of plug is connected to the common pin of the relay. The plug and bulb are connected directly through a wire. A wire from normally open in is connected to the bulb. As the wire is connected to a normally open pin , the bulb turns on when the relay turns on. Hence initially the bulb remains off. It only gets triggered when the relay is triggered.
C. Software Specification and Details
Platforms utilized in this project for software -
D. Website Backend
PHP- PHP is a server side scripting language that is embedded in HTML. It is used to manage dynamic content, databases, session tracking, and even build entire e-commerce sites. In this project we have used php for creating a server for the user so that when the user login to the website , the user should be able to access the system and if the user is not logged in then the access is denied .
MySQL- MySQL is an open-source relational database management system. As with other relational databases, MySQL stores data in tables made up of rows and columns. MySQL database will store the user login credential and appliance status . If the login credentials do not match to the database then the access is denied . The user would not be able to use the system .
E. Overall Working of the Project
Our website has 4 Api codes i.e read_all.php,update.php,db_connect.php,dbread.php.
read_all.php - This page will read the data received from the user interface which will be further sent to the nodemcu and connect with the db_connect.php.
db_connect.php - This page connects the nodemcu with the database .
update.php - This page updates the value in the database after every operation like on/off of appliances .
dbread.php - It connects all the webpages to the database .
We have 2 tables in the database , one for login user information and for appliance status .
First the user will login through our website .After successfully logging in , the user will be directed to the home page where there are different sections of room available .In each section there are options for appliances. Suppose the user wants to control the light of the kitchen he/she will select the kitchen option followed by light page .In the light section there is on off button .As the user switches through the on off button, the status of the appliances will be updated simultaneously in the database where further the database is connected to Node MCU via Arduino code and wifi. Hence, in this way users can control the appliances through the website.
IV. RESULTS
A. Hardware Outputs
Above figures are the results obtained in the project.
As we control daily and frequently used home appliances, and the project overall costs comparatively less, it can be used not only in modernizing private sectors but its benefits can also be obtained in commercial fields by installing it in companies. As our project consists of 12V battery, it needs to be recharged from time to time. Further scope of development of the project can be connecting other major devices like AC, TV, printers etc to Node MCU and following the required changes on the website and server. Also, cameras and safety door systems can be developed and home security and safety issues will be solved. Also on a software basis, our server can be connected to other servers to obtain basic information about traveling, and other basic systems like reminders/sticky notes can be added to the website.
In this paper we have presented the concept of a Home Automation system using IoT. The hardware components such as Node MCU, relays and motor drivers and other products available in the market have been reviewed. We also discussed the specification of Node MCU and the general system architecture of both hardware and software systems. Utilizing this project will help you to control switching of home appliances from anywhere in the world. Also the project is inclusive of the manual switches which makes it ready to face any unexpected problem that may be caused due to the Node MCU microcontroller. This project can further be improved by adding more home appliances like music system and also making it more flexible by improvising its hardware and not only controlling the switching of the devices but also their regulation speed. Our project has tried to overcome the limitation of WiFi presence at all times as it also has the manual switches attached to it.
[1] WebsiteCodefor our project https://drive.google.com/drive/folders/1S61xDzPw9RFDeV50pHhRiGjSurDpc5ga?usp=sharing [2] Literature survey reference papers https://www.entrepreneur.com/article/362497 https://ijsrcseit.com/paper/CSEIT1833142.pdf [3] NodeMCU Datasheet https://www.espressif.com/sites/default/files/documentation/0a-esp8266ex_datasheet_en.pdf [4] Other links https://iotmonk.com/lessons/creating-iot-cloud-scratch-using-php-mysql-esp12e-part-1/
Copyright © 2022 Anjali Kalwar, Yashika Sinha, Payal Samanta. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Paper Id : IJRASET41777
Publish Date : 2022-04-23
ISSN : 2321-9653
Publisher Name : IJRASET
DOI Link : Click Here