using accelstepper without "destinations"

162 views
Skip to first unread message

Matthew Udomphol

unread,
May 15, 2013, 3:24:12 PM5/15/13
to accels...@googlegroups.com
Hi, my setup is simple. One motor, two buttons.

When one button is pressed, the motor accelerates in one direction up to a max speed, and continues for the duration that the button is held. When released, the motor stops.

When the other button is pressed, the motor accelerates in the other direction up to a max speed, and continues for the duration that the button is held. When released, the motor stops.

I've studied the library and there must be a simple way to do it.. but it seems like Accelstepper is built around the "moveto" or "move" foundations.. assuming that you need to know a target location. 

Am I missing something?

Many thanks in advance.
Matt

Mike McCauley

unread,
May 15, 2013, 7:19:12 PM5/15/13
to accels...@googlegroups.com
Hello. Yes AccelStepper is based on target positions but you can get the effect you want by using very large positive Orr negative positions. 

Cheers

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "accelstepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to accelstepper...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Matthew Udomphol

unread,
May 16, 2013, 12:24:48 PM5/16/13
to accels...@googlegroups.com
Thanks Mike. Makes sense.
Reply all
Reply to author
Forward
0 new messages