servo speeds
Archiver
Posts: 46,084
Hello,
I built a light tracking device, but am having a problem with the speed of
the servo motor used.
I want the servo to move slow enough to follow a flashlight beam back and
forth at various speeds, but the servo is just jolting back and forth very
fast. Any suggestions?
Thanks alot.
Mike
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
I built a light tracking device, but am having a problem with the speed of
the servo motor used.
I want the servo to move slow enough to follow a flashlight beam back and
forth at various speeds, but the servo is just jolting back and forth very
fast. Any suggestions?
Thanks alot.
Mike
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
Comments
I did something similar to this and to avoid the "jerking" I make loops
with the position value "walking" to the target value returned by the
light sensor.
Rather than directly changing the PWM parameter that controlled the
stepper to the new reading returned from the light sensor, I would
compare the sensor reading to the current position and, if different, I
would "walk" the value up or down from the existing value by entering a
decrement or increment loop until the old value matches the new value.
Also, you can set a bit of slop in there to keep the unit from seeking
when the servo is very close to the correct target postion. Worked pretty
well for me.. [noparse]:)[/noparse]
Vern
--
Vern Graner CNE/CNA/SSE | "If the network is down, then you're
Senior Systems Engineer | obviously incompetent so why are we
Texas Information Services | paying you? Of course, if the network
vern@t... www.txis.com | is up, then we obviously don't need
Cell 507-7851 Desk 328-8947 | you, so why are we paying you?" VLG
Mike Kohl said:
> Hello,
> I built a light tracking device, but am having a problem with the speed
> of
> the servo motor used.
> I want the servo to move slow enough to follow a flashlight beam back and
> forth at various speeds, but the servo is just jolting back and forth
> very
> fast. Any suggestions?
> Thanks alot.
> Mike
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>