A Minimal / Fast / Simple Arduino library.
Relies on Timer1 Interrupts
and Direct Port Manipulations
via
the Pin library to produce extremely smooth stepping signal.
- Doesn't block as long as you have processing power left.
- Modifyable tick rate for slower / faster motor speed.
- Acceleration / Deceleration
Simply provide the STEP
& DIR
pin numbers, steps, direction
and tick rate, the rest is pretty much self-explanatory.
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.
-
Download or Clone this repository.
git clone https://github.com/megablue/SimpleStepper
-
Move the cloned / extracted folder to:
Arduino/lib/targets/libraries
You can find the folder under:
C:\Users\<User>\Documents\Arduino