GRBL Settings For My IndyMill Build

As it turns out there is some math required to figure out some of the GRBL values! Although GRBL is no longer being developed, its still very popular and Nikodem used this for the orginal IndyMill so not about to re-invent the wheel for a domain in which I have very little understanding!

Most of the below is straight from the docs

Misc

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$0=10         (step pulse, usec)
$1=25 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=6 (dir port invert mask:00000110)
$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.020 (junction deviation, mm)
$12=0.002 (arc tolerance, mm)
$13=0 (report inches, bool)
$20=0 (soft limits, bool)
$21=1 (hard limits, bool) ~ these are for the limit switches
$22=0 (homing cycle, bool)
$23=1 (homing dir invert mask:00000001)
$24=50.000 (homing feed, mm/min)
$25=635.000 (homing seek, mm/min)
$26=250 (homing debounce, msec)
$27=1.000 (homing pull-off, mm)

Cartesian – [X,Y,Z] steps/mm

Stepper motor steps:

1
2
3
motor_steps = degrees_in_a_circle / stepper_motor_step_angle
motor_steps = 360 / 1.8
motor_steps = 200

Driver micro steps:

(typically 1, 2, 4, 8, or 16). Using high microstep values (ie 16) can reduce your stepper motor torque, so use the lowest that gives you the desired axis resolution and comfortable running properties.

1
2
microsteps are calculated based on the dip switchs on the stepper drivers
mine is pre set to 8 so I rolled with it as Im a noob

MM per revolution:

1
2
3
4
1605 ball screws for x,y
05 means 5mm for 1 full rotation

the z has is 8mm on the trapezoidal lead screw

Finally some math:

1
2
3
4
5
6
7
8
9
10
11
x,y
steps_per_mm = (steps_per_revolution*microsteps)/mm_per_rev
steps_per_mm = (200 * 8) / 5
steps_per_mm = (1600) / 5
steps_per_mm = 320

z
steps_per_mm = (steps_per_revolution*microsteps)/mm_per_rev
steps_per_mm = (200 * 8) / 8
steps_per_mm = (1600) / 8
steps_per_mm = 200

Now the resulting GRBL:

XYZ Axis - Cartesian Coordinate System

1
2
3
$100=320       (x, step/mm)
$101=320 (y, step/mm)
$102=200 (z, step/mm)

Also see grbl settings 101 a how to guide

Rates

1
2
3
$110=635.000 (x max rate, mm/min)
$111=635.000 (y max rate, mm/min)
$112=635.000 (z max rate, mm/min)

Acceleration

1
2
3
$120=50.000 (x accel, mm/sec^2)
$121=50.000 (y accel, mm/sec^2)
$122=50.000 (z accel, mm/sec^2)

Maximum Travel

1
2
3
$130=225.000 (x max travel, mm)
$131=125.000 (y max travel, mm)
$132=170.000 (z max travel, mm)