Go to file
Sonny Jeon d27dd13a54 Fix bug with premature step end. Refactored _delay_ms() and square() for better portability.
- Fixed a premature step end bug dating back to Simen's 0.7b edge
version is fixed, from which this code is forked from. Caused by Timer2
constantly overflowing calling the Step Reset Interrupt every 128usec.
Now Timer2 is always disabled after a step end and should free up some
cycles for the main program. Could be more than one way to fix this
problem. I'm open to suggestions.

- _delay_ms() refactored to accept only constants to comply with
current compilers. square() removed since not available with some
compilers.
2012-01-15 18:25:12 -07:00
doc Initial v0.8 ALPHA commit. Features multi-tasking run-time command execution (feed hold, cycle start, reset, status query). Extensive re-structuring of code for future features. 2011-12-08 18:47:48 -07:00
script Fix bug with premature step end. Refactored _delay_ms() and square() for better portability. 2012-01-15 18:25:12 -07:00
.gitignore merged master 2011-01-31 19:42:56 +01:00
config.h Fix bug with premature step end. Refactored _delay_ms() and square() for better portability. 2012-01-15 18:25:12 -07:00
COPYING renamed file 2009-01-26 10:51:02 +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 Position reporting, refactored system variables, serial print fixes, updated streaming scripts. 2012-01-06 10:10:41 -07: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 Extended position reporting with both home and work coordinates. Home position now retained after reset. Other minor changes/fixes. 2012-01-10 08:34:54 -07:00
limits.h added support for limit switches and homing action 2011-02-20 00:29:56 +01:00
main.c Fix bug with premature step end. Refactored _delay_ms() and square() for better portability. 2012-01-15 18:25:12 -07:00
Makefile cleaned up serial completing support for non blocking tx and refactoring formatting functions into a new module 'print' 2011-06-03 15:28:14 +02:00
motion_control.c Fix bug with premature step end. Refactored _delay_ms() and square() for better portability. 2012-01-15 18:25:12 -07:00
motion_control.h Initial v0.8 ALPHA commit. Features multi-tasking run-time command execution (feed hold, cycle start, reset, status query). Extensive re-structuring of code for future features. 2011-12-08 18:47:48 -07:00
nuts_bolts.c Fix bug with premature step end. Refactored _delay_ms() and square() for better portability. 2012-01-15 18:25:12 -07:00
nuts_bolts.h Fix bug with premature step end. Refactored _delay_ms() and square() for better portability. 2012-01-15 18:25:12 -07:00
planner.c Fix bug with premature step end. Refactored _delay_ms() and square() for better portability. 2012-01-15 18:25:12 -07:00
planner.h Position reporting, refactored system variables, serial print fixes, updated streaming scripts. 2012-01-06 10:10:41 -07:00
print.c Position reporting, refactored system variables, serial print fixes, updated streaming scripts. 2012-01-06 10:10:41 -07:00
print.h Position reporting, refactored system variables, serial print fixes, updated streaming scripts. 2012-01-06 10:10:41 -07:00
protocol.c Extended position reporting with both home and work coordinates. Home position now retained after reset. Other minor changes/fixes. 2012-01-10 08:34:54 -07:00
protocol.h Initial v0.8 ALPHA commit. Features multi-tasking run-time command execution (feed hold, cycle start, reset, status query). Extensive re-structuring of code for future features. 2011-12-08 18:47:48 -07:00
readme.textile Initial v0.8 ALPHA commit. Features multi-tasking run-time command execution (feed hold, cycle start, reset, status query). Extensive re-structuring of code for future features. 2011-12-08 18:47:48 -07:00
serial.c Extended position reporting with both home and work coordinates. Home position now retained after reset. Other minor changes/fixes. 2012-01-10 08:34:54 -07:00
serial.h Initial v0.8 ALPHA commit. Features multi-tasking run-time command execution (feed hold, cycle start, reset, status query). Extensive re-structuring of code for future features. 2011-12-08 18:47:48 -07:00
settings.c Position reporting, refactored system variables, serial print fixes, updated streaming scripts. 2012-01-06 10:10:41 -07:00
settings.h Position reporting, refactored system variables, serial print fixes, updated streaming scripts. 2012-01-06 10:10:41 -07:00
spindle_control.c Initial v0.8 ALPHA commit. Features multi-tasking run-time command execution (feed hold, cycle start, reset, status query). Extensive re-structuring of code for future features. 2011-12-08 18:47:48 -07: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 Fix bug with premature step end. Refactored _delay_ms() and square() for better portability. 2012-01-15 18:25:12 -07:00
stepper.h Initial v0.8 ALPHA commit. Features multi-tasking run-time command execution (feed hold, cycle start, reset, status query). Extensive re-structuring of code for future features. 2011-12-08 18:47:48 -07:00

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, 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 20 motions into the future and plan its velocities ahead to deliver smooth acceleration and jerk-free cornering.

*Changelog for v0.8 from v0.7:*
  - *ALPHA STATUS*: Major structural overhaul to allow for multi-tasking events and new feature sets
  - New run-time command control: Feed hold (pause), Cycle start (resume), Reset (abort), Status report (TBD)
  - Controlled feed hold with deceleration to ensure no skipped steps and loss of location.
  - After feed hold, cycle accelerations are re-planned and may be resumed.
  - System reset re-initializes grbl without resetting the Arduino.
  - Updated dwell function.
  - Restructured planner and stepper modules to become independent and ready for future features.
  - Planned features: Jog mode, status reporting, backlash compensation, improved flow control, planner optimizations
  - Reduce serial read buffer to 127 characters and increased write buffer to 31 characters (-1 ring buffer).
  - Increased planner buffer size to 20 blocks.
  - Misc bug fixes and removed deprecated acceleration enabled code.

*Changelog for v0.7 from v0.6:*
  - Significantly improved and optimized planner re-factoring.
  - New robust cornering algorithm, enabling smoother and faster motions.
  - Arc acceleration planning enabled by efficient vector transformation implementation.
  - Stepper subsystem re-factoring to help remove some motion issues from pre-v0.7 builds.
  - Increased dwell times.
  - G92 Coordinate offset support.
  - (Beta) Limit switch and homing cycle support.
  - Many other bug fixes and efficiency improvements.

*Important note for Atmega 168 users:* Going forward, support for Atmega 168 will be dropped due to its limited memory and speed. However, legacy Grbl v0.51 "in the branch called 'v0_51' is still available for use.

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