GithubHelp home page GithubHelp logo

makeblock's Introduction

Arduino GCode Parser and Command-Line Tool

Unofficial fork of the Makeblock arduino gcode interpreter ready to run on the most excellent Makeblock XY-Plotter.

Additionally includes a command-line tool which can send your gcode files to the plotter without using the Arduino serial connection, and can render your gcode files to PostScript or other image format (using the convert utility from ImageMagick).

This repository splits the arduino files from the full Makeblock repository since I had no interest in the Java GRemote tool. The exact license of the arduino .ino files is a bit unclear (but at least must be compatible with the LGPL of the arduino Servo library), there is a bug report asking for upstream license clarification.

GCode

This controller supports codes: 0-4, 20, 21, 28, 30, 90, 91, 92.

See http://linuxcnc.org/docs/html/gcode.html for a good GCode reference, though this controller will never support most of the codes documented there.

Additionally, this interpreter supports the non-standard G22 to set units to cm.

For PEN UP use: G1 Z0

For PEN DOWN use: G1 Z90

Command-line tool

makeblock --help

Display usage information and available options.

makeblock run   SCRIPT

Run the given G code script. By default, exits on the first error unless --continue option is passed.

makeblock exec  COMMAND

Execute the given G code line.

makeblock render SCRIPT OUTPUT

Render a script to an image file.

makeblock draw SCRIPT

Draw an image on screen.

Dependencies

On a debian-based system, you can install the script dependencies using:

sudo apt-get install arduino imagemagick libdevice-serialport-perl libmethod-signatures-simple-perl libmoose-perl libmoosex-strictconstructor-perl libpath-class-perl

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.