
droidmech2002
My Current project is a custom made robot for the Children's Museum that has two arms that move, with wrists that turn and two Eyes that open and close.
How do I go about using the speech Recognition commands to operate multipule servos at the same time. For example: I want to say "Robot Blink" and have the two servos that control the iris's to both open and close at the same time. They are connected to D13 and D14 on the EZ-B board.
I also what to be able to do the same with both arms, so it can raise it arms straight up to the side of the robots head when I say the command "Robot arms up"
How do I go about doing this as the scripting commands only allow you do use one servo at a time.
Dan S.
Code:
To the right of the command line in speech recognition is a small icon of a pencil, click it to open a bigger scripting dialogue.
Dan S.
Dan S.
Dan S.
Still need to work on getting the Sparkfun MP3 Trigger to work with voice commands yet, but that should be easy to do.
Dan S.
So I need to look into seeing how I can use two H-Bridges, so I can use the second one for the wrist movements.
Dan S.
Some use digital on/offs on the ports to send it forwards or reverse at full speed with a 5th wire for PWM control. If it's one of those then
Code:
would do it... provided it's on D14 of course. That would basically activate one of the motor forwards, or reverse.
Another way I've seen on some is just PWM on the port
Code:
would send it full speed.
Hopefully that makes enough sense. On the cloud (if you click on user details under my name on the left) is a Dagu example which uses PWM and On/Offs for speed and direction, in it is a custom Movement Panel with scripts in for the directions etc. which may expand on the above a bit better.