Thank you for visiting → Compete For Nothing.com ← If you find anything useful leave me a comment and share. Interested in Arduino, C#, Unity3D, Game Creation, VB.NET, learning and most important of all Sharing!.
Close Notification
Open Notification

Arduino Voice Recognition Module – Voice Commands

Arduino Voice Recognition Module – Voice Commands

Cheap Voice Commands for your Arduino

 

Using this voice activation module is really easy once you know how to program the module with your voice commands.
I can say that it was a major headache (for me anyway) to get this thing programmed with my voice commands, mainly because there is practically no info on how to use the module.

 

 

 

 

 

 

Firstly to program the voice module you need a USB-TTL Converter you can grab one off ebay for a few bucks a good seller gadgetinfinite which i have bought many things from.

Once you have your USB-TTL and your Voice Recognition Module then you are ready to program it with you commands. You need to download AccessPort Serial commander. Setup your settings same as below except the com port number you are connected to.

 

Now to start to program your commands.

 

In the terminal you will see this

START ‘say command now
Again  ‘repeat command now
START  ‘repeat command now
Finish one ‘omg one command is set

Remeber it goes straight into the next command no breaks. Continue until you see

Group1 finished !

Hooking up to Arduino is easy. Ground, VCC, RX to TX, TX to RX. Now we just need some Arduino code to test the module.

int ledPin = 13;
byte com = 0; //reply from voice recognition

void setup()
{
Serial.begin(9600);
pinMode(ledPin, OUTPUT); // sets the ledPin to be an output
delay(2000);
Serial.write(0xAA);
Serial.write(0x37);
delay(1000);
Serial.write(0xAA);
Serial.write(0x21);
}

void loop() // run over and over again
{

while(Serial.available())
{
com = Serial.read();
switch(com)
{
case 0x11:
digitalWrite(ledPin, HIGH);
break;

case 0x12:
digitalWrite(ledPin, LOW);
break;

case 0x13:

break;

case 0x14:

break;

case 0x15:

break;

}
}

}

Dogecoin
Donate Dogecoins: DGkJRWQCyBUeXbenYz18LRN9X67aora9nz Whats This?

