I bought a pair of stepper motors together with their driver boards. They seem to be pretty popular.
The stepper motor is a 28BYJ-48.
The driver board uses a ULN2003APG chip.
To my surprise, none of the many stepper motor control libraries I tested worked well with my setup.
So while I’m fairly new to C++ and Arduino, I took the opportunity to dig into the control of these motors and learn how to create my own library. And since it works well, I thought I’d share it.
So here are the files. The help text contains an example.
Hope it helps.
OliStepper help.txt (2.5 KB)
OliStepper.cpp (5.33 KB)
OliStepper.h (1.06 KB)