-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprinter-e3ng.cfg
More file actions
332 lines (287 loc) · 9.5 KB
/
printer-e3ng.cfg
File metadata and controls
332 lines (287 loc) · 9.5 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
# Settings for BTT SKR MINI E3 V2.0
# Mainsail settings
[include mainsail.cfg]
# Obico
[include moonraker_obico_macros.cfg]
# Timelapse Plugin
[include timelapse.cfg]
# Klicky
[include klicky-probe.cfg]
[include adxl.cfg] # Comment this out when you disconnect the accelerometer
# 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.
# See docs/Config_Reference.md for a description of parameters.
# https://github.com/Klipper3d/klipper/blob/master/config/generic-bigtreetech-skr-mini-e3-v2.0.cfg
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
microsteps: 16
rotation_distance: 40
endstop_pin: tmc2209_stepper_x:virtual_endstop # ^PC0
position_endstop: 0
position_max: 230 # 233 is absolute maximum
homing_speed: 20 # 50
homing_retract_dist: 0 # as intructed by Voron guide
[stepper_y]
step_pin: PB10
dir_pin: !PB2
enable_pin: !PB11
microsteps: 16
rotation_distance: 40
endstop_pin: tmc2209_stepper_y:virtual_endstop # ^PC1
position_endstop: 248
position_min: 0
position_max: 248 # 243 is absolutely maximum (+ minimum ofc)
homing_speed: 20 # 50
homing_retract_dist: 0 # as intructed by Voron guide
[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
microsteps: 32
rotation_distance: 8
gear_ratio: 42:20
# endstop_pin: ^PC2
endstop_pin: probe:z_virtual_endstop
# position_endstop: 0
position_min: -10
position_max: 230 # 236 is absolute minimum
homing_speed: 10
[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
run_current: 0.580
stealthchop_threshold: 999999
diag_pin: ^PC0 # use the same pin that was previously the endstop_pin!
driver_SGTHRS: 52
[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
run_current: 0.580
stealthchop_threshold: 999999
diag_pin: ^PC1 # use the same pin that was previously the endstop_pin!
driver_SGTHRS: 52 # 255 is most sensitive value, 0 is least sensitive
[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
uart_address: 1
run_current: 0.580
stealthchop_threshold: 999999
# G91
# G1 E50 F60
# rotation distance maths
# rotation_distance = <previous_rotation_distance> * <actual_extrude_distance> / <requested_extrude_distance>
# rotation_distance = 34.406 * (70 - 55) / 50 = 10.322
# rotation_distance = 10.322 * (70 - 32) / 50 = 7.845
# rotation_distance = 7.845 * (70 - 22) / 50 = 7.531
# rotation_distance = 7.531 * (70 - 20) / 50 = 7.531
# redo after removing clog
# rotation_distance = 7.531 * (70 - 14) / 50 = 8.434
# rotation_distance = 8.434 * (70 - 24) / 50 = 7.759
# rotation_distance = 7.759 * (70 - 20) / 50 = 7.759
# back to stock extruder
# rotation_distance = 8.434 * (70 - 26) / 50 = 7.422
# rotation_distance = 7.422 * (70 - 20) / 50 = 7.422
[extruder]
max_extrude_only_distance: 100.0
step_pin: PB3
dir_pin: !PB4
enable_pin: !PD1
microsteps: 16
rotation_distance: 7.422 # 34.406 # BMG Extruder
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC8
sensor_type: ATC Semitec 104GT-2 # E3D V6
sensor_pin: PA0
#control: pid
# ~~tuned for stock hardware with 200 degree Celsius target~~
# PID_CALIBRATE HEADER=extruder TARGET=210
#pid_Kp: 21.527
#pid_Ki: 1.063
#pid_Kd: 108.982
min_temp: 0
max_temp: 250
[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
run_current: 0.650
stealthchop_threshold: 999999
[heater_bed]
heater_pin: PC9
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
control: pid
# tuned for stock hardware with 50 degree Celsius target
pid_Kp: 54.027
pid_Ki: 0.770
pid_Kd: 948.182
min_temp: 0
max_temp: 130
[probe]
pin: PC2 #^PC14 #Probe-Stop Connection on Skr Mini Pro V1.2 # Same as endstop_pin for stepper_z
#z_offset: 6 # Measure per your specific setup
x_offset: 0 # negative = left of the nozzle
y_offset: 30 # negative = in front of of the nozzle
speed: 5.0
lift_speed: 15.0
sample_retract_dist: 1
samples: 2
samples_tolerance_retries: 6
##[(7x7)-1] / 2 = 24
##[(5x5)-1] / 2 = 12
[bed_mesh]
speed: 300
horizontal_move_z: 13
mesh_min: 8,30
mesh_max: 200,201
probe_count: 11,11
zero_reference_position: 117.5, 117.5 #This is the position where your nozzle homes to Z0. Adjust according to you setup
algorithm: bicubic
fade_start: 1
fade_end: 10
split_delta_z: 0.015
move_check_distance: 3
mesh_pps: 4,4
adaptive_margin: 5
[heater_fan heatbreak_cooling_fan] # FAN0
pin: PC6
# FAN1 #fan2
[multi_pin my_fan]
pins: PC7, PB15
# [heater_fan controller_fan] # FAN1
[fan]
pin: multi_pin:my_fan
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_510026001050415833323520-if00
restart_method: command
[exclude_object]
[input_shaper]
shaper_freq_x: 49.2
shaper_type_x: 2hump_ei
shaper_freq_y: 49.2
shaper_type_y: 2hump_ei
[printer]
kinematics: corexy
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
# [force_move]
# enable_force_move: True
# Pin mappings for BL_T port
#[bltouch]
#sensor_pin: ^PB1
#control_pin: PB0
######################################################################
# MACROS
######################################################################
[gcode_macro HEAT_AND_UNLOAD_FILAMENT]
gcode:
G92 E0
M104 S230 ; Set hotend temperature to 200 degrees Celsius
M109 S230 ; Wait for hotend to reach 200 degrees Celsius
G1 E-40 F600 ; Retract 20mm of filament at a feedrate of 600 mm/min
M104 S0 ; Set hotend temperature back to 0 degrees Celsius
[gcode_macro _HOME_X]
gcode:
# Always use consistent run_current on A/B steppers during sensorless homing
{% set RUN_CURRENT_X = printer.configfile.settings['tmc2209 stepper_x'].run_current|float %}
{% set RUN_CURRENT_Y = printer.configfile.settings['tmc2209 stepper_y'].run_current|float %}
{% set HOME_CURRENT = 0.7 %}
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={HOME_CURRENT}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CURRENT}
# Home
G28 X
# Move away
G91
G1 X+30 F1200
# Wait just a second… (give StallGuard registers time to clear)
G4 P1000
# Set current during print
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={RUN_CURRENT_X}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CURRENT_Y}
[gcode_macro _HOME_Y]
gcode:
# Set current for sensorless homing
{% set RUN_CURRENT_X = printer.configfile.settings['tmc2209 stepper_x'].run_current|float %}
{% set RUN_CURRENT_Y = printer.configfile.settings['tmc2209 stepper_y'].run_current|float %}
{% set HOME_CURRENT = 0.7 %}
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={HOME_CURRENT}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CURRENT}
# Home
G28 Y
# Move away
G91
G1 Y-50 F1200 # -50 to prevent the toolhead from rubbing against belt.
# Wait just a second… (give StallGuard registers time to clear)
G4 P1000
# Set current during print
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={RUN_CURRENT_X}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CURRENT_Y}
######################################################################
# 128x64 Full Graphic Creality CR10 / ENDER 3 stockdisplay
######################################################################
# This section is used for a Creality "12864" display with a single
# ribbon cable between the display's EXP3 plug and the
# micro-controller board's EXP1 connector.
[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
[output_pin beeper]
pin: EXP1_1
[board_pins]
aliases:
# EXP1 header
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PD6, EXP1_10=<5V>
# Other settings..
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.084356, 0.064416, 0.038821, 0.015309, 0.022154, 0.031975, 0.041797, 0.069773, 0.088225, 0.084059, 0.088225
#*# 0.051618, 0.045963, 0.009952, -0.015644, -0.013560, -0.007906, -0.006418, 0.014713, 0.022154, 0.017690, 0.021856
#*# 0.022452, 0.029297, -0.005227, -0.028144, -0.029334, -0.029929, -0.016537, 0.011440, 0.013523, 0.013821, 0.023344
#*# 0.027213, 0.039118, 0.008463, -0.025763, -0.022489, -0.014751, -0.015644, 0.001023, 0.003404, -0.008203, -0.004929
#*# 0.009059, 0.029297, 0.002809, -0.021894, -0.003144, -0.002846, -0.000168, 0.016797, 0.021856, 0.015904, 0.017987
#*# 0.040904, 0.045071, 0.019178, 0.000130, 0.007571, -0.006120, 0.002213, 0.023940, 0.033463, 0.013523, 0.010844
#*# 0.055487, 0.056380, 0.044773, 0.013821, 0.005190, 0.006975, 0.009059, 0.035547, 0.041202, 0.023047, 0.018880
#*# 0.098642, 0.090606, 0.067392, 0.045666, 0.040606, 0.038523, 0.026321, 0.041499, 0.049237, 0.026023, 0.021261
#*# 0.110547, 0.110547, 0.085844, 0.067392, 0.053404, 0.049237, 0.048344, 0.056975, 0.065606, 0.045071, 0.031380
#*# 0.150725, 0.150725, 0.111440, 0.093582, 0.081678, 0.077213, 0.063523, 0.066797, 0.069773, 0.053702, 0.041499
#*# 0.177809, 0.165011, 0.130785, 0.104594, 0.097154, 0.092392, 0.081082, 0.085844, 0.077809, 0.065904, 0.063225
#*# x_count = 11
#*# y_count = 11
#*# mesh_x_pps = 4
#*# mesh_y_pps = 4
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 8.0
#*# max_x = 200.0
#*# min_y = 30.0
#*# max_y = 200.99999999999997
#*#
#*# [probe]
#*# z_offset = 10.825
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 25.311
#*# pid_ki = 1.507
#*# pid_kd = 106.306