GithubHelp home page GithubHelp logo

00mjk / qr2gcode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mittermayr/qr2gcode

0.0 0.0 0.0 243 KB

Generate a QR code and convert to executable Gcode for CNC machines

License: MIT License

Ruby 100.00%

qr2gcode's Introduction

qr2gcode

Generate a QR code and convert to executable GRBL/Gcode for CNC machines. Excellent for self-printing Bitcoin wallets!

a sample image of a CNC-milled QR Code

Requirements

Just gem install rqrcode

Syntax

ruby qr2gcode.rb 12345

This will generate a QR code on the fly (currently Level H, auto-sized), and then convert the data into a GCODE file by using each pixel of the QR code as a drilling/milling point. The file will be named qrcode.ngc and placed in the current directory.

Vertical refinement

There is an option to vertically refine, which simply means that after the program went through every single row of the code, the mill will then restart at the beginning and go through every column of the print to have lines go through more smoothly vertically as well.

Usage tips

For best results, make sure there is very high contrast between the milled paths and the untouched surrounding material. QR code readers can handle a lot of errors and poorly milled individual pixels, but they need that contrast to work well.

Possible adjustments and settings

  • You can turn off the border: add_border=false
  • You can adjust all coordinates: x_home, y_home, spacing, feed_rate, z_depth, z_hover, z_safe
  • You can adjust the QR code parameters, like error-level and other things

qr2gcode's People

Contributors

mittermayr 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.