This here is a voice recognition module.
I’ve used such a module before a few years ago but this is a new version and is seems to be better.
In this video I will tell you the difference of this new module, its specifications,
how to use it and show you a few examples of what you could do with it. So let’s get started.
What’s up my friends, welcome back. This here is the new model of a voice recognition module,
version 3.1. In the past I’ve used a different voice recognition module and I’ve made a video
about that as well. So why is this new one better? Well, there is a main difference so let me explain
it to you. First of all, the old one was only capable of recording 15 voice commands but the
new one can record up to 255. But that’s not the main problem. You see, with the old module,
those 15 commands were saved in 3 different groups. So each group would have 5 commands.
The recognition module has a part inside that is in charge of the voice recognition
so you have to first import a group from those 3. Let’s say that you import group 1.
So now each time the module will detect one of these voice commands, it will send that
information through the UART serial port. But what if you want to use commands from different groups,
for example this one, this one and these 3 from the second group? Well, you can’t use them at
the same time because with the old module you must import the entire group at once.
But with this new version of a voice recognition module from ELEHOUSE, version 3.1, you can import
any 7 voice commands at the same time. You can still import only 7, but these could be any 7
commands from the total of 255. That’s the main difference between these two modules.
By the way, you can always import any other 7 commands if you want.
Let’s say that you import these 7 commands. Then, when you detect one of the sounds,
you import other 7 and wait for different commands and so on.
Each command must be below 1500 ms or 1,5 seconds. As you can see the module has i2c communication
and a UART port but for todays examples we will only use the UART port because I
don’t know for what we can use te i2c port. On this jack we can connect the microphone.
You can use any other microphone but I recommend you to use the one that comes with the module.
I solder 4 wires to the UART pins and power. Wires for ground, VCC,
Rx and Tx I connect these pins to the Arduino to 5V and digital pins 4 and 5 for example.
Go below and download this Arduino Library and install it to your Arduino IDE.
Go to sketch, include ZIP library and select the downloaded zip file.
Then download the example code also from below and open it with Arduino. Connect the
Arduino to your PC and make sure you have these connections between the Arduino and the module.
Upload the code to the Ardunio.
Now open the serial monitor and you will get this menu for controlling the module.
You can see each command and what each would do. For example, if you write record on the monitor
and press enter you will get the status of all commands. As you can see, this is a new module
so pretty much all 254 commands are empty except a few ones that I was testing before.
SO let’s record our first command. If you want to get back the help menu, just type help and press
enter. Ok so for that we need to type on the monitor the word train, a space and then a
number representing the command position from 0 to 254. Now get ready because once you press
train you need to follow the instructions without making any pause. So I type train and 0 and the
moment I press enter I get the speak now message so you must say the command. COMMAND: Hey Noobix.
Now I get the speak again message and we need to say the exact same command once
again. COMMAND: Hey Noobix. Now that voice command should eb saved. If you don’t say
the command the module will continue to ask you to speak till it detects that you say a
command two times in the same way and then it will save it and you get the success message.
So just like that we have the first command saved, let’s test it.
To test it you must import that command to the recognition part.
For that we type load and the number of the commands which in this case is 0.
Now we test it by saying the command. As you can see, each time I say that word I get a message,
so it works. Let me save a few more commands, but faster so you can see the entire process.
Now I have these commands saved on position 0 to 16. What I want in the future is to create
my own smart robot, something like an electronic companion but for today I will simulate that with
LEDs. I would like this robot to react to a special command such as “hey noobix”. Then it
should be able to give me time, the temperature, maybe move its arms, turn on some LEDs and so on.
To simulate that I will connect a few LEDs to my Arduino, each one representing an action since for
now, I don’t have the robot yet. Since I need to control so may LEDs I will use an Arduino MEGA,
but the code is the same. Now I upload this code to the Arduino.
The voice module will send a 0 when it detects the first command , a 1 for the second command and
so on. All we have to do is to import the first command for hey noobix with this line in the code.
And then we import the other lines for the other commands. Then, if for example I say the turn on
or turn off command, I import these 3 commands here for the red, green and blue colors”
Another example would be the “give information” command,
and then I would import these other commands for information about time, temperature and so on.
The set timer will import these commands for 1 up to 5 minutes. Like that we can
play with more than just 7 commands. I upload the code and let’s test a few combinations.
So guys, that’s pretty much how you can use this module.
We have these other commands for removing all the recorded voices and so on. You could use this for
so many applications and if you record it well, it can be quite precise. You have the used library,
the example code and more information on my website Electronoobs.com and the links are
below. Consider giving me a like or comment below. Thanks again and see you alter guys.