Shop OBEX P1 Docs P2 Docs Learn Events
bs1 & servos — Parallax Forums

bs1 & servos

N-2-STUFFN-2-STUFF Posts: 25
edited 2005-08-11 20:04 in BASIC Stamp
does anyone know the code for a bs1 to run a continuous rotation servo ?
thanks scott

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-11 01:38
    It works the same as with a BS2, the difference is that the BS1 uses 10 uS units (2 on the BS2) -- for example:

    · PULSOUT 0, 150······· ' stop
    · PULSOUT 0, 100······· ' full speed
    · PULSOUT 0, 200······· ' full speed -- other direction

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • nirajhanirajha Posts: 6
    edited 2005-08-11 06:30
    are you sure Jon if its 150, 100 and 200 and not 150, 140 and 160.
    Do let me know if I am wrong.
    regards,
    Niraj

    njkumar@wsgc.com
    YM: nirajha
    AIM: nirajkjha
    415 402 5159 (day)
    415 956 0734 (eve)
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-11 10:29
    Those are the values for the "standard" values of 1.0, 1.5, and 2.0 milliseconds. What's important to understand is that for the BS1, the PULSOUT parameter is:

    pulse_width (in microseconds) / 10.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • N-2-STUFFN-2-STUFF Posts: 25
    edited 2005-08-11 20:04
    thanks for the reply jon

    i still trying to cut&paste a program together for a mini boe-bot using bs1 dx and bumper switches.

    also i got a servo program running on the bs1 it will run a parallax c/r servo but not

    my moded GWS pico servo but the GWS works fine in boe-bot?



    any more help would be great!

    thanks again to all

    scott


    Post Edited (N-2-STUFF) : 8/11/2005 10:56:05 PM GMT
Sign In or Register to comment.