-
Notifications
You must be signed in to change notification settings - Fork 4
/
Ender5.cfg
490 lines (443 loc) · 10.1 KB
/
Ender5.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
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
# This file contains common pin mappings for the BIGTREETECH SKR V1.4
# board. To use this config, the firmware should be compiled for the
# LPC1768 or LPC1769(Turbo).
# See the example.cfg file for a description of available parameters.
[stepper_x]
step_pin: P2.2
dir_pin: P2.6
enable_pin: !P2.1
step_distance: 0.0125
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_min: 0
position_endstop: 249
position_max: 249
homing_speed: 50
homing_retract_dist: 0
homing_positive_dir: True
[tmc2209 stepper_x]
uart_pin: P1.10
diag_pin: ^P1.29
microsteps: 16
interpolate: True
run_current: 0.500
hold_current: 0.450
sense_resistor: 0.110
stealthchop_threshold: 200
driver_IHOLDDELAY: 8
driver_TPOWERDOWN: 20
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 0
driver_HSTRT: 5
driver_PWM_AUTOGRAD: True
driver_PWM_AUTOSCALE: True
driver_PWM_LIM: 12
driver_PWM_REG: 8
driver_PWM_FREQ: 1
driver_PWM_GRAD: 14
driver_PWM_OFS: 36
driver_SGTHRS: 100
[stepper_y]
step_pin: P0.19
dir_pin: !P0.20
enable_pin: !P2.8
step_distance: 0.0125
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_min: 0
position_endstop: 223
position_max: 223
homing_speed: 50
homing_retract_dist: 0
homing_positive_dir: True
[tmc2209 stepper_y]
uart_pin: P1.9
diag_pin: ^P1.28
microsteps: 16
interpolate: True
run_current: 0.600
hold_current: 0.500
sense_resistor: 0.110
stealthchop_threshold: 200
driver_IHOLDDELAY: 8
driver_TPOWERDOWN: 20
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 0
driver_HSTRT: 5
driver_PWM_AUTOGRAD: True
driver_PWM_AUTOSCALE: True
driver_PWM_LIM: 12
driver_PWM_REG: 8
driver_PWM_FREQ: 1
driver_PWM_GRAD: 14
driver_PWM_OFS: 36
driver_SGTHRS: 100
[stepper_z]
step_pin: P0.22
dir_pin: !P2.11
enable_pin: !P0.21
step_distance: 0.00125
endstop_pin: probe: z_virtual_endstop
position_min: -4
position_max: 300
[tmc2209 stepper_z]
uart_pin: P1.8
microsteps: 16
interpolate: True
run_current: 0.500
hold_current: 0.450
sense_resistor: 0.110
stealthchop_threshold: 20
driver_IHOLDDELAY: 8
driver_TPOWERDOWN: 20
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 0
driver_HSTRT: 5
driver_PWM_AUTOGRAD: True
driver_PWM_AUTOSCALE: True
driver_PWM_LIM: 12
driver_PWM_REG: 8
driver_PWM_FREQ: 1
driver_PWM_GRAD: 14
driver_PWM_OFS: 36
[probe]
pin: ^!P0.10
x_offset: -52
y_offset: -4
z_offset: 0
speed: 10
samples: 2
sample_retract_dist: 3.0
samples_result: average
samples_tolerance: 0.100
samples_tolerance_retries: 1
[safe_z_home]
home_xy_position: 169,121
speed: 80
z_hop: 10
z_hop_speed: 10
[bed_mesh]
speed: 80
horizontal_move_z: 5
mesh_min: 10,10
mesh_max: 190,215
probe_count: 5,5
split_delta_z: .025
move_check_distance: 5.0
mesh_pps: 2,2
algorithm: bicubic
bicubic_tension: .2
[extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
step_distance: 0.00222758
nozzle_diameter: 0.400
filament_diameter: 1.750
#instantaneous_corner_velocity: 2.000
max_extrude_only_distance:150
heater_pin: P2.7
max_power: 0.5
sensor_type: NTC 100K beta 3950
sensor_pin: P0.24
control: pid
pid_Kp: 7.882
pid_Ki: 0.378
pid_Kd: 41.086
min_extrude_temp: 175
min_temp: 0
max_temp: 250
[tmc2209 extruder]
uart_pin: P1.4
microsteps: 16
run_current: 0.600
hold_current: 0.500
sense_resistor: 0.110
stealthchop_threshold: 200
driver_IHOLDDELAY: 8
driver_TPOWERDOWN: 20
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 0
driver_HSTRT: 5
driver_PWM_AUTOGRAD: True
driver_PWM_AUTOSCALE: True
driver_PWM_LIM: 12
driver_PWM_REG: 8
driver_PWM_FREQ: 1
driver_PWM_GRAD: 14
driver_PWM_OFS: 36
[heater_bed]
heater_pin: P2.5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.25
control: pid
pid_Kp: 63.520
pid_Ki: 1.013
pid_Kd: 995.678
min_temp: 0
max_temp: 100
[fan]
pin: P2.3
max_power: 0.5
hardware_pwm: False
cycle_time: 0.010
kick_start_time: 0.100
[heater_fan nfan]
pin: P2.4
hardware_pwm: False
cycle_time: 0.010
kick_start_time: 0.100
heater: extruder
heater_temp: 50.0
[mcu]
serial: /dev/serial/by-id/usb-Klipper_lpc1769_0B50FF0C28813AAFC2856A5CC72000F5-if00
baud: 115200
restart_method: command
[printer]
kinematics: cartesian
max_velocity: 150
max_accel: 2000
max_accel_to_decel: 1000
max_z_velocity: 10
max_z_accel: 200
square_corner_velocity: 10
[filament_switch_sensor fsensor]
pause_on_runout: True
runout_gcode:
M600
event_delay: 10.0
switch_pin: !P1.26
[display]
lcd_type: st7920
cs_pin: EXP1_7
sclk_pin: EXP1_6
sid_pin: EXP1_8
encoder_pins: ^EXP1_5, ^EXP1_3
click_pin: ^!EXP1_2
menu_timeout: 10
# custom display
[menu __octoprint __pause]
type: command
enable: toolhead.is_printing
name: Pause printing
gcode:
M600
[menu __octoprint __resume]
type: command
enable: !toolhead.is_printing
name: Resume printing
gcode:
RESUME_PRINT
[menu __filament __unload]
type: command
name: Unload Filament
gcode:
UNLOAD_FILAMENT
[menu __filament __load]
type: command
name: Load Filament
gcode:
LOAD_FILAMENT
[menu __filament __feed]
type: command
name: Purge Filament
gcode:
PURGE
[menu __filament resume]
type: command
name: Resume
gcode:
RESUME_PRINT
########################################
# 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"
# See the sample-lcd.cfg file for definitions of common LCD displays.
[delayed_gcode welcome]
initial_duration: 5
gcode:
M117 Welcome!
M118 Welcome!
UPDATE_DELAYED_GCODE ID=clear_display DURATION=10
[delayed_gcode clear_display]
gcode:
M117
M118
[virtual_sdcard]
path: ~/.octoprint/uploads/
[gcode_macro G29]
gcode:
G28
BED_MESH_CALIBRATE
BED_MESH_PROFILE SAVE=Ender5
M117 ABL Done
M118 ABL Done
UPDATE_DELAYED_GCODE ID=clear_display DURATION=10
[respond]
default_type: command
[idle_timeout]
gcode:
M84
TURN_OFF_HEATERS
timeout: 600
[pause_resume]
recover_velocity: 50
[firmware_retraction]
retract_length: 1
retract_speed: 25
unretract_speed: 25
[gcode_macro M206]
gcode:
SET_GCODE_OFFSET Z=-{params.Z}
# Filament change gcode, parameters are a default park position if no XYZ is specified - Z is relative.
[gcode_macro M600]
default_parameter_X: 245
default_parameter_Y: 220
default_parameter_Z: 10
gcode:
SAVE_GCODE_STATE NAME=M600_state
G91
G1 E-1 F2700
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000
UNLOAD_FILAMENT
TURN_OFF_HEATERS
M107 ;Turn-off fan
M118 Filament Runout Detected
M117 Filament Runout Detected
[gcode_macro RESUME_PRINT]
gcode:
SET_FILAMENT_SENSOR SENSOR=fsensor ENABLE=1
M109 S200
RESTORE_GCODE_STATE NAME=M600_state
RESUME
UPDATE_DELAYED_GCODE ID=clear_display DURATION=10
[gcode_macro LOAD_FILAMENT]
gcode:
M117 Loading Filament...
M118 Loading Filament...
M109 S190
M83
G1 E50 F150
G1 E40 F100
G92 E0.0
M400
M117 Load Complete
M118 Load Complete
TURN_OFF_HEATERS
SET_FILAMENT_SENSOR SENSOR=fsensor ENABLE=1
UPDATE_DELAYED_GCODE ID=clear_display DURATION=10
[gcode_macro UNLOAD_FILAMENT]
gcode:
SET_FILAMENT_SENSOR SENSOR=fsensor ENABLE=0
M117 waiting for hothend temperature
M118 waiting for hothend temperature
M109 S190
M117 Unloading Filament
M118 Unloading Filament
M83
G1 E0.5 F1000
G1 E-0.5 F1000
G1 E1.0 F1000
G1 E-1.0 F1000
G1 E1.5 F1000
G1 E-1.5 F1000
G1 E2.0 F1000
G1 E-140 F1000
M117 Removed Filament Now!
M118 Removed Filament Now!
TURN_OFF_HEATERS
M400
[gcode_macro PURGE]
gcode:
M117 PURGING...
M118 PURGING...
M109 S190
M83
G1 E20.0 F250
G90
TURN_OFF_HEATERS
SET_FILAMENT_SENSOR SENSOR=fsensor ENABLE=1
UPDATE_DELAYED_GCODE ID=clear_display DURATION=10
M400
[gcode_macro START_PRINT]
gcode:
SET_FILAMENT_SENSOR SENSOR=fsensor ENABLE=1
G92 E0 ; Reset Extruder
G28 ; Home all axes
BED_MESH_CALIBRATE ; auto bed level
#BED_MESH_PROFILE LOAD=Ender5
SET_GCODE_OFFSET Z=-1.1
#G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
#G1 X5.1 Y30 Z0.3 F5000.0 ; Move to start position
#G1 X5.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
#G1 X5.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
#G1 X5.4 Y30 Z0.3 F1500.0 E30 ; Draw the second line
#G92 E0 ; Reset Extruder
#G1 Z3.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
#G1 X10 Y20 Z1 F5000.0 ; Move over to prevent blob squish
M400
[gcode_macro END_PRINT]
gcode:
G91 ;Relative positioning
G92 E0.0
G1 E-4 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning
G1 X245 Y220 ;Present print
M107 ;Turn-off fan
TURN_OFF_HEATERS
M84 X Y E Z ;Disable all steppers
M400
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.069375, -0.114375, -0.175625, -0.221875, -0.208750
#*# -0.147500, -0.149375, -0.183125, -0.196250, -0.126250
#*# -0.140000, -0.127500, -0.149375, -0.147500, -0.089375
#*# -0.071875, -0.050625, -0.061875, -0.069375, -0.027500
#*# 0.073750, 0.078125, 0.061875, 0.033125, 0.083750
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 10.0000000001
#*# max_x = 190.0
#*# min_y = 10.0
#*# max_y = 215.0
#*#
#*# [bed_mesh Ender5]
#*# version = 1
#*# points =
#*# -0.069375, -0.114375, -0.175625, -0.221875, -0.208750
#*# -0.147500, -0.149375, -0.183125, -0.196250, -0.126250
#*# -0.140000, -0.127500, -0.149375, -0.147500, -0.089375
#*# -0.071875, -0.050625, -0.061875, -0.069375, -0.027500
#*# 0.073750, 0.078125, 0.061875, 0.033125, 0.083750
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 10.0000000001
#*# max_x = 190.0
#*# min_y = 10.0
#*# max_y = 215.0