Hello frnds,
im stuck; plz help...
im having a unipolar stepper with 6 terminals (2 COMM), 12v, 1A Supply...
i hav written assembly code:
org 0H
stepper equ P1
main:
mov stepper, #08H
acall delay
mov stepper, #04H
acall delay
mov stepper, #02H
acall delay
mov stepper, #01H
acall delay
sjmp main
delay:
mov r7,#2
wait2:
mov r6,#0ccH
wait1:
mov r5,#0ffH
wait:
djnz r5,wait
djnz r6,wait1
djnz r7,wait2
ret
end
When motor is running it goes fwd for some time then suddenly goes backwd...
i have used this step sequence bcoz dis motor runs continous when one by one pulse is given to four terminals...
I am using driver IC L293D, problem is that; the step angle of motor is 5.3'...
i dont know how to use step angle for giving proper pulses...
im working on project of a robo car with two stepper motors interfaced with 8051..
it can move in all directions... if any suggestions, plz tell...
thnx in advance...