Internet & Manual Home Automation using New Blynk 2.0 with Fan dimmer and Realtime Feedback

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video we're gonna recreate our all in one home automation project but this time using new and advanced blink 2.0 and it will have all those features like controlling up to four ac appliances along with the fan speed control and you can control all the supplies with the help of blink application as well as with the help of manual switches and it will also work when there is no internet connection at all so this is one of the favorite techies project and you asked me to do with the blink 2.0 and here's the tutorial video for that and also don't forget we are also selling this complete shoulder project just for you people so stick around with this video to know all the details regarding the project let's get started to make this project you'll need these all components those list and links are mentioned in the article whose link you can find in the description of this video like the same article you'll also find the connection diagram of all these components now trust me there are a lot of connections to make this project and that's why we designed our own custom pcb for this project and after designing it we gave its order directly to glc pcb i mean you can try ordering your own custom design pcbs for as low as five pcbs from the lcpcb by just uploading the gerber file of the pcb project select the color masking if you want it and just place your order now there are multiple courier options available if you select the fastest delivery option you may get the pcbs delivered within a week so try ordering your own custom design pcbs from jlc pcb to make your project look neat compact and more professional after getting the pcb and shouldering all the components on it a project looks something like this neat and well arranged so that was all about the hardware part of the project now before moving to the coding part let's first configure the blink dashboard let's head to the computer so here first of all you need to go to blink.cloud website and here just log into your account now after logging in you just need to click here and click on new template okay give template a name i'll name it as all in one okay hardware will be esp32 connection type wi-fi and description i'll you know leave it as it is click on done now after doing that you need to add the data stems here so those who have used this new blink platform must already be knowing that uh data stream is a new term uh i know added to the new blink platform and this is the same like adding the variables to our blink dashboard okay let us go to the data stream and here click on new data stream now here they also added digital this time but we don't need it we will be still using the virtual pin okay click on virtual pin now here give the field name now we will have total of five different virtual pin four for easy appliances and one for the fan speed control let's start with the fan speed control i will name this field as a fan speed okay virtual pin will be v0 data type will be integer and fan speed will have range uh from zero up to speed four okay so these many range will be there click on create similarly i'll create a different data stream for four different ac appliances [Music] so with this we have successfully created five different uh data stream one for fan speed and four for four ac appliances after doing that you can go to the web dashboard and you can configure this web dashboard if you want yes this is an optional thing like a new blink platform we have two different kind of dashboard one with the web dashboard and one is the mobile dashboard and both can be configured separately okay so now let's just create a web dashboard here for my project so i'll quickly add a switch here and after that i'll replicate it for two or three times great and after that i will add a slider for controlling the speed of the fan okay after that you just need to click on the setting icon to configure that particular widget uh i will choose the data stream as a v1 because this will be for the relay one on and off value are same same so i'll click on save button and similarly i'll configure all other widgets quickly [Music] so with this we successfully created the web dashboard and that was all about the blink dashboard configuration now let's jump on to the coding part and let's quickly understand how support for this particular project so here is the code for all in one home automation project using blink 2.0 so first and foremost you need to provide the template id and the device name which you can easily get it from this info tab on your blank dashboard you just need to click here to copy the things and after that you just need to paste them here okay so that was it about providing the credentials about now talking about the wi-fi credentials then we'll be providing those credentials with the help of the new blink mobile application okay after that uh you don't need to change anything in this code until unless you're using the same pin connection as i have used for that connection diagram or for this particular project okay in case you are changing the pin numbers yeah you just need to define those pin numbers here okay i will quickly go through all the pin numbers so here are the pin numbers for the relays here are the pin numbers for all the manuals which is switches attached here are the pin number for the fan regulator knob attached and here are the pin numbers for the relays that will be controlling the speed of the fan okay after that here we have declared the necessary variables and nothing to discuss here and after that here are the functions that are responsible for all the data coming from the blink application okay for example if we are sending the data to virtual pin v1 which is responsible for controlling the appliance one this function will be called and whatever data is received will be stored at the pin value variable and that same data is reflected to uh variable r1 which will ultimately control the relay one of our project if the data is one it will turn on the relay and if the data is here it will turn off the relay so similarly we'll be able to control all the four appliances and talk about the fan speed then whatever data we are sending to the slider is stored inside the fan speed variable and after that we are comparing is it the fan speed zero is the fan speed one and so on is the fan speed 4 and we are calling a respective function for controlling the speed of the fan and these functions are not defined here inside the main code rather it is defined here inside the blink dot agent for some reason okay so as you can see here are all that speed control function now make sure that you use all the complete files that i have mentioned here tutorial plotting all the files uh into my github repository it just because i have made a couple of changes inside the blink action dot edge header file as well so make sure you download all the same files which i'm using okay so yeah after that let's just jump onto the main code so yeah this was all about the controlling appliance with the help of blink platform after that this function is responsible for controlling our appliances with the help of manual switches both with internet and without internet as well yes this time we have removed that without internet uh a function that we have used in the all in one homework project in the previous blink version so we have kind of shortened down the code as well let me just go through the switch feedback function and let me just make you familiar with this function as well so here inside the switch feedback function now this is the function which will be called uh like regardless of internet connectivity if this blink platform or the project is connected to the blink function then also this function will be called if it is not connected with internet it's not connected with the blink cloud then also this function will be called okay so that's the benefit of you know adding this particular function inside the blink edge dot header file now here inside the switch feedback function we are just monitoring the state of the switch if it is turned on we are just turning on the relay one and if it is turned off we are just turning off the relay one along with that we have used this blink dot virtual write function to write the data to the blink cloud and it will only write the data when that is internet connectivity if there's no internet connectivity obviously it won't be able to write the data but still it will be able to run this command okay so by this particular thing we are able to eliminate that without internet function all the tasks will be done by the switch feedback function only okay similarly for the fan speed control we are monitoring the status of the fan control knob and accordingly we are just calling the function speed 1 speed 2 up to speed 4 and we are writing the data using the blink dot virtual write function okay if there's internet it will be written if there is no internet it will just be executed data won't be written i hope you're able to understand this code yeah so that was all about the controlling the home appliances with and without internet using this particular arduino code so that's a simple code now you just need to select the right board which will be the do it dude we won right board which is already selected and i'll straight away hit the upload button and in the meantime we need to have the blink mobile application installed on your smartphone let me show you that as well first of all you need to have the blink application installed on your smartphone and for that the search for blink on your app store or play store and here you will find two different blink application first is the blink 0.1 the legacy version and second is the blink iot new which is the you know new and advanced blink 2.0 just click on open or rather you have to install that application first so after installing and opening that application you just need to click on add new device uh now select the option as connect to wi-fi now click on ready button meanwhile i'll open the serial monitor as well so as you can see it automatically recognized the hotspot created by this esp32 board you just have to click on the join button okay now you to provide the sle name and password of your wi-fi router just to make this you know get connected with the internet i will provide my wi-fi router which is already provided just click on continue now i will be sending those wi-fi credentials inside this esp32 board so it is that simple to provide the wi-fi credentials into the new and advanced blink 2.0 okay so we have successfully added the credentials now you just need to name this device i'll name it as or a blink all in one okay click on continue and click on done that's it click on exit to app so yeah we have successfully added the device and now we need to configure the mobile dashboard now you remember we configured the web dashboard but now we need to configure the what can say mobile dashboard to use it with the mobile phone as well you just need to click on the setting icon tap here and just add button so similarly i'll add four different buttons for four what you can say appliances and after that i'll add a slider to no control the speed of the fan i'll resize it okay now one by one i'll configure all the widgets just tap on the widget to configure it now select the data stream okay it is not showing a data stream oh i forgot to save the configuration on my blink dashboard just go to that blink dashboard on your web application and just click on the save button okay now it will show i think let's just go back here and again tap on the widget now tap on the data stream and as you can see now all the data sim appeared it was my mistake i'm sorry just click on v1 because this will be for the relay one it will be acting as a switch and that's it similarly i'll configure all the four switches quickly [Music] and in the end for the slider i will click on it to configure it and select the data stream as v0 that's it so yeah we are done with all the configurations coding and hardware part of the project now we just need to install this project at the switchboard or that i have chose one of the switchblade tech sms studio now be very careful while playing the ac wires i suggest you to turn off the mains up before you know playing with that switchboard now you can also find the connection diagram of the hardware with the ac appliances in the same articles refer that article for you know getting the connection diagram image as well so after successfully making all the connection i inserted the esp32 board into the pc project turned on the switch and now let's just see this project working in action so first let's try controlling with the help of the blink application as you can see i'm easily able to control the appliances with the help of the blink application and also able to control the speed of the fan using the slider widget perfect now let us try with the manual switches okay so i'm easily and smoothly able to control the appliances with the help of the manual switches now let's turn off the internet and see if it still works or not okay so the project is working perfectly without internet as well so yeah that was all about the all-in-one home automation project made using blink 2.0 and well blink 2.0 is way more advanced than the previous version of the blink like it can be integrated with the help of alexa and google home which is mentioned in the official website i haven't tried that yet but like if you want me to make that i'll definitely try out that feature and make a tutorial video for it if you guys want it so to let me know your uh suggestion your um you know demand your request into the comment section of the video like what should i try with the new blink platform i already have all in one home automation should i try with alexa google home should i try something else with this particular new platform you can ask me anything and me and my team will try to make that project for you and now talk let's talk about the uh sale of this particular project so let's go to the dksms.com website click on this menu and here are all the projects for sale from techysms out of all these options you just have to select an all in one home automation project in which you'll be getting all the components already shouldered on it along with the esp32 along with the fan a regulator knob as well now this will be delivered straight at your doorstep and this is limited to india only so i'll be able to ship this a project only if you are from india okay just purchase this project to make a normal home and office a smart home and smart office and you'll not only be making your home smart but you will also be supporting techy sms by purchasing this particular project from us and that being said i'm just ending this video here do like comment share this video and now just wait for my next one explore and share with me techy sms [Music]
Info
Channel: techiesms
Views: 16,441
Rating: undefined out of 5
Keywords: techiesms, electronics, electronics projects, Esp32 project, New Blynk 2.0, Blynk 2.0 projects, Blynk 2.0, IoT projects, All in one home automation, Fan dimmer, Internet and manual automation with feedback, Capacitive fan dimmer, Internet and manual home automation, New Blynk home automation
Id: rtow21xILqo
Channel Id: undefined
Length: 13min 48sec (828 seconds)
Published: Sat Sep 18 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.