speed control

hi,’
I am beginner in robotic. i have two standard servo and a servo controller ssc 32. I want to control the velocity of each servo independently.
is it possible ? and how? please help me ,
thanks

velocity… as in the time it takes to go from a start to an end position?
look in the ssc-32 user manual for informtation on how to use timed move command (“T####”) on the command line.

What about if you’re not using the SSC32? What are the general approaches to making a servo move from one position to another in differing (short) amounts of time?

The only way I can think to do this is to divide the movements up into pieces, execute each piece at a time, and then pause between each piece.

yeah the “smoothness” will depend on how far away from generating the actual control pulses to the servo your code is. a servo gets 50 updates a second so that limits the maximum rate at which you can feed it updates. you could for instance trigger an interrupt off the falling edge of each control pulse and change the pulse length before the next pulse starts. doing this without ability to synchronize to the pulses or at a higher software level though requires more granularity and as you suggest waiting a worst case delay time for the servo to travel between each position.

this is a popular question around here lately…I feel like I’m repeating myself. :unamused:

why not have a for next loop controlling each individual pulse?
(don’t listen i’m probably wrong)
in Pbasic: ( ’ is comment)

[code]
'have not tested this
'a = start position
'b = end position
'c = speed
'counter = a counter

for counter = a to b step c
pulsout [pin], counter
pause 20 '(or whaterver the pause should be)
next[/code]

I guess the main disadvantage would be that you can only go so slow, and you can’t do anything else while this is running… but, what do you think?

Sorry Eddie, I didn’t see your earlier posts.

Not a problem really. More like just an observation… leaves me wondering if something else like an article in a magazine or news story or something triggered a bunch of folks into experimenting with this. wierd… 8)