Monday, 29 February 2016

HARDWARE INTERFACING

Stepper Motor Interfacing with Processor :

 

what is motor?????????????

A device which can convert electrical energy or  other energy in to mechanical energy or mechanical displacement . 

Types of Motor:

i) DC motor
ii)AC motor
iii)Stepper motor
iv)Brush less DC motor
v)Universal motor

What is magnetic Filed  ??????????

Each magnet has its own field called as magnetic field .


What is magnetic flux???

The number of lines passing through unit magnetic field.   


How magnetic field is generated ??????

"When current passing through any conductor it produces its own  field and these field is measured according to right hand thumb rule ".


The motor has Shaft and Stator .
i)Shaft: Which can  rotate according to magnetic field when current passing through coil.
ii) Stator (Pole): It is stationary part around the shaft and coil is wound to pole and current is passes to it then it can generate magnetic field.


   Principle of motor:

"when current passing through coil it can generate magnetic field , this field is attracted or reflected pole and then pole is deflected according to current direction." 

i) Cross full step:
ii)Normal full step:
iii)Half step:

i) Cross full stepping:

As shown in below cross full stepping setup of motor.


 As shown in  above there are four stator and singlr rotor (Shaft).


i) Cross Full step Logic: (clock wise Direction)


Where A,B,C,D are the winding on respective stator (Pole)
 


A
B
C
D
1
0
1
0
1
0
0
1
0
1
0
1
0
1
1
0
 


Program of Stepper motor:

i) CLOCKWISE ROTATION -360  °


MOV AL,80

OUT 67,AL

MOV CL,32

MOV AL,OA

OUT  61,AL

CALL 2000

MOV AL,09

OUT 61,AL

CALL 2000

MOV AL,05

OUT 61,AL

CALL 2000

MOV AL,06

OUT 61,AL

CALL 2000

INT 3

Delay Routine at 2000 location.

2000:

MOV CX,0FFF

DEC CX

JNZ  2000

RET
 


 

  ii) ANTICLOCKWISE ROTATION-180  °



 

MOV AL,80
OUT 67,AL
MOV CL,19
MOV AL,O6
OUT  61,AL
CALL 2000
MOV AL,05
OUT 61,AL
CALL 2000
MOV AL,09
OUT 61,AL
CALL 2000
MOV AL,0A
OUT 61,AL
CALL 2000
INT 3


 

Delay Routine at 2000 location.

2000:

MOV CX,0FFF

DEC CX

JNZ  2000

RET





ii)Normal full step: (clock wise Direction)

Where A,B,C,D are the winding on respective stator (Pole)



A
B
C
D
1
0
0
0
0
0
0
1
0
1
0
0
0
0
1
0

No comments:

Post a Comment