arduino voice recognition

 


 
Turning on the lightquot, Hey what’s up everybody, Abhishek Hingorani here and today, I’m, going to show you how you can control our electronic appliances using your voice over the Internet and that to under a budget of 20. So let’s get started. Okay, so we’ll complete this whole project in just four simple steps. Now, if you wish to come back at any time or skip ahead on the timeline to any of these steps, you can find the time for each of these steps in the description. Okay. So with all that said, let’s get into it and make a start with the first step, which is to install and configure the blynk app. So I have my Android phone and the first thing I’ll do is: go to the Play, Store and download the blynk app and install it once it’s installed, I’ll open it and login using Facebook. Now that I’m logged in I’ll click on new project and give the project a name such as home, automation, I’ll, select NodeMCU as the device and select connection type as Wi Fi and finally, how would it create at this point, blynk will send an auth token to The email id registered with my Facebook account I’ll use this auth token later to link the blynk app with the NodeMCU okay. Now, in the blank project, I’ll add four buttons to control the four relays so to add a button. I’Ll simply click on the blank area and select button from the menu now I’ll click on the button and name it relay 1 and select the pin as digital pin d3.

Similarly, I’ll add another button, drag it into position, click on it and name it relay 2 and I’ll select its pin as digital pin; d4 I’ll, add the third button name it relay 3 and select the pin as d5 and finally, for the fourth button, I’ll name. It relay 4 and select the pin as d6. So that concludes the first step once you have the blynk app all set up it’s time to move into the next step, which is setting up the Arduino IDE and the blynk libraries. Ok. So now I’m. Here at my workdesk, with my PC powered on so first of all, I’ll open up my email and copy the auth token from blynk’s mail and paste it somewhere like in the notepad, will use this auth token later. The next thing I will do is go to Arduino website and download the Arduino IDE just choose your preferred operating system and hit download I’ll. Also put all the links in the description below. Alternatively, Windows users can also go to Windows, Store, search for arduino, ide and download and install it from there itself. I cannot download it as i already have it installed in my system, once the arduino ide is installed, I’ll go to blynks github page again. Links are available in the description, I’ll scroll down and download the latest blynk library, as I already have it downloaded it I’ll hit, cancel but you’ll get something like this after you have downloaded it.

I’Ll right, click it and extract the contents of the zip file. Now I’ll open up the arduino ide go to filegtpreferences and copy this path and close the ide, then I’ll open up this path. Now this is the directory where all the arduino libraries are installed and therefore i’ll have to copy the newly downloaded blink libraries into this folder. So first i’ll copy the downloaded blink libraries and paste them in the libraries folder, as i have already copied them in my directory. I won’t copy them again, so similarly copy the blynk tools and paste them in the tools. Folder. Alright, now I’ll connect the node MCU to the PC. Ok, so now that we have the ID and blynk libraries all set up, we’re ready to write some code and upload it to the node MCU. First of all, I’ll open up the arduino, ide and change some settings, i’ll go to toolsgtport and make sure an appropriate port is selected in my case it’s COM, 4 and then i’ll go to toolsgtboard and select node MCU as the board and that’s. Really all the settings we need to change so now. Let’S begin writing. Some code go to filesgtexamples scroll down, select, BlynkgtBoardsWi, Fi and click on esp8266 standalone. Now in this file, we only need to change three lines of code. The first line we’ll have to change. Is this I’ll just replace this with the auth token I copied earlier now here, we’ll have to write the name of Wi Fi network.

We want our node MCU to connect to which, in my case, is quotThe Networkquot, so here I’ll, just type in The Network and for this field, we’ll have to type in the password of Wi Fi network. So, in my case, the password for my Wi Fi, the network is quotabcd1234quot, so I’ll just type in abcd1234 and that’s. It that’s literally all the code that we need to write. And now we are actually ready to upload this code to the NodeMCU. So I’ll directly hit upload and wait for it to process and it’s done. The code has successfully been uploaded to the node MCU and the next time I power it on. It will automatically connect to my Wi Fi network, and this concludes our step. Two let’s now move to step three hardware: assembly: okay, so here’s the plan. Now you connect the node MCU and the relay board using some jumper cables to power the node MCU. We can either use a phone charger and directly plug it in or we can use a power bank to power it up to power. The relay board. You can either use some batteries or get a breadboard power supply module. Now the final step is to connect the electronical appliances with the relay board. You can directly pull out wires from your main socket and attach them to the relay, but to do so I would recommend that you take help of a professional electrician and not to do it on your own, because working with such high voltages can be very dangerous And can cause some serious damage if you don’t know what you’re doing so.

