I'm interested to experiment with Steppers - I have scrounged a few 5 wire unipolar (i think) steppers and figure I'd try and use my trusty STAMP to make them run :
I've never run steppers before bu thave been reading a bit. Key point I don't want to spend a fortune on some driver board, but to lash up something myself (which is always more satisfying)
I figured on using something like a ULN2003 to supply a suitable voltage based on control signals from my stamp. I figure I can then pulse out ABCD, ABCD etc or DCBA, DCBA to go the other way and then have the amplified voltage supplied to the correct lead. the faster I poll the STAMPS, the faster it runs - simple?? (too simple????)
Now here's where I need a bit (a lot) of help - is there some way to sense which of the wires I should pulse next, as I don't actually know what the resting position of my rotor is in .
OR can i just send my preferred sequence and the stepper will kick in when it gets in phase ? obviously I've not tried anything yet, but would really value some advice/ sample circuits etc. that might help me here
bipolar steppers are easy to figure out the wires, although I’ve never tried on a 5 wire unipolar. If there is a black wire, you can assume it’s ground (I would hope) and then each other wires corresponds to the different phases. The ULN2003 is perfect for this if I recall correctly. As long as you can determine which wire is common you can just hook them up and keep trying till it spins. If it vibrates in spot, you are out of sequence.
If you don’t know what pin ground is, it should be the only pin that has a connection to every other pin, so use a multimeter and figure it out. The other 2 sets of wires will connect to themselves, and ground, but not each other. So you could also identify them I suppose, but you still couldn’t guess the sequence, so just find ground, and hook them up until they work.
I never deal with 5 wire unipolar so I could be wrong, but if you lookup 5 wire unipolar stepper the picture shows how they work.
You could use an array of bytes and just step through the array and output the lower or upper half to your 4 pins.
Once you have found your common/ground wire, if you hook your stepper up and it drives the opposite way of what you have commanded, then you just need to switch a pair of wires.