The BEST Home Automation project 😍😍 | All in One Home Automation project with Fan Dimmer V2

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so when you search for home automation using fan dimmer on youtube and almost all the results you will get will be from techy sms youtube channel only it's just because we tried to make the most stable hardware that is compatible with almost all the iot platforms maybe its older generation of blink news generation of blink arduino iot cloud firebase esp lx and many many more and not only that we also successfully sold more than 100 units of this project and with this great success we tried to make the second version of this project which is 18 percent smaller than the previous version but still able to manage all the previous features and also some new additional features in it so now the second version of all in one home automation project will help you to control up to four ac appliances along with the speed of one ac fan with the help of capacitive fan dimming method which will work with internet with the help of mobile application alexa google voice assistant manual switches and manual fan regulator and ir remote as well along with the real time feedback on mobile application and it will work without internet as well with the help of manual switches manual fan regulator and ir remote as well and not only that you'll also able to get the real time temperature and unity data of your smart home or smart office on the mobile application so i'll be getting all those features at a really compact size and the good news is that we are also selling this complete project with all the components already shoulder in it along with the rainmaker firmware so you don't need to program it as well at a really attractive price of just rupees well you need to watch the complete video to know that so before starting this video if you are new to this channel well consider subscribing this channel as we come up with these kind of interesting useful and easy to make iot projects in the field of of course iot automation and electronics and yet that being said let's start with all in one home automation version 2 what's a ar do you know what most electronic companies have something in common well it's the tool that they use for making their products and the most commonly used tool that almost all the big electronic companies uses is the ltm pcb designer software using ltm you can definitely level up your pcb designing skills and make something really professional out of it and now along with the integration of octopart searching for any electronic components globally becomes really very easy octopart is kind of google for just electronic components where you can search for any electronic parts and get that information all on one single web page so do check out this amazing search engine made just for electronic components i'll leave the link for this down in the description to check it out so for making this project you will need these all components whose list and links are attached in the article whose link you can easily find in the description of this video now after getting all the components you need to connect them all according to the schematic diagram now to make this project more compact and handy we designed our own custom piece before it and this time we designed it carefully by keeping the ac and the dc side totally apart and after designing we gave its order directly to jlc pcb now you can try ordering your own custom design pcbs from glc pcb by following very simple steps you just need to upload the gerber file of the pcb project select the number of pcbs and also select the color masking here i selected the green color masking as it has the lowest production time and after that just place your order and if you select the fastest delivery option well you may get the pieces delivered at your doorstep within a week also let me show you that dlc pcb started the 3d printing service on that same platform which is really cool and very simple to order you just need to upload the 3d print design of your project and you are done with it you'll be getting the 3d print delivered straight at your doorstep by glc pcb so if you have any project that requires the 3d printing files well now jlcpcb has a one more service to offer to you guys so do try out that service as well the link is down in the description of this video okay so coming back to our video so after receiving the pcbs we one by one shoulder all the components on it and the final project looks like this neat and very compact and also here is the previous version of all-in-one home automation just for size comparison so it's almost 18 percent smaller in size but still able to manage a lot of cool features in it which i'll discuss just in a while but yeah along with the pcb we also require couple of more components let me discuss that with you so now for the fan regulator part we got this four step rotary switch and shouldered all the wires on the back we added this shrink tubes to make that connection more sturdy and also to isolate all the connections we did that similar steps with ir receiver and dht11 sensor and with the help of these connecting wires we can insert all of them at the dedicated connectors on the pcb and with this we come to the end of the hardware part of the project now let's just jump on to the coding part okay so here is the code for the all-in-one home automation version 2 using rainmaker and here what i'll do is i want to discuss the important functions important steps pin connections and the ir remote cores everything important stuff i'll discuss here rather than explaining each and every line of code and for you to understand the core well uh first of all i have commanded everything so it will be easy for you to understand the functions of each and every line of code and secondly i'll definitely recommend you to watch out my rainmaker videos whose link are in the i button and the description of this video in those videos i have explained the rainmaker commands and terminologies and everything so it will be easier for you to understand the architecture of esp rainmaker so do wash that video out and after that if you go through this code you'll be better able to understand it okay so first of all you need to install all the libraries those lists uh sorry links and the version number is mentioned here so i'm using this particular version of this particular library so you need to install the same one and of course you need to have the arden arduino esp32 boards package version 2 and for that to go to the arduino preferences click here and you just need to paste this line which i'll provide in that same article just paste that line here click on ok ok again then go to tools into boards and then into boards manager here just type out esp32 and just install this so my version is 2.0.4 to have this boards package version and that's pretty much it about the pre-configurations and now let's start with the code so here i provide the provision and techie sms and the ksms123 password which will be used for you know pairing via bluetooth with our project okay straight after that here are all the pin connections so the pins which i used here are the same pins which i used in the previous version as well but there is only one single change which is in this version i have added a fan switch as well which was missing in the previous version okay this is the new one and after that i do have added two sensors one is the ir sensor that is higher receiver and second is the dht one one sensor which are attached to 17 and 16 pin respectively okay after that i given the device name as light one to light four and here i have provided the ir remote codes for controlling those lights and fans using ir remote now you if you like if you are using any other remote like if you're using your own tv radio remote well you need to change this code and how to get those code well for that i already made a simple code to read the data coming from the ir sensors okay so you need to upload this code i'll provide this code as well and let me just turn on my smartphone's camera and let me show you which uh remote i'm using so i'm using this remote that comes along with the rgb led okay if i open the serial monitor because the code is already uploaded i guess okay let's select the right com port and if i open the serial monitor so here's the serial monitor here is the ir mode and when you click on the button the particular hexadecimal code of the you know button appears here you need to note this data down similarly you can click on the button uh click other buttons and record the data as well and after doing that you need to paste this data inside this particular what you can say code okay so that's that's that's the thing you need to do if you're using any other remote now what i'll do i'll try to uh like if possible i'll try to collect like a couple of the remotes which i can provide along with the home automation projects so that you don't need to change this uh hexadecimal code for ir remote as well you just need to get the remote which i'm using and you're good to go so i'll try to you know collect that remote and in case i get the bulk quantity of that remote i'll definitely try to make a combo of remote plus project and sell it to you so you don't need to change the codes as well so i have written the code for all the four relays then i have written the code for turning on and off all the relay at once okay after that for the fan what i did is i have um no recorded the button for speed up recording the button data for speed down and similarly for fan on and fan off so this much data i have recorded for the ir remote great after the necessary variables and here we have declared the switch and the fan this is for the widgets that will be up here in the rainmaker application similarly this is for the temperature unity sensor okay after here i use the ace button library for you know getting the real-time feedback of the manual switches and also controlling the appliances using them so this is a very great library a stable library for using you know buttons in our project straight after that here we have declared a simple timer because uh time to time we'll be sending the data of temperature and humidity to our rainmaker application okay and after that uh let us jump on to the setup part first of all yeah here is the setup part beginning the serial monitor making all the pins as input output according to the replication after that you know attaching the button or configuring the buttons or manual switches you can say then beginning the ir receiver and the dst11 sensor and adding all the you know configuring all the widgets for the rainmaker pretty common we have set the inter for two seconds every two seconds will be getting a new data and yeah that was all about the rainmaker part uh sorry setup part of the rainmaker code and after that inside the loop we are checking the button status and the fan manual uh control okay this is for the manual control of course and after that here is the logic for the reset button so of course we have to press and hold the gpio zero button to make the you know uh credentials reset so we have a rainmaker firmware built in if you want to erase the credentials and add a new one you do press and hold the button uh for more than 10 seconds and it will erase the credentials and you can you know add the new credentials by scanning the qr code once again okay and this is for checking if the wi-fi is connected or not in case the wi-fi is connected then and then only we'll be sending the census data if it is not connected we won't be sending the sensor data and we are always reading the ir remote okay so that was all about how this code is working or other important functions used in this code uh other than that you need to go through the code and read out the comments to understand what all things are added in this and how all things are working here okay so yeah and in case if you're buying this complete project where you don't need to upload this code the code will be coming pre-programmed so yeah that was all about the coding part because after learning about the hardware and coding part now we are left with the installation and configuration of this project but before that let me share one amazing news which is we are selling this complete project with all the components already shielded on the pcb along with the manual fan regulator is sensor dht11 sensor and also along with esp32 which comes pre-programmed with the esp rainmaker code along with which you'll also get a getting started and installation documentation which will help you to install and configure this project and the best part comes now you will be getting this project at exactly the same price at which we were selling the previous version of all in home automation project yeah yes we never know the price may change in future so it's better you go get your own home automation project right now the link is down in the description of this video so go get one for yourself and start your iot and home automation journey with all in one home automation version 2. now let's jump on to the configuration of the project so to configure you first need to install the esp rainmaker application which is available for both android and ios whose link you can easily find in the description of this video after installing just log in with your google account and after that just click on that plus icon here you need to scan the qr code that comes along with the documentation just pad the device via bluetooth and after that just provide the sid name and password of your wi-fi router to make this project talk to internet and now you are good to go yes that was all about the configuration on the app you can see all the widgets automatically appear on the screen for lights fans and also for the sensors pretty simple and straightforward just like the commercial iot products available in the market isn't it so after doing the configuration now let's install this project in our switchboard so first of all you need to open the switchboard now here be very very careful while playing with the mains i'll suggest you to turn off the main switch before opening the switchboard so after opening it you need to make the connection between our project and the appliances according to this connection diagram now if you fear playing with the mains or the connection seems confusing to you well i'll recommend you to call your electrician and just show this connection diagram to them and they will easily able to connect all the things for you so after doing all the connections we closed the switchboard turned on the main switch and also powered on the pcb project after that we attached the ir sensor and dht11 sensor near to the switchboard well everything seems perfect now let's test this project working live in action so let's first test with the esp rainmaker application okay so as you can see i'm able to control the lights via rainmaker application in real time over internet and also i'm able to control the speed of the fan using that slider perfect [Music] and also we are able to see the real time temperature and humidity census value of the room perfect now let us test with the manual switches amazing we are able to control the lights and also getting the real-time feedback on the app and not only that we are also getting the real-time feedback of manual fan regulator great now let's test the ir remote as well so yeah as you can see i am able to control the lights using the remote and also getting its real-time feedback on the application and the same goes with controlling the speed of the fan as well well this feature is really good now let us turn off the router and test it in without internet mode [Music] great so even without internet we are able to control all the appliances using the manual switches and ir remote pretty smoothly without any delay and as soon as we turn on the router the project will automatically get connected to the internet and now we can again control all the things via mobile application [Music] so it is working perfectly fine with all the option that comes along with the project but still we are remaining with one thing which is the integration of alexa and google voice assistant yes we can control using that as well let me show you how to do that so now let me show you how to integrate alexa voice assistant with this project and for that open up the esp redmaker application go into the settings icon and here click on voice services click on amazon alexa and here click on link with amazon alexa after that just click on the allow button now here it will ask you to log in with your amazon account on which the alexa is configured in my case i'm already logged in so it didn't ask me for that it directly asked me to allow this rainmaker or not i'll click on the allow button now here you need to log in with your google account using which you are logged into your esp rainmaker application so i'll click on continue with google and we'll add the same id which i used to log in with esp rainmaker okay so after reporting the credentials as you can see we are linked with the amazon alexa account and now we can control those appliances using alexa smart speaker as well before trying it out let's first you know configure it or integrate it with the google voice assistant as well let me show you so for google voice assistant you need to open the google home application on your smartphone i'll open that and here click on the plus icon click on set up a device click on works with google and here the search for rainmaker as you can see here esperantomaker appeared and here also you need to log in with the same google account using which you are logged in with your esp raid maker application so i'll click on continue with google okay so we successfully integrate both the voice assistant and now let us test them with our project in action alexa turn on light one alexa turn on light 3 alexa turn on office fan turn off light 1.6 [Music] turn off light 3 turn off fan so that's how you can control the appliances using alexa and google voice assistant as well and now for all those who already bought our previous version of this project and want to know what are the changes that we have made in a new version then first of all we rearranged all the components and made them really closely packed to reduce the size and while rearranging a lot of issues were solved like in the previous version we are not able to insert the usb cable in our esp32 board in case we want to debug the code but in the new version it is completely solved and here we can easily insert the usb cable debug the code and maybe upload the code while the board is already powered on then we removed a couple of terminal connectors as we made all the common connection inside the pcb only which resulted in size reduction and also in reduction of number of external wires connecting to our project then we also added slots in the pcb in the relay section to isolate ac and dc signals which reduces interference also we shifted the on off switch away from the ac connection which was a bit risky previously as it was too close to the ac main connection then in the additional features we added two sensors one is the dht-11 sensor and other is the ir sensor also this time we added a dedicated switch to turn on and off the fan which was missing in the previous version so yeah those were the changes that we have made in a new version as compared to the previous version of home automation project i hope you liked it and like the karna guys videos like this videos and motivate us to make more and more such interesting iot projects also talking about the product selling then we are of course selling this project with all the companies already shouldered on it with the ir sensor with the dst-11 sensor and along with a remote as well it's just because so if we ship it with the remote you no longer need to reprogram the esp32 board by entering the ir uh you know hexadecimal ir codes okay we already added those scores in the esp32 board programmed it and we'll be shipping it to you so it's just like a plug-and-play kind of project where you just need to configure your mobile application and you're good to go of course that remote is mp3 player remote but we were not able to you know get the actual home automation remote as of now so if you know any sources from where we can get those automation based remote well duel let us know your suggestions down in the comments of the video and we'll be updating our you know mp3 player remote to actual home automation base remote in our upcoming you know a lot of home automation project yeah the purchase link is down in the description it is at the same price that we are selling it before with all the additional features but as i said i don't know when the price will change so do a buy that right now if you really want to make your home a smart home and yeah that being said i am just ending this video here and now just wait for my next one explore learn share with me techy sms [Music] [Music] so [Music] oh [Music] you
Info
Channel: techiesms
Views: 70,827
Rating: undefined out of 5
Keywords: techiesms, electronics, electronics projects, esp rainmaker, rainmaker home automation, all in one home automation, home automation with fan dimmer, internet and manual control home automation, the best home automation project, Alexa controlled appliances, Iot projects, esp32 projects, home automation projects, home automation using esp32
Id: 87QhjQth-pQ
Channel Id: undefined
Length: 22min 33sec (1353 seconds)
Published: Sat Sep 10 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.