English
Español
PCBWAY PCB service

PCBWAY PCB service

PCBONLINE PCB service






Voice controlled 3D printed robot arm


STL files

Ok so now let’s look to the Arduino code. My idea is to create a voice controlled moving robot arm using 5 servo motors. It’s a very simple example. The STL files for the 3D printed parts are in the description ready to download. I’ve printed them using my TronXY x5 3d printer with 2 perimeters, 15% infill and a 0.3 nozzle. The robot arm is very easy to build, using 5 9g servo motors and some sort of a base.


geeetech voice recognition module commands

Download the STL files:



geeetech voice recognition module commands



Arduino code

So, in the Arduino code in the setup loop I first send the the AA and 00 to put it into waiting mode. Next I send AA and 37 to make sure that it will be in compact mode. Finally, I import the first group by sending the AA 21 command. You should always put the module into waiting mode before sending any command in order to avoid errors. Now in the void loop I will receive two bytes each time I say one of the voice commands. I will be using servos so depending on the received data I will increase or decrease the position angle of the servo and by that moving the arm. I connect the servos to pin 3, 5, 6, 9 and 11 because those are the PWM pins of the Arduino UNO. Remember to add back the ATmega chip and now connect the voice module in the normal way, Rx to Tx and Tx to Rx. Make the connections following this schematic and upload the code.

Download the Arduino code here:



geeetech voice recognition module commands

See the full schematic here:




Now let’s give it a test. The hello should turn it on and light the LED. Goodbye should do just the opposite.


Una publicación compartida de ELECTRONOOBS® (@electronoobs) el



Success, the robot arms is controlled with my voice. Make sure to read the entire user manual and all the commands and play with this module around. Don’t use the serial.print function because that will send just asci format. Use the serial.write to send instructions. Always add a small delay between sent commands like for example 100 milliseconds. Let’s see this other small example controlling some leds. I’ve recorded the voice commands from one to five and this is the result.


Una publicación compartida de ELECTRONOOBS® (@electronoobs) el



Download the LEDs example code here:


So you could control any other thing instead of leds just like this. Makye create 5 digit password to open the door. Or say something and turn on the room light. The choice is yours. That’s it. Now you could build your voice controlled robot or control lights in your room or maybe even open the door using just your voice. Make sure to use commands that are not alike, otherwise you will have the same result for different commands. Always check the links in the description for more information. Read the comments in the code to understand more. Also check the coupon link if you want to buy this module. I hope that you’ve enjoyed this tutorial. If so don’t forget to click the like button like crazy and share the video with your friends. If you have any question just leave it in the comment section below or on my Q&A page. Also, don’t forget to subscribe and watch all of my other great tutorials. If you consider helping my projects, check my new peatron page and help my workshop grow and have more other cool tutorials. Thanks again and see you later guys.