-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPurple-printer.cfg
358 lines (309 loc) · 8.21 KB
/
Purple-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
###### Creality Ender3 (2018) with SKR v1.3 and BLTocuh and TMC2130SPI on XYXE #####
#[include D3_Initial Setup.txt]
#[include D3_BLTouch.txt]
#[include D3_SensorlessHoming.txt]
#[include fluidd.cfg]
#[include D3_Macros.cfg]
[include fluidd.cfg]
[include kiauh_macros.cfg]
#[include PA_Tuner.cfg]
[include D3_Initial Setup.cfg]
[include D3_Macros.cfg]
[include D3_BLTouchMacro.cfg]
[exclude_object]
#[include adxl345.cfg]
# This file contains common pin mappings for the BIGTREETECH SKR V1.3
# board. To use this config, the firmware should be compiled for the
# LPC1768.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: P2.2
dir_pin: !P2.6
enable_pin: !P2.1
microsteps: 16
rotation_distance: 40
endstop_pin: P1.29 # P1.28 for X-max
position_endstop: 0
position_max: 235
homing_speed: 200.0
homing_retract_dist: 0
[stepper_y]
step_pin: P0.19
dir_pin: !P0.20
enable_pin: !P2.8
microsteps: 16
rotation_distance: 40
endstop_pin: P1.27 # P1.26 for Y-max
position_endstop: 0
position_max: 240
homing_speed: 200.0
homing_retract_dist: 0
[stepper_z]
step_pin: P0.22
dir_pin: P2.11
enable_pin: !P0.21
microsteps: 16
rotation_distance: 8
#endstop_pin: P1.25 # P1.24 for Z-max
endstop_pin: probe:z_virtual_endstop
#position_endstop: 0.0
position_min: -15
position_max: 350
homing_speed: 100
second_homing_speed: 2
[extruder]
max_extrude_only_distance: 100.0
step_pin: P2.13
#dir_pin: !P0.11 Normal Ender 3, mine is backwards because I used a different cable.
dir_pin: P0.11
enable_pin: !P2.12
microsteps: 16
rotation_distance: 33.683
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: P2.7
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.24
control: pid
pid_Kp: 21.527
pid_Ki: 1.063
pid_Kd: 108.982
min_temp: 0
max_temp: 270
#pressure_advance = <measured_height> * <factor>
#16mm * 0.005 = 0.08
#15mm * 0.005 = 0.075
#14mm * 0.005 = 0.07
#13mm * 0.005 =0.065
pressure_advance = 0.08
#[extruder1]
#step_pin: P0.1
#dir_pin: P0.0
#enable_pin: !P0.10
#heater_pin: P2.4
#sensor_pin: P0.25
#...
[heater_bed]
heater_pin: P2.5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.23
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
[fan]
pin: P2.3
[heater_fan extruder_fan]
pin: P2.4
heater: extruder
# Name of the config section defining the heater that this fan is
# associated with. If a comma separated list of heater names is
# provided here, then the fan will be enabled when any of the given
# heaters are enabled. The default is "extruder".
heater_temp: 50.0
# A temperature (in Celsius) that the heater must drop below before
# the fan is disabled. The default is 50 Celsius.
fan_speed: 1.0
# The fan speed (expressed as a value from 0.0 to 1.0) that the fan
# will be set to when its associated heater is enabled. The default
# is 1.0
[mcu]
serial: /dev/serial/by-id/usb-Klipper_lpc1768_0890FF10031436AF68F46A5BC32000F5-if00
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
########################################
# TMC2208 configuration
########################################
# For TMC2208 UART
# 1) Remove all of the jumpers below the stepper drivers
# 2) Place jumpers on the red pin headers labeled XUART (XUART, YUART etc.)
#[tmc2208 stepper_x]
#uart_pin: P1.17
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2208 stepper_y]
#uart_pin: P1.15
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2208 stepper_z]
#uart_pin: P1.10
#run_current: 0.650
#stealthchop_threshold: 999999
#[tmc2208 extruder]
#uart_pin: P1.8
#run_current: 0.800
#stealthchop_threshold: 999999
#[tmc2208 extruder1]
#uart_pin: P1.1
#run_current: 0.800
#stealthchop_threshold: 999999
########################################
# TMC2130 configuration
########################################
# For TMC SPI
# 1) Place jumpers on all the red pin headers under the stepper drivers
# 2) Remove jumpers from the red pin headers labeled XUART (XUART, YUART etc.)
[tmc2130 stepper_x]
cs_pin: P1.17
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P4.28
spi_software_sclk_pin: P0.4
diag1_pin: P1.29
#run_current: 0.800
run_current: 0.725
#stealthchop_threshold: 999999
[tmc2130 stepper_y]
cs_pin: P1.15
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P4.28
spi_software_sclk_pin: P0.4
diag1_pin: P1.27
#run_current: 0.800
run_current: 0.725
#stealthchop_threshold: 999999
[tmc2130 stepper_z]
cs_pin: P1.10
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P4.28
spi_software_sclk_pin: P0.4
diag1_pin: P1.25
run_current: 0.725
#stealthchop_threshold: 999999
[tmc2130 extruder]
cs_pin: P1.8
spi_software_miso_pin: P0.5
spi_software_mosi_pin: P4.28
spi_software_sclk_pin: P0.4
diag1_pin: P1.28
run_current: 0.725
#stealthchop_threshold: 999999
#[tmc2130 extruder1]
#cs_pin: P1.1
#spi_software_miso_pin: P0.5
#spi_software_mosi_pin: P4.28
#spi_software_sclk_pin: P0.4
##diag1_pin: P1.26
#run_current: 0.800
#stealthchop_threshold: 999999
########################################
# EXP1 / EXP2 (display) pins
########################################
[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"
# See the sample-lcd.cfg file for definitions of common LCD displays.
########################################
# Ender 3 Display
########################################
[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
########################################
# Ender 3 Display
########################################
[output_pin BEEPER_pin]
pin: EXP1_1
# Beeper pin. This parameter must be provided.
# ar37 is the default RAMPS/MKS pin.
pwm: True
# A piezo beeper needs a PWM signal, a DC buzzer doesn't.
value: 0
# Silent at power on, set to 1 if active low.
shutdown_value: 0
# Disable at emergency shutdown (no PWM would be available anyway).
cycle_time: 0.001
# Default PWM frequency : 0.001 = 1ms will give a tone of 1kHz
# Although not pitch perfect.
[gcode_macro M300]
gcode:
# Use a default 1kHz tone if S is omitted.
{% set S = params.S|default(1000)|int %}
# Use a 10ms duration is P is omitted.
{% set P = params.P|default(1000)|int %}
SET_PIN PIN=BEEPER_pin VALUE=0.5 CYCLE_TIME={ 1.0/S if S > 0 else 1 }
G4 P{P}
SET_PIN PIN=BEEPER_pin VALUE=0
[bltouch]
#sensor_pin: ^P1.25 # Pull-up (^ symbol) needed in open drain mode
sensor_pin: ^P1.25 # Pull-up (^ symbol) needed in open drain mode
control_pin: P2.0
pin_up_touch_mode_reports_triggered: False
x_offset: -44
y_offset: -14
#z_offset: 1
speed: 30.0
samples: 1
sample_retract_dist: 8.0
samples_result:median
[safe_z_home]
home_xy_position: 161,131
speed: 200.0
z_hop: 15
z_hop_speed: 15
# This adds a bed mesh calibrate GCode
[bed_mesh]
speed: 200.0
mesh_min: 50, 10
mesh_max: 190, 190
horizontal_move_z: 15
probe_count: 3,3
mesh_pps: 0 ;disable mesh interpolation (fixes issues with Bed Visualizer plug-in)
[screws_tilt_adjust]
# The (X, Y) coordinate of the first bed leveling screw.
screw1: 75, 210
screw2: 235, 210
screw3: 235, 40
screw4: 75, 40
speed: 150.0
# The speed (in mm/s) of non-probing moves during the calibration.
# The default is 50.
horizontal_move_z: 15
screw_thread: CW-M4
# z_offset = 2.325
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 2.600
#*#
#*# [input_shaper]
#*# shaper_type_x = zv
#*# shaper_freq_x = 123.2
#*# shaper_type_y = 2hump_ei
#*# shaper_freq_y = 41.2
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.025000, 0.002500, -0.052500
#*# 0.185000, -0.005000, 0.027500
#*# 0.235000, 0.015000, 0.137500
#*# tension = 0.2
#*# min_x = 50.0
#*# algo = lagrange
#*# y_count = 3
#*# mesh_y_pps = 0
#*# min_y = 10.0
#*# x_count = 3
#*# max_y = 190.0
#*# mesh_x_pps = 0
#*# max_x = 190.0