AccelStepperSpark (community library)


Name Value
Name AccelStepperSpark
Version 1.5.3
Installs 33438
License GPL
Author Mike McCauley modified by Abdulrahman Saleh Khamis
Maintainer Abdulrahman Saleh Khamis
Download .tar.gz
All Versions 1.5.3, 1.5.1, 1.5.0, 1.4.9, 1.4.7

A library that allows you to control stepper motors with an object-oriented interface. It works with 2, 3 or 4 pin stepper motors.

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.

AccelStepper for Particle

This is the Arduino port of AccelStepper library for Particle devices. It provides an object-oriented interface for 2, 3 or 4 pin stepper motors.

The standard Arduino IDE includes the Stepper library ( for stepper motors. It is perfectly adequate for simple, single motor applications.

AccelStepper significantly improves on the standard Arduino Stepper library in several ways:

  • Supports acceleration and deceleration
  • Supports multiple simultaneous steppers, with independent concurrent stepping on each stepper
  • API functions never delay() or block
  • Supports 2, 3 and 4 wire steppers, plus 3 and 4 wire half steppers.
  • Supports alternate stepping functions to enable support of AFMotor (
  • Supports stepper drivers such as the Sparkfun EasyDriver (based on 3967 driver chip)
  • Very slow speeds are supported
  • Extensive API
  • Subclass support

Example usage

#include "AccelStepperSpark.h"

// Define a stepper and the pins it will use
AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on D2, D3, D4, D5

void setup()
// Change these to suit your stepper if you want

void loop()
// If at the end of travel go to the other end
if (stepper.distanceToGo() == 0)


Please visit for a complete list of APIs.


Thanks to Mike McCauley for his awesome AccelStepper library.

The Particle port is currently being maintained by Abdulrahman Saleh Khamis

Browse Library Files