-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprinter.cfg
More file actions
356 lines (302 loc) · 7.71 KB
/
printer.cfg
File metadata and controls
356 lines (302 loc) · 7.71 KB
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
#############################
####### Steppers ##########
#############################
[stepper_x]
step_pin: PC2
dir_pin: !PB9
enable_pin: !PC3
microsteps: 64
rotation_distance: 39.6 #40
endstop_pin: !PA5
position_endstop: -5 #-6
position_min: -5 #-6
position_max: 230
homing_speed: 50
[tmc2209 stepper_x]
uart_pin: PB12
run_current: 0.60 #0.80 ## Motor 42/40 1A: 80% 0.57, 85% 0.6 y 90% 0.64
sense_resistor: 0.150
#stealthchop_threshold: 999999 # 0 # En Klipper no muestra el 0, marca que seria 999999 o quitado
interpolate: False
[stepper_y]
step_pin: PB8
dir_pin: PB7
enable_pin: !PC3
microsteps: 64
rotation_distance: 39.7 #40
endstop_pin: !PA6
position_endstop: -13 #-14
position_min: -13 #-14
position_max: 230
homing_speed: 50
[tmc2209 stepper_y]
uart_pin: PB13
run_current: 0.60 #0.80 ## Motor 42/40 1A: 80% 0.57, 85% 0.6 y 90% 0.64
sense_resistor: 0.150
#stealthchop_threshold: 999999 #0 # En Klipper no muestra el 0, marca que seria 999999 o quitado
interpolate: False
[stepper_z]
step_pin: PB6
dir_pin: !PB5
enable_pin: !PC3
microsteps: 16
rotation_distance: 8.032 #8
endstop_pin: probe:z_virtual_endstop
position_min: -3
position_max: 250
homing_speed: 4
second_homing_speed: 1
homing_retract_dist: 2.0
[tmc2209 stepper_z]
uart_pin: PB14
run_current: 0.8 #0.90 ## Motor 42/40 1A: 80% 0.57, 85% 0.6 y 90% 0.64
sense_resistor: 0.150
#stealthchop_threshold: 0 # En Klipper no muestra el 0, marca que seria 999999 o quitado
interpolate: False
[extruder]
pressure_advance_smooth_time: 0.035 # Ajusta entre 0.02 y 0.08 #de origen 0.04
max_extrude_only_distance: 130.0
max_extrude_only_velocity: 7 #3.33 #15 #DEMON BUNDLE
#pressure_advance: 0.12
step_pin: PB4
dir_pin: PB3
enable_pin: !PC3
microsteps: 16
rotation_distance: 7.589 #7.604 #7.44
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
#control: pid
# tuned for stock hardware with 200 degree Celsius target
#pid_Kp: 27.142
#pid_Ki: 1.371
#pid_Kd: 134.351
min_temp: 0
max_temp: 260
max_extrude_cross_section: 5
#############################
###### Heater Bed #########
#############################
[heater_bed]
heater_pin: PB2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
#control: pid
# tuned for stock hardware with 70 degree Celsius target
#pid_kp: 66.371
#pid_ki: 0.846
#pid_kd: 1301.702
min_temp: 0
max_temp: 100
#############################
######### Fans ############
#############################
[heater_fan hotend_fan]
pin: PC1
max_power: 1.0
shutdown_speed : 0
cycle_time: 0.010
hardware_pwm: False
kick_start_time: 0.100
off_below: 0.0
heater: extruder
heater_temp : 50
fan_speed : 1.0
[fan]
pin: PA0
#############################
##### General Printer #####
#############################
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
#serial: /dev/ttyUSB0
restart_method: command
[virtual_sdcard]
path: ~/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
[printer]
kinematics: cartesian
max_velocity: 250
max_accel: 3000
#max_accel_to_decel: 3000
max_z_velocity: 50
square_corner_velocity: 5.0
max_z_accel: 500
[output_pin beeper]
#pin: PB0
pin: rpi:gpio16
#############################
###### Temperature ########
#############################
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[temperature_sensor Raspberry_Pi_5]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
#############################
###### Raspberry Pi #######
#############################
[mcu rpi]
serial: /tmp/klipper_host_mcu
[adxl345]
cs_pin: rpi:None
[resonance_tester]
accel_chip: adxl345
probe_points:
144.50, 132, 20 # an example
#[output_pin Printer_Lights]
#pin: !rpi:gpio14
#pwm: False
#value: 0
#shutdown_value: 0
[led Printer_Lights]
white_pin: !rpi:gpio14 ### #<<<<<<<< ADD YOUR OWN PIN
cycle_time: 0.0010
initial_WHITE: 0.0
# [output_pin Relé preparado para usar]
# pin: rpi:gpio15
# pwm: false
# value: 0
# shutdown_value: 0
#############################
##### KlipperScreen #######
#############################
[display_status]
#############################
######## CrTouch ##########
#############################
[bltouch]
sensor_pin: ^PC14
control_pin: PC13
x_offset: -24.0
y_offset: -13.0
#z_offset: 0.1
speed: 20
pin_move_time: 0.4
stow_on_each_sample: False
probe_with_touch_mode: True
[bed_mesh]
speed: 150
horizontal_move_z: 5
mesh_min: 10.0,10.0 #30,30 # Need to handle head distance with cr-touch (bl_touch)
mesh_max: 196.0,207.0 #205,215.5 # Max probe range
probe_count: 7,7
algorithm: bicubic
[screws_tilt_adjust]
screw1_name: Centro de Cama
screw1: 144.50, 132.00
screw2_name: Tornillo trasero izquierdo
screw2: 55, 213
screw3_name: Tornillo trasero derecho
screw3: 223.5, 213
screw4_name: Tornillo delantero derecho
screw4: 224.2, 45
screw5_name: Tornillo delantero izquierdo
screw5: 56.2, 45
horizontal_move_z: 10.
speed: 50.
screw_thread: CCW-M4
#############################
#### Filament Sensor ######
#############################
[filament_switch_sensor filament_sensor]
switch_pin: ^!PC15 #^PC15 ### <<<<<< Insert board pin for sensor
pause_on_runout: False
insert_gcode:
SET_DISPLAY_TEXT MSG="Filamento Detectado"
RESPOND TYPE=COMMAND MSG="Filamento Detectado"
runout_gcode:
{% if printer.print_stats.state == "printing" %}
PUBLISH_ALERT PAYLOAD="Filamento Gastado"
SET_DISPLAY_TEXT MSG="Filamento Gastado"
RESPOND TYPE=COMMAND MSG="Filamento Gastado"
_FIL_CHANGE_PARK
BEEP R=3
UNLOAD_FILAMENT
{% else %}
SET_DISPLAY_TEXT MSG="Filamento NO Detectado"
RESPOND TYPE=COMMAND MSG="Filamento NO Detectado"
{% endif %}
#############################
######### Macros ##########
#############################
[include macros.cfg]
#############################
##### Shell Commands ######
#############################
[include shell-macros.cfg]
#############################
####### OrcaSlicer ########
#############################
[exclude_object]
[gcode_arcs]
resolution: 0.1
#[firmware_retraction]
#retract_length: 1.4 #1.2
#retract_speed: 40
#unretract_extra_length: 0
#unretract_speed: 30
#############################
######### Others ##########
#############################
[include timelapse.cfg]
[include spoolman.cfg]
[idle_timeout]
gcode:
_DEMON_IDLE_TIMEOUT
timeout: 3600
# Enable force_move to make use of the new homing routine
[force_move]
enable_force_move: True
# Indicates where to save persistent global variables. The right location is ~
[save_variables]
filename: ~/demon_vars.cfg
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 2.008
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 31.484
#*# pid_ki = 1.980
#*# pid_kd = 125.150
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 63.635
#*# pid_ki = 0.646
#*# pid_kd = 1567.810
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.175700, 0.122990, 0.080320, 0.092870, 0.082830, 0.095380, 0.087850
#*# 0.100400, 0.050200, 0.022590, 0.022590, 0.017570, 0.062750, -0.002510
#*# 0.042670, 0.025100, -0.027610, -0.015060, -0.040160, -0.005020, -0.045180
#*# 0.042670, 0.002510, -0.022590, -0.022590, -0.040160, -0.015060, -0.062750
#*# 0.037650, 0.012550, -0.027610, -0.005020, -0.027610, 0.012550, -0.045180
#*# 0.035140, 0.025100, 0.017570, 0.030120, 0.007530, 0.025100, -0.007530
#*# 0.070280, 0.052710, 0.037650, 0.060240, 0.047690, 0.087850, 0.062750
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 10.0
#*# max_x = 196.0
#*# min_y = 10.0
#*# max_y = 206.97999999999996
#*#
#*# [input_shaper]
#*# shaper_type_x = mzv
#*# shaper_freq_x = 52.0
#*# shaper_type_y = mzv
#*# shaper_freq_y = 35.6