Skip to content

A bare minimum but really fast and simple stepper library for Arduino.

License

Notifications You must be signed in to change notification settings

megablue/SimpleStepper

Repository files navigation

Simple Stepper    Badge License

A Minimal / Fast / Simple Arduino library.


Relies on Timer1 Interrupts and Direct Port Manipulations via
the Pin library to produce extremely smooth stepping signal.


Features

  • Doesn't block as long as you have processing power left.
  • Modifyable tick rate for slower / faster motor speed.


Unsupported

  • Acceleration / Deceleration


Usage

Simply provide the STEP & DIR pin numbers, steps, direction
and tick rate, the rest is pretty much self-explanatory.



Tested

With an Arduino Nano 3.0, it is able to drive a 1.8° Nema 17
motor with 1 / 128 microsteps with reasonable speed with still
have processing power left for the rest of your code.



Installation


  1. Download or Clone this repository.

    Clone

    git clone https://github.com/megablue/SimpleStepper

  2. Move the cloned / extracted folder to:

    Arduino/lib/targets/libraries
    

    Arduino Folder

    You can find the folder under:

    Badge Windows
    C:\Users\<User>\Documents\Arduino

    Badge MacOS
    /Users/<User>/Documents/Arduino

    Badge Linux
    /home/<User>/Arduino


Releases

No releases published

Packages

No packages published