Go to file
2014-07-12 10:40:39 -06:00
doc Added grbl planner Matlab simulator for test reference. Updated line number compile-time option. 2014-02-26 12:10:07 -07:00
script No changes. Github commit bug. 2012-06-27 07:06:24 -06:00
sim Restore changes made only for testing. 2014-07-10 13:13:58 -04:00
test Added test g-code programs. 2014-07-09 09:17:33 -06:00
.gitignore Total rework of simulator for dev branch. Create separate thread for interrupt processes. Tick-accurate simulation of timers. Non-blocking character input for running in realtime mode. Decouple hardware sim from grbl code as much as possible. Expanded command line options. Provisions for cross-platform solution. 2014-07-04 11:14:54 -04:00
config.h Restore changes made only for testing. 2014-07-10 13:13:58 -04:00
coolant_control.c reduce diffs with dev branch 2014-07-04 16:43:52 -04:00
coolant_control.h Major g-code parser overhaul. 100%* compliant. Other related updates. 2014-05-25 16:05:28 -06:00
COPYING G28/G30 post move bug fix. Altered file permissions. 2012-11-25 22:02:33 -07:00
cpu_map.h Added Probing to Mega2560 and fixed Shapeoko2 compile error 2014-03-11 09:23:39 +08:00
defaults.h Major g-code parser overhaul. 100%* compliant. Other related updates. 2014-05-25 16:05:28 -06:00
eeprom.c G28/G30 post move bug fix. Altered file permissions. 2012-11-25 22:02:33 -07:00
eeprom.h Realtime rate reporting. Updated decimal places. 2014-07-04 16:08:15 -06:00
gcode.c Updated README 2014-07-11 10:14:08 -06:00
gcode.h New G43.1/G49 gcodes. Not working yet!! 2014-07-05 09:51:22 -06:00
limits.c Isolate atomic bit flag for execution. 2014-07-06 19:05:12 -06:00
limits.h Refactoring and lots of bug fixes. Updated homing cycle. 2014-02-09 10:46:34 -07:00
main.c G38.2 probe feature rough draft installed. Working but needs testing. 2014-02-28 22:03:26 -07:00
Makefile G38.2 probe feature rough draft installed. Working but needs testing. 2014-02-28 22:03:26 -07:00
motion_control.c Isolate atomic bit flag for execution. 2014-07-06 19:05:12 -06:00
motion_control.h Major g-code parser overhaul. 100%* compliant. Other related updates. 2014-05-25 16:05:28 -06:00
nuts_bolts.c Minor bug fixes and updates. Line number tracking. 2014-07-02 08:39:19 -06:00
nuts_bolts.h Isolate atomic bit flag for execution. 2014-07-06 19:05:12 -06:00
planner.c Added grbl planner Matlab simulator for test reference. Updated line number compile-time option. 2014-02-26 12:10:07 -07:00
planner.h Added grbl planner Matlab simulator for test reference. Updated line number compile-time option. 2014-02-26 12:10:07 -07:00
print.c Realtime rate reporting. Updated decimal places. 2014-07-04 16:08:15 -06:00
print.h Realtime rate reporting. Updated decimal places. 2014-07-04 16:08:15 -06:00
probe.c Fixed atomic access to flags in sys.execute. 2014-06-26 23:06:26 +01:00
probe.h Major g-code parser overhaul. 100%* compliant. Other related updates. 2014-05-25 16:05:28 -06:00
protocol.c Isolate atomic bit flag for execution. 2014-07-06 19:05:12 -06:00
protocol.h Refactoring and lots of bug fixes. Updated homing cycle. 2014-02-09 10:46:34 -07:00
README.md Update README.md 2014-07-12 10:40:39 -06:00
report.c G43.1/G49 tool length offset installed. Minor bug fix. 2014-07-06 15:20:20 -06:00
report.h G43.1/G49 tool length offset installed. Minor bug fix. 2014-07-06 15:20:20 -06:00
serial.c Isolate atomic bit flag for execution. 2014-07-06 19:05:12 -06:00
serial.h Lots of re-organization and cleaning-up. Some bug fixes. 2014-01-10 20:22:10 -07:00
settings.c Realtime rate reporting. Updated decimal places. 2014-07-04 16:08:15 -06:00
settings.h Version and build update. 2014-07-06 19:07:30 -06:00
spindle_control.c reduce diffs with dev branch 2014-07-04 16:43:52 -04:00
spindle_control.h Major g-code parser overhaul. 100%* compliant. Other related updates. 2014-05-25 16:05:28 -06:00
stepper.c Isolate atomic bit flag for execution. 2014-07-06 19:05:12 -06:00
stepper.h Realtime rate reporting. Updated decimal places. 2014-07-04 16:08:15 -06:00
system.c Fixed atomic access to flags in sys.execute. 2014-06-26 23:06:26 +01:00
system.h G38.2 probe feature rough draft installed. Working but needs testing. 2014-02-28 22:03:26 -07:00

#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 up to 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, as well as, other basic functional g-code commands. Functions and variables are not currently supported, but may be included in future releases in a form of a pre-processor.

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

  • Note on licensing: The Grbl master branch is licensed under the MIT software license. Currently, the developmental edge branch will remain under GPLv3 until pushed to master, where it will be updated to the MIT-license. Please see the COPYING text for more details.

  • For more information and help, check out our Wiki pages! If you find that the information is out-dated, please to help us keep it updated by editing it or notifying our community! Thanks!


