In this tutorial you will learn how to use a voice recognition - serial - module with the Arduino uno board. This module can store up to 15 voice commands. Those are divided into 3 groups, with 5 commands in each group.
First we should train the module with voice instructions group by group. After that, we should import one group before it could recognize the 5 voice instructions within that group.If we need to implement instructions in other groups, we should import the group first. Only one group can be active per time.
In this tutorial we will use an RGB LED and we will try to change the color of it with voice commands.
So, let's get started!
The first think that we have to do is to record voice instructions/commands. Each voice instruction has the maximum length of 1300ms (1.3sec), which ensures that most words can be recorded. Once you start recording, you can’t stop the recording process until you finish all the 5 voice instructions/commands of one group. Also, once you start recording, the previous content of that group will be erased.
Download and extract AccessPort from here. This tool will allow us to send HEX commands to the voice recognition module.
Connection between Arduino* and module for recording procedure:
*You must remove ATmega328p from board or program it with blink example. If you want you can also use one usb to serial board to complete this procedure.
Available commands:
Let's get started with our voice commands!
We will record the group 1 with 5 commands: White, Red, Blue, Green and OFF.
Open AccessPort app and begin the serial communication at 9600 bps. (second image above).
Now click on hex and type AA 11 and click the send button.
This will start the recording procedure for the first group.
In this step, time is the key... You will be asked to record each command (white, red etc) three times.
If you having troubles with this, try to read this manual. When recording is completed type and send AA 21 to test you voice commands.
Disconnect the voice recognition module from the Arduino uno board and proceed to next step.
Here's the code, embedded using Codebender!
Try downloading the Codebender plugin and clicking on the "Run on Arduino" button to program your Arduino board with this sketch. And that's it, you've programmed your Arduino uno board with this sketch!