Stepper Motor Control via Parallel Printer Port under Linux |
||||||||||
|
The german electronic parts distributor Pollin sells a cheap Stepper motor driver card based on a L298 driver IC from STMicroelectronics. That card has a DB9 connector which can be connected with a 1:1 cable to a PC's parallel printer port. Here you can find the Source code of a test program which controls the state of the parallel port's data lines under Linux. The program generates the sequences for full and half stepping and can also output any custom sequence to the printer port's data lines.
Compile parport_bb.c with the command line:
Here an example of a program invocation:
Don't forget o load the |
||||||||||
|
||||||||||