I have at last succeeded in putting together a sketch that will allow a Dobot version 1 with ramps 1.4 to do inverse kinematics. My dobot is a recently made clone, available on ebay for around $400 (no electronics), that uses homing switches instead of gyros. Its well made, and functions great. So far, you can input the x,y and z location and it will move to that location. It homes at start up, and zeros the coordinates, makes the moves in coordination using accelstepper multistepper and reports ok when the move is finished.
I can't take credit for the IK math, as I have built upon the work of a developer in Indonesia who worked out the math for a similar arm.
I have also modified the INO file associated with the brilliantly written AR2 software, so that it functions with a dobot. The inverse kinematics do not function though, as the arm is configured for 6 axis on the Ar2. It is however great software for scripting movements, responses, servos, etc.
I'd like to be able to have the program communicate with a code sender designed for GRBL or MARLIN, so that it can respond to a file of g code locations. As well, I would like to have the program accept inputs for circular motions, such as G02 or G03 what specify a staring point and radius. Any assistance with the software would be appreciated. Here is what I have so far.
Dobot_IK_Accel_Multi_Home.ino (13 KB)
AR2.1_edited_for_ramps_1.4.ino (44 KB)