Please sign in to comment.
LCD Library works correctly, and displays useful information. Impleme…
…nted command M99 to reset the axes to zero.
- Loading branch information...
Showing with 122 additions and 78 deletions.
|@@ -0,0 +1,29 @@|
|+#define LCD_PORT PORTA // customised to our hardware. should be moved to config.h|
|+#define LCD_RS_BIT 0 // customised to our hardware. should be moved to config.h|
|+#define LCD_RW_BIT 6 // customised to our hardware. should be moved to config.h|
|+#define LCD_E_BIT 1 // customised to our hardware. should be moved to config.h|
|+#define LCD_DATAMASK 0b00111100 // customised to our hardware. should be moved to config.h|
|+#define LCD_CONTROLS ~LCD_DATAMASK|
|+#define RS0 LCD_PORT &= ~(1<<LCD_RS_BIT) // Register select line low, select the control register|
|+#define RS1 LCD_PORT |= (1<<LCD_RS_BIT) // Register select line high, select the data register|
|+#define RW0 LCD_PORT &= ~(1<<LCD_RW_BIT) // Write mode|
|+#define RW1 LCD_PORT |= (1<<LCD_RW_BIT) // Read mode|
|+#define E0 LCD_PORT &= ~(1<<LCD_E_BIT) // Stop data write|
|+#define E1 LCD_PORT |= (1<<LCD_E_BIT) // Start data write|
|@@ -1,15 +1,5 @@|
|-h1. Grbl_for_CCHS - An embedded g-code interpreter and motion-controller for the ATmega644p microcontroller, adapted from Grbl.|
|-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.|
|+hackmelbournecnc is a pre-configured version of GRBL by simen for the HackMelbourne CNC machine.|
|-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_|
|+Please see the original documentation at https://github.com/simen/grbl|