Ok so I'm creating a machine for myself and its going to be like an X,Y CNC with a possible A axis rotary.
What I want to do with it is write the code from scratch to so it's lean and fast. I might not be able to achieve this but it's going to serve as both a learning tool and a functional product for me to use.
I've been doing some experimenting controlling stepper motors with an Arduino Mega 2560 and I've had some success with an Arduino Library called "AccelStepper". This is a pretty handy library which allows me to control multiple steppers and many types of drivers or direct. What it lacks however and is the most important is a canned function which would allow me to coordinate motion of multiple axis factoring in their Accel and Decel profiles. If you haven't dealt with this at all it's a huge pain in the but because stepper motors unlike a dc brush less motor are digital, that is they can't take an analog motion profile. Given their digital nature the standard trapezoid model of accel/decel won't work as each step of the stepper motor will/may be greater than the distance over time desired to match the rise/run profile of the accel/decel. So what I usually end up with is the axis with the shorter move finishes it's motion faster than the longer motion axis.
Does anyone out there have any experience solving this dilemma? I've tried some simple equations all of which would work for an analog device but I'm not gaining any ground on this battle at the moment.
If anyone needs more information I can do a video or some sort of diagram.
Thanks!
