I’m trying to build something similar to a laser cutter, which needs only 2 axis to move, X and Y.
I’ve been manually driving those axis with an Arduino 2009 using the adafruit motor shield which allows me to handle up to 2 stepper motors.
Now i wanted to transmit information about those motors positioning using g-code so i picked up RepRap software package code (a modified version of it) and removed all the useless stuff (like sensors and the use of Z axis). I’m not yet sure IF it works tho as i didn’t find any program working with serial / usb (only found mach3 which wants an LPT port :S ).
Anyway here’s the code…so if anyone could try it out will be apreciated!
Also if you can suggest me anyother way to CNC with arduino in a different way it would be appreciated:) Or even tips or whatever u’d like to share:)
Here’s the link to my code as it’s too big to fit in this post (9500 char limit). → http://syselkitna.no-ip.org/GCode_Interpreter2.rar