For the sake of this tutorial, I would connect a simple external light bulb to one of the relays using a wire and connect the other end of that wire to the wall socket to supply power to the bulb simple enough, so let’s get into it. Let’S start by attaching a node MCU to the breadboard I’ll connect the node MCU with the relay board within some jumper cables. I’Ll connect digital pin, d3 of the node MCU to relay one pin D4 for to relay 2 D5 to relay 3 D6 to relay 4 and the ground pin of the node MCU with the ground. Pin of the relay I’ll attach the light bulb to the relay board using this wire I’ll just screw. The two open ends of the wire to the relay. To power. The node MCU I’ll use a smartphone charger and now to power the relay you should use some batteries or a breadboard power supply module, but currently I don’t have any of those so as a workaround I’ll power, the relay using the Arduino board, which is wrong. You don’t have to buy an Arduino board just to power the relay module. You can either use some batteries or a breadboard power supply module, but, as I don’t have any of those options, I’m using the Arduino board and now I’ll attach the bulb to the wire. Finally, I’ll plug both the smartphone charger connected to the node MCU and the wire connected to the bulb to the power socket and turn them on.

Alright let’s now test this little setup of ours. Before doing that. Let’S change one final setting in the blynk app open home automation, project that we created earlier and for each of the button; interchange the output from 0 to 1 to 1 to 0 and change the mode from push to switch. Repeat these steps for all the buttons. All right, let’s now hit the play button to test the project and, as you can see, the project is working just fine all right. If this is what you wanted to control your electronic appliances using a smartphone, then you’re done it’s fine. If you don’t watch the video, but if you want to control your home appliances using your voice with voice commands, then do keep watching and lets now move to step 4. Configuring IFTTT okay, so here is what we have done so far to control home appliances over the Internet. We are using node MCU and to connect the home appliances with node MCU. We are using a relay board, so the blynk app on our smartphone sends onoff commands to the node MCU, which turns onoff our home appliances. But this is not our goal. Our goal is to control the electrical appliances using Google assistant’s voice commands. Now we can neither send Google assistance voice commands directly to the node MCU. Nor can we send them directly to the blynk app. Therefore, we will use an intermediate tool called IFTTT which will bridge the gap between Google assistant and the blink app.

So, in the end, this is how things will work when we say a voice commands like quotturn on the lightquot to Google assistant. It will send that command to IFTTT. Ifttt will then interpret that command and send appropriate request to the blynk app. And, in the end, blynk app sends the command to the node MCU and then to the electrical appliances so let’s get into it and configure IFTTT. First of all, I’ll go to IFTTT.com and sign up to it. Using my Google account once I’m signed in I’ll click on my applets and then click on new applet I’ll click on this search for Google assistant and selected I’ll. Then click on connect at this point. Ifttt will ask you permission to use your Google Account to add voice commands for Google assistant, which I’ll simply allow and now we’ll be presented with a screen with four options. I’Ll select the first one, which says say a simple phrase, which basically means that when I say a simple phrase to Google assistant, then some work should happen now here, we’ll have to fill in the actual command that we say to the Google assistant so for the Command I’ll type in turn on relay 1 here, we’ll type, some other way to say this previous command, which I’ll just write as turn the first relay on and once again some other way to say the first command. Something like turn on the first relay now here, I’ll type, the reply that the Google assistant should respond with, for the above phrase, something like okay.

Turning on relay one once this is all done. I’Ll click on create trigger, as you can now see, we have successfully created a trigger, which means that if Google assistant gets the command turn on relay 1, then something should happen which in our case is sending a request to the blink app to turn on relay 1, so to program this I’ll click on that now here, I’ll type, webhooks and select it and then hit connect. Now webhooks is a tool that will allow us to send web request to the bynk app so to create a new web request. I’Ll click here now in this web page for the URL field. You must type in this URL. This is the URL for the blink server of India, but it should work for other places as well. Now, after the forward slash, you must type the auth token of your blynks project that you received in the mail now here you must specify the digital pin of known MCU that you want to control in our case as we want to control relay one which is Connected to digital pin D3 of node MCU I’ll type in D3, but we cannot write D3 here, because when blynk server sends the command to the node MCU, it assumes that it is sending the command to an Arduino board instead of a NodeMCU. So in this field will write the digital pin of arduino, which corresponds to the digital pin of NodeMCU, and, as you can see from this diagram, the digital pin d3 of node MCU corresponds to pin d0 of arduino.

