Pages: [1]   Go Down
Author Topic: moving a stepper in a sine wave?  (Read 344 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

thanks.
Logged

Southern California
Offline Offline
God Member
*****
Karma: 5
Posts: 539
I like blinky lights
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Good luck!
Logged

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

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Awesome! that library works perfect.

Thanks.
Logged

Pages: [1]   Go Up
Jump to: