diff --git a/LICENSE b/LICENSE index 814fc7b..52998af 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -This software is Copyright (C) 2008 Mike McCauley. Use is subject to license +This software is Copyright (C) Mike McCauley. Use is subject to license conditions. The main licensing options available are GPL V3 or Commercial: Open Source Licensing GPL V3 @@ -14,4 +14,4 @@ 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. +application. Contact info@airspayce for details. diff --git a/extras/doc/annotated.html b/extras/doc/annotated.html index 7f48b6f..e60691d 100644 --- a/extras/doc/annotated.html +++ b/extras/doc/annotated.html @@ -1,9 +1,9 @@ - +
- +This is the complete list of members for AccelStepper, including all inherited members.
_direction | AccelStepper | protected |
_stepInterval | AccelStepper | protected |
acceleration() | AccelStepper | |
AccelStepper(uint8_t interface=AccelStepper::FULL4WIRE, uint8_t pin1=2, uint8_t pin2=3, uint8_t pin3=4, uint8_t pin4=5, bool enable=true) | AccelStepper | |
AccelStepper(void(*forward)(), void(*backward)()) | AccelStepper | |
computeNewSpeed() | AccelStepper | protected |
computeNewSpeed() | AccelStepper | protectedvirtual |
currentPosition() | AccelStepper | |
Direction enum name | AccelStepper | protected |
DIRECTION_CCW enum value | AccelStepper | protected |
step4(long step) | AccelStepper | protectedvirtual |
step6(long step) | AccelStepper | protectedvirtual |
step8(long step) | AccelStepper | protectedvirtual |
stepBackward() | AccelStepper | protected |
stepForward() | AccelStepper | protected |
stop() | AccelStepper | |
targetPosition() | AccelStepper | |
~AccelStepper() | AccelStepper | inlinevirtual |
@@ -88,8 +89,10 @@
| float | maxSpeed () | void | setAcceleration (float acceleration) | | void | setSpeed (float speed) | | | bool | isRunning () | | |
Protected Types | |
enum | Direction { DIRECTION_CCW = 0, -DIRECTION_CW = 1 - } |
Direction indicator Symbolic names for the direction the motor is turning. More... | |
enum | Direction { DIRECTION_CCW = 0 +, DIRECTION_CW = 1 + } |
Direction indicator Symbolic names for the direction the motor is turning. More... | |
Protected Member Functions | |
void | computeNewSpeed () |
virtual unsigned long | computeNewSpeed () |
virtual void | setOutputPins (uint8_t mask) |
virtual void | step (long step) |
long | stepForward () |
long | stepBackward () |
virtual void | step0 (long step) |
virtual void | step1 (long step) |
boolean | _direction |
unsigned long | _stepInterval |
Support for stepper motors with acceleration etc.
This defines a single 2 or 4 pin stepper motor, or stepper moter with fdriver chip, with optional acceleration, deceleration, absolute positioning commands etc. Multiple simultaneous steppers are supported, all moving at different speeds and accelerations.
Gregor Christandl reports that with an Arduino Due and a simple test program, he measured 43163 steps per second using runSpeed(), and 16214 steps per second using run();
Symbolic names for number of pins. Use this in the pins argument the AccelStepper constructor to provide a symbolic name for the number of pins to use.
+Symbolic names for number of pins. Use this in the pins argument the AccelStepper constructor to provide a symbolic name for the number of pins to use.
This is the Arduino AccelStepper library. It provides an object-oriented interface for 2, 3 or 4 pin stepper motors and motor drivers.
+This is the Arduino AccelStepper library. It provides an object-oriented interface for 2, 3 or 4 pin stepper motors and motor drivers.
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.
-AccelStepper significantly improves on the standard Arduino Stepper library in several ways:
AccelStepper significantly improves on the standard Arduino Stepper library in several ways:
The latest version of this documentation can be downloaded from http://www.airspayce.com/mikem/arduino/AccelStepper The version of the package that this documentation refers to can be downloaded from http://www.airspayce.com/mikem/arduino/AccelStepper/AccelStepper-1.61.zip
+The latest version of this documentation can be downloaded from http://www.airspayce.com/mikem/arduino/AccelStepper The version of the package that this documentation refers to can be downloaded from http://www.airspayce.com/mikem/arduino/AccelStepper/AccelStepper-1.64.zip
Example Arduino programs are included to show the main modes of use.
You can also find online help and discussion at http://groups.google.com/group/accelstepper Please use that group for all questions and discussions on this topic. Do not contact the author directly, unless it is to discuss commercial licensing. Before asking a question or reporting a bug, please read
Beginners to C++ and stepper motors in general may find this helpful:
Tested on Arduino Diecimila and Mega with arduino-0018 & arduino-0021 on OpenSuSE 11.1 and avr-libc-1.6.1-1.15, cross-avr-binutils-2.19-9.1, cross-avr-gcc-4.1.3_20080612-26.5. Tested on Teensy http://www.pjrc.com/teensy including Teensy 3.1 built using Arduino IDE 1.0.5 with teensyduino addon 1.18 and later.
Install in the usual way: unzip the distribution zip file to the libraries sub-folder of your sketchbook.
This code uses speed calculations as described in "Generate stepper-motor speed profiles in real time" by David Austin http://fab.cba.mit.edu/classes/MIT/961.09/projects/i0/Stepper_Motor_Speed_Profile.pdf or http://www.embedded.com/design/mcus-processors-and-socs/4006438/Generate-stepper-motor-speed-profiles-in-real-time or http://web.archive.org/web/20140705143928/http://fab.cba.mit.edu/classes/MIT/961.09/projects/i0/Stepper_Motor_Speed_Profile.pdf with the exception that AccelStepper uses steps per second rather than radians per second (because we dont know the step angle of the motor) An initial step interval is calculated for the first step, based on the desired acceleration On subsequent steps, shorter step intervals are calculated based on the previous step until max speed is achieved.
+This code uses speed calculations as described in "Generate stepper-motor speed profiles in real time" by David Austin http://fab.cba.mit.edu/classes/MIT/961.09/projects/i0/Stepper_Motor_Speed_Profile.pdf or http://www.embedded.com/design/mcus-processors-and-socs/4006438/Generate-stepper-motor-speed-profiles-in-real-time or http://web.archive.org/web/20140705143928/http://fab.cba.mit.edu/classes/MIT/961.09/projects/i0/Stepper_Motor_Speed_Profile.pdf with the exception that AccelStepper uses steps per second rather than radians per second (because we dont know the step angle of the motor) An initial step interval is calculated for the first step, based on the desired acceleration On subsequent steps, shorter step intervals are calculated based on the previous step until max speed is achieved.
The included examples AFMotor_* are for Adafruit Motor Shield V1 and do not work with Adafruit Motor Shield V2. See https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library for examples that work with Adafruit Motor Shield V2.
This library is offered under a free GPL license for those who want to use it that way. We try hard to keep it up to date, fix bugs and to provide free support. If this library has helped you save time or money, please consider donating at http://www.airspayce.com or here:
AccelStepper is a trademark of AirSpayce Pty Ltd. The AccelStepper mark was first used on April 26 2010 for international trade, and is used only in relation to motor control hardware and software. It is not to be confused with any other similar marks covering other goods and services.
+AccelStepper is a trademark of AirSpayce Pty Ltd. The AccelStepper mark was first used on April 26 2010 for international trade, and is used only in relation to motor control hardware and software. It is not to be confused with any other similar marks covering other goods and services.
This software is Copyright (C) 2010-2018 Mike McCauley. Use is subject to license conditions. The main licensing options available are GPL V3 or Commercial:
+This software is Copyright (C) 2010-2021 Mike McCauley. Use is subject to license conditions. The main licensing options available are GPL V3 or Commercial: