Hi Dave,

As I think you explained a few days ago on the list, I started by initializing the timer with:

servo 0x0b init 1

then I tried sending a centering pulse to a servo on 1A with:

servo 0x0b set 1A 1500

This caused the servo to rotate past the centre all the way to the other side.  I had to remove the power at this point because the servo seemed to still be trying to turn further. 

Is there a difference between initializing timer 1 or 3?  Or something else I should be doing...



On 4/1/06, Dave Hylands <dhylands@gmail.com> wrote:
Hi Eric,

>  I'm trying out your very cool shell servo script.  I'm having a bit of
> trouble though, when I issue the timer set command, and then send the set
> command, the servo starts turning, but it doesn't stop...It also doesn't
> seem to respond to variations in the pulse-width parameters, ie it just
> keeps on turning regardless of what I put there.

So I'm sure of exactly which commands you're referring to (perhaps you
meant "servo set" rather than "timer set").

Did you do a "servo init" first?

If the pulse width is bigger than 2 ms or less than 1 ms then you
could get this.

>  Should I be using these commands in a different way? Do I have to pull the
> pins low or something after a certain amount of time to stop the signal?

The way the script is setup, once the pulse width is programmed, the
timer automatically generates the pulse about 32 times per second.
This causes the servo to try and maintain its position, even if you
try to move it to another position.

What are the exact commands that you're using?

Dave Hylands
Vancouver, BC, Canada

This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
gumstix-users mailing list