Stepper control animation as example




JavaScript thank's to/from llizard & The Art of Animated ASCII Drawing!

A JavaScript example of halfstep control of 4 phase unipolar stepper motor
X motor Connected to the Lower 4bits of the parallel port (D0, D1, D2, D3).
Y motor Connected to the High 4bits of the parallel port (D4, D5, D6, D7).

halfstep output sequence for xmotor = 1, 3, 2, 6, 4, 12, 8, 9
fullstep sequence for xmotor = 1, 2, 4, 8
double coil fullstep sequence for xmotor = 3, 6, 12, 9
For Zmotor is the (parallel port adres + 2),output value XOR11

The parallel port adres &H378 Could also be &H278 or &H3BC (&H means HEXadecimal)

ULN2803 Example
Numbers are pin numbers on 36pins Centronics printer cable/parallel port

JavaScript Thank's to/from llizard The Art of Animated ASCII Drawing!
Luberth Dijkman
mailto:luberth@linuxfan.com
Made with Linux Gnotepad+ and Linux Netscape 4.71
13 Februari 2000

 My Homebuild basic plotter page

Easy to use industrial text engraving / product marking