Re: [accelstepper] curve or circle

420 views
Skip to first unread message

Mike McCauley

unread,
Dec 10, 2012, 11:54:15 PM12/10/12
to accels...@googlegroups.com, John B
Hello,

not that Im aware of. It would require to synchronise 2 steppers to move
together, and AccelStepper does not support that (yet).

Cheers.

On Sunday, December 09, 2012 03:44:40 AM John B wrote:
> Please could anyone tell me if there is code or a sketch to cover a curve
> or circle using arduino and 2 steppers with drivers
--
Mike McCauley mi...@open.com.au
Open System Consultants Pty. Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.

Geoff Probert

unread,
Dec 11, 2012, 12:06:58 AM12/11/12
to accels...@googlegroups.com
John,
If what you are trying is for CNC-machine control, I recommend GRBL (available on GitHub).

The basic code for an arc is just sines & cosines, which is dead-easy for the first quadrant, but starts to get messy when you extend it to a full circle.  Now compound it with starting at some arbitrary point, say angle=31 degrees, and finish at angle = 97 degrees, and you have a right tangle to deal with.  Was I going clockwise? or anti-clock?

Grbl is a bit fiddly to install onto the Arduino - I have a UNO - but once done, I could stream G-code files of almost any size to it and enjoy watching the machine "follow orders"

The down side is that, because it is a sod to install, you will be reluctant to overwrite it with other "quickie" Arduino programmes.

Geoff

AXN-RXN

unread,
Dec 11, 2012, 10:59:19 AM12/11/12
to accels...@googlegroups.com
Not at all using AccelStepper, but I've recently used a stepper driver from Peter Norburg (stepperboard.com) and an Uno to build a CNC bed for a sculpture.

This board is a pain to set up with an arduino, but I did it with some success. And, somebody that actually knew what there were doing with code would probably be able to do it in a snap. But, these boards have automatic calculation for arcs and full circles. You just say 1000A, and the board will do an arc with a radius of 1000 steps. I think they are good, but the learning curve is a bit steep to get them working. I've also used them with VisualBasic and that is a lot easier to set up. You constantly have to chat with

Anywho, worth a try if you want to do a lot of arcs and circles.
--> Karl
Reply all
Reply to author
Forward
0 new messages