, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here
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!
I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.
Also, consider reviewing the Learn section for informative lessons and activities.
Check it out!
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.
1) load EZ-Builder
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
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!