A perfect Automation project for your Home & Office | IoT Projects | ESP32 Projects

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video we're gonna make a complete home automation project using which you'll be able to control up to four ac appliances and also able to control the speed of the fan using arduino id cloud elixir smart speaker and also with the help of manual switches and manual fan regulator that works with and without internet as well so this is kind of a complete home automation project which is ready to be installed at your home or offices so let's start with this video and learn how to make this project quickly starting with the hardware part of the project then to make this project you'll need these all components whose list and links are mentioned in the article was link you can find in the description of this video also i have mentioned the high quality connection diagram for all the components in that same article so just referred it for your reference now as usual due to a lot of connection i just designed my own custom pcb for this project and gave its order directly to glc pcb now when you can try ordering your own custom pcbs from the lcpc by just uploading the grip file of the pcb project select the number of pcbs and color masking after that just place your order now if you select the fastest delivery option you may get the pcbs delivered at your doorstep within a week so try ordering your own custom pcbs to make your projects look neat handy and more professional now for getting the pcb we just shoulder all the components on it now for the fan speed control we remove all the components from the commercial fan regulator and we have used the rotary switch inside it and solder the wire on it if you want to learn how this capacitive dimming method works and how to make your own fan dimmer using arduino or esp board well you can watch out this videos link is in the i button as the description where i have gone into detail about how a capacitive fan member works and how you can make it on your own with this we have successfully completed the hardware part of the project now let's just move ahead and start configuring the iot dashboard now for this project i'm using this arduino iot cloud dashboard it's just because in the arduinoid cloud dashboard in the free version they also provide the alexa integration built in so you don't need to pay extra for it you don't need to purchase any plan using just the free plan you can integrate the alexa with it and of course you have the support of this arduino dashboard in both mobile application and web dashboard so it's super great so that's why i used arduino id cloud for this project okay so let's start configuring this dashboard so first of all you need to go to the create.arduino.cc website which will be you know uh redirecting you to this particular webpage after that you just need to log into your arduino account and after that just click on iot cloud now i already made a detailed video about uh how to get started with this iot arduino i have to cloud dashboard using the esp32 board or which was uploaded in the last sunday whose link you can find in the description so do watch that video out in case you want to understand this thing from very basic level okay so yeah it says create your first thing so click on create thing now here click on add variables so as i said in this project we have four ac appliances and one fan speed control so in total we have to create five different variables so starting with the first variable which will be named as a relay one okay you can name it according to your choice it's just totally up to you variable type will be it's a light so i'll select light here which is a simple light okay a variable is declared here and the permissions will be as it is click on add variable so similarly i will add three more variables quickly okay so we have successfully added four variables for four ac appliances now we are left with the fan speed control for that i click on the add button here i'll type the name as fan now the variable type here will be something different let us search for fan if it is available so no fad is not available so this is kind of uh what you can say missing thing in our new id cloud so uh if any people from arduino companies watching this video try adding this fan as well because a smart home do have a fan as well so fan is kind of a very basic thing so do edit straight away okay so that's the suggestion from my site but now what we have to do like how to add a fan regulator for that what i'll be doing is i'll be searching for light and here i'll be using the dim light okay so dim light has a on off switch as well as the dimmer to dim its brightness okay so we can use that dimmer slider for our fan speed control like that will be okay for us okay so i'll select dim light here okay so a dim light variable is also created i'll click on add variable so with this we have successfully added all the variables required for our project moving on to the next part which is adding a device so for that click on select device now here uh in my previous video i already added this my esp32 board so that's why it is showing uh like displaying this particular thing but in your case it may be not the same image uh what you have to do is you just need to click on set up a new device and here you have option is it an arduino device or a third party device in my case i'm using the esp32 board so i'll select a third-party device select esp32 select the model as dev kit v1 and click on continue i'll name this device as all in one okay no space allowed so all underscore in underscore one it's an all-in-one home automation project that's why click on next so here it will be providing the device id and the secret key you just need to click on download the pdf which will automatically download and save this particular credential onto your computer which will be required later on okay so click on download the pdf okay so after downloading the pdf just click on i saved my device id and secret key and click on continue so with this we successfully added our esp32 device onto arduino id cloud now we are left with the last thing which is adding the network credentials for that click on configure now product name and password of your wifi router because this project do require internet connectivity okay after that here it is asking for the secret key now you can get the secret key from the pdf which you have just downloaded okay so let's open that pdf and here is the secret key of your device just click on copy and paste that secret key here click on save with this we have successfully configured the basic part of the arduinoid cloud dashboard now we have to add widgets to the dashboard and for that just click on dashboard and here i'll click on build dashboard so yeah a new dashboard is created i'll click on this edit icon to add the widgets after that click on add and here i will add four switches for controlling four ac appliances so i quickly added i'll name it as relay one and its variable will be relay one click on link variable that's it similarly i will do the same step for other three switches okay so we have successfully added four switches now we are left with adding the fan speed control for that click on add and here we have to add this dim light remember we added a dim light variable for that uh we have to use this widget only after that here i will change the name to fan speed and we can say or other fan is okay okay click on link variable and here we'll select fan this time click on link variable that's it we have successfully done this okay we can rearrange this thing i'll put it here okay so we have successfully configured the dashboard and the good news is that you have to create the dashboard for only once like only in the web dashboard and inside the mobile application will automatically reflect it okay so need to recreate this dashboard again okay so now we are left with the last part which is the coding of this project and for that you need to go to things go inside this particular thing and here you have to go inside the sketch okay so if you don't know arduino id cloud provides a web code editor you can say so you can write the code here add the code here and upload the code from here only need to have the arduino id okay so yeah uh now we have to create the code now i have already uh created the code for this particular project which is this so i'll simply copy it don't worry i'll explain the important stuffs here okay so i'll copy it and i will simply paste everything here it seems uh fine okay so now let me just explain this code to you so first of all all the variables are automatically declared by this arduino iot cloud so these are the global variables which will be also available inside the alexa smart speaker okay after that here all are the pin definitions like for the fan regulator knob for the switches like to control it manually and here are pins for the relay on which the relays are attached and here are the relays for controlling the fan speed okay so necessary pin declaration is here after that necessary a variable declaration which will be used to build the logic for this project after that basic input output is declared pretty simple straight after that inside the loop we have only two function arduino cloud dot update that means or this function will be you know handling all the data transfer happening between the arduino ide cloud and the esp port and i have created one more function called as manual control which will be responsible for all the uh all the functions happening manually with the manual switches and manual fan regulator okay so uh in case anything coming from the alexa side or arduino side this functions will be called for example if we are turning on and off the switch one of the relay one this function will be called and will be directly turning it on and off according the data received okay similarly uh there is one more function called as on fan change that means if there is anything changing from the fan speed control knob from the arduino ide cloud side of the lxs side this function will be called and here what we are doing this is something kind of a tricky you can say see first of all uh the the light dimming variable has the data or the range from zero to hundred percent okay so it's a percentage value starting from zero up to hundred but in our what you can say fan speed control we have only like four different states either it will be zero that means with off either speed one in speed two speed three speed four i think a total five variables are there okay so now what we have to do we have to map this five variables within the range of 0 to 100 and for mapping those value i have used this function called as map which will map the range from 0 to 100 to 0 to 4 okay so this is kind of a mandatory to control the speed of the fan because this this fan speed control is not a smooth control it's a step control you can see okay so for that i have to do that so i have mapped this thing and according to the uh mapped value i'm calling the speed function if the map value is zero i will call it speed 0 which is turning the fan off if one then speed one two and so on okay so this is the fan speed control part and this is all happening over internet now what happens when we are turning it on and off manually well this function is responsible for all the manual uh controls uh actions that we are performing okay this is a completely similar that we have seen inside the internet part okay but there are a couple of more uh what you can see variables used to build that logic okay so that's that's a simple thing once you go through this code you'll definitely understand how this manual task or manual switches are working okay so yeah that was all about the logic which i built for this code now what i'll do is i quickly click on the verify button to see if there is any error or not oh that is one error let us go through this error what is this error i think this fan f should be capital probably let us compile it again okay so it says done compiling and it doesn't seems to have any added okay so now we have to upload this code but before uploading this code uh if you watch my previous video no you have to install this create agent so if you don't have the create agent just click on learn more button and click here to download this arduino create agent and after downloading you just need to enable that arduino create agent on your computer okay so here is the arduino create agent which is already running into my computer i will quickly connect my esp32 board and it should show me the board here so after that there is one more thing inside this arduinoid cloud which is open full editor that will be giving you way more options inside this web editor like adding the libraries and selecting different boards and stuff like that okay so it's better to go on to this editor like full editor to uh write the code and write the code okay so yeah here is the full editor as you can see a complete uh web application is appeared here now here i already connected my esp32 board i'll select the board if it's okay here is the board i'll select it and i will straight away hit the upload button okay so now we have to wait a couple of seconds to let this arduino cloud upload the code onto our asp board and in the meantime let me just show you the arduino web sorry mobile application is it completely configured or not let me show you so i will start the screen recording on the phone and i'll open the application called as a remote iot remote okay so if you don't have this application i'll attach the link for this as well in the description okay so here our two dashboards are created uh out of them one will be our okay so here is our mobile application on the dashboard is successfully created as you can see all the switches and the fan regulator appeared here okay so yeah it is completely configured and in the meantime our code is also successfully uploaded okay now before inserting this esp32 board onto the all-in-one pcb let's just uh you know configure this or rather integrate this project with the alexa smart speaker as well and for that you have to perform very uh simple steps okay so first of all you want to open the alexa application on your smartphone okay now one good news is that it also works if you don't have the alexa smart speaker you just need to have this alexa mobile application okay so after that you need to go to the mode and here go to skills and games here just click on search and search for arduino so here is the arduino skill well i already enabled this skill but in your case you just need to click on enable skill option which will be available here and after that you have to login to your arduino account to just link both alexa and arduino cloud uh cloud to together okay so i have already did this so it is not showing me that particular option after doing that what you have to do is you just need to click on this plus icon and click on add devices go below and click on other and just click on discover devices so it will automatically start discovering nearby devices uh which are connected with the arduino iot platform okay it will take couple of seconds [Music] make sure your phone and the esp boards are on to the same wi-fi network just to add the devices after successfully adding you don't need to have onto the same network it's it will work over internet okay so as you can see it says alexa found five devices like four appliances and one fan spread control so yeah we have successfully uh added those devices into our alexa application as well okay so let me just show you so here is the fan relay one related to relay three and rear four so yeah we have configured all the things like the arduino dashboard both web and mobile dashboard the code and also the alexa smart speaker now let us insert this esp32 board onto the all-in-one motivation pc project let's just see this project in action so let's first start controlling the appliances with the help of the arduino iot cloud dashboard as you can see i'm easily able to control the appliances with the help of the arduino mobile dashboard and i'm also able to control the speed of the fan using this quite neat looking knob perfect let's try with the manual switches okay so i'm able to turn on and off the appliances and also i'm able to get the feedback onto the arduino iot cloud dashboard and if i talk about the fan speed control then yes i'm able to control the speed of the fan using this physical knob and also getting its real-time feedback onto the arduino dashboard and now the last step is it to control the alexa smart speaker alexa fan speed 100 perfect so now i'm able to control this office using the mobile application using the alexa smart speaker using the manual switches and i think this is the perfect home automation project which is uh which you should make uh at your home office because this doesn't require any paid platform like the cindy pro is now become paid ifttt now become paid so it's quite difficult to found a platform which provides built-in alexa integration for free and this is that particular application which will give you this integration for phrase and do click the like button if you like this project and if you are eager to make this project by yourself as soon as possible and the good news as i said in the starting of the video is that i'm selling this project like it is for sale like i'm not giving the free pcbs rather i'm selling this complete project it's really very simple to get this project delivered at your doorstep what you do is you just need to click go to this particular page whose link is in the description it will take you to this particular web page which has all the details regarding this project now this is configured with the blink platform because earlier i made the same with the blink one so but you don't need to refer this you just need to refer this particular tutorial video to make this complete project after that just click on this buy now button and here is the buying page you just need to click on add to cart and after that just click on view cart now here provide the coupon code well the coupon code is in the article you have to find it out on yourself but it's there in the article so just find out the coupon code apply that coupon code here click on proceed to check out add your address add your payment details and you will get this delivered at your doorstep ready to be installed you just need to upload the code onto the esp3 report you'll also get the esp32 board by the way you just upload the code and you're ready to rock your smartphone and that being said i hope you liked this video i hope you enjoyed this video i hope you got to learn something new from a different so do like comment share this video and now just wait for my next video to explore and share with me techy sms you
Info
Channel: techiesms
Views: 37,237
Rating: undefined out of 5
Keywords: techiesms, electronics, electronics projects, arduino iot cloud, esp32 projects, arduino create agent, controlling led using arduino iot cloud, arduino iot, arduino cloud, arduino iot cloud projects, arduino cloud projects, arduino remote app, remote iot dashboard, all in one home automation, smart home, home automation projects, iot projects, internet and manual controlled home automation, Alexa controlled appliances, Alexa smart home, arduino iot cloud with Alexa
Id: iIydcrYxIHM
Channel Id: undefined
Length: 18min 8sec (1088 seconds)
Published: Sat Jul 17 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.