Home automation using NodeMCU and Blynk App - IOT based Project

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hello friends, welcome to TechStudyCell. Today we will make a simple home automation project, where we can control multiple home appliances from the smartphone through the internet. To make this home automation project, we just need a relay module and a NodeMCU board. We will use the Blynk app to control the relay module. As you can see, I can easily control 2 AC lamps from my smartphone. And I can also control these two lamps from anywhere if I have the internet on the smartphone. During the video, I have shared the circuit diagram, Arduino sketch and we will see step by step, how to use the Blynk app to control different home appliances. So I will highly recommend you to watch the complete video, and after watching this video, you can easily design this circuit within 5 minutes. You also visit our website easyelectronicsproject.com to download the circuit and other details. I will share the link in the description. So let get started. [music] As I said, first I will design the circuit on the breadboard and for that, we need a relay module and a NodeMCU board. And the circuit diagram will look like this.. As you can see the circuit is very simple. we have connected the 5V supply across the Vin and GND pin. And we will control the relay module with D1 and D2 pin. Now in this IoT project, I have used the Blynk app to control the relay module. So let me download the Blynk app from Google Play Store. Now, I have to install the app. Then tap on Open. After that you have to create an account, for that, you have to enter your email address and set the password. Then you can tap on the Sign-Up. Now after sign up, you will find this screen, you have to tap on the New project and you have select the board. Here I will use NodeMCU, so I will select NodeMCU. Then tap on OK. Then you have to give a project name. Now tap on Create. Now, Blynk will send an Auth Token to the registered email id. Here you can see, I have received this email from Blynk, and this is the Auth code. Now I will open Arduino IDE and then go to Tools and select Manage Libraries. Here you have to type Blynk. Now, you have to install this library, I have already installed it. After installing this library, you have goto File, then select Examples. Then select Blynk. In the Blynk you have to go to Board WiFi, then select NodeMCU. We will use this Arduino sketch in the project. Here you can see, you have to type the AUTH TOKEN sent by the Blynk. SO let me copy it. And I have to paste it here. Then type the SSID (WiFi Name) and the password for the WiFi. Now, we can upload this code to the NodeMCU board. For that, you have to go to Tools and select the NodeMCU board, and the proper PORT. Now we will upload this code to the NodeMCU board. After uploading the sketch, we have to create some switch in the Blynk app to control the relay module. So again I have to open the Blynk app. to create the switch, first, I have to tap on this "+" button. And select the Button. Now again I have to tap on the button. First I will select digital pin 1(D1) to control the relay-1. Next, as I am using an active low relay module, so I have to send 1 to turn off the relay and 0 to turn on the relay. Then I have to select Switch. Now our first button is ready. You can also rename the button. Here I will give the name Relay-1. Now I will exit from this button. Here you can see, our button is created. I will resize the button. Now I will create the second button. So again I will tap on the "+" button and select the Button. Now, again I will click on this button and select the D2 pin. Here you can see, this the D2 pin of the NodeMCU to control the relay-2. And as I am using an active low relay module, so I will send 1 to turn off the relay and 0 to turn on the relay. And I will select Switch. Now I will rename the button with Relay-2. After that, I will resize the button. Now our project is ready. I have given 5 volt supply to the circuit from a mobile charger. Now to control this relay module, I have to tap on this play button. Now, if I tap on this button relay-1 turns on. And if tap on the second button, you can see relay-2 turns on. Like that, I can easily control the relay module from the smartphone through the internet. Here I have used a 2-channel relay module but you also connect 4-channel or 6-channel relay module with the NodeMCU. For that apart from D1 and D2, you also use D5, D6, D7, D8 pin to control those relay module. Now, we will connect some AC loads across the NO ad COM terminal of the relay, and the circuit diagram will look like this... Here you can see, I have connected these two AC lamps with the relay module as per the circuit diagram. and I have provided the 5V supply to this NodeMCU board. Now, we can control these two AC lamps from the smartphone through the internet. As you can see, with this Blynk app I can easily control these AC lamps from the smartphone. So this is a very useful IoT project. you just need an internet connection in your smartphone and you can control these two lamps from anywhere. Like that, if you connect different home appliances, then you can control those home appliances from anywhere if you have internet in your smartphone. And in my upcoming project, I will design a PCB where you can control multiple relays with this same circuit. So please do subscribe for that upcoming video. And if you find this video helpful please hit the Like button ad share it with your friends. And don't forget to SUBSCRIBE and click on the Bell Icon to get the notifications for my upcoming videos. Thank you for watching, have a great day.
Info
Channel: Tech StudyCell
Views: 86,891
Rating: undefined out of 5
Keywords: nodemcu, home automation, blynk, home automation using nodemcu, nodemcu with blynk, internet of things, nodemcu esp8266, nodemcu board, wifi relay, nodemcu wifi, iot blynk, blynk examples, NodeMCU and blynk App, IOT Project, smart house, smart home devices, smart home automation, iot based projects, nodemcu esp32, esp8266 12e, home automation using iot, techstudycell, iot based home automation, smart home, best smart home system, iot technology, iot
Id: HFGP1YqUPy0
Channel Id: undefined
Length: 7min 49sec (469 seconds)
Published: Sun May 10 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.