Sunday, June 10, 2012

Arduino CNC Motion Controllers

I have been examining projects using a gcode parser and step motor controller running on an Arduino. Here are the projects I've come across.

GRBL: ( Simen Svale Skogsrud ) This open source program has been developed to run on a basic Arduino; however, it cannot be compiled using the Arduino IDE. The code is compiled directly using the avr-gcc and downloaded or programmed into the ATmega328 ( Here is another loader ).. The development of GRBL seems very active which is a plus. Take a look at the Github site. I only wished it compiled using the Arduino IDE. For an overview of GRBL including implemented gcodes try here.

If you are interested in trying GRBL, here are some suggestions:
  1. Download the Arduino IDE. Can be used to test your Arduino board.
  2. Download WinAVR. Can be used to compile GRBL, if you wish.
  3. Download the hex file and source for GRBL from GitHub
  4. Purchase an Arduino. I would suggest the Duemilanove which can be obtained from Amazon for $20.
  5. Purchase a proto shield and wire whatever connector is needed to connect to your driver board.
  1. Some of the older sketches, like those below, will not compile with the Arduino IDE 1.0, so also download Arduino IDE 023.
  2.  I have made sure the drivers on this blog are opto isolated, if yours is not you could do that on the proto shield.


The following Gcode interpreters are directly or indirectly from the RepRap project. The code below has mostly gone dormant, but the code is there to look at and play with.


Reprap_New_Firmware: ( Chris Meighan )

Reprap_New_Firmware_Arc: ( MMarz )

RSTEP: ( Reza Naima )

Still working on this post