-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathprinter.cfg
More file actions
352 lines (299 loc) · 8.98 KB
/
printer.cfg
File metadata and controls
352 lines (299 loc) · 8.98 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
# ###
# ### ###
# #######################
# ## ## ## ##
# ## ## ## ##
# ## ## ## ##
# ### ## ## ###
# ##### ## ## #####
# ######### #########
# ######### #########
# ####### #######
# ##### #####
# ### ###
# ## ##
# #######################
# ###############
# ###########
# #######
# ###
# ___ ___ ___ ___ _____ ___ ___ _ _ _______
# | _ \/ _ \/ __|_ _|_ _| _ \/ _ \| \| | |__ / \
# | _/ (_) \__ \| | | | | / (_) | .` | |_ \ |) |
# |_| \___/|___/___| |_| |_|_\\___/|_|\_| |___/___/
#
#####################################################################
# This file contains the Klipper config for the Positron v3.2
# designed by the Positron 3D team in partnership with LDO
# PositronConfig v1.2.3
#####################################################################
# Microcontroller Settings
#####################################################################
# MCU path can be by path (default) or by id, which will work even
# if you plug your printer in through a USB hub or something.
# Obtain definition by "ls -l /dev/serial/by-id/", unplug to verify
## LDO Positron Mainboard PCB
[mcu]
serial: /dev/serial/by-path/platform-fe9c0000.xhci-usb-0:1.3:1.0
restart_method: command
## LDO Positron Toolhead PCB
[mcu pth]
serial: /dev/serial/by-path/platform-fe9c0000.xhci-usb-0:1.2:1.0
restart_method: command
#####################################################################
# Printer Settings
#####################################################################
[printer]
kinematics: corexy
max_velocity: 420
max_accel: 16000
square_corner_velocity: 7
max_z_velocity: 20
max_z_accel: 150
#####################################################################
# X/Y Stepper Settings
#####################################################################
# To tune sensorless homing sensitivity, adjust driver_SGTHRS (0-255)
# Increase to increase sensitivity and down to decrease it. For more, see
# https://wiki.positron3d.com/en/Printers/Positron/Software/PrinterConfigs
# Set stealthchop_threshold to 999999 to turn stealthchop on, and 0
# to use spreadcycle
## A Motor
[stepper_x]
step_pin: gpio14
dir_pin: !gpio13
enable_pin: !gpio15
microsteps: 16
rotation_distance: 40
endstop_pin: tmc2209_stepper_x:virtual_endstop
homing_retract_dist: 0
position_endstop: -3.0
position_min: -3.0
position_max: 182.5
homing_speed: 40
[tmc2209 stepper_x]
uart_pin: gpio9
tx_pin: gpio8
uart_address: 3
run_current: 0.6
#hold_current: 0.3
stealthchop_threshold: 999999
diag_pin: ^gpio16
driver_SGTHRS: 48
## B Motor
[stepper_y]
step_pin: gpio19
dir_pin: !gpio28
enable_pin: !gpio2
microsteps: 16
rotation_distance: 40
endstop_pin: tmc2209_stepper_y:virtual_endstop
homing_retract_dist: 0
position_endstop: 180
position_max: 180
homing_speed: 40
homing_positive_dir: True
[tmc2209 stepper_y]
uart_pin: gpio9
tx_pin: gpio8
uart_address: 1
run_current: 0.6
#hold_current: 0.3
stealthchop_threshold: 999999
diag_pin: ^gpio25
driver_SGTHRS: 48
#####################################################################
# Z Stepper Settings
#####################################################################
# Choose one of the available options for endstop_pin: use gpio3 to
# use the microswitch endstop, use probe:virtual_endstop to use the
# IR probe. If using the IR probe, also comment out position_endstop
# Set stealthchop_threshold to 999999 to turn stealthchop on, and 0
# to use spreadcycle
[stepper_z]
step_pin: gpio6
dir_pin: !gpio5
enable_pin: !gpio7
microsteps: 16
rotation_distance: 40
gear_ratio: 75:10
# endstop_pin: probe:z_virtual_endstop ; IR probe
endstop_pin: gpio3 ; microswitch endstop
position_endstop: 22 ; Comment out if not using endstop
position_min: -4.0
position_max: 165
homing_speed: 15
homing_retract_dist: 15
homing_retract_speed: 30
second_homing_speed: 5
[tmc2209 stepper_z]
uart_pin: gpio9
tx_pin: gpio8
uart_address: 2
run_current: 0.5
hold_current: 0.3
stealthchop_threshold: 999999
#####################################################################
# Extruder
#####################################################################
[extruder]
step_pin: gpio11
dir_pin: gpio10
enable_pin: !gpio12
microsteps: 16
full_steps_per_rotation: 200
rotation_distance: 4.637
nozzle_diameter: 0.4
filament_diameter: 1.75
heater_pin: pth:gpio9
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: pth:gpio29
pullup_resistor: 2200
control: pid
pid_Kp: 25.12
pid_Ki: 1.073
pid_Kd: 147
min_temp: 0
max_temp: 300
full_steps_per_rotation: 200
max_extrude_only_distance: 500
max_extrude_only_velocity: 120
max_extrude_cross_section:4
pressure_advance: 0.25
[tmc2209 extruder]
uart_pin: gpio9
tx_pin: gpio8
uart_address: 0
run_current: 0.6
#hold_current: 0.3
#####################################################################
# Bed Heater
#####################################################################
[thermistor SDNT2012X104_3950]
temperature1: 25
resistance1: 100000
beta: 3950
[heater_bed]
heater_pin: gpio21
sensor_type: SDNT2012X104_3950
sensor_pin: gpio26
pwm_cycle_time: 0.3
max_power: 1.0
control: pid
pid_Kp: 56.852
pid_Ki: 2.1
pid_Kd: 383.75
min_temp: 0
max_temp: 85 ;85 for glass bed, may set to 115 for PCB bed
#####################################################################
# Probe
#####################################################################
## IR Probe
[probe]
pin: pth:gpio24
x_offset: 50
y_offset: 48
z_offset: -3.100
speed: 3
samples: 6
sample_retract_dist: 2
samples_tolerance: 0.05
samples_result: median
#####################################################################
# Fan Control
#####################################################################
# Referece info: https://www.klipper3d.org/Config_Reference.html#fan
## PCF - Part Cooling Fan (Toolhead PCB)
[fan]
pin: pth:gpio6
tachometer_pin: pth:gpio17
max_power: 0.8
kick_start_time: 0.5
off_below: 0.15
tachometer_poll_interval: 0.001
## HEF - Hotend Fan (Toolhead PCB)
[heater_fan hotend_fan]
pin: pth:gpio5
tachometer_pin: pth:gpio16
kick_start_time: 0.5
fan_speed: 0.7 ; reduced for noise
tachometer_poll_interval: 0.001
heater: extruder
## MCU Side Base Fan
[controller_fan mcu_fan1]
pin: gpio17
tachometer_pin: gpio23
fan_speed: 0.4
shutdown_speed: 0
idle_timeout: 5
stepper: stepper_x, stepper_y, stepper_z
## PSU Side Base Fan
[controller_fan mcu_fan2]
pin: gpio18
tachometer_pin: gpio20
fan_speed: 0.25
shutdown_speed: 0
idle_timeout: 5
stepper: stepper_x, stepper_y, stepper_z
#####################################################################
# LED Control
#####################################################################
[neopixel _indicator]
pin: gpio24
chain_count: 5
color_order: GRB
initial_RED: 0.0
initial_GREEN: 0.0
initial_BLUE: 0.0
#####################################################################
# Accelerometer
#####################################################################
[adxl345]
cs_pin: pth:gpio21
spi_software_sclk_pin: pth:gpio18
spi_software_mosi_pin: pth:gpio20
spi_software_miso_pin: pth:gpio19
[resonance_tester]
accel_chip: adxl345
probe_points: 90, 90, 20
#####################################################################
# Additional Sensors
#####################################################################
[temperature_sensor mainboard_mcu_temp]
sensor_type: temperature_mcu
sensor_mcu: mcu
[temperature_sensor toolboard_mcu_temp]
sensor_type: temperature_mcu
sensor_mcu: pth
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
#####################################################################
# Bed Adjustment Routines
#####################################################################
## To be used with BED_SCREWS_ADJUST
[bed_screws]
screw1: 90, 20
screw1_name: rear
screw2: 5, 170
screw2_name: left
screw3: 180, 170
screw3_name: right
#####################################################################
# Buzzer
#####################################################################
[output_pin _buzzer]
pin: gpio22
value: 0
shutdown_value: 0
#####################################################################
# Additional Features
#####################################################################
[input_shaper]
[idle_timeout]
timeout: 1800
[exclude_object]
#####################################################################
# Additional Files
#####################################################################
[include fluidd.cfg]
[include positron_macros.cfg]