##Update Summary for v0.9 from v0.8

  • BETA status: Minor bugs may exist. Under final testing for master release. Please report any issues to administrators so we can push this out quickly!
    • IMPORTANT: Default serial baudrate is now 115200! (Up from 9600)
  • NEW Super Smooth Stepper Algorithm: Complete overhaul of the handling of the stepper driver to simplify and reduce task time per ISR tick. Much smoother operation with the new Adaptive Multi-Axis Step Smoothing (AMASS) algorithm which does what its name implies (see stepper.c source for details). Users should immediately see significant improvements in how their machines move and overall performance!
  • Stability and Robustness Updates: Grbl's overall stability has been focused on for this version. The planner and step-execution interface has been completely re-written for robustness and incorruptibility by the introduction of an intermediate step segment buffer that "checks-out" steps from the planner buffer in real-time. This means we can now fearlessly drive Grbl to it's highest limits. Combined with the new stepper algorithm and planner optimizations, this translated to 5x to 10x overall performance increases in our testing! Also, stability and robustness tests have been reported to easily take 1.4 million (yes, million) line g-code programs like a champ!
  • (x4)+ Faster Planner: Planning computations improved four-fold or more by optimizing end-to-end operations, which included streamlining the computations and introducing a planner pointer to locate un-improvable portions of the buffer and not waste cycles recomputing them.
  • G-Code Parser Overhaul: Completely re-written from the ground-up for 100%-compliance* to the g-code standard. (* Parts of the NIST standard are a bit out-dated and arbitrary, so we altered some minor things to make more sense. Differences are outlined in the source code.) We also took steps to allow us to break up the g-code parser into distinct separate tasks, which is key for some future development ideas and improvements.
  • Independent Acceleration and Velocity Settings: Each axes may be defined with unique acceleration and velocity parameters and Grbl will automagically calculate the maximum acceleration and velocity through a path depending on the direction traveled. This is very useful for machines that have very different axes properties, like the ShapeOko's z-axis.
  • Soft Limits: Checks if any motion command exceeds workspace limits before executing it, and alarms out, if detected. Another safety feature, but, unlike hard limits, position does not get lost, as it forces a feed hold before erroring out. NOTE: This still requires limit switches for homing so Grbl knows where the machine origin is, and the new max axis travel settings configured correctly for the machine.
  • Probing: The G38.2 straight probe and G43.1/49 tool offset g-code commands are now supported. A simple probe switch must be connected to the Uno analog pin 5 (normally-open to ground). Grbl will report the probe position back to the user when the probing cycle detects a pin state change.
  • Tool Length Offsets: Probing doesn't make sense without tool length offsets(TLO), so we added it! The G43.1 dynamic TLO (described by linuxcnc.org) and G49 TLO cancel commands are now supported. G43.1 dynamic TLO works like the normal G43 TLO(NOT SUPPORTED) but requires an additional axis word with the offset value attached. We did this so Grbl does not have to track and maintain a tool offset database in its memory. Perhaps in the future, we will support a tool database, but not for this version.
  • Improved Arc Performance: The larger the arc radius, the faster Grbl will trace it! We are now defining arcs in terms of arc chordal tolerance, rather than a fixed segment length. This automatically scales the arc segment length such that maximum radial error of the segment from the true arc is never more than the chordal tolerance value of a super-accurate default of 0.002 mm.
  • CPU Pin Mapping: In an effort for Grbl to be compatible with other AVR architectures, such as the 1280 or 2560, a new cpu_map.h pin configuration file has been created to allow Grbl to be compiled for them. This is currently user supported, so your mileage may vary. If you run across a bug, please let us know or better send us a fix! Thanks in advance!
  • New Grbl SIMULATOR! (by @jgeisler and @ashelly): A completely independent wrapper of the Grbl main source code that may be compiled as an executable on a computer. No Arduino required. Simply simulates the responses of Grbl as if it was on an Arduino. May be used for many things: checking out how Grbl works, pre-process moves for GUI graphics, debugging of new features, etc. Much left to do, but potentially very powerful, as the dummy AVR variables can be written to output anything you need.
  • Updated Homing Routine: Sets workspace volume in all negative space regardless of limit switch position. Common on pro CNCs. Now tied directly into the main planner and stepper modules to reduce flash space and allow maximum speeds during seeking.
  • Optional Limit Pin Sharing: Limit switches can be combined to share the same pins to free up precious I/O pins for other purposes. When combined, users must adjust the homing cycle mask in config.h to not home the axes on a shared pin at the same time. Don't worry; hard limits and the homing cycle still work just like they did before.
  • Optional Variable Spindle Speed Output: Available only as a compile-time option through the config.h file. Enables PWM output for 'S' g-code commands. Enabling this feature will swap the Z-limit D11 pin and spindle enable D12 pin to access the hardware PWM on pin D12. The Z-limit pin, now on D12, should work just as it did before.
  • Additional Compile-Time Feature Options: Line number tracking, real-time feed rate reporting.
  • SLATED FOR v1.0 DEVELOPMENT Jogging controls and feedrate/spindle/coolant overrides. (In v0.9, the framework for feedrate overrides are in-place, only the minor details to complete it have yet to be installed.)

Grbl is an open-source project and fueled by the free-time of our intrepid administrators and altruistic users. If you'd like to donate, all proceeds will be used to help fund supporting hardware and testing equipment. Thank you!

Donate