Конфиг файлы Klipper
Last updated
Last updated
Конфиг для SKR 1.3, TMC2209 с Sensorless (парковка без концевиков), подключение по UART экранированным проводом. Для копирования конфигурации с этой страницы воспользуйтесь значком в правом верхнем углу окошка кода, или скачайте файл ниже.
# 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.
[include kiauh_macros.cfg]
[mcu]
serial: /dev/ttyS2
baud: 500000
restart_method: command
[pause_resume]
[display_status]
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 230 #edit to your park position
default_parameter_Y: 230 #edit to your park position
default_parameter_Z: 10 #edit to your park position
default_parameter_E: 1 #edit to your retract length
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{E} F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
[gcode_macro RESUME]
rename_existing: BASE_RESUME
default_parameter_E: 1 #edit to your retract length
gcode:
G91
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
SET_LED LED=LED_pin RED=0.5 GREEN=0.0 BLUE=0.0 TRANSMIT=1
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
G28
M107
M84 ; disable motors
[rename_existing = BASE_CANCEL_PRINT
gcode =
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
G28
[neopixel LED_pin]
pin: P2.0
chain_count: 14
color_order: GRB
initial_RED: 0.0
initial_GREEN: 0.0
initial_BLUE: 0.2
[stepper_x]
step_pin: P2.2
dir_pin: P2.6
enable_pin: !P2.1
step_distance: .00625
#endstop_pin: P1.29
position_endstop: 0
position_min: -2
position_max: 160
homing_speed: 50
homing_retract_dist: 0
#homing_positive_dir: true
endstop_pin: tmc2209_stepper_x:virtual_endstop
[stepper_y]
step_pin: P0.19
dir_pin: P0.20
enable_pin: !P2.8
step_distance: .00625
#endstop_pin: P1.27
position_endstop: 0
position_min: -2
position_max: 110
homing_speed: 50
homing_retract_dist: 0
endstop_pin: tmc2209_stepper_y:virtual_endstop
[stepper_z]
step_pin: P0.22
dir_pin: !P2.11
enable_pin: !P0.21
step_distance: .00125
endstop_pin: P1.24 # P1.25 for Z-min
position_max: 180
position_endstop: 172
homing_speed: 150
homing_positive_dir: true
[extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
step_distance: .0024
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: P2.7
sensor_type: ATC Semitec 104GT-2
sensor_pin: P0.25
min_temp: 0
max_temp: 290
[heater_bed]
heater_pin: P2.5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.23
min_temp: 0
max_temp: 120
[fan]
pin: P2.3
[printer]
kinematics: corexy
max_velocity: 2500
max_accel: 4500
max_z_velocity: 25
max_z_accel: 200
square_corner_velocity: 15.0
[virtual_sdcard]
path: ~/klipper/uploads
[tmc2209 stepper_x]
uart_pin: P1.17
microsteps: 32
run_current: 0.950
hold_current: 0.450
stealthchop_threshold: 250
interpolate: True
sense_resistor: 0.110
diag_pin: ^P1.29
driver_SGTHRS: 90
[tmc2209 stepper_y]
uart_pin: P1.15
microsteps: 32
run_current: 0.950
hold_current: 0.450
stealthchop_threshold: 250
interpolate: True
sense_resistor: 0.110
diag_pin: ^P1.27
driver_SGTHRS: 90
[tmc2209 extruder]
uart_pin: P1.8
microsteps: 16
run_current: 0.900
hold_current: 0.400
stealthchop_threshold: 0
########################################
# EXP1 / EXP2 (display) pins
########################################
#[display]
#lcd_type: uc1701
#cs_pin: EXP1_3
#a0_pin: EXP1_4
#rst_pin: EXP1_5
#contrast: 63
#encoder_pins: ^EXP2_3, ^EXP2_5
#click_pin: ^!EXP1_2
#kill_pin: ^!EXP2_8
[neopixel display]
#pin: EXP1_6
#chain_count: 3
#color_order: RGB
#initial_RED: 0.0
#initial_GREEN: 0.0
#initial_BLUE: 1.0
[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.
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 21.517
#*# pid_ki = 1.112
#*# pid_kd = 104.089
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 52.234
#*# pid_ki = 1.127
#*# pid_kd = 605.259