You have no items in your shopping cart.

Subtotal: 0.00

How to Interface stepper motor with 8085 Lab Trainer Kit

8085TRAINER KIT

PS-TRAINER-8085 microprocessor trainer kit is proposed to smooth the progress of learning and developing designs of microprocessor from Intel. It has facility to connect PC’s 101/104 Keyboard, to enter user programs in Assembly languages. User verifies the programs through LCD or PC. User friendly Firmware confirms facilitating the beginners learns operations of a microprocessor quickly.

STEPPER MOTOR

A stepper motor is a brushless, synchronous electric motor that converts digital pulses into mechanical shaft rotation. Every revolution of the stepper motor is divided into a discrete number of steps, and the motor must be sent a separate pulse for each step.

INTERFACING STEPPER MOTOR

Fig. 1 shows how to interface the Stepper Motor to microprocessor. As you can see the stepper motor is connected with Microprocessor output port pins through a ULN2803A array. So when the Microprocessor is giving pulses with particular frequency to ls293A, the motor is rotated in clockwise or anticlockwise.



Fig. 1 Interfacing Stepper Motor to Microprocessor

 

INTERFACING STEPPER MOTOR WITH 8085

We now want to control a stepper motor in 8085 trainer kit. It works by turning ON & OFF a four I/O port lines generating at a particular frequency.

The 8085 trainer kit has three numbers of I/O port connectors, connected with I/O Port lines (PA.0 – PA.7),(pB.0 – pB.7) to rotate the stepper motor. L293d is used as a driver for port I/O lines, drivers output connected to stepper motor, connector provided for external power supply if needed.

PIN ASSIGNMENT WITH 8085



 

Stepper Motor(5V)

8255Lines

Stepper Motor PWR Select

STEPPER MOTOR

COIL-A

PA.0

 

 

 

 

   

COIL-B

PA.1

COIL-C

PA.2

COIL-D

PA.3

 



CIRCUIT DIAGRAM TO INTERFACE STEPPER MOTOR WITH 8085





ASSEMBLY PROGRAM TO INTERFACE STEPPER MOTOR WITH 8085

***********************************************************************************************************

Title : Program to rotate the stepper motor in clockwise direction

***********************************************************************************************************

ADDRESS

OPCODE

MNEMONICS

9100

3E 80

                 MVI A,80

9102

D3 23

                 OUT 23

9104

21 00 92

 START:    LXI H,9200

9107

06 04

                 MVI B,04

9109

7E

REPET :    MOV A,M

910A

D3 20

                 OUT 20

910C

21 02 02

                 LXI H,0202

910F

00

DELAY:    NOP

9110

1B

                 DCX D

9111

7E

                 MOV A,E

9112

B2

                 ORA  D

9113

C2 0F 91

                 JNZ  DELAY

9116

23

                 INX H

9117

05

                 DCR B

9118

C2 09 91

                 JNZ  REPET

911B

C3 04 91

                 JNZ  START

 



LOOK UP TABLE

             DATA

9200       DB 03H,06H,0CH,09H (CLOCK WISE)

9204       END