An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
 
 
 
Go to file
Sonny J badb638df9 Moved comment and block delete handling into protocol.c from gcode.c. Fixes bug when comment and block delete are not isolated. Blank lines ignored.
Comments, block delete characters, and blank lines are no longer passed
to the gcode parser and should free up some memory by ignoring these
characters. Gcode parser now expects clean gcode only. There was a bug
if there were block deletes or comments not in the first character (i.e.
spindle on/off for proofing geode without turning it on, or a NXX
followed by a comment). This should fix it by bypassing the problem.
Left a commented line for easily turning on and off block deletes for a
later feature, if desired.
2011-08-15 19:39:44 -06:00
doc cleaned up serial completing support for non blocking tx and refactoring formatting functions into a new module 'print' 2011-06-03 15:28:14 +02:00
script
.gitignore
COPYING
Makefile cleaned up serial completing support for non blocking tx and refactoring formatting functions into a new module 'print' 2011-06-03 15:28:14 +02:00
config.h
eeprom.c
eeprom.h
gcode.c Moved comment and block delete handling into protocol.c from gcode.c. Fixes bug when comment and block delete are not isolated. Blank lines ignored. 2011-08-15 19:39:44 -06:00
gcode.h
limits.c
limits.h
main.c Fixed serial.c after tests on real hardware 2011-06-05 20:54:23 +02:00
motion_control.c cleaned up serial completing support for non blocking tx and refactoring formatting functions into a new module 'print' 2011-06-03 15:28:14 +02:00
motion_control.h
nuts_bolts.c
nuts_bolts.h
planner.c Revert ea5b8942db2616e93fc0478922010c3bab7c0481^..HEAD 2011-08-15 19:37:22 -06:00
planner.h
print.c changed default fp decimal places to 3 2011-06-05 20:58:21 +02:00
print.h cleaned up function definitions for serial and print modules and added a comment about the deeply flawed printFloat method 2011-06-03 15:36:14 +02:00
protocol.c Moved comment and block delete handling into protocol.c from gcode.c. Fixes bug when comment and block delete are not isolated. Blank lines ignored. 2011-08-15 19:39:44 -06:00
protocol.h renamed wiring_serial to serial to reflect its complete remake 2011-05-31 22:45:38 +02:00
readme.textile updated readme to reflect real state of 168-compatibility 2011-06-05 21:12:56 +02:00
serial.c Fixed serial.c after tests on real hardware 2011-06-05 20:54:23 +02:00
serial.h refactored printIntegerInBase to work without a buffer + minor cleanup 2011-06-03 21:50:02 +02:00
settings.c added error message for step pulses < 3 microseconds 2011-07-17 13:35:44 -04:00
settings.h need to bump the version number because of the serial refactoring 2011-06-06 20:00:57 +02:00
spindle_control.c
spindle_control.h
stepper.c cleaned up serial completing support for non blocking tx and refactoring formatting functions into a new module 'print' 2011-06-03 15:28:14 +02:00
stepper.h

readme.textile

h1. Grbl - An embedded g-code interpreter and motion-controller for the Arduino/AVR328 microcontroller
    
Grbl is a no-compromise, high performance, low cost alternative to parallel-port-based motion control for CNC milling. It will run on a vanilla Arduino (Duemillanove/Uno) as long as it sports an Atmega 328. 

The controller is written in highly optimized C utilizing every clever feature of the AVR-chips to achieve precise timing and asynchronous operation. It is able to maintain more than 30kHz of stable, jitter free control pulses.

It accepts standards-compliant G-code and has been tested with the output of several CAM tools with no problems. Arcs, circles and helical motion are fully supported - but no support for tool offsets, functions or variables as these are apocryphal and fell into disuse after humans left G-code authoring to machines some time in the 80s.

Grbl includes full acceleration management with look ahead. That means the controller will look up to 20 motions into the future and plan its velocities ahead to deliver smooth acceleration and jerk-free cornering.

*Important note for Atmega 168 users:* Grbl used to be compatible with both the older Ardunios running atmega 168 and the newer with 328p. The full version of Grbl now compiles without support for circles/arcs if you target 168. If you need arcs, but not acceleration-management I am still maintaining Grbl 0.51 "in the branch called 'v0_51'":https://github.com/simen/grbl/tree/v0_51.

*Note for users upgrading from 0.51 to 0.6:* The new version has new and improved default pin-out. If nothing works when you upgrade, that is because the pulse trains are coming from the wrong pins. This is a simple matter of editing config.h – the whole legacy pin assignment is there for you to uncomment.

_The project was initially inspired by the Arduino GCode Interpreter by Mike Ellery_