Newbie: servos, programming Qs
Hello helpful Stamp-ers
I've enjoyed reading this list - great advice - and now I need some. I'm
just beginning to work with the Stamp and have the following questions:
1. I'm trying to control 5 objects in a sculpture with Futaba S3003 servo
motors. Things slowly going up and down etc. I have learned how to make the
motors start and stop and rotate slowly (impressive, eh?!) but am curious
about how to make the motors independently pause for a minute or so and then
continue on their programmed way. Does the pause command pause the whole
program or just the loop it is in? I'm continuing to experiment but could
use some advice.
2. How do I nest the five loops in an overall loop?
3. How long can the 'control' wire of a servo motor be and retain the pulse?
I would like to run maybe 15 feet from the Stamp to one of the motors.
Thanks for any help or references -
John
////////
'''''''' John Phillips / sound artist: http://terragizmo.net
I've enjoyed reading this list - great advice - and now I need some. I'm
just beginning to work with the Stamp and have the following questions:
1. I'm trying to control 5 objects in a sculpture with Futaba S3003 servo
motors. Things slowly going up and down etc. I have learned how to make the
motors start and stop and rotate slowly (impressive, eh?!) but am curious
about how to make the motors independently pause for a minute or so and then
continue on their programmed way. Does the pause command pause the whole
program or just the loop it is in? I'm continuing to experiment but could
use some advice.
2. How do I nest the five loops in an overall loop?
3. How long can the 'control' wire of a servo motor be and retain the pulse?
I would like to run maybe 15 feet from the Stamp to one of the motors.
Thanks for any help or references -
John
////////
'''''''' John Phillips / sound artist: http://terragizmo.net
Comments
>1. I'm trying to control 5 objects in a sculpture with Futaba S3003 servo
>motors. Things slowly going up and down etc. I have learned how to make the
>motors start and stop and rotate slowly (impressive, eh?!) but am curious
>about how to make the motors independently pause for a minute or so and then
>continue on their programmed way. Does the pause command pause the whole
>program or just the loop it is in? I'm continuing to experiment but could
>use some advice.
The pause command pauses the whole program. To keep the servo at the same
position, just keep sending the same width of pulses to it. ie. run the
pulsout command in a for>>next loop without changing the pulse width
value. By changing the number of times through the For>>Next loop you can
create whatever time delay you need.
>
>2. How do I nest the five loops in an overall loop?
Put a goto at the end of the fifth loop that points to a label: before the
first loop.
>
>3. How long can the 'control' wire of a servo motor be and retain the pulse?
>I would like to run maybe 15 feet from the Stamp to one of the motors.
I've run very long lines (over 60ft) with servo pulses by using shielded
computer cables. And this was in a *very* electrically noisy environment.
With good shielding I think 15ft is certainly reasonable. One question: Do
we get to see your creation?
HTH, Duncan
At the " Stanps in class web site" in their download section
there's a file named WAM3.pdf also a zip version that
deals with controlling those servo's. I use the Futaba servo's
in R/C aircraft and found the file interesting. It talks about the
wave form used to control the unit and now to move them
to the position of you choice. Anyway check it out.
P.S. theres a link to the site from Parallax's site.
Hope this helps
KC7ZMZ
Frank
Original Message
From: <orthner@s...>
To: <basicstamps@egroups.com>
Sent: Friday, August 04, 2000 4:18 PM
Subject: Re: [noparse][[/noparse]basicstamps] Newbie: servos, programming Qs
> At 04:34 PM 8/4/00 -0400, John Phillips wrote:
>
> >1. I'm trying to control 5 objects in a sculpture with Futaba S3003 servo
> >motors. Things slowly going up and down etc. I have learned how to make
the
> >motors start and stop and rotate slowly (impressive, eh?!) but am curious
> >about how to make the motors independently pause for a minute or so and
then
> >continue on their programmed way. Does the pause command pause the whole
> >program or just the loop it is in? I'm continuing to experiment but could
> >use some advice.
>
> The pause command pauses the whole program. To keep the servo at the same
> position, just keep sending the same width of pulses to it. ie. run the
> pulsout command in a for>>next loop without changing the pulse width
> value. By changing the number of times through the For>>Next loop you can
> create whatever time delay you need.
> >
> >2. How do I nest the five loops in an overall loop?
>
> Put a goto at the end of the fifth loop that points to a label: before the
> first loop.
> >
> >3. How long can the 'control' wire of a servo motor be and retain the
pulse?
> >I would like to run maybe 15 feet from the Stamp to one of the motors.
>
> I've run very long lines (over 60ft) with servo pulses by using shielded
> computer cables. And this was in a *very* electrically noisy environment.
> With good shielding I think 15ft is certainly reasonable. One question: Do
> we get to see your creation?
>
> HTH, Duncan
>
>
>
>
>
I replied to your question about controlling servos
but I got the names crossed with another reply.
and called you Duncan, Some day I get this list stuff
down.
Frank
Original Message
From: "John Phillips" <jpch@t...>
To: "Stamp list" <basicstamps@egroups.com>
Sent: Friday, August 04, 2000 1:34 PM
Subject: [noparse][[/noparse]basicstamps] Newbie: servos, programming Qs
> Hello helpful Stamp-ers
>
> I've enjoyed reading this list - great advice - and now I need some. I'm
> just beginning to work with the Stamp and have the following questions:
>
> 1. I'm trying to control 5 objects in a sculpture with Futaba S3003 servo
> motors. Things slowly going up and down etc. I have learned how to make
the
> motors start and stop and rotate slowly (impressive, eh?!) but am curious
> about how to make the motors independently pause for a minute or so and
then
> continue on their programmed way. Does the pause command pause the whole
> program or just the loop it is in? I'm continuing to experiment but could
> use some advice.
>
> 2. How do I nest the five loops in an overall loop?
>
> 3. How long can the 'control' wire of a servo motor be and retain the
pulse?
> I would like to run maybe 15 feet from the Stamp to one of the motors.
>
> Thanks for any help or references -
>
> John
>
> ////////
> '''''''' John Phillips / sound artist: http://terragizmo.net
>
>
>
>
>
>