Voice Activated Robotic Arm
In this project, we will use the ELECHOUSE Voice Recognition Module to record 7 voice commands and then we will use these voice commands to tell Braccio Robotic Arm to perform few tasks. Here we will not discuss about the Braccio Robotic Arm details. This information can be obtained from the “Braccio Robotic Arm” section of this website.
Part one - Voice Recognition
Elechouse Voice Recognition Module:
This VR module is a breakout PCB board that is designed to recognize pre-recorded voice commands. The user needs to train and upload voice commands to the VR module before it recognizes any command. According to the manufacturer, this voice recognition module is a speaker-dependent voice recognition module that supports up to 80 voice commands in all. However, only seven voice commands could work at the same time.
Training the VR module:
Now, start training the VR module by sending sigtrain command followed by indexNumber and signitureName. For example, send: sigtrain 0 Move to train record 0 with signature name “Move”. Then, the serial monitor prints “Speak now”, say a word, may be “move”. The serial monitor will print “speak again”, you will need to repeat the voice. If you obtain “success”, these two recordings are match and "record 0" is trained. If not, repeat the command until you succeed.
To train another voice, send sigtrain 1 Stop command to train record 1 with signature "Stop".
Note: "Move" and "Stop" are used for demonstration purpose, you can use any meaningful word you choose.
Continue training up to seven voices (index 0 to 6).
Once the training is done, export these records to the recognizer using the load command followed by the indices. For example, send load 0 1 2 3 4 5 6 to send all the seven records to the recognizer.
To see all the available commands, type help ant any time and the serial monitor will print all the commands with their syntaxes.
Now, connect the APC220 module to Arduino UNO as shown here.
Note: I added the RGB indication for troubleshooting purpose only. This will help us validating the recoded voice recognition when a voice is generated.
Next, upload the code below onto Arduino Uno and change all the voice signatures into whatever signatures you trained and recorded. Do not forget to modify the "savedVoices()" function at the end of the code.
Voice recognition code
[Voice recognition code]
Part two - Robotic Manipulator
This project uses the Braccio robotic arm to perform few tasks based on a received voice command. However, we will not discuss about the Braccio Robotic Arm. This information can be obtained from the “Braccio Robotic Arm” section of this website. Here, we will only utilize the 6-DOF (degree-of-freedom) advantage of the Braccio robotic arm and the voice recognition module.
Robotic Manipulator Code:
Robotic manipulator code
/* Braccio Voice Activated from Arduino Uno
»»» END of Voice Activated Robotic Arm »»»
Have a question or comments?
- click here to ping me