Shop OBEX P1 Docs P2 Docs Learn Events
motor program help — Parallax Forums

motor program help

ArchiverArchiver Posts: 46,084
edited 2003-11-27 15:17 in General Discussion
I'm making a robot using a basic stamp rev. D and micro motor controller and
everything appears to be hooked up correctly but its not working and I think it
is because of the program.

this code is used to test the motors.

symbol speed = b1
low 0
high 0
for speed = 0 to 127
serout 6,N2400, ($80,0,0,speed)
pause 20
next
for speed = 127 to 0
serout 6,N2400, ($80,0,0,speed)
pause 20
next
for speed = 0 to 127
serout 6, N2400, ($80,0,1,speed)
pause 20
next
for speed = 127 to 0
serout 6, N2400, ($80,0,1,speed)
pause 20
next



Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-11-27 06:52
    --- In basicstamps@yahoogroups.com, Kyle Cooper <crazykurby@y...>
    wrote:
    > I'm making a robot using a basic stamp rev. D and micro motor
    controller and everything appears to be hooked up correctly but its
    not working and I think it is because of the program.
    >
    > this code is used to test the motors.
    >
    > symbol speed = b1
    > low 0
    > high 0
    > for speed = 0 to 127
    > serout 6,N2400, ($80,0,0,speed)
    > pause 20
    > next
    > for speed = 127 to 0

    in BS1 you must specify STEP -1 ( per editor doc)

    > serout 6,N2400, ($80,0,0,speed)
    > pause 20
    > next
    > for speed = 0 to 127
    > serout 6, N2400, ($80,0,1,speed)
    > pause 20
    > next
    > for speed = 127 to 0
    > serout 6, N2400, ($80,0,1,speed)
    > pause 20
    > next
    >
    >
    >
    >
    > Do you Yahoo!?
    > Protect your identity with Yahoo! Mail AddressGuard
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-27 15:17
    thanks alot for the help

    aa7ej <aa7ej@y...> wrote:--- In basicstamps@yahoogroups.com, Kyle Cooper
    wrote:
    > I'm making a robot using a basic stamp rev. D and micro motor
    controller and everything appears to be hooked up correctly but its
    not working and I think it is because of the program.
    >
    > this code is used to test the motors.
    >
    > symbol speed = b1
    > low 0
    > high 0
    > for speed = 0 to 127
    > serout 6,N2400, ($80,0,0,speed)
    > pause 20
    > next
    > for speed = 127 to 0

    in BS1 you must specify STEP -1 ( per editor doc)

    > serout 6,N2400, ($80,0,0,speed)
    > pause 20
    > next
    > for speed = 0 to 127
    > serout 6, N2400, ($80,0,1,speed)
    > pause 20
    > next
    > for speed = 127 to 0
    > serout 6, N2400, ($80,0,1,speed)
    > pause 20
    > next
    >
    >
    >
    >
    > Do you Yahoo!?
    > Protect your identity with Yahoo! Mail AddressGuard
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and Body of
    the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/




    Do you Yahoo!?
    Protect your identity with Yahoo! Mail AddressGuard

    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.