how to drive a stepper motor using 8051

Status
Not open for further replies.

roughgal

Newbie level 1
Joined
Apr 12, 2007
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
stepper motor 45 degree rotation using 8051

pls someone help me, i am doing a project and i do not how to drive a stepper motor using 8051.. pls reply...
 

Use the pulse width timer driving the base of a NPN transistor with the DC motor the load in the collector
 

The Stepper motor need to pulse low at the data pin (i used the stepper that used 4 pin data). and the Vcc have two pins. the procedure is like this...

1. to move right or left just follow the direction of the data pins
example :
to move right :

data1-----data2-----data3----data4
0 --------- 1 -------- 1 -------- 1----->(15 degree)
1 --------- 0 -------- 1 -------- 1----->(30 degree)
1 --------- 1 -------- 0 -------- 1----->(45 degree)


to move left:

data1-----data2-----data3----data4
1 --------- 1 --------- 1 ------- 0----->(15 degree)
1 --------- 1 --------- 0 ------- 1----->(30 degree)
1 --------- 0 --------- 1 ------- 1----->(45 degree)

and so on...

using assembly language, here some example

mov p1,#0ffh ; set the default value to 1

clr p1.0 ; 15 degree move to left

mov a, p1

rl a

mov p1,a ;move again 15 degree left

rl a

mov p1, a ; move again 15 degree left
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…