Shop OBEX P1 Docs P2 Docs Learn Events
stepper motor, monitor BS HomeWork — Parallax Forums

stepper motor, monitor BS HomeWork

cyberprolcyberprol Posts: 1
edited 2013-10-18 10:23 in BASIC Stamp
Hello friends


I am writing to request help.
I have a stepper motor 5 cable , which I monitor with a " uln stepper motor control," as in the picture .


http://www.ebay.com/itm/ULN2003-Stepper-Motor-Control-Board-with-5V-Stepper-Motor-/121187191411


The motor does not operate to execute the sequence in Basic Stamp HomeWork Board . With the following code


' P7 : In1 Control
' P5 : In2 Control
' P3 : In3 Control
'P1 : Control In4
B2 = 10
FOR W2 = 1 TO 512


HIGH 7 ' The first group of sequences activated P7 and P5 .
HIGH 5
LOW 3
LOW 1


PAUSE B2 ' The pause is used to change between each sequence.
' The break finally controls the time it takes a full turn .
LOW 7 ' The second group of sequences activated P5 and P3 .
HIGH 5
HIGH 3
LOW 1


PAUSE B2


LOW 7 ' The third group of sequences activate P3 and P1.
LOW 5
HIGH 3
HIGH 1


PAUSE B2


HIGH 7 ' The fourth group of sequences P1 and P7 activated .
LOW 5
LOW 3
HIGH 1


PAUSE B2


NEXT


LOW 7 ' level are placed under the four motor windings to ensure
LOW 5 ' extinguish because in the last group are running sequence
LOW 3 ' activated P7 and P1.
LOW 1


Any reference or suggestion thank you.


Greetings from Chile
Sign In or Register to comment.