|
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. |