PRO
RoboHappy
USA
Asked
— Edited
Resolved by DJ Sures!
I need a little help here. I'm trying to understand how to write and edit scripts. Have been looking into the tutorials but cant find the right answer, and I'm sure its a simple one. To start... I simply want to make my two continues servos w/ wheels move forward/reverse/and turn via voice commands. I found a little script test program that does react to verbal commands (ie: "robot move forward"...). What I am trying to figure out is how to tie in the two wheel servos,which for example would be plugged into D0 and D1 and getting them to move based on that verbal command. I'm trying to figure out how to edit/write the proper script syntax. I am looking for a few examples here on how its done, thanks!
RoboHappy, Try the EZ Boxbot file in the cloud. It uses D12 and D13 for drive servos. It also has basic VR moves. You can learn from that and adjust to your needs. Steve S
load ARC
press PROJECT -> ADD CONTROL -> servo -> CONTINOUS servo MOVEMENT PANEL
press CONFIG button on CONTINUOUS servo MOVEMENT PANEL
select the D0 for one servo, and D1 for the other servo
press SAVE to save the configuration for CONTINUOUS servo MOVEMENT PANEL
press PROJECT -> ADD CONTROL -> AUDIO -> SPEECH RECOGNITION
speak the following phrases
You can view what speech commands are available by pressing the CONFIG button on the SPEECH RECOGNITION control
Thank you Steve and DJ for the quick response. Awesome. I found a Boxbot file to try outand yes I actually got the servos to move on command, so very cool! thanks again. Just for a little fun, I also learned how to add the soundboard function to say a Cylon "By Your Command" wav file when you init the program. Next I want to learn how to get arm servos to move on command as well. Then to test adding the ping sensor.
That's awesome! Way to go. Be sure to share videos as well!