CarlosGS / grblForCyclone

GRBL port for RAMPS and Sanguinololu boards. Original port was done by ArSi (read description)
Other
84 stars 22 forks source link

GRBL RAMPS 1.4 port
By ArSi arsi@arsi.sk

Modified again by Carlosgs to support RAMPS and Sanguinololu without any re-wiring (i.e. if MarlinForCyclone worked straight away, this one will).
Pre-configured for Cyclone PCB Factory v2.X.

How to flash the GRBL firmware

0) Before every installation/update of GRBL, make sure to clear the EEPROM memory. This will reset the calibration values to zero, avoiding further problems (thanks to Jungle and others in the mail list for submitting this issue)

1) Download this repository (link), extract the zip file, and open the file grblForCyclone.ino from the Arduino IDE.

2) Select the board you are using from the "Tools->Board" menu:

3) Next, if you want to modify any default parameters, do so in "defaults.h" (end of the file, below DEFAULTS_CYCLONE_2_1).

4) Finally, once you have selected the correct board and USB port, you can click "Upload" to flash the GRBL firmware. Success!! :-) Click here for a GRBL/bCNC usage tutorial

(Tested with version 1.6.5 of the Arduino IDE, 29/Sep/2015)

How to connect the XYZ motors, XY endstops and Z probe

OPTION A: USING RAMPS SHIELD

 Ramps 1.4         |    GRBL                             |    Test  
 X axis            |   X axis                            |     OK working  
 Y axis            |   Y axis                            |     OK working  
 Z axis            |   Z axis                            |     OK working  
 digital pin 3     |   min X                             |     OK working  
 digital pin 14    |   min Y                             |     OK working  
 (min Z disabled)  |   min Z                             |     DISABLED  
 digital pin 18    |   Z probe                           |     OK working  

- pin 3  is labeled as min X endstop in RAMPS
- pin 14 is labeled as min Y
- pin 18 is labeled as min Z (connect the probe wires here)

UNTESTED:
- Spindle ON:        digital pin 10 (one of the transistor outputs)
- Spindle direction: digital pin 9  (one of the transistor outputs)
- Coolant ON:        digital pin 8  (one of the transistor outputs)
OPTION B: USING SANGUINOLOLU BOARD

  Sanguinololu 1.3a|    GRBL                             |    Test  
 X axis            |   X axis                            |     OK working  
 Y axis            |   Y axis                            |     OK working  
 Z axis            |   Z axis                            |     OK working  
 digital pin 18    |   min X                             |     OK working  
 digital pin 19    |   min Y                             |     OK working  
 (min Z disabled)  |   min Z                             |     DISABLED  
 digital pin 20    |   Z probe                           |     OK working  

- pin 18 is labeled as X-STOP (endstop) in Sanguinololu
- pin 19 is labeled as Y-STOP
- pin 20 is labeled as Z-STOP (connect the probe wires here)

UNTESTED:
- Spindle ON:        Hotend power output
- Spindle direction: Extruder direction pin
- Coolant ON:        Heat-bed power output

Steppers redirected to fastio.h from marlin firmware
min switches remaped to the same position in RAMPS
command buttons currently disabled
Ramps pins config moved to ramps.h
cpu_map.h - min switches
added GRBL_RAMPS1_4.ino for arduino IDE


Sanguinololu support

Check this folder for additional documentation regarding Sanguinololu boards.


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, all other primary g-code commands. Macro functions, variables, and most canned cycles are not supported, but we think GUIs can do a much better job at translating them into straight g-code anyhow.

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.


Master Branch:

Archives:


Update Summary for v0.9 from v0.8

-

List of Supported G-Codes in Grbl v0.9
  - Non-Modal Commands: G4, G10 L2, G10 L20, G28, G30, G28.1, G30.1, G53, G92, G92.1
  - Motion Modes: G0, G1, G2, G3, G38.1, G80
  - Feed Rate Modes: G93, G94
  - Unit Modes: G20, G21
  - Distance Modes: G90, G91
  - Plane Select Modes: G17, G18, G19
  - Tool Length Offset Modes: G43.1, G49
  - Coordinate System Modes: G54, G55, G56, G57, G58, G59
  - Program Flow: M0, M1, M2, M30*
  - Coolant Control: M7*, M8, M9
  - Spindle Control: M3, M4, M5

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