Smart Home Automation using Arduino with Blynk app | Avian Workshops

Smart home automation using Arduino

 

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. In this project we will guide about Smart home automation using arduino

This project presents a design and implementation of a new home automation system that uses Wi-Fi technology as a network infrastructure connecting its parts. If you want to learn more about the Smart home automation , attend a workshops at Avian Workshops. 

Circuit Diagram

 

Components Required

 

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.

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.

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 Smart home automation using Arduino is shown below. This shows the complete prototype implementation of the  proposed system.