Shop OBEX P1 Docs P2 Docs Learn Events
Servo Help — Parallax Forums

Servo Help

aeadingaeading Posts: 3
edited 2008-11-25 08:32 in BASIC Stamp
Hi All
·
New to PBASIC im using a Pro Dev board with continuous rotation servo connected (Shipped with the kit)
using the following code I would expect to see the servo rotate for 3 seconds but the servo will only run
for a second or so. I have linked led to the pulse so I can see, it stays lit but the servo stops rotating.
·
please excuse me if I’ve missed something silly as im new to PBASIC.
·
Thanks
·
' {$STAMP BS2}
' {$PBASIC 2.5}
·
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>·
DEBUG "Test"
·
counter VAR Byte
·
DO
·
FOR counter = 1 TO 122
·
PULSOUT 15,800
·
PAUSE 20
·
NEXT
·
FOR counter = 1 TO 122
·
PULSOUT 15,100
·
PAUSE 20
·
NEXT
·
LOOP
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>·

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-11-24 17:38
    Does it rotate in both directions and have you 'centered' the servo? If 750 is 'stop' try 600 and 900 as your numbers.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • aeadingaeading Posts: 3
    edited 2008-11-25 08:32
    Opps silly me I wasn’t using a full rotation servo! I have found a mod for the servo
    Applied and it all works fine.

    Thanks Stephen.
Sign In or Register to comment.