-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer.cfg
418 lines (320 loc) · 7.95 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
[include mainsail.cfg]
[include macros.cfg]
# 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
;[probe]
;pin: tmc5160_stepper_z:virtual_endstop
;z_offset: 1.5
[endstop_phase]
[safe_z_home]
home_xy_position: 340,180 # Change coordinates to the center of your print bed
speed: 100
z_hop: 20 # Move up 10mm
z_hop_speed: 5
#[bed_mesh]
#speed: 100
#horizontal_move_z: 10
#mesh_min: 10,10
#mesh_max: 690,365
#probe_count: 8,5
#mesh_pps: 2,2
#algorithm: bicubic
#bicubic_tension: 0.2
[gcode_arcs]
resolution: 1.0
#*********************************************
#STEPPER X & X1
#*********************************************
[stepper_x]
step_pin: P2.2
dir_pin: P2.6
enable_pin: !P2.1
rotation_distance = 32
microsteps: 16
endstop_pin: tmc5160_stepper_x:virtual_endstop
position_endstop: 0
position_max: 690
homing_speed: 40
homing_retract_dist: 0
[stepper_x1]
step_pin: P0.19
dir_pin: !P0.20
enable_pin: !P2.8
rotation_distance = 32
microsteps: 16
endstop_pin: tmc5160_stepper_x1:virtual_endstop
#*********************************************
#STEPPER X & X1
#*********************************************
[tmc5160 stepper_x]
cs_pin: P1.10
diag1_pin: !P1.29
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P1.17
spi_software_sclk_pin: P0.4
sense_resistor: 0.075
driver_IHOLDDELAY: 6
driver_TPOWERDOWN: 10
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 1
driver_HSTRT: 4
driver_tpfd: 0
driver_pwm_autoscale: True
driver_pwm_autograd: True
driver_pwm_freq: 2
driver_PWM_GRAD: 0
driver_PWM_OFS: 0
driver_PWM_REG: 0
driver_PWM_LIM: 0
run_current: 1.2
#X
driver_SGT: 2 # -64 is most sensitive value, 63 is least sensitive
stealthchop_threshold: 0
[tmc5160 stepper_x1]
cs_pin: P1.9
diag1_pin: !P1.28
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P1.17
spi_software_sclk_pin: P0.4
sense_resistor: 0.075
driver_IHOLDDELAY: 6
driver_TPOWERDOWN: 10
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 1
driver_HSTRT: 4
driver_tpfd: 0
driver_pwm_autoscale: True
driver_pwm_autograd: True
driver_pwm_freq: 2
driver_PWM_GRAD: 0
driver_PWM_OFS: 0
driver_PWM_REG: 0
driver_PWM_LIM: 0
run_current: 1.2
#hold_current: .7
#X1
driver_SGT: 2 # -64 is most sensitive value, 63 is least sensitive
stealthchop_threshold: 0
#*********************************************
#STEPPER Y
#*********************************************
[stepper_y]
enable_pin: !P0.21
step_pin: P0.22
dir_pin: P2.11
rotation_distance = 32
microsteps: 16
endstop_pin: tmc5160_stepper_y:virtual_endstop
#position_max: 365
position_max: 390
homing_speed: 40
homing_retract_dist: 0
position_endstop: 0
#*********************************************
#STEPPER Y1
#*********************************************
[stepper_y1]
enable_pin: !P2.12
step_pin: P2.13
dir_pin: !P0.11
rotation_distance = 32
microsteps: 16
endstop_pin: tmc5160_stepper_y1:virtual_endstop
#*********************************************
#STEPPER Y & Y1
#*********************************************
[tmc5160 stepper_y]
cs_pin: P1.8
diag1_pin: !P1.27
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P1.17
spi_software_sclk_pin: P0.4
sense_resistor: 0.075
driver_IHOLDDELAY: 6
driver_TPOWERDOWN: 10
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 1
driver_HSTRT: 4
driver_tpfd: 0
driver_pwm_autoscale: True
driver_pwm_autograd: True
driver_pwm_freq: 2
driver_PWM_GRAD: 0
driver_PWM_OFS: 0
driver_PWM_REG: 0
driver_PWM_LIM: 0
run_current: 1.2
#hold_current: .7
#Y
driver_SGT: 2 # -64 is most sensitive value, 63 is least sensitive
[tmc5160 stepper_y1]
cs_pin: P1.4
diag1_pin: !P1.26
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P1.17
spi_software_sclk_pin: P0.4
sense_resistor: 0.075
driver_IHOLDDELAY: 6
driver_TPOWERDOWN: 10
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 1
driver_HSTRT: 4
driver_tpfd: 0
driver_pwm_autoscale: True
driver_pwm_autograd: True
driver_pwm_freq: 2
driver_PWM_GRAD: 0
driver_PWM_OFS: 0
driver_PWM_REG: 0
driver_PWM_LIM: 0
run_current: 1.2
#hold_current: .7
#Y1
driver_SGT: 2 # -64 is most sensitive value, 63 is least sensitive
#*********************************************
#STEPPER Z
#*********************************************
[stepper_z]
enable_pin: !P1.16
step_pin: P1.15
dir_pin: !P1.14
#rotation_distance = <full_steps_per_rotation> * <microsteps> * <step_distance>
#rotation_distance = 400( 0.9 stepper motors ) * 32 * 0.00060 = 16
rotation_distance = 8
microsteps: 32
endstop_pin: tmc5160_stepper_z:virtual_endstop
position_max: 100
homing_speed: 3
homing_retract_dist: 0
homing_positive_dir: false
position_endstop: 1.40
position_min: -20
[tmc5160 stepper_z]
cs_pin: P1.1
diag1_pin: !P1.25
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P1.17
spi_software_sclk_pin: P0.4
sense_resistor: 0.075
driver_IHOLDDELAY: 6
driver_TPOWERDOWN: 10
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 1
driver_HSTRT: 4
driver_tpfd: 0
driver_pwm_autoscale: True
driver_pwm_autograd: True
driver_pwm_freq: 2
driver_PWM_GRAD: 0
driver_PWM_OFS: 0
driver_PWM_REG: 0
driver_PWM_LIM: 0
run_current: .95
#hold_current: 0.35
stealthchop_threshold: 0
#Z
driver_SGT: 3 # -64 is most sensitive value, 63 is least sensitive
[mcu]
serial: /dev/serial/by-id/usb-Klipper_lpc1769_2240001780A037AFC8E4BF5BC22000F5-if00
[printer]
kinematics: cartesian
max_velocity: 15000
max_accel: 500
max_z_velocity: 50
max_z_accel: 200
[virtual_sdcard]
path: ~/printer_data/gcodes
# "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
#[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
#[output_pin beeper]
#pin: EXP1_1
#pwm: True
#value: 0
#shutdown_value: 0
#cycle_time: 0.001
#scale: 1000
[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"
[gcode_macro G29]
gcode:
G28
BED_MESH_CALIBRATE METHOD=manual
G90
G0 X345 Y183 Z30 F5000
G1 Z30 F300
SAVE_CONFIG
[gcode_macro M17]
gcode:
SET_STEPPER_ENABLE STEPPER=stepper_x ENABLE=1
SET_STEPPER_ENABLE STEPPER=stepper_x1 ENABLE=1
SET_STEPPER_ENABLE STEPPER=stepper_y ENABLE=1
SET_STEPPER_ENABLE STEPPER=stepper_y1 ENABLE=1
SET_STEPPER_ENABLE STEPPER=stepper_z ENABLE=1
#[gcode_macro M900]
#gcode: SET_PRESSURE_ADVANCE ADVANCE={K}
[gcode_macro m205]
gcode:
G4
# Gcode for clearing the display
#[delayed_gcode clear_display]
#gcode:
# M117
[gcode_macro G80]
gcode:
BED_MESH_CALIBRATE
G1 X194 Y162 F3600
[gcode_macro G81]
gcode:
BED_MESH_OUTPUT
# Idle timeout. An idle timeout is automatically enabled - add an
# explicit idle_timeout config section to change the default settings.
[idle_timeout]
#gcode:
# A list of G-Code commands to execute on an idle timeout. See
# docs/Command_Templates.md for G-Code format. The default is to run
# "TURN_OFF_HEATERS" and "M84".
timeout: 120
# Idle time (in seconds) to wait before running the above G-Code
# commands. The default is 600 seconds.
# Gcode executed when the printer is ready
[delayed_gcode on_ready]
initial_duration: 1
gcode:
SET_IDLE_TIMEOUT TIMEOUT=3000000
# M117 Ciao Cristian
#UPDATE_DELAYED_GCODE ID=clear_display DURATION=10
######################################################################
# Start Print and End Print
######################################################################
# Replace the slicer's custom start and end g-code scripts with
# START_PRINT and END_PRINT.
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [endstop_phase stepper_z]
#*# trigger_phase = 63/128
#*#
#*# [endstop_phase stepper_x]
#*# trigger_phase = 46/64
#*#
#*# [endstop_phase stepper_y]
#*# trigger_phase = 31/64