Asked — Edited
Resolved Resolved by DJ Sures!

Scripts: Proper Syntax Editing?

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!


ARC Pro

Upgrade to ARC Pro

Subscribe to ARC Pro, and your robot will become a canvas for your imagination, limited only by your creativity.

#1  

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

PRO
Synthiam
#2  
  1. load ARC

  2. press PROJECT -> ADD CONTROL -> servo -> CONTINOUS servo MOVEMENT PANEL

  3. press CONFIG button on CONTINUOUS servo MOVEMENT PANEL

  4. select the D0 for one servo, and D1 for the other servo

  5. press SAVE to save the configuration for CONTINUOUS servo MOVEMENT PANEL

  6. press PROJECT -> ADD CONTROL -> AUDIO -> SPEECH RECOGNITION

  7. speak the following phrases

  • robot move forward
  • robot stop

You can view what speech commands are available by pressing the CONFIG button on the SPEECH RECOGNITION control

#3  

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.

PRO
Synthiam
#4  

That's awesome! Way to go. Be sure to share videos as well!