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 35f499c00c minor edits 2011-01-25 23:35:25 +01:00
script look ahead planner complete and enabled save the acceleration limiting forward scan. Not tested on real hardware, just logic analyzer 2011-01-24 20:55:25 +01:00
.gitignore added code with merge conflict as note to self, accelleration will just have to wait 2010-12-20 14:01:38 +01:00
COPYING renamed file 2009-01-26 10:51:02 +01:00
Makefile pcomplete, fully untested, support for accelleration management with look ahead optimization, finally 2011-01-15 00:27:08 +01:00
config.c updated struct types to use typedefs and conform to Micael Barrs Embedded C Coding Standard 2011-01-25 22:51:37 +01:00
config.h updated struct types to use typedefs and conform to Micael Barrs Embedded C Coding Standard 2011-01-25 22:51:37 +01:00
eeprom.c Added runtime configurable global settings with eeprom persitence 2010-03-07 20:29:18 +01:00
eeprom.h Added runtime configurable global settings with eeprom persitence 2010-03-07 20:29:18 +01:00
gcode.c made local variables static 2011-01-25 23:33:19 +01:00
gcode.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
main.c still not running, but a lot further along 2011-01-22 23:29:02 +01:00
motion_control.c added high-level api-call for enabling or disabling the acceleration manager 2011-01-25 22:44:46 +01:00
motion_control.h added high-level api-call for enabling or disabling the acceleration manager 2011-01-25 22:44:46 +01:00
nuts_bolts.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
readme.textile updated readme 2011-01-25 14:42:27 +01:00
serial_protocol.c made local variables static 2011-01-25 23:33:19 +01:00
serial_protocol.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
spindle_control.c 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
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 minor edits 2011-01-25 23:35:25 +01:00
stepper.h eliminated an annoying constant that broke my cleanly layered abstractions 2011-01-14 16:56:44 +01:00
stepper_plan.c made local variables static 2011-01-25 23:33:19 +01:00
stepper_plan.h bye bye support for atmega 168, your flash space has overflowed 2011-01-25 22:54:48 +01:00
wiring_private.h purged an unused typedef 2011-01-25 22:52:27 +01:00
wiring_serial.c bye bye support for atmega 168, your flash space has overflowed 2011-01-25 22:54:48 +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.

h2. Prioritized to-do:

* Backlash compensation
* Autodetect baud rate
* Spindle control
* Arduino IDE compatible (build and flash)
* Support "headless" fabrication by buffering all code to SD-card or similar

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