Go Down

Topic: moving a stepper in a sine wave? (Read 825 times) previous topic - next topic


hey there,

im trying to get my stepper to move back and forwards in half rotations with the speed of a sine wave...(slower at the ends, faster in the middle)....can anybody help me with a nifty bit of awesome code and i will be forever grateful.



Check out the AccelStepper library, it will do what you want. Tweak the acceleration value until you get the effect you want.

Good luck!
http://en.wiktionary.org/wiki/magagna <-- My last name.  Pretty apt.


Awesome! that library works perfect.


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!

via Egeo 16
Torino, 10131