Go to file
Sonny Jeon f7429ec79b Cleaned up stepper and planner code.
- Added some compile-time error checking. Will add more in future
pushes to ensure settings are correct and within parameters that won't
break anything.

- Pushed some master branch changes with MEGA pin settings.

- Cleaned up planner code and comments to clarify some of the new
changes. Still much to do here.

- Cleaned up the new stepper code. May need to abstract some of the
segment buffer more to fix the feed holds (and integrate homing into
the main stepper routine). With what's planned, this should make the
stepper algorithm easier to attach other types of processes to it,
where it is now tightly integrated with the planner buffer and nothing
else.
2013-10-24 22:12:13 -06:00
doc Protected buffer works! Vast improvements to planner efficiency. Many things still broken with overhaul. 2013-10-09 09:33:22 -06:00
script No changes. Github commit bug. 2012-06-27 07:06:24 -06:00
sim Merge bug fixes from recent v0.8c push. Added readme for Grbl Sim. 2013-01-18 17:02:44 -07:00
.gitignore Acceleration independence installed. Initial re-work of planner for feedrate overrides. 2012-12-14 08:27:02 -07:00
config.h Cleaned up stepper and planner code. 2013-10-24 22:12:13 -06:00
coolant_control.c Minor prescalar optimization. Changed up some defines. 2012-09-21 17:55:02 -06:00
coolant_control.h Added coolant control (M7*, M8, M9). Mist control can be enabled via config.h. 2012-09-21 11:14:13 -06:00
COPYING G28/G30 post move bug fix. Altered file permissions. 2012-11-25 22:02:33 -07:00
defaults.h Fine tuning of new stepper algorithm with protected planner. Adaptive step prediction for segment buffer. 2013-10-14 21:21:56 -06:00
eeprom.c G28/G30 post move bug fix. Altered file permissions. 2012-11-25 22:02:33 -07:00
eeprom.h Pushed minor changes. Thanks @Protoneer! 2013-03-12 18:10:24 -06:00
gcode.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
gcode.h Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
limits.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
limits.h Untested! Soft limits, max travel, homing changes, new settings. 2013-03-21 19:22:07 -06:00
main.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
Makefile Protected buffer works! Vast improvements to planner efficiency. Many things still broken with overhaul. 2013-10-09 09:33:22 -06:00
motion_control.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
motion_control.h Untested! Soft limits, max travel, homing changes, new settings. 2013-03-21 19:22:07 -06:00
nuts_bolts.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
nuts_bolts.h Protected buffer works! Vast improvements to planner efficiency. Many things still broken with overhaul. 2013-10-09 09:33:22 -06:00
pin_map.h Cleaned up stepper and planner code. 2013-10-24 22:12:13 -06:00
planner_old.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
planner_old.h Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
planner.c Cleaned up stepper and planner code. 2013-10-24 22:12:13 -06:00
planner.h Cleaned up stepper and planner code. 2013-10-24 22:12:13 -06:00
print.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
print.h Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
protocol.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
protocol.h Updates to edge/dev. Line buffer increased/planner buffer decreased. Line overflow feedback. 2013-04-05 09:21:52 -06:00
README.md Cleaned up stepper and planner code. 2013-10-24 22:12:13 -06:00
report.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
report.h Updates to edge/dev. Line buffer increased/planner buffer decreased. Line overflow feedback. 2013-04-05 09:21:52 -06:00
serial.c Protected buffer works! Vast improvements to planner efficiency. Many things still broken with overhaul. 2013-10-09 09:33:22 -06:00
serial.h G28/G30 post move bug fix. Altered file permissions. 2012-11-25 22:02:33 -07:00
settings.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
settings.h Untested! Soft limits, max travel, homing changes, new settings. 2013-03-21 19:22:07 -06:00
spindle_control.c G28/G30 post move bug fix. Altered file permissions. 2012-11-25 22:02:33 -07:00
spindle_control.h G28/G30 post move bug fix. Altered file permissions. 2012-11-25 22:02:33 -07:00
stepper_old.c Push old dev_2 draft to work on other things. 2013-08-19 09:24:22 -06:00
stepper.c Cleaned up stepper and planner code. 2013-10-24 22:12:13 -06:00
stepper.h Protected buffer works! Vast improvements to planner efficiency. Many things still broken with overhaul. 2013-10-09 09:33:22 -06: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 m aintain 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, 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.

##Changelog for v0.9 from v0.8

  • ALPHA status: Under heavy development.
  • New stepper algorithm: Based on an inverse time algorithm, but modified to ensure steps are executed exactly. This algorithm performs a constant timer tick and has a hard limit of 30kHz maximum step frequency. It is also highly tuneable and should be very easy to port to other microcontroller architectures. Overall, a much better, smoother stepper algorithm with the capability of very high speeds.
  • Planner optimizations: Multiple changes to increase planner execution speed and removed redundant variables.
  • Acceleration independence: Each axes may be defined with different acceleration parameters and Grbl will automagically calculate the maximum acceleration through a path depending on the direction traveled. This is very useful for machine that have very different axes properties, like the ShapeOko z-axis.
  • Maximum velocity independence: As with acceleration, the maximum velocity of individual axes may be defined. All seek/rapids motions will move at these maximum rates, but never exceed any one axes. So, when two or more axes move, the limiting axis will move at its maximum rate, while the other axes are scaled down.
  • Significantly improved arc performance: Arcs are now defined in terms of chordal tolerance, rather than segment length. Chordal tolerance will automatically scale all arc line segments depending on arc radius, such that the error does not exceed the tolerance value (default: 0.005 mm.) So, for larger radii arcs, Grbl can move faster through them, because the segments are always longer and the planner has more distance to plan with.
  • Soft limits: Checks if any motion command exceeds workspace limits. Alarms out when found. Another safety feature, but, unlike hard limits, position does not get lost, as it forces a feed hold before erroring out.
  • New Grbl SIMULATOR by @jgeisler: 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.
  • Homing routine updated: Sets workspace volume in all negative space regardless of limit switch position. Common on pro CNCs. Also reduces soft limits CPU overhead.
  • Feedrate overrides: In the works, but planner has begun to be re-factored for this feature.
  • Jogging controls: Methodology needs to be to figured out first. Could be dropped due to flash space concerns. Last item on the agenda.

The project was initially inspired by the Arduino GCode Interpreter by Mike Ellery