Go Down

Topic: New library for 28BYJ-48 stepper motors (Read 159 times) previous topic - next topic

tylerrr

Hi -

I've started a new library for the dirt cheap but useful 28BYJ-48 5v stepper motor (using ULN2003-based driver board):

https://github.com/tyhenry/CheapStepper

Contributions / feedback are welcome

(this is my first Arduino library)


Reasons:

I wanted something that had fine grain control over these motors (using an 8-step sequence)...

I looked at the stepper2.ino 'library' from sbright33, which is handy, well-tested, and powerful - but the code is very difficult to follow and implement.


My hope is to duplicate a lot of that functionality in a more extensible way, in a true library.

The big thing my library is missing right now is (built-in) non-blocking movements - currently, big moves will block the Arduino loop().

pert

The big thing my library is missing right now is (built-in) non-blocking movements - currently, big moves will block the Arduino loop().
Why not use an update() function that checks if it's time for the next step?

tylerrr

Updated with non-blocking moves. 

I haven't really tested them yet, so if anyone wants to give it a whirl I'd appreciate.

https://github.com/tyhenry/CheapStepper

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy