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 Jeon 59a84c4925 Added complete stop delay at the end of all motion. Moved grbl preprocessor script into a new repository.
Added a very short (25 ms) user-definable delay before the steppers are
disabled at the motors are disabled and grbl goes idle. This ensures
any residual inertia at the end of the last motion does not cause the
axes to drift and grbl to lose its position when manually entering
g-code or when performing a tool change and starting the next
operation.
2011-09-29 16:25:48 -06:00
doc
script Added complete stop delay at the end of all motion. Moved grbl preprocessor script into a new repository. 2011-09-29 16:25:48 -06:00
.gitignore
COPYING
Makefile
config.h Added complete stop delay at the end of all motion. Moved grbl preprocessor script into a new repository. 2011-09-29 16:25:48 -06:00
eeprom.c
eeprom.h
gcode.c Fixed long slope at deceleration issue. Moved things into config.h. New MINIMUM_PLANNER_SPEED parameter. 2011-09-24 07:46:41 -06:00
gcode.h
limits.c
limits.h
main.c
motion_control.c Fixed long slope at deceleration issue. Moved things into config.h. New MINIMUM_PLANNER_SPEED parameter. 2011-09-24 07:46:41 -06:00
motion_control.h Fixed minor bugs in planner. Increased max dwell time. Long slope bug stop-gap solution note. 2011-09-18 05:36:55 -06:00
nuts_bolts.c
nuts_bolts.h
planner.c Fixed long slope at deceleration issue. Moved things into config.h. New MINIMUM_PLANNER_SPEED parameter. 2011-09-24 07:46:41 -06:00
planner.h
print.c
print.h
protocol.c
protocol.h
readme.textile
serial.c
serial.h
settings.c Fixed long slope at deceleration issue. Moved things into config.h. New MINIMUM_PLANNER_SPEED parameter. 2011-09-24 07:46:41 -06:00
settings.h
spindle_control.c
spindle_control.h
stepper.c Added complete stop delay at the end of all motion. Moved grbl preprocessor script into a new repository. 2011-09-29 16:25:48 -06: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_