forked from Laker87/klipper_config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer.cfg
424 lines (375 loc) · 11.2 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
# This file contains common pin mappings for the Fysetc Spider board.
# To use this config, the firmware should be compiled for the STM32F446.
# When calling "menuconfig", enable "extra low-level configuration setup"
# and select the "12MHz crystal" as clock reference
# For flashing, write the compiled klipper.bin to memory location 0x08000000
# See docs/Config_Reference.md for a description of parameters.
## Voron Design VORON2 250/300/350mm Spider TMC2209 UART config
## *** THINGS TO CHANGE/CHECK: ***
## Spider version Please round search 'Spider', you need to choose Spider v1.x or v2.x pins define
## MCU paths [mcu] section
## Thermistor types [extruder] and [heater_bed] sections - See 'sensor types' list at end of file
## Z Endstop Switch location [safe_z_home] section
## Homing end position [gcode_macro G32] section
## Z Endstop Switch offset for Z0 [stepper_z] section
## Probe points [quad_gantry_level] section
## Min & Max gantry corner postions [quad_gantry_level] section
## PID tune [extruder] and [heater_bed] sections
## Fine tune E steps [extruder] section
################################################################################
# Included configs
################################################################################
[include macros.cfg]
[include adxl345.cfg]
[include leds.cfg]
[include fans.cfg]
[include idex.cfg]
[include fast_infill.cfg]
[mcu rpi]
serial: /tmp/klipper_host_mcu
[mcu]
## Uncomment below if you're using the Raspberry uart0 to communicate with Spider
restart_method: command
## You need to select 'Communication interface' to USB in 'make menuconfig'
## when you compile Klipper for Spider
## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
##--------------------------------------------------------------------
#serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_230032000851363131363530-if00
## If you want to use the Raspberry uart0 to communicate with Spider,
## you need to select 'Communication interface' to 'Serial (on USART1 PA10/PA9)'
## in 'make menuconfig' when you compile klipper and set the serial as below
##--------------------------------------------------------------------
serial: /dev/ttyAMA0
##--------------------------------------------------------------------
[temperature_sensor temperature_mcu]
sensor_type: temperature_mcu
sensor_mcu: mcu
[temperature_sensor temperature_host]
sensor_type: temperature_host
sensor_path: /sys/class/thermal/thermal_zone0/temp
#[force_move]
#enable_force_move: True
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 8000
max_accel_to_decel: 5000
max_z_velocity: 8 #Max 15 for 12V TMC Drivers, can increase for 24V
max_z_accel: 350
square_corner_velocity: 5.0
#[skew_correction]
# SET_SKEW XY=140.25,141.35,99.6
#####################################################################
# X/Y Stepper Settings
#####################################################################
[stepper_x]
## Connected to X-MOT (B Motor)
step_pin: PE11
dir_pin: !PE10
enable_pin: !PE9
rotation_distance: 30
microsteps: 64
full_steps_per_rotation: 200 #set to 400 for 0.9 degree stepper
endstop_pin: ^PB14
#endstop_pin: tmc2209_stepper_x:virtual_endstop
position_endstop: 0
position_min: 0
position_max: 300
homing_speed: 80 #Max 100
homing_retract_dist: 5
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_x]
uart_pin: PE7
#diag_pin: PB14
#driver_SGTHRS: 110
#interpolate: True
run_current: 1.0
#hold_current: 0.4
sense_resistor: 0.110
stealthchop_threshold: 999999
#driver_TBL: 3
#driver_TOFF: 3
#driver_HSTRT: 4
#driver_HEND: 0
# [stepper_x]
# ## Connected to X-MOT (B Motor)
# step_pin: PD5
# dir_pin: PD6
# enable_pin: !PD4
# rotation_distance: 20
# microsteps: 64
# full_steps_per_rotation: 200 #set to 400 for 0.9 degree stepper
# endstop_pin: ^PA3
# #endstop_pin: tmc2209_stepper_x:virtual_endstop
# position_endstop: 353
# position_min: 45
# position_max: 353
# homing_speed: 80 #Max 100
# homing_retract_dist: 5
# ## Make sure to update below for your relevant driver (2208 or 2209)
# [tmc2209 stepper_x]
# uart_pin: PD7
# #diag_pin: PB14
# #driver_SGTHRS: 110
# #interpolate: True
# run_current: 1.0
# #hold_current: 0.4
# sense_resistor: 0.110
# stealthchop_threshold: 0
# #driver_TBL: 3
# #driver_TOFF: 3
# #driver_HSTRT: 4
# #driver_HEND: 0
[stepper_y]
## Connected to Y-MOT (A Motor)
step_pin: PD8
dir_pin: !PB12
enable_pin: !PD9
rotation_distance: 40
microsteps: 128
full_steps_per_rotation: 200 #set to 400 for 0.9 degree stepper
#endstop_pin: ^PB13
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_endstop: -7
position_min: -7
position_max: 210
homing_speed: 45 #Max 100
homing_retract_dist: 0
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_y]
uart_pin: PE15
diag_pin: PB13
driver_SGTHRS: 100
#interpolate: True
run_current: 1.1
#hold_current: 0.4
sense_resistor: 0.110
stealthchop_threshold: 0
# driver_TOFF: 3
# driver_HSTRT: 4
# driver_HEND: 0
## In E1-MOT Position
[stepper_y1]
step_pin: PE6
dir_pin: PC13
enable_pin: !PE5
rotation_distance: 40
full_steps_per_rotation: 200 #set to 400 for 0.9 degree stepper
microsteps: 128
endstop_pin: tmc2209_stepper_y1:virtual_endstop
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_y1]
uart_pin: PC14
diag_pin: PA2
driver_SGTHRS: 100
#interpolate: True
run_current: 1.1
#hold_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
# driver_TOFF: 3
# driver_HSTRT: 4
# driver_HEND: 0
#####################################################################
# Z Stepper Settings
#####################################################################
## In Z-MOT Position
[stepper_z]
step_pin: PD14
dir_pin: !PD13
enable_pin: !PD15
rotation_distance: 2
microsteps: 16
## In Z- Position
endstop_pin: PA0
position_endstop: 0
## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
## (+) value = endstop above Z0, (-) value = endstop below
## Increasing position_endstop brings nozzle closer to the bed
## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
#position_endstop: -0.5
position_min: 0
position_max: 340
homing_speed: 8
second_homing_speed: 3
homing_retract_dist: 3
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_z]
uart_pin: PD10
uart_address: 0
#interpolate: True
run_current: 1.0
#hold_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 999999
driver_TOFF: 3
driver_HSTRT: 4
driver_HEND: 0
## In E2-MOT Position
[stepper_z1]
step_pin: PE2
dir_pin: !PE4
enable_pin: !PE3
rotation_distance: 2
microsteps: 16
endstop_pin: PA1
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_z1]
uart_pin: PC15
#interpolate: True
run_current: 1.0
#hold_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 999999
driver_TOFF: 3
driver_HSTRT: 4
driver_HEND: 0
#####################################################################
# Extruder
#####################################################################
## In E0-MOT Position
[extruder]
step_pin: PD12
dir_pin: !PC4
enable_pin: !PE8
## rotation_distance = <previous_rotation_distance> * <actual_extrude_distance> / 100
rotation_distance: 22.9 #Bondtech 5mm Drive Gears
gear_ratio: 50:10
microsteps: 32
full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
nozzle_diameter: 0.400
filament_diameter: 1.75
max_extrude_only_distance: 210.0
## In E0 OUT Position
heater_pin: PB15
sensor_type: Generic 3950
sensor_pin: PC0 # TE0 Position
min_temp: 10
max_temp: 300
max_power: 1.0
min_extrude_temp: 170
control = pid
pid_kp = 22.947
pid_ki = 1.545
pid_kd = 85.191
pressure_advance: 0.0
pressure_advance_smooth_time: 0.040
## In E0-MOT Position
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 extruder]
uart_pin: PA15
interpolate: False
run_current: 0.3
hold_current: 0.2
sense_resistor: 0.110
stealthchop_threshold: 0
# ## In E0-MOT Position
# [extruder]
# step_pin: PE1
# dir_pin: PE0
# enable_pin: !PC5
# ## rotation_distance = <previous_rotation_distance> * <actual_extrude_distance> / 100
# rotation_distance: 22.9 #Bondtech 5mm Drive Gears
# gear_ratio: 50:10
# microsteps: 32
# full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
# nozzle_diameter: 0.400
# filament_diameter: 1.75
# max_extrude_only_distance: 210.0
# ## In E0 OUT Position
# heater_pin: PC8
# sensor_type: ATC Semitec 104GT-2
# sensor_pin: PC1 # TE0 Position
# min_temp: 10
# max_temp: 300
# max_power: 1.0
# min_extrude_temp: 170
# control = pid
# pid_kp = 22.947
# pid_ki = 1.545
# pid_kd = 85.191
# pressure_advance: 0.0
# pressure_advance_smooth_time: 0.040
# ## In E0-MOT Position
# ## Make sure to update below for your relevant driver (2208 or 2209)
# [tmc2209 extruder]
# uart_pin: PD11
# interpolate: False
# run_current: 0.3
# hold_current: 0.2
# sense_resistor: 0.110
# stealthchop_threshold: 0
#####################################################################
# Bed Heater
#####################################################################
[heater_bed]
## SSR Pin - In BED OUT position
heater_pin: PB4
sensor_type: Generic 3950
sensor_pin: PB0 # Spider v2.x TB Position
## Adjust Max Power so your heater doesn't warp your bed
max_power: 0.5
min_temp: 0
max_temp: 130
control: pid
#pwm_cycle_time: 0.04
#pid_kp: 58.437
#pid_ki: 2.347
#pid_kd: 363.769
pid_kp: 32.928
pid_ki: 1.206
pid_kd: 224.734
[output_pin _BEEPER_pin]
pin: PD0
pwm: True
value: 0
shutdown_value: 0
cycle_time: 0.01
scale: 1000
#[heater_fan exhaust_fan]
## Exhaust fan - In E2 OUT Positon
#pin: PB3
#max_power: 1.0
#shutdown_speed: 0.0
#kick_start_time: 5.0
#heater: heater_bed
#heater_temp: 60
#fan_speed: 1.0
#[homing_override]
#axes: xy
#gcode:
# G28 Y0
# G28 X0
# G28 Z0
################################################################################
# Bed leveling
################################################################################
[bed_screws] # BED_SCREWS_ADJUST
screw1: 30,30
screw1_name: front left screw
screw2: 320,30
screw2_name: front right screw
screw3: 320,170
screw3_name: back right screw
screw4: 30,170
screw4_name: back left screw
speed: 150
################################################################################
[idle_timeout]
timeout: 1800
[virtual_sdcard]
path: ~/gcode_files
[pause_resume]
[display_status]
[gcode_arcs]
[respond]
[save_variables]
filename: ~/klipper_config/variables.klip
## Thermistor Types
## "EPCOS 100K B57560G104F"
## "ATC Semitec 104GT-2"
## "NTC 100K beta 3950"
## "Honeywell 100K 135-104LAG-J01"
## "NTC 100K MGB18-104F39050L32" (Keenovo Heater Pad)
## "AD595"
## "PT100 INA826"