-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprinter.cfg
447 lines (373 loc) · 10.6 KB
/
printer.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
[bltouch]
sensor_pin: ^P1.26 # Pull-up (^ symbol) needed in open drain mode
control_pin: P2.0
x_offset: 32.5
y_offset: 5
z_offset: 1.35
samples_tolerance: 0.300
speed: 20
sample_retract_dist: 3
samples: 2
[stepper_x]
step_pin: P2.2
dir_pin: !P2.6
enable_pin: !P2.1
step_distance: .01265
endstop_pin: !P1.29
position_endstop: -18
position_min: -18
position_max: 250
homing_speed: 80
[stepper_y]
step_pin: P0.19
dir_pin: !P0.20
enable_pin: !P2.8
step_distance: .0101
endstop_pin: !P1.27
position_endstop: -20
position_min: -20
position_max: 260
homing_speed: 50
[stepper_z]
step_pin: P0.22
dir_pin: P2.11
enable_pin: !P0.21
step_distance: .0025
endstop_pin: probe:z_virtual_endstop
position_min: -30
position_max: 230
[stepper_z1]
step_pin: P0.1
dir_pin: P0.0
enable_pin: !P0.10
step_distance: .0025
position_min: -30
position_max: 230
[extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
step_distance: 0.01513
nozzle_diameter: 0.4
filament_diameter: 1.750
heater_pin: P2.7
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: P0.24
min_temp: 1
max_temp: 250
max_extrude_only_distance: 500
[heater_bed]
heater_pin: P2.5
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: P0.23
min_temp: 1
max_temp: 120
[fan]
pin: P2.3
[mcu]
serial: /dev/serial/by-id/usb-Klipper_lpc1768_1B60000D06083DAFB994715CC72000F5-if00
[printer]
kinematics: cartesian
max_velocity: 200
max_accel: 2000
max_z_velocity: 25
max_z_accel: 100
########################################
# TMC2208 configuration
########################################
[tmc2209 stepper_x]
uart_pin: P1.17
microsteps: 16
run_current: 0.500
hold_current: 0.350
stealthchop_threshold: 250
[tmc2208 stepper_y]
uart_pin: P1.15
microsteps: 16
run_current: 0.500
hold_current: 0.350
stealthchop_threshold: 250
[tmc2208 stepper_z]
uart_pin: P1.10
microsteps: 16
run_current: 0.500
hold_current: 0.250
stealthchop_threshold: 30
[tmc2208 stepper_z1]
uart_pin: P1.1
microsteps: 16
run_current: 0.500
hold_current: 0.250
stealthchop_threshold: 30
[tmc2209 extruder]
uart_pin: P1.8
microsteps: 16
run_current: 0.550
hold_current: 0.500
stealthchop_threshold: 250
[bed_mesh]
speed: 50
sample_retract_dist: 7
mesh_min: 10,30
mesh_max: 190,197
probe_count: 7,7
algorithm: bicubic
[gcode_macro G29]
gcode:
G28
G1 X0 Y0 Z30 F3000
BED_MESH_PROFILE LOAD=aneta8
G1 X0 Y0 Z30 F3000
[gcode_macro LEVEL_BED]
gcode:
G28
BED_MESH_CALIBRATE
BED_MESH_PROFILE SAVE=aneta8
G1 X0 Y0 Z30 F3000
SAVE_CONFIG
[display]
lcd_type: hd44780
rs_pin: EXP1_4
e_pin: EXP1_3
d4_pin: EXP1_5
d5_pin: EXP1_6
d6_pin: EXP1_7
d7_pin: EXP1_8
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
#kill_pin: ^!EXP2_8
[output_pin beeper]
pin: EXP1_1
[homing_override]
set_position_z: 20
axes: z
gcode:
BLTOUCH_DEBUG COMMAND=reset
G91
G1 Z10
G90
G28 X0 Y0
G1 X110 Y110 F6000
G28 Z0
G1 Z20 F4000
[gcode_macro PURGE30]
gcode:
G0 X0 Y0
G92 E0
G1 E30 F100
[gcode_macro PURGE100]
gcode:
G0 X0 Y0
G92 E0
G1 E100 F100
[gcode_macro CLEAN_NOZZLE]
gcode:
M117 Clean Nozzle...
G0 X-10 Y208 Z8 F7000
G0 X-10 Y148 Z8 F7000
G0 X-14 Y148 Z8 F7000
G0 X-14 Y208 Z8 F7000
G0 X-10 Y208 Z8 F7000
G0 X-10 Y148 Z8 F7000
G0 X-14 Y148 Z8 F7000
G0 X-14 Y208 Z8 F7000
G0 Z10 F7000
M117 Clean Done!
######################################################################
######################################################################
######################################################################
######################################################################
# Start Print and End Print
######################################################################
[gcode_macro START_PRINT]
default_parameter_BED_TEMP: 70
default_parameter_EXTRUDER_TEMP: 215
gcode:
M117 Starting...
G92 E0
M140 S{BED_TEMP} # Start bed heating
G90 # Use absolute coordinates
SET_GCODE_OFFSET Z=0.0
# Set and wait for nozzle to reach temperature
M109 S{EXTRUDER_TEMP}
M117 Bed Meshing..
G29
M117 Clean Nozzle..
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0
G1 E-5 F1000
G1 Z10 F3000 ;Move Z Axis up
M117 Let's go!
[gcode_macro END_PRINT]
gcode:
# Turn off bed, extruder, and fan
M140 S0
M104 S0
M106 S0
# Move nozzle away from print while retracting
G91
# Raise nozzle by 10mm
G1 Z10 F3000
G1 E-10 F800
G28 X0 Y220 F3000
G90
# Disable steppers
M84
######################################################################
######################################################################
######################################################################
######################################################################
######################################################################
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
# EXP2 header
EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
# Mesh Bed Leveling. One may define a [bed_mesh] config section
# to enable move transformations that offset the z axis based
# on a mesh generated from probed points. Note that bed_mesh
# and bed_tilt are incompatible, both cannot be defined.
# call with BED_MESH_CALIBRATE (not G29...)
[bed_mesh]
speed: 50
# The speed (in mm/s) of non-probing moves during the
# calibration. The default is 50.
horizontal_move_z: 5
# The height (in mm) that the head should be commanded to move to
# just prior to starting a probe operation. The default is 5.
samples: 1
# The number of times to probe each point. The probed z-values
# will be averaged. The default is to probe 1 time.
sample_retract_dist: 10.0
# The distance (in mm) to retract between each sample if
# sampling more than once. Default is 2mm.
mesh_min: 20,20
# An X,Y point defining the minimum coordinate to probe on
# the bed. Note that this refers to the nozzle position,
# and take care that you do not define a point that will move
# the probe off of the bed. This parameter must be provided.
mesh_max: 200,200
# An X,Y point defining the maximum coordinate to probe on
# the bed. Follow the same precautions as listed in min_point.
# Also note that this does not necessarily define the last point
# probed, only the maximum coordinate. This parameter must be provided.
probe_count: 6,6
# A comma separated pair of integer values (X,Y) defining the number
# of points to probe along each axis. A single value is also valid,
# in which case that value will be for both axes. Default is 3,3
# which probes a 3x3 grid.
fade_start: 1.0
# The z-axis position in which to start phasing z-adjustment out.
# Default is 1.0.
fade_end: 10.0
# The z-axis position in which phase out is complete. If this
# value is less than or equal to fade_start then phasing out
# is disabled. Default is 10.0.
split_delta_z: .025
# The amount of Z difference (in mm) along a move that will
# trigger a split. Default is .025.
move_check_distance: 5.0
# The distance (in mm) along a move to check for split_delta_z.
# This is also the minimum length that a move can be split. Default
# is 5.0.
mesh_pps: 2,2
# A comma separated pair of integers (X,Y) defining the number of
# points per segment to interpolate in the mesh along each axis. A
# "segment" can be defined as the space between each probed
# point. The user may enter a single value which will be applied
# to both axes. Default is 2,2.
algorithm: bicubic
# The interpolation algorithm to use. May be either "lagrange"
# or "bicubic". This option will not affect 3x3 grids, which
# are forced to use lagrange sampling. Default is lagrange.
bicubic_tension: .2
# When using the bicubic algorithm the tension parameter above
# may be applied to change the amount of slope interpolated.
# Larger numbers will increase the amount of slope, which
# results in more curvature in the mesh. Default is .2.
[display]
lcd_type: st7920
cs_pin: EXP1_4
sclk_pin: EXP1_5
sid_pin: EXP1_3
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
#kill_pin: ^!EXP2_8
[output_pin beeper]
pin: EXP1_1
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
# EXP2 header
EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 29.036
#*# pid_ki = 1.574
#*# pid_kd = 133.931
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 74.380
#*# pid_ki = 1.952
#*# pid_kd = 708.469
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.516250, -0.355000, -0.161250, 0.038750, 0.286250, 0.598750
#*# -0.475000, -0.320000, -0.168750, 0.021250, 0.250000, 0.513750
#*# -0.388750, -0.301250, -0.187500, -0.058750, 0.127500, 0.373750
#*# -0.325000, -0.253750, -0.186250, -0.081250, 0.068750, 0.238750
#*# -0.270000, -0.250000, -0.225000, -0.133750, -0.012500, 0.128750
#*# -0.222500, -0.248750, -0.211250, -0.161250, -0.056250, 0.047500
#*# x_count = 6
#*# y_count = 6
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 19.9974
#*# max_x = 199.99425
#*# min_y = 19.9994
#*# max_y = 200.0016
#*#
#*# [bed_mesh aneta8]
#*# version = 1
#*# points =
#*# -0.516250, -0.355000, -0.161250, 0.038750, 0.286250, 0.598750
#*# -0.475000, -0.320000, -0.168750, 0.021250, 0.250000, 0.513750
#*# -0.388750, -0.301250, -0.187500, -0.058750, 0.127500, 0.373750
#*# -0.325000, -0.253750, -0.186250, -0.081250, 0.068750, 0.238750
#*# -0.270000, -0.250000, -0.225000, -0.133750, -0.012500, 0.128750
#*# -0.222500, -0.248750, -0.211250, -0.161250, -0.056250, 0.047500
#*# x_count = 6
#*# y_count = 6
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 19.9974
#*# max_x = 199.99425
#*# min_y = 19.9994
#*# max_y = 200.0016