Tuesday, 29 December 2015

Interfacing Stepper Motor with Microprocessor 8085

Things Required
8085 microprocessor kit, breadboard, 8285 interfacing, jumper wires , 6 wire-unipolar stepper motor.
Wiring of steeper Motor
wir of step mot
We have the resistance of each wire with respect to centre tap .the correct order of wire which can result in clockwise and anticlockwise direction is detected.
We have detected A=blue B=Red C= Dark Yellow D=Light Yellow
Two Green Wires-Ground
More More Detailed Information you can Read my handwritten notes about stepper motor on this link
TABLE OF STEPPER MOTOR:
this is our desirable output that we want from any port of 8285 . it can be port A--OUT 28 , port B-- OUT 29, PORT C--OUT 30.
 A B C   D
1000
0100
0010
0001
0010
0100
1000
ASSEMBLY LANGUAGE PROGRAM:
PROGRAM                                      OPCODE
MVI A,80                                        3E,80
OUT 2B                                           D3,2B
BACK:       MVI A,08                                        3E,08
OUT 28                                           D3,28
MVI A,04                                        3E,04
OUT 28                                           D3,28
MVI A,02                                        3E,02
OUT 28                                           D3,28
MVI A,01                                       3E,01
OUT 28                                          D3,28
MVI A,02                                        3E,02
OUT 28                                           D3,28
MVI A,04                                       3E,04
OUT 28                                           D3,28
MVI A,08                                       3E,08
OUT 28                                          D3,28
CALL BACK                                 CD 04 20

Calculating teeths of stepper Motor
After burning a code on a 8085 Kit it is observed that motor was rotating in clockwise and anticlockwise direction.
It is seen each step of stepper Motor was observed to be =19 degree
We Know By formula
Angle Of Rotation per pulse = 360/(The No. of teeth on Rotor)
So By Calculation,
No. of teeth on Rotor =360/19=18.9 =19 (approx)
i.e 19 teeths are there in motor
Now I know ur biggest doubt is How to Burn Code in a Kit . So, Bro ...first of all tell u here we are bounded to use only 8085 and not 8086 becoz our pheripheral 8255 is a 8-bit and thus compatible to only 8085. Now in ur lab u will find 2 kinds of 8085 kit .First that have LCD display  and also Keybord is seprately attached to it . and second kit of 8085 is having keybord embedded in to that kit only. For Pheriheral use second type of 8085 kit in which u have to first press RESET--> REL EXEM-->2000(i.e the location from where u want to store ur code)-->Start writting ur OP CODES  (address will itself gets incremented) just press NEXT after every OP CODE.......after writting complete opcodes -->press FILL-->press GOTO-->2000( from where u have started writting ur opcodes)-->NEXT------Now u will see a magic ..i.e u will find led's start glowing in ur pheripheral---->Track which port corresponds to that led's. and connect ur right sequence of wires of stepper motor on that particular Port
IRRELEVANT.
in first kit of 8085 sequence of entering a code is
Anshuman-->PRESS S-->sub.-->PRESS ENTER-->meom.-->PRESS ENTER-->addr.-->ENTER 2000 ( starting location of program)-->start entering op codes-->PRESS ESC-->d/esc abort..lab ! lab !-->PRESS G-->command go to-->PRESS ENTER-->Burst addr-->2000(starting addr of program)-->wait (in case if prog contains hlt (76) )-->PRESS RESET FROM KIT NOT FROM KEYBOARD-->anshuman--->PRESS S-->subs.-->PRESS ENTER-->meom.-->PRESS ENTER-->addr.-->ENTER 2500( the location where  u want to see o/p)-->answer will come press ENTER ENTER to see others value.
and in 8086 sequence of entering the code is
for that look at lab file on given link http://simplifiedtheory.com/microprocessor-hand-written-notes/

watch video for this project




No comments:

Post a Comment