IOT Home Automation system using NodeMCU

What is IoT home automation?

We are making an IOT home automation system using NodeMcu which is basically a Wifi module with an inbuilt microcontroller. in which you can control the things from anywhere. you need to connect your mobile phone only to operate the Blynk app. and for another side, NodeMcu must connect to a wifi server via this the device can transmit and receive the data. you have to open your phone data and then open the Blynk app. Blynk app automatically connected to the NodeMcu via wifi server. now you can control your appliance by the app. we have also another project like Bluetooth control home automation.

 

Working of  IoT home automation?

Working is very simple of the IoT home automation system using NodeMcu. data must be transmitted and received. and the data transmission over a server which is connected through wifi. we are using Blynk server. there is an app for the phone by which you can connect your nodemcu and can send instructions. you have to do create a project and select the pin of Arduino from the app. and rest of all the work well be done by the blynk. Blynk is a server website which has app also for the mobile app.

How to Create a Project in the Blynk app. 

First, you have to download the Blynk app from the play store or app store. then open the app and select the option — select new project– and you can create the projects which any of name.  -select the – wifi module from the device options which is NodeMcu. Now, click on the screen of blynk app or the same page of your projects. now add some button as per your requirement. and switch button to the switch option from the Blynk app. when you create new projects an authentication code will send to your email Id. which is most important and have to enter into the Code.

Select Nodemcu from Hardware

 

Circuit Diagram of IoT home automation System.

As we are using AC bulb in this Project we need to work very carefully. and do the connection according to the given circuit diagram.

iot home automation circuit

How to Edit code for your IoT system

We are posting Code here you need to edit the code with your token number and You have to update the password and Username of your wifi Also. which is the most important part of this project. a token number will be sent to your email account by the Blynk app as we mention in the above paragraph.

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = “token number”;

char ssid[] = “wifi username”;
char pass[] = “wifi password”;

void setup()
{

Serial.begin(9600);

Blynk.begin(auth, ssid, pass);
}

void loop()
{
Blynk.run();
}

Select Nodemcu from the board and upload the given code. Now, you can make all the connections.

Leave a Reply

Your email address will not be published. Required fields are marked *