Home Automation using IoT

Hello techies, Welcome back to Techatronic. Home automation using IoT with the Blynk app is one of the easiest and popular projects in the IoT department. IoT is the branch o

f science in which we deal related to the internet things. IoT stands for the internet of things. And we are using the internet here to control things which is the definition of the Io. IoT means controlling things like home appliances over the internet. We have uploaded many more projects on IoT here from these the smart parking using IoT is the best one. you should check this project too. In this project, we will show you how to control the home appliances with the mobile app over the internet. In Bluetooth control home automation, we also use a mobile phone but there are some limitations. and the biggest limitation is the range. but, there is no limitation of the range you can control the appliances from anywhere. only you need internet for both devices. for your mobile phone and your device which is esp8266.

Home Automation using IoT?

Blynk app is a server-based app which always connected to the server and controls the NodeMCU from that server. so here you don’t need to make any other application. the application is already available on the play store. So, now you can control your home by an app. we can say you can make your home smart. like a smartwatch, smartphone, and smart dustbin. this is a smart era and everything needs to be smart. so, this season make your own IoT smart home. If you buy any IoT controller from the market it will be costly but if you wanna make your own at-home automation system app control. only you need some device and follow our instructions. we are sharing all the information to make this awesome project. if you wanna buy this project from us you can also Buy this project. with the given link.

Here we are having an app named Blynk app. which we need to download from the play store. And then we need to create some buttons as per requirement. we will make the connection as given below and then upload the code into the ESP8266. and then when we pressed the button in our IoT home automation project on the mobile screen then the app will send the data to the server and according to the code, the server controls the device according to the input. this is how the whole system works?

 

Components Required

  1. NodeMCU (esp8266)
  2. Breadboard
  3. jumper wires
  4. Connecting cable

 

Home Automation using IoT  Circuit Diagram

 

Home Automation using IoT Code

 

 //TECHATRONIC.COM  
 // BLYNK LIBRARY  
 // https://github.com/blynkkk/blynk-library  
 // ESP8266 LIBRARY  
 // https://github.com/ekstrand/ESP8266wifi  
 #define BLYNK_PRINT Serial  
 #include <ESP8266WiFi.h>  
 #include <BlynkSimpleEsp8266_SSL.h>  
 // You should get Auth Token in the Blynk App.  
 // Go to the Project Settings (nut icon).  
 char auth[] = "QUyXLAjyv7GDb3f0tRZ8VOsANeHp_2Wt";  
 // Your WiFi credentials.  
 // Set password to "" for open networks.  
 char ssid[] = "DESKTOP";  
 char pass[] = "asdfghjkl";  
 void setup()  
 {  
  // Debug console  
  Serial.begin(9600);  
  Blynk.begin(auth, ssid, pass);  
 }  
 void loop()  
 {  
  Blynk.run();  
 }  

Here you need to change the name and password as your wifi.

Step to make the Button using Blynk app.

Step 1

Download the app from the play store

 

Step 2

Login into the app

Step 3

Click on the new project

 

Step4 

Select NodeMCU here

Step 5

Token will be sent to your email id. copy that token from there and insert it into the code.

 

Step 6

Make button buy clicking plus sign from upper right corner add button

 

Step 6

Open the button setting and set the trigger of a button from 0 to 1

 

 

Step 7

Make 4 buttons for 4 appliances and rename these with your ones

 

 

I hope you will learn a lot from this article. if you want to make nodemcu setup in Arduino ide. it is available you can setup your software.

1 thought on “Home Automation using IoT”

Comments are closed.