So here we’ll write d0. Now that this is done, we’ll select, the method is put content type as applicationjson and for the body I’ll write 0 in double quotes and inside square brackets here 0 means to turn on so basically the sending blynk a request to turn on digital pin. D3 click. On create action and finish so similarly, I will create another applet to turn off the relay so I’ll. Again, click on my applet select new applet click, this search for google assistants and select it select, say a simple phrase and for the phrase I’ll use turn off. Really one and as a reply, I’ll type okay, turning off relay one and hit create trigger now for the that part I’ll again search for webhooks and select it and follow the same steps as I did earlier. But this time in the body instead of zero I’ll type in one I’ll. Finally, click on create action and finish, and as you can now see, we have two applets to turn on and off relay one, and we have finally completed all the steps so let’s test. It out: Hey Google turn on relay 1. Okay. Turning on relay one, hey, Google turn off relay one Okay, turning off relay one and that’s it for this video guys, if you liked this video do hit the like button share. This video, with your friends, subscribe to the channel if you haven’t already.

 
 

arduino voice recognition Video

 

 

 

 

 

 

arduino voice recognition news

 

 

 

 

 

 

 

arduino voice recognition Social

 

 

 

 

official.arduino
2019-09-13T20:23:14+0000

See the world through the eyes of this camera-equipped, snake-like robot.
safe image.php?d=AQB2kdm3zOD71KQX&w=720&h=720&url=https%3A%2F%2Fblog.arduino.cc%2Fwp content%2Fuploads%2F2019%2F09%2FUntitled 2 3 - arduino voice recognition
official.arduino
2019-09-13T16:58:23+0000

This 3D-printed prosthesis uses computer vision to adjust its grip depending on the object.
safe image.php?d=AQD dQbotzfS6mLl&w=720&h=720&url=fbstaging%3A%2F%2Fgraph.facebook - arduino voice recognition
lI1VUK  normal - arduino voice recognition
YouMakeRobots
Sat May 26 09:11:15 +0000 2018


RT @Proto_Pic: #1Sheeld turns your smartphone into 40 different #Arduino #Shields. Use voice recognition,GPS, touchpad,camera & more.Compat…

icjpafxu normal - arduino voice recognition
Proto_Pic
Thu Jan 14 08:13:44 +0000 2010


#1Sheeld turns your smartphone into 40 different #Arduino #Shields. Use voice recognition,GPS, touchpad,camera & more.Compatible with both iOS & Android smart phone & tablets.Simplifying the electronic prototyping process & a great way to get into Arduino! https://t.co/SMsXrj54kq https://t.co/9BGQ579yYQ

https://t.co/SMsXrj54kq

Proto_Pic photo



 photo

2016-04-15T14:35:45



 photo

2016-04-15T14:35:40



 photo

2016-04-15T14:35:36



 photo

 

 

(Visited 8 times, 1 visits today)

About The Author

You might be interested in

Comment (35)

  1. Nice work buddy, thanks for the vid on home automation with clear explanation, hope more videos on more nice concepts in future from you.

  2. yout module is excellent, but i had some doubt please make me clear, How can i use multiple amplets, for example:-1. switch on both light and fan,
    2. swithch off both light and fan,
    3.switch ON light and switch OFF fan
    4.switch OFF light and switch ON fan

    1. This project works on the internet and not just on a local area network. So as long as both your phone and nodemcu are connected to the internet, this project will work from anywhere.

      Both the phone and nodemcu can be on different network, they just must be connected to the internet. Using this method you can control your devices from anywhere in the world.

    1. yes, you can control the appliances from anywhere. The only requirement is that your phone and nodemcu must be connected to the internet.

  3. I am facing problem doing wiring of “LED will relay module”.
    If I attach both wire in
    1&2 it starts automatically/instantly
    In 1&3 or 2&3 nothing happens

    Please help

    1. The video recording froze while i was recording the screen. But I uploaded the same code i showed. The standalone code should work.

    2. I had the same issue, so I saved edited standalone code .restart the Arduino ide and open the saved code and then upload. It might work.

  4. Hi Codeometry,

    Amazing video. I need assistance, am using UNO and HC-05 instead of nodemcu. When I turn the relay it works with blynk app. But it does not work with IFTTT and Webhooks. I am using pin D2 on arduino. After i give command, the pin D2 is still low.

    This is the URL I am using.

    http://188.166.206.43/myauthcode/update/D2 – I am not sure what is going wrong; Please help.

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *