ExtruXY GRBL (grbl remix of ExtruXY remix of ExtruH)
We calculate the final price from your selected file. You review and accept it before payment.
Saved on this device.
Files and information on converting the extruXY project to run on grbl.
- Rating
- 0 / 5
- Likes
- 16
- Downloads
- 48
- Makes
- 1
- Views
- 620
- Reviews
- 0
Updated at source:
Model information
- Source
- Printables
- Category
- Tools
- License
- Creative Commons — Attribution — Share Alike
This remix adds a few optional files for the extruxy project, which are useful when running the machine on grbl (although this is not required).
Drag Chains
Chains were made using this f3d file:
However I have included stls in the files.
I used two drag chains in my build, one for the X axis (5x8 link) and one of the Y axis (5x12 link).
The X axis chain is mounted on an piece of aluminium profile which spans the Y axis carriages. To install this rail, a riser is needed and there is also an optional belt protector to stop any wires getting into the belts.
These parts can be screwed into existing holes on the carrage.

At the end of the chain that mounts to the pen holder assembly another riser is needed:

The second drag chain (Y-axis) simply sits on the base alongside the machine. Relevant files are:
dragchain-5x12
dragchain-5x12-mountable (a couple of these at the end of the chain allows it to be mounted to the carriage)
dragchain-5x12-spacer (when mounting the chain it probably wants to be offset slightly away from the machine. This spacer does that.)
dragchain-clip (clip down the chain to the bed)
There are no bolt holes on the side of the Y carriage to connect the drag chain but short self-tapping/wood screws are fine. Just make sure they don't go all the way though to the 2040 rails.
Enclosure
The enclosure was built to house a arduino uno + CNC shield. Since the parts vary slightly in size I've included a riser to make the enclosure taller. This will almost certainly be needed though.

All the motors and switches are connected with JST-XH connectors (I'm using the latching kind, but I don't think it particularly matters). Wires with dupont connectors were soldered to the terminals of the board-mount JST connectors and these push-fit into the enclosure (although they could also be glued in). The dupont connectors then go to the pins on the CNC shield.
2, 3 and 4 pin connectors are required.
An external e-stop enclosure is provided that can accomodate an estop button with a ~16mm base. I'm using this one: https://www.aliexpress.com/item/1005004248444414.html?spm=a2g0o.order_list.order_list_main.53.4e971802T7161s (16mm, 1NO1NC)
A fan is required to cool the stepper drivers or the machine will likely crash. Either a 12v 40mm or 50mm fan will work.
Limit switches
You can use whatever limit switches you want. At least X- and Y- are required for homing.
Y-

X-

I used threaded inserts to attach these.
GRBL Hardware
In terms of hardware it's important to use a arduino uno rather than an arduino nano. This is because the coreXY config does not fit onto a nano (disabling some other options may allow it to fit, but in general an Uno is better).
I am using this one: https://www.aliexpress.com/item/1005008243030919.html?spm=a2g0o.order_list.order_list_main.41.4e971802T7161s (Keyestudio CNC Shield V2 Engraving Machine Kit For Arduino With UNO R3). There are many CNC shields available, however be warned the extremely cheap ones sometimes have unusual pin wiring that requires more grbl configuration. The V2 from this manufacturer is sufficent for a plotter. The drivers are quite loud, so replacing them with TMC2208 drivers (or similar) is worthwhile.
GRBL Software/Firmware
You must use a version of grbl with servo support. This one seems to work well: https://github.com/AntonEvmenenko/grbl-servo
(alternatively, here is a newer grbl version with servo support: https://github.com/bdring/Grbl_Pen_Servo)
Uploading it to the arduino is described better elsewhere but basically put this directory into your arduino libraries folder: https://github.com/AntonEvmenenko/grbl-servo/tree/master/grbl
Then use the upload example to build and write it to the arduino.
Some changes are required to the code:
Enable coreXY: https://github.com/AntonEvmenenko/grbl-servo/blob/master/grbl/config.h#L152
Update the homing config per this comment: https://github.com/AntonEvmenenko/grbl-servo/blob/master/grbl/config.h#L147
If the servo is not working properly try tweating these values: https://github.com/AntonEvmenenko/grbl-servo/blob/master/grbl/spindle_control.c#L28 (you most likely need to enable the RC_SERVO_INVERT option)
Once this is uploaded the machine should work, however some calibration is required via the grbl $$ settings to account for your steppers, drivers machine size and so on. It's not possible to provide this config as it depends on what components are used.
Firsly using a serial console or gcode-sender (try UGS) send $$to see your current settings.
This document describes the settings: https://www.diymachining.com/downloads/GRBL_Settings_Pocket_Guide_Rev_B.pdf
The most important ones to change are probably $100and $101which set the steps per mm of the machine. This can be calibrated as follows:
Put a pen in the machine and jog it somewhere in the middle of the bed.
Drop the pen and jog it exactly 10mm (e.g. send
G91; X10or UGS has a button to do this). Now measure the line that was drawn. (you can do X or Y).Calulate the values for
$100/$101with this forumlaUpdated Steps/mm = (Current Steps/mm) x 10 / Length of line drawnNote that
$100(X) and$101(Y) must have the same value. You can ignore Z.Set the new settings with
$100=[your new value]and$101=[your new value]Now draw another 10mm line and measure to confirm it is now accruate.
You can additionally tweak the max feed rate and acceleration settings to make the machine run faster depending on your steppers and drivers etc. Homing should also be enabled if you have limit switches installed.
My settings are as follows (but yours will be different):
$0=10 (step pulse, usec)
$1=255 (step idle delay, msec) // disable
$2=0 (step port invert mask:00000000)
$3=1 (dir port invert mask:00000001) // my wiring was slightly wrong
$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=1 (homing cycle, bool)
$23=3 (homing dir invert mask:00000011) // for some reason this is different
$24=25.000 (homing feed, mm/min)
$25=1500.000 (homing seek, mm/min)
$26=250 (homing debounce, msec)
$27=1.000 (homing pull-off, mm)
$100=78.710 (x, step/mm)
$101=78.710 (y, step/mm)
$102=250.000 (z, step/mm)
$110=2500.000 (x max rate, mm/min)
$111=2500.000 (y max rate, mm/min)
$112=500.000 (z max rate, mm/min)
$120=200.000 (x accel, mm/sec^2)
$121=200.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)GRBL-plotter
To run the machine you need a gcode sender. GRBL plotter, is a reasonable default if you don't have a strong opinion either way.
To lower/raise the servo you use g-code commands M3 S200 (can more or less to alter how the servo moves) and M5 respectively. You must configure these commands in the settings so that when g-code is generated it uses them to accutate the servo.
Once this is done you can drop an SVG into the programme and it will create the g-code and allow it to be run.
Before doing this it's important to home the machine and/or zero XY at the desired location.
To create interesting SVGs check out these tools: https://drawingbots.net/knowledge/tools
Troubleshooting
X and Y axis move wrongly for the given command e.g. X10 moves Y.
There are many reasons this happen but it's most likely a wiring issue (one or the other motor inverted). You can try changing the stepper invert mask to see if any value fixes it (there are only 4 values (0, 1, 2, 3) to try see this document).
X and Y only move in the + direction.
Likely the direction pin is not being set, or the stepper driver is faulty. Check your arduino shield's pins are mapped correct in the grbl cpu_map.
The machine doesn't know where it is in relation to the workpiece.
Remember to home the machine or zero X and Y.
The steppers make a knocking sound when running jobs
This may be caused by missed steps (e.g. feed rate too agressive, drivers not supplying enough power). But also I've found that the step idle delay (disables motrs when not moving) doesn't work that well for plotters with a large number of very small moves. You can disable it with $1=255.