You are on page 1of 8

Smart home automation

Introduction

Automation is the most frequently spelled term in the field of electronics. The hunger
for automation brought many revolutions in the existing technologies. These had
greater importance than any other technologies due to its user-friendly nature. These
can be used as a replacement of the existing switches in home which produces sparks
and also results in fire accidents in few situations.
This project presents a design and implementation of a new home automation system
that uses WiFi technology as a network infrastructure connecting its parts.

Circuit diagram

Components required:
Nodemcu:http://xbotics.in/15-iot
relay:http://xbotics.in/15-iot
Jumper Wires F2F: http://xbotics.in/15-iot
Jumper wires m2m: http://xbotics.in/

Software requirements

1. Arduino software

2. Blynk app

Working principle of this project (Node MCU, Relay Module)

There are three main components used an Android Blynk app, Wi-Fi Node MCU
and 4 Channel Relay module.The Android Blynk app sends the serial data to the Wi-
Fi Node MCU by clicking ON button. The Wi-Fi Node read the input data and
process it according to program uploaded inside it and generate the output to 4
Chanel Relay Module.
When the Blynk app's button turns on, it turns ON the home light, and when the
Blynk app's buttons turns OFF, it turns OFF the home light.

Download the Blynk application from play store and install it on your device.
Follow above same step to configure relay3 and relay4

Add the board type to your Arduino IDE


Add the board type to your Arduino IDE if not added earlier before compiling. Go
to File > Preferences > Settings and add

Include the esp8266 board community before compiling the above code otherwise,
it generates an error.

To include library click Tools > Board > Board Manage

Search for esp8266 and install it.

Select your board type

Now, select your board type, go to Tools > Board: > NodeMCU 1.0.

Hardware Assembly:
1. We’ll have to connect the NodeMCU with the Relay board, you can
choose to do it with a bread board or without. But I prefer doing it using

a Breadboard.

2. Connect the D3 pin of NodeMCU with Pin 1 of Relay. Similarly connect


D4 pin of NodeMCU with Relay pin 2, D5 with Relay 3 and D6 with

Relay 4.

3. Connect Ground Pin of Relay with Ground Pin of NodeMCU.


4. Now if you want to connect your household appliances like Fan, Lights
etc. which are connected to the main power of your house, I would

recommend you take the help of a professional electrician and ask him/her

to connect those appliances to the relay.

Add Libraries:

Download the latest Blynk library from and add it to code.

Now, connect Node MCU device with your personal computer using Standard USB
cable to connect Node MCU and upload the program in it.

RESULT ANALYSIS: The output for Home automation is shown below.This


shows the complete prototype implementation of the proposed system.

You might also like