Skip to content

Instantly share code, notes, and snippets.

@slindberg
Last active December 31, 2016 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slindberg/c95765b1d42619cdb77d97610dc7d8c3 to your computer and use it in GitHub Desktop.
Save slindberg/c95765b1d42619cdb77d97610dc7d8c3 to your computer and use it in GitHub Desktop.
G-code for drawing an awesome face on a 3-axis CNC
%
(Modal reset)
G0 G90 G17 G40 H0 G70 G80
(Tool change - black sharpie)
G53 Z0.0
M06 T1
M19
G54 X0.0 Y0.0
G0 Z0.25 H1
(Head)
G0 X0.0 Y2.0
G1 Z-0.01 F30.0
G2 X0.0 I2.0
G0 Z0.25
(Mouth)
G0 X0.5 Y1.8
G1 Z-0.01
X3.3
G2 Y1.2 I-0.8 J-0.3
X0.626 Y1.5 I-1.3 J0.5
X0.64 Y1.8 I0.822 J0.112
G0 Z0.25
(Left Eye)
G0 X0.5 Y2.2
G1 Z-0.01
G2 X0.7 Y3.1 I0.7 J0.317
X1.4 Y2.2 I0.167 J-0.592
G1 X0.5
G0 Z0.25
X1.237 Y3.0
G1 Z-0.005
G3 X1.439 Y2.737 I0.018 J-0.195
G0 Z0.25
(Right Eye)
G0 X2.2 Y2.2
G1 Z-0.01
G2 X2.6 Y3.1 I0.585 J0.279
X3.2 Y2.2 I0.026 J-0.633
G1 X2.2
G0 Z0.25
X2.968 Y3.0
G1 Z-0.01
G3 X3.196 Y2.742 I0.044 J-0.191
G0 Z0.25
(Tool change - red marker)
G53 Z0.0
M06 T2
M19
G54 X0.0 Y0.0
G0 Z0.25 H2
(Tongue)
G0 X3.0 Y0.735
G1 Z-0.01
G3 X1.843 Y0.32 I-0.533 J-0.326
G0 Z0.25
(Return to home)
G0 Z0.0 H0
G91 G28 X0.0 Y0.0
M30
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment