This is the Arduino LocoStepper class. It provides an object-oriented interface for 2 or 4 pin stepper motors.
The standard Arduino IDE includes the Stepper library (http://arduino.cc/en/Reference/Stepper) for stepper motors. It is perfectly adequate for simple, single motor applications.
LocoStepper significantly improves on the standard Arduino Stepper library in several ways:
- Supports multiple simultaneous steppers, with independent concurrent stepping on each stepper
- API functions never delay() or block
- Supports 2 and 4 wire steppers
- Very slow speeds are supported
Example Arduino programs are included to show the main modes of use.
This software is Copyright (C) 2016 thierry Paris / Locoduino. Use is subject to license conditions. The main licensing options available are GPL V2 or Commercial:
- Open Source Licensing GPL V2
- This is the appropriate option if you want to share the source code of your application with everyone you distribute it to, and you also want to give them the right to share who uses it. If you wish to use this software under Open Source Licensing, you must contribute all your source code to the open source community in accordance with the GPL Version 2 when your application is distributed. See http://www.gnu.org/copyleft/gpl.html
- Commercial Licensing
- This is the appropriate option if you are creating proprietary applications and you are not prepared to distribute and share the source code of your application. Contact info@open.com.au for details.
- Revision History
- Version
- 1.0 Initial release. This is a massively reduced version of AccelStepper library (http://www.airspayce.com/mikem/arduino/AccelStepper/AccelStepper-1.57.zip) from Mike McCauley. which was too much powerful, and seems to have problems to correctly return to the same position.
Definition in file LocoStepper.h.