Shop OBEX P1 Docs P2 Docs Learn Events
pulse — Parallax Forums

pulse

galeglorygaleglory Posts: 25
edited 2009-11-06 02:41 in Learn with BlocklyProp
what comanned·can give a pulse to turn a stepper motor

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2009-10-29 16:07
    Stepper motors require a different interface than a simple "pulse"
  • chrstnsln22chrstnsln22 Posts: 1
    edited 2009-10-30 13:34
    Hi.. I am a newbie and still learning some few tricks in here and just browsing on the forum also to share what I know and to learn. I just have a question regarding this topic, you said that stepper motors require a different interface. Can you tell me what could be those interfaces? Example please?



    Christine

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    hemorrhoids home treatment
  • williewillie Posts: 3
    edited 2009-11-06 02:41
    I used a bit command to run mine. Here is a sample. The pause controls transition of poles and how smooth the motor will run.longer pauses will make it vibrate alot. the loop controls the time the motor runs or distance traveled before a new command.
    a VAR Word
    c VAR Word
    DIRL = 255
    mainone:
    a=0
    c=0
    main:
    a= a+1
    DEBUG "a", a
    OUTL = 101
    PAUSE 10
    OUTL = 169
    PAUSE 10
    OUTL = 154
    PAUSE 10
    OUTL = 86
    PAUSE 10
    DEBUG " a ",DEC a, CR, "ccwise towires"
    IF a = 40 THEN right
    GOTO main
Sign In or Register to comment.