Multiple Sensors, Multiple Appliances using NodeMCU & Blynk | IOT Projects | ESP8266 Projects

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video I will let you know how to make your own MCU base development kit using which you can monitor up to four analog or digital sensors control proof for a sea of glances not only that this kit has also built in temperature and you built a sensor and one buzzer for alert purposes this is all we're gonna make in this video by using the blink Ida platform so let's get started so for making this project you'll require these all components and I have attached the link of each and every component in the description of this video now here I have used the 16 channel multiplexing module just to increase the number of analog pins for this node MCU board as one MCU is only one analog pin so this kind of model becomes mandatory engagement it to you know interface more than one sensor so now to make this project you need to connect all the components in this manner now to make this project more compact and sturdy and design my own custom PCB for it and gave its order to GLC PCB now if you want to order the same PCBs you can just download the Gerber file of this project by going onto my easy be a town then upload that gerber file to GL's pc b.com select the color masking if you want and place the order if you select the fastest every option you may get the PCB is delivered at your doorstep within a wait so try out jus a PCB to make your projects looks need and more sturdy now as always if you want the exact same PCB which I am using right now then you can get that PCB for free by ordering the tech SMS merchandise so say down to vacationers dot-com / merchandise to order your own now for oversee the PCBs I just shouldered all the components on it and no this is not it about the hardware we do require some other components as well so here for demo purposes I'm using this for sensor which includes the MQ 135 gas sensor on proximity sensor what light sensor and one motion sensor and now talking about the output I'm using this for bulbs so yeah this is all about the hardware now let us move on to the application side so here is the blink application you first need to create the new project new to name in my case I will give it a name as load MCU development kit select the board has no Dempsey you then connected I was Wi-Fi click okay now here the step on the screen to add the buttons so I'll quickly add four patterns for four relays and as our project got six sensors yes six food you can attach externally and to our ability which is temperature and humidity so for Six Senses I will select six god for that okay so this all witches will require for the project now let us configure this widget for the buttons it's pretty simple it's already discussed in the previous video we just need to tap on the button give it a name maybe a really a one click on the pin select digital and the real one is attached to digital pin six and make the type as switch that's it now this is how you can configure all the four relays with this pin configurations now let us move on to sensor part the step on the gorge give the name let's take an example as temperature click select on the pin here we have to select virtual plane now once your pin is nothing but the variable which we are using in the code let's take an example if we select much Europe in v-0 here what we can do in the core is we'll just assign the temperature value to the virtual pin v-0 has that temperature data will be displayed into this coach okay that's a simple explanation about the virtual pin but you will get a more clear idea after making this project so let us select the virtual pin v-0 here now give it a range as zero two hundred I am think it is okay for the temperature in India and here you can also select the color of the GOC that's it click on the ok' button and likewise i will configure all the widgets with the different different sensors for example I will select the virtual pin v1 for humidity whose range goes from 0 to 100 for proximity I will select the virtual pin we tools range is from 0 to 1 as it is a digital sensor so 0 and 1 is okay for me and then for the gas I will select the virtual pin v3 and its range starts from 202 up to 700 and for the motion also like the virtual pin v4 whose range again starts from 0 to 1 it is also a digital sensor and then the last is the light sensor whose virtual pin is V PI and whose range goes from 0 to 100 ok so this is how you have to configure the dashboard of your bling application so that is about the Eric now let us move on to the last part of this project and that's the coding this is the code for this project now first of all you need to have all this library installed on your system if you watch my first episode you must be knowing that how to install the blink library and for using the temperature sensor we also need to you know install this DHT library and if you don't have a library the link is attached in the description so you can just download that library ok I'm going ahead and we have defined the real happens here the sensor pins here and a multiplexer pins here so you no need to change anything in this code moving ahead here we need to provide the authentication token which will be sent to your email id so this is this is how you receive an email so you just need to copy this token and paste it here sorry then you need to provide the second name and password of a router to make this project talk to Internet so here is the function called send sensor which we'll discuss later first of all let us see the setup parts and the word sucker I'll just begin the necessary part and after that here as you can see there is a function called timer dot set interval and inside that I have written thousand l and then send sensor now this function is useful for sending the data to the server now what this function will do this console will simply call the send sensor function after every thousand milliseconds now let's see what's inside the send sensor function if you go in turn the function as you can see first of all I am reading the temperature mobility value from the sensor by this function okay after then I'm just assigning each sensors value to the dedicated virtual pins for example I am just assigning temperature value before chill bit V zero humidity value to the V one and likewise light value to the V file you can change this order in way you want you can just alright now here v6 and light then the light sensor will be you know transfer to the v6 virtual plane nothing crazy okay so this is what is happening inside the send sensor function and which will be called after every one second lucky now let us see what's there inside the loop as you know there is only one analog pin in the node MCU board and Here I am reading out for analog readings from the sensors so how is this happening now this is all possible with the help of the multiplex and model which I discussed earlier how makes and model works so in this multiplexer module before sleep assignment particular address and then the device will read the data coming from that address then it will switch to another address and take the data then another at doesn't take the data this is how I have put four addresses with the help of two digital pins of node MCU for example if the address is 0 0 that is s0 is low and s1 is low it will read the guest sensor value similarly if the address is 1 0 it will read the data from the motion sensor similarly if the address is 0 1 it will read the proximity sensor and if the address is 1:1 it will read the data coming from the light sensor so this is how the multiplexer model works and if I use the for address pains of multiplexer model then I can connect up to 16 different analog sensors with it but there was no need for 16 in this particular demo project but if you want you can use it ok so this is all done in the wide loop section and after that just bling dot run and timer dot run this are mentaly functions to make this project work so this is all about the coding I hope you got the idea about how all thing is working and yes there is also one thing which I forgot to mention which is the puzzle now here in this project we also have the buzzer as well which we can use according to our need for example in this project I have used this Buzzard to make me alert about the proximity sensor if there is someone in front of a proximity sensor the buzzer will start buzzing and if there is no one in front of proximity sensor the buzzer will stop buzzing so you can use the buzzer for alert purposes maybe you can use the buzzer if the co2 concentration in your room exceeds to particular limit this is one of the many examples in which you can use the buzzer okay so here is the values of the buzzer and that is about the programming down I will just upload this into the node MCU board and let us see this project in action so I already connected all the sensors and the bulb on the development gate now on the application I will just click on this play button now let first test out the race [Music] yes the relays are perfectly working with the application now let us move on to the sensor and see what it does so yeah all the sensors are also perfectly responding and you must have noticed that the proximity sensor is also attached to the buzzer so whenever I put my hand or a finger near the sensor the buzzer start sweating the everything is perfectly working according to our code so yes this was all about the SuperDuper encrusting easy to make yet useful project using the blink application and we mentioned there is a giveaway in this video yeah that is a giveaway in this video in which I'll begin with this complete project which includes the PCB the components the sensors and note MCU board and the adapter and everything which you see inside the project except the bulbs and everything I'll begin away to one off my subscriber or one off my viewer yes the giveaway will be activated after seven hundred likes and to participate in the giveaway you just need to like the video you must be my subscriber and you just need to cement down your feedback regarding tech SMS regarding this project regarding this channel or regarding anything related to tech es miss just comment down your feedback liked this video and you should be my subscriber and you are in the giveaway as soon as the number of likes crosses 700 I will announce the winner randomly on my second account so make sure you follow me on instagram as well so yeah and in this video here now this vid woman I couldn't little explode and share with me techie SMS [Music]
Info
Channel: techiesms
Views: 56,067
Rating: undefined out of 5
Keywords: Blynk, blynk home automation, home automation for begineers, nodemcu multiple sensors, giveaway, iot projects, esp8266 projects
Id: B2jPp0hdhKE
Channel Id: undefined
Length: 10min 32sec (632 seconds)
Published: Sat Feb 15 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.