seemanta
Member level 4
stepper motor sequence
Hi,
I have a stepper motor which was lying idle until I decided to make some use of it. I just want to first test it by making it turn for a full 360 degrees.
It has 5 wires: one is common and 4 are coil inputs. I have hooked it up with my AT89S52 and a ULN 2803 as per the link:
https://www.freewebs.com/maheshwankhede/stepper.html
The stepping sequence I have applied is:
<pre>
Coils: 4 3 2 1
Excication pattern: ON OFF OFF OFF (1000)
OFF ON OFF OFF (0100)
OFF OFF ON OFF (0010)
OFF OFF OFF ON (0001)
</pre>
However, in stead of the motor rotating a complete 360 degrees, it behaves in a different way.
For the first pattern(1000) it just moves a bit in anti-clockwise direction, then it moves a bit in clockwise direction for the second pattern(0100) and then for the last two patterns(0010 and 0001), it does not move at all. So, after a complete step sequence the motion produced in the motor is just an oscillatory motion : a bit of anti-clockwise followed by a bit of clockwise motion.
What could be wrong here? Is my step sequence incorrect ? Can you please advise?
regards,
Seemanta
Hi,
I have a stepper motor which was lying idle until I decided to make some use of it. I just want to first test it by making it turn for a full 360 degrees.
It has 5 wires: one is common and 4 are coil inputs. I have hooked it up with my AT89S52 and a ULN 2803 as per the link:
https://www.freewebs.com/maheshwankhede/stepper.html
The stepping sequence I have applied is:
<pre>
Coils: 4 3 2 1
Excication pattern: ON OFF OFF OFF (1000)
OFF ON OFF OFF (0100)
OFF OFF ON OFF (0010)
OFF OFF OFF ON (0001)
</pre>
However, in stead of the motor rotating a complete 360 degrees, it behaves in a different way.
For the first pattern(1000) it just moves a bit in anti-clockwise direction, then it moves a bit in clockwise direction for the second pattern(0100) and then for the last two patterns(0010 and 0001), it does not move at all. So, after a complete step sequence the motion produced in the motor is just an oscillatory motion : a bit of anti-clockwise followed by a bit of clockwise motion.
What could be wrong here? Is my step sequence incorrect ? Can you please advise?
regards,
Seemanta