Arduino Voice Control

73,932

90

65

Introduction: Arduino Voice Control


Step 1: Part list

Step 2: The Access port

Step 3: Arduino

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Part List

Hardware:

- Voice recognition module V2 (Ebay ~22$)

- USB to TTL module (~2$)

- Arduino nano (~6$)

- Breadboard

- 3 Led

- some wire

Software:

- Serial tool (Im using Accessport, link in video description)

Step 2: Teach the Voice Module

This module can learn 3x5 voice command. (3 group, each group with 5, max 1300ms long command)

To teach, we need a serial tool: Accessport.

- Start the program, plug in the module with the USB to TTL board.

- From the Monitor/Ports menu, select the voice module. If not see, click refresh.

- In settings menu use this settings:

Baud rate: 9600

Parity bit: NONE

Data bit: 8

Stop bit: 1

Send format: HEX

Receive format: Char

Other settings as default.

- The first time, we need to choose "common" or "compact" mode.

Im using "common mode".

- For this, send "0x36" to the board.:

Just type after the "00000000" AA36, and click "Send".

If its ok, above you can see "common mode" text.

The modul now ready to learn.

- To teach the commands, send "0x11" to the module. (this mean, we record to the first group).

Type after the "00000000" AA11, and click "Send".

- After appear the "START" word above, tell the first command, repeat if ask.

"Finish one" mean, you done with the command, immediately afterwards ask the 4 other command in same way.

"Group 1 finished" mean you are done, close the app, unplug the module,

Step 3: The Arduino Code

- After disconnected the voice module, connect the arduino, and upload this code.

Or download from my google docs. (Link in the video description)

- Leds connected to the pin 9,10,11. (use resistor)

- After code uploaded, unplug the arduino, connect the voice modul:

VCC to 5V

GND to GND

Rx to Tx

Tx to Rx

- Power on the arduino, wait 3-5 sec until ready.

- Talk to your arduino :)

Code:

int redPin = 9;
int greenPin = 10;

int bluePin = 11; byte

com = 0; //reply from voice recognition

void setup() { Serial.begin(9600);

pinMode(redPin, OUTPUT);

pinMode(greenPin, OUTPUT);

pinMode(bluePin, OUTPUT);

delay(2000);

Serial.write(0xAA);

Serial.write(0x37);

delay(1000);

Serial.write(0xAA);

Serial.write(0x21);

}

void loop()

{

while(Serial.available())

{

com = Serial.read();

switch(com)

{

case 0x11:

digitalWrite(redPin, HIGH);

break;

case 0x12:

digitalWrite(greenPin, HIGH);

break;

case 0x13:

digitalWrite(bluePin, HIGH);

break;

case 0x14:

digitalWrite(redPin, HIGH);

digitalWrite(greenPin, HIGH);

digitalWrite(bluePin, HIGH);

break;

case 0x15:

digitalWrite(redPin, LOW);

digitalWrite(greenPin, LOW);

digitalWrite(bluePin, LOW);

break;

}

}

}


2 People Made This Project!

Recommendations

  • Tiny Speed Challenge

    Tiny Speed Challenge
  • Clocks Contest

    Clocks Contest
  • PCB Design Challenge

    PCB Design Challenge

65 Discussions

0
Hansta98
Hansta98

4 years ago on Introduction

I realy like your project. I also trying to make it. I bought the voice recognition module and installed the serial tool "access port 1.37". I conected the module with the pc to program it, but if I send AA 36 it got not the respond, that I choose the common mode. Then I send AA 11 to import the instructions of group one, but it comes not START, AGAIN, START....how in your video. I set all settings as same as you did it, but I got no respond. Now I tried a long time but now patience
is at the end. Did I make an error while programming or what I can do??

Do you know how I can reset the module.

0
tusharharel2
tusharharel2

Reply 10 months ago

Same problem with me

0
tusharharel2
tusharharel2

Question 10 months ago

We are not able to get Common mode when we send command AA 36. Whether our components are correct or not .

15571369934712585628572119815596.jpg15571370392447747614559775954411.jpg
0
tusharharel2
tusharharel2

Question 10 months ago on Step 2

We are able to get Common Mode ..when we send command to AA 36

0
avrguy
avrguy

1 year ago

you should turn up the volume on your video

0
AdrianP150
AdrianP150

Question 2 years ago on Introduction

Hi, after you teach the board the commands, does the arduino need to stay connected to the PC, or just powered?

0
SelvaP7
SelvaP7

3 years ago

In the program,how the switch case option is fixed as 11,12,etc?

0
AmmadY1
AmmadY1

3 years ago

Can I upload 1 command by 4 speakers, so that 4 different speakers can give single command to arduino (like 'ON')?

0
awsomearies
awsomearies

3 years ago

how about arduino uno

0
CassiusMax
CassiusMax

3 years ago

Could this be used to spin a motor a set number of rotations? So, say "Spin" and it could be programmed to spin a motor a number of times?

0
planetleak
planetleak

Reply 3 years ago

Yes, but need stepper motor for precision stop.

0
DhonnaNice
DhonnaNice

3 years ago

where is the fritzing?

0
SeemakurthyH
SeemakurthyH

4 years ago

I am trying to train my vr3 module by using the library in GITHUB. When I used a sample code vr_sample_train, I am getting an error as time out. how can i solve this?

0
srsanthosh
srsanthosh

Reply 3 years ago

Me too having the same problem

0
faisalwarsi
faisalwarsi

3 years ago

could we use v3 for arduino mega??????

0
xrobotx
xrobotx

3 years ago

One think I do not understand: how can you manage each voice command to select a different pin out ( e.g: pin 0) and pin level (e.g: high voltage level / binary `1`) on arduino and/or on the voice recognition module? For example the red, green and blue LEDs are connected to different pins and different voice commands control different pins and thus different LEDs. Sorry, I am so confused. Could you show me a step-by-step instruction. Thank you very much!

0
JeanPaulBadjo

Hello, When I plug in the

Voice recognition module and USB to TTL module

and try to access it through the accessport or coolterm, it doesnt detect anything. I've tried this on another computer and the same thing happened. Is there a driver I have to install?

0
surya.mani.75
surya.mani.75

Reply 4 years ago

Have you been able to find solution for that, I couldn't get mine working. :((( Red light is blinking continuously and no response to access port.

0
bob_the_builder32
bob_the_builder32

4 years ago

Programmed my voice module and uploaded the code to the Arduino but when I turn the Arduino on the voice module just blinks the red light and it won't go off any ideas how to fix that?

0
marciokoko
marciokoko

4 years ago

I got the module to recognize my voice. It was the microphone. But now I connect the module again to record new commands and I get @A@B and nothing else as response from the module in the serial app