WebbotLib AVR library
WebbotLib It just does it
C++documentationCdocumentation

Generic Bipolar stepper motor

Adds support for a generic bipolar stepper motor controller such as the L293D or SN754410.
This uses 4 output pins to control the two coils as well as an optional output pin which is set high to enable the motor.
If you are using an L293D, or a pin compatible chip like the SN754410, then here is the schematic:-
L293Dstepper.jpg
The enable pins are pulled high using a 10k resistor just in case you choose not to use the enable logic. If you wish to be able to disconnect the motor (ie turn off the supplied current) then specify an enable output pin from your board and connect it to pins 1 and 9.
Function Summary

Valid XHTML 1.0 Transitional