Home Automation Using Google Assistant
Hello friends, welcome to Top vs group. In this video we’ll make a home automation project where you can control multiple home appliance from the blink app, and a Google Assistant. Let me show you. Here you can see I can easily control these two lamp from the blink app. Now to control this to learn from the Google Assistant to say Hey Google LED on turning on LED. Hey Google led of turning off led a Google switch on light, turning on the light. Hey Google. Switch off light. Turning off light. So, as you can easily control these two lamp from the Google Assistant, and instead of these two lamp, you can connect any other home appliance. For this is a very useful home automation project, and you just need the internet in your smartphone to control the home appliance from anywhere of the world. And during the video, I’ll share the complete circuit diagram code I have used for this project. And I will also explain how to connect bean cap with a Google Assistant. So, after watching this video you can easily design the circuit for your home. So let’s get started.
For this project, we just need a relay module and a node MCU port. In my previous video I’ve already explained in details how to connect node MCU with a relay module and control the relay model from the blink app. I will share the video link in the description. So in this video I will mainly focus how to connect blink cap with a Google Assistant. So here you can see our lives the same certicate, and I have used two channel relay module and connected with a T one and D two pin of the nodemcu . Now if you want to use for Channel relay module. Then you can use these GPIO pins of the nodemcu. I’ve shared all the details in the description. As you can see I made the circuit, on the paid board. Now I will quickly add some music, enabling cap for that I’ll click on new project. And here I’ll select nodemcu. Then, okay, connection type should be Wi Fi. And here I’ll give a project name say smart home or blink will send an authentication token to your registered mail id, which will be required in the code. So I’ll click on OK.
And here I will add two button. So for the first button, I’ll select detail pin one. And as I’m going to use a active low relay model. So, to turn off today I should send one and turn on the relay I should send zero. If you use active high delay module, then you should not change this and module B switch. So does add created a button. Let me give a name, say, they won. You can give any name error. Now I’ll exit from the button, and he says it. Now I have to create a dragon button. And here I will select digital pin two and modal will be switch. And here, as I’m going to use active Lorella model. So, I have to change these also. And I will resize it does add grated to button in the plane cap. Now we’ll move to the coding part, and for this project I will use a blink example sketch on nodemcu. So we can download this case from the video description. So first I have to go to File, reference, and I have to copy paste this part in here. Then I have to install the blink library. You can see this is a link from where you can download and install the link library, and to copy paste the authentication token.
So I go to my gmail account, and here you can see the engine said authentication token so. Then I’ll go to the admin usage. And I’ll paste it here. Now here are to type my Wi Fi name, and the Wi Fi password. Now I’ll go to Tools. Select the node MCU board, and a proper port. Now I can click on upload to upload a sketch. If you face any problem during downloading the blink library, and you can refer my previous video I have shared the link in the description. Now to connect a computer with a Google Assistant, I will use IFTTT, which will act as a bridge to connect a blink, with a Google Assistant. So here you can see first to sign up. I slipped on Google. Now after signing and click on the profile, and then click on the Create, then here you can see IFTTT t stand for ftc. 10 dat. So first I’ll click on this plus icon. And here I will search for Google Assistant, then click on it, click on Connect. It will ask some permission, which I will allow. Now here, unfailingly say a simple phrase. And here you have to type. What you say in the Google Assistant. So, we’ll type switch on lighting. and here we can say, light on. So if you say switch on light or light on in the Google Assistant danger respectively, we will turn on. And here I will type the play from the assistant. Say turning on the light. Now I will create a third. Now here you can see the Google Assistant logo.
Now I’ll click on this plus button. And here I will search for wave work. So I’ll click on it and click on Connect. And in our clip. Make a web request. Now here you have to type the URL. Now to get a URL. You have to open corporate or Cmd. Now, first I have to get the IP address of the bling cloud or Windows type thing. Blink cloud.com. Then, press Enter. And here you can see this is the IP address of the blink cloud, I will copy it. And here first I have to type a TT p colon slash slash. Then paste the IP address, then again I have to give a slash, and then I’ll again copy paste the authentication tokens then by the link and paste it here.
Then, ina bit up da t. Now after that add to mention the GPIO pin. So if I go to the GPIO detail of the nodemcu 10 here you can see for the relay one, I will use T one and Formula Two I e one GPIO five and four D two GPIO is four. So our to report the GPIO number. So, I type D five as four D one GPIO is five. Let me go to the IFTTT. And here, type, D. Five And here I have to slip put method and content type should be the question Jason. Now as I said here, meaning using an active load relay module. So to turn on the relay module, I have to say. So to send a zero, you have to type. With this syntax. Now I’ll click on the Create action. Now once I finish in the similar manner. I have to create a second applet to turn off the relay in and click on this plus icon, and search for Google Assistant. Now, I will switch up light or.