Download Stepper Motor Driver

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Immunity-aware programming wikipedia , lookup

Flip-flop (electronics) wikipedia , lookup

Rectiverter wikipedia , lookup

Metadyne wikipedia , lookup

Electric motor wikipedia , lookup

Brushless DC electric motor wikipedia , lookup

AC motor wikipedia , lookup

Induction motor wikipedia , lookup

Brushed DC electric motor wikipedia , lookup

Variable-frequency drive wikipedia , lookup

Stepper motor wikipedia , lookup

Transcript
11
Stepper Motor Driver
A stepper motor has four coils. The direction of rotation (clockwise or anticlockwise) depends on the order in which the currents supplied to the coils
are switched on. If you use the motors type 55SI-25 DAYA, having a
connector as shown below,
1
6
then, 2 1 3 4 will turn the motor clockwise and
1 2 4 3 will turn the motor anti-clockwise
The numbers here refer to the numbers of the sockets on the motor
connector. Sockets 5 and 6 are both connected to the positive of the motor
supply. The motor driver is connected to the parallel port of a computer.
A program is required to run the motors. The program simply sends a series
of numbers to the parallel port: 32 16 64 128, to turn a motor clockwise and
16 32 128 64 to turn a motor anti-clockwise. These numbers are sent using
data lines 4 to 7; data lines 0 to 3 are used to select which motor you want to
activate.
The computer runs much too fast for the motors so the output from the port is
stored in a “latch”. The latch inputs are only transferred to the outputs if the
“store“ pin is high (at 5v). The store input is connected to data line 0 or 1 or 2
or 3 of the port so the computer can run one motor by putting bit 0 = 1(data
line 0 at 5v), a second motor by putting bit 1 = 1 (data line 0 at 5v) etc. So
this method could be used to control up to four motors.
The basic idea is illustrated below
inputs from
printer port
D7
D6
D5
D4
4 bit
latch
(half of a 4508)
D0/D1
D2/D3
store
1
outputs
The outputs of the latch are used to switch “Darlington” high gain, high
current transistors (type BD679, BD683 etc). This is necessary because the
motors need currents of about 300mA to run correctly.
Circuit of one coil driver (four needed for each motor)
+ (voltage to
suit motor)
to motor
coil
from latch
output
-
N.B.
Some Darlington transistors also have a protection diode (not shown
in the diagram). The resistor should be about 4k7.
Vero for two-motor driver
The numbers on the left of this vero diagram refer to the numbers of the pins
on the computer printer port, shown below.
2
data
13
14
1
25
earth (ground)
Printer Port
The data outputs are pins 2 to 9 (pin 2 = bit 0 ..... pin 9 = bit 7)
© David Hoult 2001
3