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
Simen Svale Skogsrud d914089e91 spindle could not be stopped. Thanks again to Etienne for reporting 2011-02-25 15:00:47 +01:00
doc formatting 2011-02-19 00:32:36 +01:00
script gcode streaming works 2011-02-17 10:14:27 +01:00
.gitignore merged master 2011-01-31 19:42:56 +01:00
COPYING renamed file 2009-01-26 10:51:02 +01:00
Makefile added support for limit switches and homing action 2011-02-20 00:29:56 +01:00
config.h added support for limit switches and homing action 2011-02-20 00:29:56 +01:00
eeprom.c formatting 2011-01-31 23:04:39 +01:00
eeprom.h Added runtime configurable global settings with eeprom persitence 2010-03-07 20:29:18 +01:00
gcode.c added missing line from G92 patch 2011-02-24 15:03:45 +01:00
gcode.h refactored handling of settings '$' command out of gcode module and into settings module 2011-02-18 22:59:16 +01:00
limits.c added support for limit switches and homing action 2011-02-20 00:29:56 +01:00
limits.h added support for limit switches and homing action 2011-02-20 00:29:56 +01:00
main.c acceleration-Grbl now works with atmega 168 by disabling arc motion 2011-02-20 22:13:31 +01:00
motion_control.c fixed a double rounding error compensation bug in mc_arc thanks to Etienne Chové 2011-02-23 20:06:55 +01:00
motion_control.h result of G92 also affects planner 2011-02-21 22:32:42 +01:00
nuts_bolts.c cleaned up handling of number parsing in settings_execute_command 2011-02-18 23:08:06 +01:00
nuts_bolts.h added support for limit switches and homing action 2011-02-20 00:29:56 +01:00
planner.c result of G92 also affects planner 2011-02-21 22:32:42 +01:00
planner.h added support for limit switches and homing action 2011-02-20 00:29:56 +01:00
protocol.c fixed linebreaks, was LFCR, is CRLF 2011-02-24 16:08:06 +01:00
protocol.h refactored handling of settings '$' command out of gcode module and into settings module 2011-02-18 22:59:16 +01:00
readme.textile added another note for existing users 2011-02-17 20:03:29 +01:00
settings.c foolproofed steps/mm setting (must be > 0) 2011-02-25 13:40:48 +01:00
settings.h refactored handling of settings '$' command out of gcode module and into settings module 2011-02-18 22:59:16 +01:00
spindle_control.c spindle could not be stopped. Thanks again to Etienne for reporting 2011-02-25 15:00:47 +01:00
spindle_control.h refactored block buffer into separate module motion_plan pending the addition of the actual look ahead planner 2011-01-14 16:45:18 +01:00
stepper.c stepper enable pin now toggles to reflect the active/passive state of the stepper subsystem 2011-02-21 10:00:16 +01:00
stepper.h added support for limit switches and homing action 2011-02-20 00:29:56 +01:00
wiring_serial.c acceleration-Grbl now works with atmega 168 by disabling arc motion 2011-02-20 22:13:31 +01:00
wiring_serial.h moved all strings to pgm-memory 2010-03-07 23:10:41 +01:00

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. This had to go, as I was unable to fit the acceleration management into the 16k code space of the 168. If you want to run Grbl on an 168 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_