Home Automation Using IoT
Home Automation Using IoT
https://doi.org/10.22214/ijraset.2022.41777
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue IV Apr 2022- Available at www.ijraset.com
Abstract: 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.
Keywords: Node MCU, Relays, Motor Drivers, Server, Home Automation, Electronic appliances.
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.
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.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2395
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue IV Apr 2022- Available at www.ijraset.com
1) Through Bluetooth Network: In this technology we make use of an Arduino Bluetooth board. The electronic devices are
connected to the I/O ports of the bluetooth module with the help of relays. An interactive software program is needed to provide
a user interface.
2) Through Wifi Network: It consists of three main modules- the server, the hardware interface and the software. The appliances
are connected to the Node MCU I/O ports using relays. These hardwares can be interfaced with the software and hence can be
controlled using mobile phones.
3) Through Zigbee Network: The system consists of a PIC microcontroller and Voice Recognition system. The voice commands
are transmitted to the zigbee module using the PIC microcontroller.Zigbee receiver unit has another PIC Which is used to
process the commands. The devices which have to be interfaced are connected to the zigbee module using relays.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2396
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue IV Apr 2022- Available at www.ijraset.com
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.
1) Block Diagram: Fig1 is the general block diagram of the project. The figure describes that the project controls the switching of
home appliances like Light(Bulb) , Fan , Curtains and Plant system. The user can control the devices via a website from
anywhere in the world. Also, the project consists of switching of home appliances manually via switches as a backup for
unexpected conditions like not working of Node-MCU, core rupture, etc.
A. Hardware Components
Components Specifications
NodeMCU Voltage:3.3V.
(Esp8266) 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.
Maximum concurrent TCP connections: 5
L298N Motor Driver Driver Model: L298N 2A
Driver Chip: Double H Bridge L298N
Motor Supply Voltage (Maximum): 46V
Motor Supply Current (Maximum): 2A
Logic Voltage: 5V
Driver Voltage: 5-35V
Driver Current:2A
Logical Current:0-36mA
Maximum Power (W): 25W
Motor 1000rpm RPM: 1000.
Operating Voltage: 12V DC
No-load current = 60 mA(Max)
Load current = 300 mA(Max).
Relay module Supply voltage – 3.75V to 6V
(5V) Quiescent current: 2mA
Current when the relay is active: ~70mA
Relay maximum contact voltage – 250VAC or 30VDC
Relay maximum current – 10A
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2397
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue IV Apr 2022- Available at www.ijraset.com
Single channel relay module circuit diagram for pcb designing .(fig 2)
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.
Pin no Appliances connected
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2398
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue IV Apr 2022- Available at www.ijraset.com
Motor 1 and 2 rotate anticlockwise clockwise to open and close the curtains.
Motor1 and motor 2 anticlockwise curtain opens left side
D4, D8, TX are the transmit pins available on the Node MCU ESP8266. These pins can be utilized to connect home appliances
using relay modules.
Node MCU Vin pin gives voltage output of 5 V . Hence the relays connected are of 5V.
B. Relay connections
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.
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 .
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2399
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue IV Apr 2022- Available at www.ijraset.com
IV. RESULTS
A. Hardware Outputs
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2400
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue IV Apr 2022- Available at www.ijraset.com
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2401
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue IV Apr 2022- Available at www.ijraset.com
B. Software Outputs
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2402
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue IV Apr 2022- Available at www.ijraset.com
V. CONCLUSION
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.
REFERENCES
[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/
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 2403