50 Comments

  1. Juliana · November 4, 2012 Reply

    Hi! I’ve bought this module and i just can connect it to my notebook to record my commands on it.

    I’ve tried with a serial null modem cable that i’ve made and a usb-serial cable. But it doesn’t work at all! So reading your article, this usb shield is really needed? Or there is a way to make it work it those cables that i’m using?

    Thank you soo much for the attention!

    • warren · November 4, 2012 Reply

      Hi, you have to use a USB to TTL converter, they are only a few dollars on Ebay. It is the only way to program this module, and many other modules. Let me know how you go :)

  2. Tom · November 10, 2012 Reply

    Great, but found best details in here.

  3. visitor · January 10, 2013 Reply

    I am extremely inspired along with your writing skills and also with the layout on your blog. Is this a paid subject matter or did you modify it your self? Anyway stay up the excellent high quality writing, it is rare to look a nice weblog like this one these days..

  4. Carlos · March 19, 2013 Reply

    Hello I write the command AA11 and the TX 2 but the RX is 0 I don’t understand this can you help me please. thank you

    • warren · March 26, 2013 Reply

      Carlos I don’t understand what your problem is, are you having trouble programming it? remember while you program it you do NOT connect it the Arduino.

      • abc · March 29, 2013 Reply

        hey .. i have also used the access port software for the voice recognition module and it worked only for the first time when i uploaded the voice commands. Now when i try to send AA 11 in the instruction window and hit the SEND button , there is no reaction . What do i do ?
        I also used a similiar program using arduino and in the accessport i only get the Serial.write (0×11) and the similiar output in the output screen.

        • warren · April 4, 2013 Reply

          Sorry mate but i’m dont know why it would not work a second time, and i’m not sure what you should do. Any luck so far?

        • Gustavo · July 28, 2014 Reply

          Hey Im Brazilian and I was having this problem.

          You need to change de tx and rx connections. Put de TX on the RX connector and RX on TX.
          After this notice the RX indication in the Accesport.

          Bye

  5. jim · May 2, 2013 Reply

    hi, i bought this module. it was working fine the first time.. but when i tried to train it again i connected the ground pin of the USB to TTL module to VCC pin of the voice recognition module and VCC pin of the USB to TTL module to ground pin of the voice recognition module (v2) by mistake.. i tried to train it after connecting it properly, then i get only A, B, C, D @ commands instead of start, no voice, start again, ….commands..

    can someone please help me how to get the output displayed correctly. the manual is quite confusing and not so professional..

    any help is appreciated, ..thank you very much.

    • warren · June 12, 2013 Reply

      sorry I didnt notice your comment :/
      unfortunately I think you may have fried the input voltage regulator ( i think its a lm117) , you can find the regulator next to the pin outs GND RXD TXD VCC , you should be able to test it with a multitester and youtube

      • Michal · July 11, 2013 Reply

        you are in compact mode AA 37, in this mode module will send HEX, not strings, to switch to text mode send to module AA 36, then you will see text commands

  6. pulsa aqui · May 7, 2013 Reply

    We’re a group of volunteers and starting a brand new scheme in our community. Your web site provided us with useful info to work on. You’ve done a formidable activity and our whole community can be grateful to you.

  7. Renato · July 6, 2013 Reply

    Hi, can you post a image showing the connections between ttl usb and voice module? Thanks in advance.

    • warren · July 7, 2013 Reply

      Sorry Renato, I have all my stuff packed away at the moment (moving house) , I will see if i can find a picture and remember how it was hooked up.

  8. allan clark · July 14, 2013 Reply

    Hi I have just purchased one of these modules to voice control a tig and plasma welder. I would like to be able to access the other two libraries by voice, I am a novice at programming, and am wondering if it is possible to use a word like “next” to cause the arduino to send the proper serial command to toggle between libraries. I think this would be very handy. I plan to use this with a wireless mic setup, have you tried this yet? Thanks for the great rundown on this unit.

    • warren · July 14, 2013 Reply

      Hi Allan,
      You can use any voice command you like, as the Arduino does not know what word you have said it just compares the recorded sound to the incoming sound. You say you want to “Toggle between libraries” i am not sure what you mean because you can have multiple libraries referenced and call them at different times in the same sketch (script). As with the wireless microphone I am not sure how it can be done with the arduino, I have tried many times to get the Arduino to process the sound but it is too slow and very painful programming lol. Have you thought about starting out simple and making a wireless controller for your tig? it is very easy to send wireless data to another Arduino or PC and then after you set that up you can see how to adapt it. let me know if you need some help.
      Warren.

      • warren · July 14, 2013 Reply

        Allan after thinking about it a little longer I think the is a simple way of controlling it via voice.
        on person:
        Voice recorder -> arduino -> APC220

        on the mig:
        APC220 -> arduino -> servo -> control the mig

  9. Allan Clark · July 30, 2013 Reply

    Hi Warren, I was looking to my e-mail for a reply and only just tonight did I return to your great blog. I need it now as I have received the module. I was going to use a radio shack wireless mic to send the voice instructions to the module. I already have built a motorized potentiometer to control the welder. It has two relays to run the motor fwd and reverse. All I have to do is get relay closure on a few commands, ie: on off up down and stop which will be a reset for the up down and not a separate command,if you know what I mean. This is five commands. I was getting ahead of myself and thinking about how it would be possible to get pulsed tig operation with just a few more commands and another motorized potentiometer. I have several different welding heads all controlled by the motorized potentiometer and do not want to run a wire down each lead. I do not know if you have ever done any tig welding , but the electrode is very close to the surface being welded and moving the torch even to touch a capacitance type touch switch causes the torch to “wiggle” not so good especially on thin metal. So basically all I want from the module and arduino is to give me five outputs for the respective voice commands I can do hardware to use the stop command to reset both up and down but I may try to do this with software. I am a dunce with programming, but have over 20year experience with electronics.
    Again thanks for the quick reply,sorry to be so “long winded” with the discription I will be looking at your blog more often now that I have the hardware.
    Allan Clark

    • warren · July 30, 2013 Reply

      Hey Allan good timing I just got back from 5 days of fishing :)
      Have you managed to follow the post and get it to record you voice commands? The code above is for 5 voice commands, which I will help you with testing. if you want help leave a comment with your email address in the email field (which is hidden on post) and I will help you over that, very interesting project.

  10. Alan Clark · August 2, 2013 Reply

    Hi Warren I hope the fishing was good. I have gotten to the point of getting it to recognize the first group, the recognition rate seems pretty high. I cannot seem to get it out of the recognition mode after I record the first group I am getting all the prompts in recognition mode. Do I have to go through all three groups before it will go out of this mode? I am using a later version of this board,by the way,and it has five on board mode selectable digital outputs
    also two pins gcl and gch which can toggle between libraries . That is why I was thinking of using a voice command to set the state of a j-k flip flop and shift between two libraries using a voice command like “next” in each library to toggle back and forth,since i need to do everything by voice for obvious reasons. You would “waste” one command in each library but you would end up with a total of eight commands. You can get all the info on the new version on Ebay . The new one is red. Thanks for your interest.
    Allan

  11. RICK · November 26, 2013 Reply

    I write the command AA 11 as you told but there was no response from the module and the red led was continuously blinking what can I do?

    Please Help!!!!

  12. RICK · November 27, 2013 Reply

    Thanks for your reply warren

    I am using a usb to ttl converter and the module is not connected to arduino. I am having problem with the driver my pc is saying (unknown device please install the driver). Can you please post the link for a suitable driver or the one you used.

  13. RICK · November 28, 2013 Reply

    Thanks for your reply Warren.

  14. Adriano · December 1, 2013 Reply

    Hello, I have a module can make these programming perfectly but I can only use one group to communicate to arduino. I have to change anything in the sketch? the command “case” place for exemlo, “case 0×22″ to call the command of 2 Group 2 but not the right.

    Thank you.

  15. Adriano · December 1, 2013 Reply

    ok, I managed to import the group 2 perfectly, but how do I call it in arduino?

  16. Adriano · December 2, 2013 Reply

    ok, the manual was very helpful. but my doubt is not the magnitude but the Arduino programming. I can record and impotar the three groups usually, however, with programming that I’m just getting use to the group 1 control the arduino. What should the sketch to recognize the groups 2 and 3?

  17. Adriano · December 3, 2013 Reply

    ok thanks, I’ll try to try with this information and then notice if it worked.

  18. RICK · December 11, 2013 Reply

    Hey Warren now I have another problem I have successfully recorded all the 15 voices in all the 3 groups now I want to record again the voices. I send the serial command AA04 to delete voices of all the groups and the leds responded to my serial command and then I send AA11 to record the voices of first group and leds again responded and everything was working well on the board but in the serial monitor (access port) it was printing (@A@D) but it has to print (START,AGAIN,START,FINISH ONE). What can I do?

  19. hope · December 18, 2013 Reply

    hi. how can i use group 1 and group 2 at the same time?? can i do it? cause i had to use 10 commands for my project. thank you.

  20. nhugAS · December 19, 2013 Reply

    instead of using usb-ttl, i am using usb-uart. can anybody help me how to connect the two module? it is not working when i connect it the same way for the usb-ttl (vcc-5v,txd-txd,rxd-rxd,gnd-gnd).

  21. Syed · January 17, 2014 Reply

    Hi There i have the same problem as Rick mentioned. At the beginning when i setup voice command it went fine and i tested on “Access Terminal” and board was responding to my voice command and was working fine even with arduino interface too. but then suddenly stop working and then when checked in “Access Terminal” its giving me those strange (@A@B) number instead. I bought three they all doing same what i have noticed when ever these module works on lower voltage like less then three volts it stuff up the voice module cause i was using battery to power up my project when i measured the voltage when it happens twice with my voice modules the voltage was less then 3 v if any one know whats the solution? please advice.

  22. Tian · January 26, 2014 Reply

    sir can you pls give me your connection to your serial ttl and voice recognition module? because when i tried to connect it, accessport didn’t respond, i type AA11 in hex format but nothing happen, pls help me sir

  23. Aya · February 28, 2014 Reply

    Hi sir, thank you for the very nice post of yours. I would like to ask what case number if I am going to use and import group 2, like importing group 1 the case number is (case 0×11 – case 0×15). I was wondering how about with group 2? Thank you very much in advance sir.

    Nice one! Keep up the good job!

  24. devaraj · March 17, 2014 Reply

    hi
    first of all thanks for the information provided. It really helped . it is rare to find such useful blog now a days. I bought a voice recognition module and was struggling to program it as there wasn’t any useful details about it in the internet. I was really struggling when I stumbled onto this site. you made my day :) thanks a lot

    ps I found that it is best and easy to program it via an usb-ttl module.

  25. devaraj · March 19, 2014 Reply

    hi warren,
    I trained the first group and was testing it out using arduino and found that it was not responding to my commands. I opened access port to retrain it but now it just keeps showing @B@D repeatedly. it sent aa36 command to switch it to common mode but nothing happens. Is there anyway to solve this problem. what should I do ? thanks in advance for the help.

  26. roy · April 19, 2014 Reply

    hi warren,

    please helppp, I opened accessport, wrote AA 11, clicked SEND button, but nothing happen.
    the module is not connected to arduino, just to usb-ttl.
    there is a red led that always blinking, maybe this is the problem?

    what can I do to solve the problem??

    thanks you .

  27. Jihan · April 24, 2014 Reply

    Hello, I could not find usb-ttl in my country, can I connect the module to pc using arduino?

    • warren · May 3, 2014 Reply

      you cannot connect to a PC without a usb-ttl, they only cost about $3 with free postage from china on Ebay

  28. Aditi Shah · August 14, 2014 Reply

    Hi Warren, could you please help me out?
    I’m from India, an undergraduate. I’m using this Voice Recognition module V2 and I can’t seem to train it on AccessPort. Every time I enter AA36 I do not seem to get any response back.
    I haven’t connected the arduino to the V2. Only USB to TTL and V2. I’d be obliged by your help.
    Thank you.

  29. Aditi Shah · August 14, 2014 Reply

    Hi Warren, I solved the previous problem by logging in my windows as admin, now the problem comes up when in the command window I get “START” but it doesn’t proceed forward!

  30. Aditi Shah · August 14, 2014 Reply

    as in I record the voice but it doesn’t respond to it!

Leave a reply