-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter-20230420_235647.cfg
528 lines (451 loc) · 16.2 KB
/
printer-20230420_235647.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
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
# This file contains common pin mappings for the BIGTREETECH SKR mini
# E3 v3.0. To use this config, the firmware should be compiled for the
# STM32G0B1 with a "8KiB bootloader" and USB communication.
# The "make flash" command does not work on the SKR mini E3. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the SKR
# mini E3 with that SD card.
## Voron Design VORON 0.1 SKR Mini E3 V3 config
## *** THINGS TO CHANGE/CHECK: ***
## MCU path [mcu] section
## Z and Extruder motor currents [tmc2209 stepper_*] sections. Uncomment the stepper motor you have
## Full steps per rotation for Extruder [extruder] section
## Thermistor types [extruder] and [heater_bed] sections - See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types
## Extruder motor currents [extruder] section
## PID tune [extruder] and [heater_bed] sections
## Fine tune E steps [extruder] section
## For more info check https://docs.vorondesign.com/build/startup/#v0
[mcu]
#####################################################################
# Obtain definition by "ls -l /dev/serial/by-id/"
#####################################################################
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_2B001F001950425937353020-if00
[mcu EBB]
canbus_uuid: 279c9f0b8fb0
[printer]
kinematics: corexy
max_velocity: 800
max_accel: 20000
max_z_velocity: 15
max_z_accel: 45
square_corner_velocity: 6.0
[include speedtest.cfg]
[include bedfans.cfg]
[include mainsail.cfg]
[include sensorless.cfg]
[skew_correction]
[exclude_object]
#####################################################################
# X/Y Stepper Settings
#####################################################################
[stepper_x]
step_pin: PB13
dir_pin: PB12 # Check motor direction in link above. If inverted, add a ! before PB12
enable_pin: !PB14
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200 # Set to 400 for 0.9° degree stepper motor, 200 is for 1.8° stepper motors
endstop_pin: tmc2209_stepper_x:virtual_endstop #^EBB: PB3 #^PC0
position_endstop: 120
position_max: 120
homing_speed: 30 # Can be increased after initial setup, Max 100
homing_retract_dist: 0
homing_positive_dir: true
[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
interpolate: False
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle
diag_pin: PC0 # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 67 # 255 is most sensitive value, 0 is least sensitive
[stepper_y]
step_pin: PB10
dir_pin: PB2 # Check motor direction in link above. If inverted, add a ! before PB2
enable_pin: !PB11
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200 # Set to 400 for 0.9° degree stepper motor, 200 is for 1.8° stepper motors
endstop_pin: tmc2209_stepper_y:virtual_endstop #^PC1
position_endstop: 120
position_max: 120
homing_speed: 30 # Can be increased after initial setup, Max 100
homing_retract_dist: 0
homing_positive_dir: true
[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
interpolate: False
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle
diag_pin: PC1 # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 70 # 255 is most sensitive value, 0 is least sensitive
#####################################################################
# Z Stepper Settings
#####################################################################
[stepper_z]
step_pin: PB0
dir_pin: !PC5 # Remove the ! before PC5 if motor direction is inverted.
enable_pin: !PB1
rotation_distance: 8 # For T8x8 integrated lead screw
microsteps: 32
endstop_pin: ^PC2
#position_endstop: 120
position_max: 120
position_min: -1.5
homing_speed: 20
second_homing_speed: 3.0
homing_retract_dist: 3.0
[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
uart_address: 1
interpolate: False
run_current: 0.2
sense_resistor: 0.110
stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle
#####################################################################
# Homing Override
#####################################################################
[homing_override]
axes: xyz
gcode:
{% set home_all = 'X' not in params and 'Y' not in params and 'Z' not in params %}
{% if home_all or 'X' in params %}
_HOME_X
{% endif %}
{% if home_all or 'Y' in params %}
_HOME_Y
{% endif %}
{% if home_all or 'Z' in params %}
G90
G0 X 60 Y 60 F 15000
G28 Z
G1 Z105
{% endif %}
set_position_z:0
#####################################################################
# Extruder
#####################################################################
[extruder]
step_pin: EBB: PD0 #PB3
dir_pin: !EBB: PD1 #PB4 # Add ! if moving opposite direction
enable_pin: !EBB: PD2 #!PD1
full_steps_per_rotation: 200 # Set to 200 for LDO 1.8° stepper motor, and set to 400 for OMC(StepperOnline) 0.9° stepper motor
rotation_distance: 21.7854 # See calibrating rotation_distance on extruders doc
gear_ratio: 50:10 # For Mini Afterburner
microsteps: 32
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: EBB: PB13 #PC8
sensor_type:PT1000
sensor_pin: EBB: PA3 #PA0
#control: pid # Do PID calibration after initial checks
#pid_Kp: 28.182
#pid_Ki: 1.978
#pid_Kd: 100.397
min_temp: 0
max_temp: 290
min_extrude_temp: 170
max_extrude_only_distance: 150
max_extrude_cross_section: 0.8
pressure_advance: 0.04 # See tuning pressure advance doc
pressure_advance_smooth_time: 0.040
[tmc2209 extruder]
uart_pin: EBB: PA15
run_current: 0.650
stealthchop_threshold: 999999
sense_resistor: 0.110
stealthchop_threshold: 0 # Set to 0 for spreadcycle, avoid using stealthchop on extruder
#####################################################################
# Bed Heater
#####################################################################
[heater_bed]
heater_pin: PC9
sensor_type: Generic 3950
sensor_pin: PC4
smooth_time: 3.0
max_power: 1
min_temp: 0
max_temp: 120
control: pid # Do PID calibration after initial checks
pid_kp: 68.453
pid_ki: 2.749
pid_kd: 426.122
#####################################################################
# Fan Control
#####################################################################
[heater_fan _hotend_fan]
# FAN1
pin: EBB: PA1 #PC7
max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0
[fan]
# FAN0
pin: EBB: PA0 #PC6
max_power: 1.0
kick_start_time: 0.5 # Depending on your fan, you may need to increase this value if your fan will not start
off_below: 0.13
cycle_time: 0.010
[controller_fan _picool]
## FAN0
pin: PC6
max_power: 1.0
kick_start_time: 0.5 # Depending on your fan, you may need to increase this value if your fan will not start
off_below: 0.13
cycle_time: 0.010
idle_timeout: 30
heater: heater_bed
#####################################################################
# Chamber Thermistor
#####################################################################
[temperature_sensor Chamber_Temp]
gcode_id: C
sensor_type: Generic 3950
sensor_pin: PA7 # PA7 is MOSI on the SPI header. Has an on board 10K pullup to 3v3. Connect other leg of thermistor to ground
pullup_resistor: 10000
[temperature_sensor BTT_EBB36]
sensor_type: temperature_mcu
sensor_mcu: EBB
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
#####################################################################
# Lights
#####################################################################
[neopixel caselight]
pin:PA8
chain_count:16
color_order:GRB
initial_RED:1.0
initial_GREEN:1.0
initial_BLUE:1.0
[neopixel kirigami]
pin:PC14
chain_count:1
color_order:GRBW
initial_RED:0.1176
initial_GREEN:1
initial_BLUE:0.0784
initial_WHITE:0
[gcode_macro LIGHTS_ON]
gcode:
SET_LED LED=caselight RED=0.5 BLUE=0.5 GREEN=0.5
STATUS_IDLE
[gcode_macro LIGHTS_DIM]
gcode:
SET_LED LED=caselight RED=0.3 BLUE=0.3 GREEN=0.3
STATUS_IDLE
[gcode_macro LIGHTS_OFF]
gcode:
SET_LED LED=caselight RED=0 BLUE=0 GREEN=0
SET_LED LED=kirigami RED=0 GREEN=0 BLUE=0 WHITE=0
[gcode_macro STATUS_HEATING]
gcode:
SET_LED LED="kirigami" RED=1 GREEN=0.302 BLUE=0 WHITE=0 SYNC=0 TRANSMIT=1
[gcode_macro STATUS_PRINTING]
gcode:
SET_LED LED="kirigami" RED=0.4 GREEN=0 BLUE=1 WHITE=0 SYNC=0 TRANSMIT=1
[gcode_macro STATUS_IDLE]
gcode:
SET_LED LED="kirigami" RED=0.1176 GREEN=1 BLUE=0 WHITE=0 SYNC=0 TRANSMIT=1
#####################################################################
# Input Shaper
#####################################################################
#[mcu rpi]
#serial: /tmp/klipper_host_mcu
[adxl345]
cs_pin: EBB: PB12 #rpi:None
spi_software_sclk_pin: EBB: PB10
spi_software_mosi_pin: EBB: PB11
spi_software_miso_pin: EBB: PB2
axes_map: x,y,z
[resonance_tester]
accel_chip: adxl345
probe_points:
60, 60, 20 # an example
[input_shaper]
#shaper_freq_x: 96.0 # frequency for the X mark of the test model
#shaper_type_x: zv
#shaper_freq_y: 70.2 # frequency for the Y mark of the test model
#shaper_type_y: zv
# Step 1: Run TEST_RESONANCES AXIS=X
# Step 2: Run TEST_RESONANCES AXIS=Y
# Step 3: SSH and run:
# ~/klipper/scripts/calibrate_shaper.py /tmp/resonances_x_*.csv -o /tmp/shaper_calibrate_x.png
# ~/klipper/scripts/calibrate_shaper.py /tmp/resonances_y_*.csv -o /tmp/shaper_calibrate_y.png
# Step 4: View png filed in /tmp folder
# Step 5: Update above frequencies with recommended outputs
#####################################################################
# Homing and Gantry Adjustment Routines
#####################################################################
[idle_timeout]
timeout: 1800
## To be used with BED_SCREWS_ADJUST
[bed_screws]
screw1: 60,5
screw1_name: front screw
screw2: 5,115
screw2_name: back left
screw3: 115,115
screw3_name: back right
#####################################################################
# Bed Mesh & Probing
#####################################################################
[probe]
#with Long Klicky Probe
pin: ^EBB:PB8
x_offset: 8 #(9.5 with front cowling)
y_offset: 0
z_offset: 14.5
speed: 7
lift_speed: 7
samples: 3
samples_result: median
sample_retract_dist: 2
samples_tolerance: 0.01
samples_tolerance_retries: 10
[bed_mesh]
mesh_min: 15,15
mesh_max: 105,105
speed: 100
horizontal_move_z: 3
probe_count: 3,3 #if you would like more detail, use 5,5 here
relative_reference_index: 4 #if you use 5,5 above, place 12 here
move_check_distance: 3
algorithm: lagrange
fade_start: 1
fade_end: 10
fade_target: 0
split_delta_z: 0.0125
mesh_pps: 2,2
#####################################################################
# Macros
#####################################################################
[gcode_macro PRINT_START]
gcode:
G28 ; home all axes
CLEAN_NOZZLE
G90 ; absolute positioning
G0 X60 Y60 Z2 F10000
BED_MESH_PROFILE LOAD=default
SET_SKEW XY=141.35,141.28,99.85
#G1 Z5 F3000 ; move nozzle away from bed
STATUS_PRINTING
[gcode_macro PRINT_END]
gcode:
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder
G1 E-4.0 F3600 ; retract filament
G91 ; relative positioning
# Get Boundaries
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
{% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}
# Check end position to determine safe direction to move
{% if printer.toolhead.position.x < (max_x - 20) %}
{% set x_safe = 20.0 %}
{% else %}
{% set x_safe = -20.0 %}
{% endif %}
{% if printer.toolhead.position.y < (max_y - 20) %}
{% set y_safe = 20.0 %}
{% else %}
{% set y_safe = -20.0 %}
{% endif %}
{% if printer.toolhead.position.z < (max_z - 2) %}
{% set z_safe = 2.0 %}
{% else %}
{% set z_safe = max_z - printer.toolhead.position.z %}
{% endif %}
G0 Z{z_safe} F3600 ; move nozzle up
G0 X{x_safe} Y{y_safe} F20000 ; move nozzle to remove stringing
TURN_OFF_HEATERS
M107 ; turn off fan
G90 ; absolute positioning
G0 X60 Y{max_y - 3} F3600 ; park nozzle at rear
LIGHTS_OFF
M18 ; turn off motors
SET_SKEW CLEAR=1
STATUS_IDLE
[gcode_macro LOAD_FILAMENT]
gcode:
M83 ; set extruder to relative
G1 E30 F300 ; load
G1 E15 F150 ; prime nozzle with filament
M82 ; set extruder to absolute
[gcode_macro UNLOAD_FILAMENT]
gcode:
M83 ; set extruder to relative
G1 E10 F300 ; extrude a little to soften tip
G1 E-40 F1800 ; retract some, but not too much or it will jam
M82 ; set extruder to absolute
[gcode_macro M600]
description: Filament change
gcode: PAUSE X=10 Y=10 Z_MIN=50
[servo brush_servo]
pin: PA1
maximum_servo_angle: 90
minimum_pulse_width: 0.0005
maximum_pulse_width: 0.001575
initial_angle: 0
[gcode_macro CLEAN_NOZZLE]
gcode:
SAVE_GCODE_STATE
G90
G1 X1 Z105 F7200
SET_SERVO SERVO=brush_servo ANGLE=85 ; set brush servo to up position
G1 Y60 F7200 ; toolhead moves back and fourth across the brush
G1 X2 F7200
G1 Y110 F7200 ; speed increase
G1 X4 F7200
G1 Y60 F7200
G1 X6 F7200
G1 Y110 F7200 ; speed decrease
G1 X8 F7200
G1 Y60 F7200
SET_SERVO SERVO=brush_servo ANGLE=0 ; set brush servo to down position
RESTORE_GCODE_STATE MOVE=1 MOVE_SPEED=5000 ; return to starting position
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 16.951
#*# pid_ki = 0.934
#*# pid_kd = 76.913
#*#
#*# [probe]
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.070000, 0.060000, 0.030000
#*# 0.050000, 0.000000, -0.030000
#*# 0.060000, -0.010000, -0.050000
#*# tension = 0.2
#*# min_x = 15.0
#*# algo = lagrange
#*# y_count = 3
#*# mesh_y_pps = 2
#*# min_y = 15.0
#*# x_count = 3
#*# max_y = 105.0
#*# mesh_x_pps = 2
#*# max_x = 105.0
#*#
#*# [stepper_z]
#*# position_endstop = 119.500
#*#
#*# [input_shaper]
#*# shaper_type_x = zv
#*# shaper_freq_x = 90.6
#*# shaper_type_y = zv
#*# shaper_freq_y = 67.6