Shop OBEX P1 Docs P2 Docs Learn Events
stepper progam problem — Parallax Forums

stepper progam problem

ArchiverArchiver Posts: 46,084
edited 2004-07-01 16:17 in General Discussion
Can anyone tell me please, what's up with this program?
The motor merely twitches, although occasionally makes a few steps
before doing so! Motor driven via ULN 2803A

'{$STAMP BS2}
'unipolar via the ULN 2803A
T CON 200
index VAR Byte
sequence VAR Byte
DIRD = 1111 'high 4 bits are outputs

main:
FOR index = 0 TO 3
LOOKUP index,[noparse][[/noparse]0001,0010,0100,1000], sequence
OUTD = sequence
PAUSE T
NEXT
GOTO main:

Comments

Sign In or Register to comment.