-
Notifications
You must be signed in to change notification settings - Fork 2
/
machine.cfg
308 lines (274 loc) · 6.42 KB
/
machine.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
###################################################################
# Script Name : "machine.cfg"
# Description : This file contains common pin mappings for the BigTreeTech Octopus v1.1
# To use this config, the firmware should be compiled for the
# STM32F446 with a "32KiB bootloader" and a "12MHz crystal" clock reference.
# Args :
# Author : Alexander Koehler
# Email : software@akks.de
# Date : 26.02.2022
###################################################################
# Driver0
[stepper_x]
step_pin: PF13
dir_pin: !PF12
enable_pin: !PF14
microsteps: 16
rotation_distance: 40
endstop_pin: PG6
position_endstop: 0
position_max: 253 # old 235
homing_speed: 50
# Driver1
[stepper_y]
step_pin: PG0
dir_pin: !PG1
enable_pin: !PF15
microsteps: 16
rotation_distance: 40
endstop_pin: PG9
position_endstop: 0
position_max: 235
homing_speed: 50
# Driver2
[stepper_z]
step_pin: PF11
dir_pin: PG3
enable_pin: !PG5
microsteps: 16
rotation_distance: 8
endstop_pin: PG10
#position_endstop: 0.2
endstop_pin: probe:z_virtual_endstop
position_min: -1
position_max: 235 # old 240
# Driver3
# The Octopus only has 4 heater outputs which leaves an extra stepper
# This can be used for a second Z stepper, dual_carriage, extruder co-stepper,
# or other accesory such as an MMU
#[stepper_]
#step_pin: PG4
#dir_pin: PC1
#enable_pin: PA0
#endstop_pin: PG11
# Driver4
[extruder]
step_pin: PF9
dir_pin: !PF10
enable_pin: !PG2
microsteps: 16
full_steps_per_rotation: 200
rotation_distance: 7.920 #7.402 #7.710
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA2 # HE0
sensor_pin: PF4 # T0
sensor_type: EPCOS 100K B57560G104F
min_temp: 0
max_temp: 280
control: pid
pid_Kp: 21.527
pid_Ki: 1.063
pid_Kd: 108.982
max_extrude_only_distance: 800.0
#max_extrude_only_distance: 50.0
# Maximum length (in mm of raw filament) that a retraction or
# extrude-only move may have. If a retraction or extrude-only move
# requests a distance greater than this value it will cause an error
# to be returned. The default is 50mm.
[filament_switch_sensor fsensor0] # material_1
switch_pin: PG13
# Driver5
# [extruder1]
# step_pin: PC13
# dir_pin: !PF0
# enable_pin: !PF1
# microsteps: 16
# full_steps_per_rotation: 200
# rotation_distance: 8.512 #7.402
# #step_distance: .0025
# nozzle_diameter: 0.400
# filament_diameter: 1.750
# max_extrude_only_distance: 800.0
# shared_heater: extruder
# #heater_pin: PA3 # HE1
# #sensor_pin: PF5 # T1
# #extruder: extruder1
# #pause_on_runout: True
# [filament_motion_sensor fsensor0] # material_0
# #AK#switch_pin: PG12
# switch_pin: PG11
# detection_length: 7.0
# extruder: extruder
# pause_on_runout: True
# Driver6
#[extruder2]
#step_pin: PE2
#dir_pin: PE3
#enable_pin: !PD4
#heater_pin: PB10 # HE2
#sensor_pin: PF6 # T2
#...
#[filament_switch_sensor material_2]
#switch_pin: PG14
# Driver7
#[extruder3]
#step_pin: PE6
#dir_pin: PA14
#enable_pin: !PE0
#heater_pin: PB11 # HE3
#sensor_pin: PF7 # T3
#...
#[filament_switch_sensor material_3]
#switch_pin: PG15
[heater_bed]
heater_pin: PA1
sensor_pin: PF3 # TB
#AK#sensor_type: ATC Semitec 104GT-2
sensor_type: EPCOS 100K B57560G104F
min_temp: 0
max_temp: 130
#AK#control: watermark
control: pid
pid_Kp: 54.027
pid_Ki: 0.770
pid_Kd: 948.182
# Bautail Luefter
[fan]
pin: PA8
# Hot-End Luefter
[heater_fan heater_fan]
pin: PE5
#[heater_fan fan2]
#pin: PD12
#[temperature_fan controller_fan2]
[temperature_fan mcu_fan2]
pin: PD14 #AK# PD12
min_temp: 0
max_temp: 100
target_temp: 45
max_speed: 1.0
min_speed: 0.0
control: watermark
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PF5
#[temperature_sensor Controller]
#sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PF5
#[temperature_fan Controller2]
#pin: PD14
#min_temp: 0
#max_temp: 100
#target_temp: 38
#max_speed: 1.0
#min_speed: 0.0
#control: watermark
#sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PF5
#[controller_fan controller_fan1]
[controller_fan mcu_fan1]
pin: PD12 #AK# PD14
#[temperature_sensor Controller]
#sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PF5
#[heater_fan fan3]
#pin: PD13
#[fan_generic case_fan]
#pin: PD13
#[temperature_fan case]
[temperature_fan case_fan]
pin: PD13
min_temp: 0
max_temp: 100
target_temp: 55
max_speed: 1.0
min_speed: 0.0
control: watermark
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PF6
#[temperature_sensor case_thermistor]
#sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PF6
#[heater_fan fan4]
#pin: PD14
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 2000 # 3000
max_z_velocity: 10 # 5
max_z_accel: 100
#max_velocity: 200
#max_accel: 2000
#max_z_velocity: 25
#max_z_accel: 100
[mcu]
#AK#serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_320014000E5053424E363620-if00
restart_method: command
# CAN bus is also available on this board
[mcu host]
serial: /tmp/klipper_host_mcu
# Example1: A led strip controlled by the GPIO20 on the RPi
[temperature_sensor mcu_pi_temp]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
########################################
# TMC2130 configuration
########################################
[tmc2130 stepper_x]
cs_pin: PC4
spi_bus: spi1
#diag1_pin: PB10
run_current: 0.800
hold_current: 0.500
stealthchop_threshold: 999999
[tmc2130 stepper_y]
cs_pin: PD11
spi_bus: spi1
#diag1_pin: PE12
run_current: 0.800
hold_current: 0.500
stealthchop_threshold: 999999
[tmc2130 stepper_z]
cs_pin: PC6
spi_bus: spi1
#diag1_pin: PG8
run_current: 0.650
hold_current: 0.450
stealthchop_threshold: 999999
#[tmc2130 stepper_]
#cs_pin: PC7
#spi_bus: spi1
##diag1_pin: PE15
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
[tmc2130 extruder]
cs_pin: PF2
spi_bus: spi1
run_current: 0.800
hold_current: 0.500
stealthchop_threshold: 999999
# [tmc2130 extruder1]
# cs_pin: PE4
# spi_bus: spi1
# run_current: 0.800
# hold_current: 0.500
# stealthchop_threshold: 999999
#[tmc2130 extruder2]
#cs_pin: PE1
#spi_bus: spi1
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#[tmc2130 extruder3]
#cs_pin: PD3
#spi_bus: spi1
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999