GithubHelp home page GithubHelp logo

sanjaysp91 / grblforramps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from perivar/grblforramps

0.0 0.0 0.0 2.33 MB

RAMPS 1.4 fork of Grbl. An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino

Home Page: https://github.com/grbl/grbl/wiki

License: Other

C++ 2.41% C 97.59%

grblforramps's Introduction

GRBL 0.9j for Arduino Mega 2560 and RAMPS 1.4

This port was initally developed by ArSi [email protected] but has been enhanced to also support Arduino Mega 2560 + RAMPS 1.4 Board (including limit switches, homing and probing support). It's based on Grbl v0.9j Atmega328p 16mhz 115200baud with generic defaults (2016-03-17).

For my home made CNC machine I have connected the limit switches as per the RAMPS 1.4 standard connection and not the grbl standard: I.e. grbl for ramps limit and probe connection

This is the key configuration parameters for making both limit switching and probing working on my RAMPS 1.4 CNC machine: grbl RAMPS 1.4 config parameters

#define DEFAULT_INVERT_ST_ENABLE 0 // false
#define DEFAULT_INVERT_LIMIT_PINS 0 // false
// Uses software limits in the firmware to keep the printer from going too far in the opposite direction and hardware endstops for min
#define DEFAULT_SOFT_LIMIT_ENABLE 1 // true
#define DEFAULT_HARD_LIMIT_ENABLE 1 // true
#define DEFAULT_HOMING_ENABLE 1 // true
#define DEFAULT_HOMING_DIR_MASK ((1<<X_AXIS)|(1<<Y_AXIS)|(0<<Z_AXIS)) // X and Y endstop installed to the minimum (zero point). Z max installed and Z Min used for probe

On the RAMPS board the spindle direction output pins can be found under SERVOS

  • SPINDLE_ENABLE_BIT = MEGA2560 Digital Pin 6
  • SPINDLE_DIRECTION_BIT = MEGA2560 Digital Pin 5

On the RAMPS board the flood and mist coolant enable output pins can be found under AUX-1

  • COOLANT_FLOOD_BIT = MEGA2560 Digital Pin 0
  • COOLANT_MIST_BIT = MEGA2560 Digital Pin 1

On the RAMPS board user-control CONTROLs (cycle start, reset, feed hold) input pins can be found under AUX-2

  • RESET_BIT = MEGA2560 Analog Pin 9
  • FEED_HOLD_BIT = MEGA2560 Analog Pin 10
  • CYCLE_START_BIT = MEGA2560 Analog Pin 11
  • SAFETY_DOOR_BIT = MEGA2560 Analog Pin 12

Updated to use platformio

build using the following commands

$pio run

Upload to your board using

$pio run --target upload

Regards, Per Ivar

grblforramps's People

Contributors

chamnit avatar simen avatar tmpvar avatar protoneer avatar jgeisler0303 avatar perivar avatar robgrz avatar diara628 avatar poelstra avatar eliteeng avatar 0xpit avatar hin avatar henols avatar michmerr avatar daapp avatar binaryconstruct avatar beardicus avatar shapeoko avatar kfoltman avatar alpharesearch avatar martinstingl avatar buserror avatar paulkaplan avatar scottrcarlson avatar silasb avatar rustyoz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.