![]() |
![]() |
|
|
|
|
|
|
|||||||
|
|
|
|||||||||||||
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
||||||||||||||
|
Home
|
||||||||||||||
![]() |
![]() |
Controlling Stepper Motors with the
12way Interface
The right hand numbers in fig. 1 represent the output lines
at the interface board. Wires from the stepper motors are connected to these
points. The combination of "AND" and "Exclusive OR" gates determines which
line is turned on.
fig 1.
If Pin 9 and Pin 8 are HIGH (ie 128 + 64 = 192 sent), output 11 will be ON.
Uni phase - where each line is turned on in sequence.
Assuming you have identified the correct order of wires coming out of the
stepper motor and connected them to points 12, 11, 10 and 9 consecutively
(White, Blue, Red, Yellow) , the motor will rotate if you send the sequence: out 128
Bi phase - this method of driving turns on two coils at
once and produces increased torque. If we label the coils as "A", "B", "C" and
"D", the sequence of turning on coils is: A + D In the above example, with Coil A connected to output 12,
Coil B connected to output 11, Coil C connected to output 10 and Coil D
connected to output 9 we have problems. If you understood the Digital Logic
explanation in the box on the previous page you would realise that it is not
possible to turn on coils 'A' and 'B" together, or coils 'B' and 'C' together. To drive the steppers in Bi phase mode, you must connect
the wires to each 'bank' of outputs so that the clash described above does not
occur (A "bank" consisting of three output lines controlled by two lines from
the printer port.). The simplest approach is to connect the wires from each
motor to the first, second and third outputs respectively of each bank.
To connect the first motor … In the example above, A = 128, B = 32, C = 8 and D = 2. To drive the motors in Bi phase, the output codes will be: A + D = 128 + 2 = 130 In Pascal, the source code is: port[888] := 130; |
|
|||||||||||
![]() |
![]() |
|
||||||||||||
|
|
|
|
||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
|
Projects-Lab.com | Circuits-Lab.com | Elektrotekno.com | Free Schematics Search Engine | Electronic Kits | Mobile Phones |
||||||||||||||
|
|
||||||||||||||