Servos and PULSOUT in the BS2p
mweigand
Posts: 3
I have been trying to run a simple servo lesson I found on the Parallax website on my Basic Stamp2p40, however the servo has been acting completely unpredictably.
I checked the documentation under the command PULSOUT and found that contrary to what I believed the time length for PULSOUT for a BS2P is something like 1.14 u-seconds instead of 2 u-seconds, as it is for the BS2...
Any suggestions on how the get the servo to work with the weird timing on the BS2P??
I tried working the math but none of my solutions seem to work at the moment... Help Please!
I checked the documentation under the command PULSOUT and found that contrary to what I believed the time length for PULSOUT for a BS2P is something like 1.14 u-seconds instead of 2 u-seconds, as it is for the BS2...
Any suggestions on how the get the servo to work with the weird timing on the BS2P??
I tried working the math but none of my solutions seem to work at the moment... Help Please!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
With the bellow code the servo moves very slowly clockwise, then the pause, then moves very fast counter clockwise for several full rotations, then the second pause, and then behaves the same way again - moving very fast counter clockwise for several full rotations.
Any more values to suggest?
PS im using a Hitec HS-55 sub micro servo from one of my RC model airplanes. I checked some documentation online and I have every reason to believe that they should work identically to the Fatuba servos you guys sell so I dont think its the servo its self...
Heres the code im using:
{
' {$STAMP BS2p}
' {$PBASIC 2.5}
counter VAR Word
FOR counter = 1 TO 50
PULSOUT 14, 2500
PAUSE 20
NEXT
PAUSE 1000
FOR counter = 1 TO 50
PULSOUT 14, 1250
PAUSE 20
NEXT
PAUSE 1000
FOR counter = 1 TO 50
PULSOUT 14, 1875
PAUSE 20
NEXT
END
}
HTH
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
Post Edited (Tom Walker) : 12/28/2005 8:24:50 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Servo was just bad, the new values work like a charm. (thumbs up on that one!)
Thanks so much guys!
Have a wonderful New Year!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com