Stepper Motor Example
garnold
Posts: 12
I'm using a darlington array to control a small stepper motor. I'm having some issues with the wiring. I can replace the stepper with and LED and see that my wiring is correct. What I mean by that is with the chip connected to the stamp I can make pin 11 high and it will turn on the LED on the other side. What I'm not sure how to do is get the power to the stepper because it will not run off the small amount of power from the stamp. I'm very new to this so I'm sure I'm not explaining this correctly so please be forgiving with me
Comments
https://plus.google.com/100296667279795719501/posts?tab=mX
https://plus.google.com/100296667279795719501/posts/JG19GAsZF2F
Not really sure what I did here but it works. I'll send a video up soon.
Here is the code that I use to make the motor move left and right.
' {$STAMP BS2}
' {$PBASIC 2.5}
counter VAR Byte
counter = 1
FOR counter = 1 TO 50
HIGH 9
LOW 8
PAUSE 50
LOW 9
HIGH 8
PAUSE 50
NEXT
LOW 8
counter = 1
FOR counter = 1 TO 50
HIGH 11
LOW 10
PAUSE 50
LOW 11
HIGH 10
PAUSE 50
NEXT
END