Dear Forum Arduino members,
I have a bipolar stepper motor,
which makes forward steps by powering up
the wires in the order Wire 1, Wire 3, Wire 2, Wire 4.
And as you may guess the backward steps can be obtained by
reversing the sequence above, i.e., Wire 4, Wire 2, Wire 3, Wire 1.
My problem is the following: When I send my first HIGH to Wire 1
for stepping forward, it sometimes steps backward, which I think is
because my final position was obtained by sending HIGH to Wire 3.
Therefore, I need to determine in which position my BP motor is located
before sending my pulses...
What can be the way for determining the position of my BP motor?
Do you think I should save to a memory the number of wire which is fired up
at the end of my routine?
Or can I determine it by some other way?
I am using L293D Motor Shield without its library supplied by Adafruit.
Thank you.
bkarpuz