Shop OBEX P1 Docs P2 Docs Learn Events
PSC Pulse — Parallax Forums

PSC Pulse

Special_KSpecial_K Posts: 162
edited 2006-03-29 01:16 in BASIC Stamp
I just got a USB PSC, When I send a pulse code to the PSC it repeats the pulse in the code to the servos several times (the slight nudge to the left in the fastraoming with IR is now a 45 degree turn). Is there a way to only have the PSC send a specific number of pulses to the servo.

Comments

  • NewzedNewzed Posts: 2,503
    edited 2006-03-29 01:10
    Why not use a FOR/NEXT routine:

    For x = 1 to number of pulses you want
    PULSOUT..........
    NEXT

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Do you have a Stamp Tester yet?
    http://hometown.aol.com/newzed/index.html

    ·
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-03-29 01:16
    The PSC uses serial communication so PULSOUT won't work.· The PSC is designed to keep refreshing the servos for you.· In this case you won't really be able to stop the pulses, per se, but you can change the value going to that channel to alter the way it behaves.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.