GithubHelp home page GithubHelp logo

mdmtseng / grblpunch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from barrelorgandiscovery/grblpunch

0.0 1.0 0.0 3.92 MB

Fork from grbl, to specialize the usage for barrel organ punch machines.

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

License: Other

Makefile 0.91% C++ 0.70% C 98.39%

grblpunch's Introduction

Patch for GRBL project supporting the creation of punch machine for barrel organs.

The original GRBL Project is located at : http://github.com/grbl/grbl this project is a fork specialized in punch machines as below. It has a X and Y axis plus a punch command for punching holes in the barrel organ book.

This GRBL project has a gui for handling the punch plan, and grbl control using a PC, Mac or Linux. please see the associated software website : www.barrel-organ-discovery.org

Punch machine designed and constructed by Jean Pierre Rosset.

Introduction

This patch add a new M100 GCode command designed for punching machines. This new punching M100 command handle the punch cycle. This command permit to wire the punch actuators and sensor and use them in a GCode program

The punch cycle introducted is the following

  • activate the punch down actuator
  • wait for the punch to be on bottom (wait the activation of the punchdown sensor)
  • activate the punch up actuator
  • wait for the punch to be up

at least you must have two sensors for the punch positions (up and down). the activation of the up actuator is optional as some punch actuator, once desactivated, move up the punch.

Only Arduino Uno CPU is supported yet in this version.

Grbl introducted modifications

In the adjustment of grbl software :

  • The spindle is disconnected, and the pins are reuse for punching
  • The D12 and D13 are now used for handling the actuators for the punch
  • The A4 and A5 pins for detecting the state of the punch (up or down)

All other pins are remained the same.

Arduino Uno connexions used by this patch

Schematic View

Prototype view

Video demonstrating the new GCode Command

https://www.youtube.com/watch?v=Sks70Pnujw8

Install the Grbl Punch software on Arduino Uno

the Easiest way to install the software is to use the XLoader software

you can download this software at this url http://russemotto.com/xloader/

Launch XLoader

Upload the grblPunch.hex file,

Warning : please download the hole project as a zip file, and take the grblPunch.hex file from it. Using internet Explorer to save the file as a text file can corrupt the file.

That's all

You can then use the universal code sender to connect and configure the elements.

Settings

Additional settings are introducted in this version of grbl, $30, $31, $32, $33 for adjusting the behaviour of the punch cycle, depending on the actuator and sensors used.

>>>> $30=0 (punch actuator down invert, bool)
>>>> $31=0 (punch actuator up invert, bool)
>>>> $32=1 (punch sensor down invert, bool)
>>>> $33=1 (punch sensor up invert, bool)

the $32 and $33 settings permit to invert the detection of the punch position.

setting value description
$30 0 The punch down actuator is activated if the PIN is at "5v"
$30 1 The punch down actuator is activated if the PIN is at "0v"
$31 0 The punch up actuator is activated if the PIN is at "5v"
$31 1 The punch up actuator is activated if the PIN is at "0v"
$32 0 The punch down is detected down if the sensor is "0v"
$32 1 The punch down is detected down if the sensor is "5v"
$33 0 The punch up is detected up if the sensor is "0v"
$33 1 The punch up is detected up if the sensor is "5v"

you can view the associated parameters in launching the $$ command

$$
$0=10 (step pulse, usec)
$1=25 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=0 (dir port invert mask:00000000)
$4=0 (step enable invert, bool)
$5=0 (limit pins invert, bool)
$6=0 (probe pin invert, bool)
$10=3 (status report mask:00000011)
$11=0.010 (junction deviation, mm)
$12=0.002 (arc tolerance, mm)
$13=0 (report inches, bool)
$20=0 (soft limits, bool)
$21=0 (hard limits, bool)
$22=0 (homing cycle, bool)
$23=0 (homing dir invert mask:00000000)
$24=25.000 (homing feed, mm/min)
$25=500.000 (homing seek, mm/min)
$26=250 (homing debounce, msec)
$27=1.000 (homing pull-off, mm)
>>>> $30=0 (punch actuator down invert, bool)
>>>> $31=0 (punch actuator up invert, bool)
>>>> $32=0 (punch sensor down invert, bool)
>>>> $33=0 (punch sensor up invert, bool)
$100=250.000 (x, step/mm)
$101=250.000 (y, step/mm)
$102=250.000 (z, step/mm)
$110=500.000 (x max rate, mm/min)
$111=500.000 (y max rate, mm/min)
$112=500.000 (z max rate, mm/min)
$120=10.000 (x accel, mm/sec^2)
$121=10.000 (y accel, mm/sec^2)
$122=10.000 (z accel, mm/sec^2)
$130=200.000 (x max travel, mm)
$131=200.000 (y max travel, mm)
$132=200.000 (z max travel, mm)

you can change a setting value using

$33=1

Improvements - RoadMap

2016 - February

  • fix sensor detection, additional material has been setted up, we still need 2 sensors for the punch (eliminating the time in the equation)

2015 - November

  • by settings,
    • able to use a "pull up" logic on the hard limit
    • or use two 0-1 detector on both side of the X axis

2015 - November

  • Validation of the master branch with a real machine

Todo

  • Check at startup that the punch is up, before starting (part of the homing cycle checks)

grblpunch's People

Contributors

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

Watchers

 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.