Last active
July 15, 2025 15:20
-
-
Save pulsar256/29426c2a4dad6411df2bfebc8d846e56 to your computer and use it in GitHub Desktop.
Vanilla Klipper Configuration for K1S
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Work in progress. configuration to run a k1s machine with vanilla klipper / klippy. | |
## missing: | |
## - z homing / load cell sensor | |
## - accelerometer | |
## - thermistor table for the hotend | |
[virtual_sdcard] | |
path: /useremain/app/gk/gcodes | |
[mcu] | |
serial : /tmp/ttyS3 | |
restart_method : command | |
baud : 576000 | |
[mcu nozzle_mcu] | |
serial : /tmp/ttyS5 | |
restart_method : command | |
baud : 576000 | |
[printer] | |
kinematics : corexy | |
max_velocity:600 | |
max_accel:20000 | |
max_accel_to_decel:20000 | |
square_corner_velocity:15.0 | |
max_z_velocity:15 | |
max_z_accel:1000 | |
[stepper_y] | |
step_pin: PA5 | |
dir_pin: PA4 | |
enable_pin : !PC3 | |
microsteps : 16 | |
full_steps_per_rotation:200 | |
rotation_distance :40 | |
position_endstop : 0 | |
position_min : 0 | |
position_max : 277 | |
homing_speed : 30 | |
homing_retract_dist:0 | |
second_homing_speed:80 | |
#endstop_pin: tmc2209_stepper_y:virtual_endstop | |
#endstop_pin: !PA12 #tmc2209_stepper_y:virtual_endstop | |
##endstop_pin: PA11 #tr5 | |
endstop_pin: !PA8 | |
[tmc2209 stepper_y] | |
uart_pin : PA3 | |
uart_address : 1 | |
#GC6609配置 | |
#backup_uart_pin:PC11 | |
#backup_uart_address:0 | |
run_current : 1.5 | |
hold_current:0.75 | |
sense_resistor: 0.075 | |
stealthchop_threshold :0 | |
interpolate : True | |
driver_SGTHRS: 80 | |
#irun_home : 10 | |
#home_speed_threshold:2300 | |
diag_pin: PA12 | |
[stepper_z] | |
step_pin : PB14 | |
dir_pin : PB13 | |
enable_pin : !PC3 | |
microsteps : 16 | |
rotation_distance : 2.66666666666666666 #试产样机的配置 | |
#rotation_distance : 8 #其他 | |
full_steps_per_rotation:200 | |
endstop_pin : probe:z_virtual_endstop | |
#endstop_pin : PB15 | |
position_min : -4 | |
position_max : 253 | |
homing_speed: 6 | |
homing_retract_dist:4 | |
second_homing_speed:3 | |
[extruder] | |
max_extrude_only_distance : 100.0 | |
step_pin : nozzle_mcu:PA12 | |
dir_pin : !nozzle_mcu:PA11 | |
enable_pin : !nozzle_mcu:PC13 | |
microsteps : 16 | |
full_steps_per_rotation:200 | |
rotation_distance :6.5756 | |
nozzle_diameter : 0.400 | |
filament_diameter : 1.750 | |
max_extrude_cross_section:50 | |
heater_pin : nozzle_mcu:PB8 | |
#sensor_type : NTC ZM3486 HNS112HC4570G0060Y3486 | |
sensor_type :ATC Semitec 104GT-2 | |
sensor_pin : nozzle_mcu:PA0 | |
control : pid | |
pid_Kp : 32.427 | |
pid_Ki : 8.647 | |
pid_Kd : 30.401 | |
min_temp : -180 | |
min_extrude_temp : 170 | |
max_temp : 340 | |
pressure_advance: 0.03 | |
[heater_bed] | |
heater_pin : PA0 | |
#sensor_type : NTC 100K beta 3950 | |
sensor_type : ATC Semitec 104GT-2 | |
sensor_pin : PC0 | |
control : pid | |
pid_Kp : 33.536 | |
pid_Ki : 0.441 | |
pid_Kd : 634.454 | |
min_temp : -200 | |
max_temp : 140 #NTC 采集ADC报错阀值 | |
[tmc2209 stepper_x] | |
uart_pin : PA3 | |
uart_address : 3 | |
#GC660配置 | |
run_current : 1.5 | |
hold_current:0.75 | |
sense_resistor: 0.0750 | |
stealthchop_threshold :0 | |
interpolate : True | |
driver_SGTHRS: 80 | |
#diag_pin: PA6 | |
[tmc2209 stepper_y] | |
uart_pin : PA3 | |
uart_address : 1 | |
#GC6609配置 | |
run_current : 1.5 | |
hold_current:0.75 | |
sense_resistor: 0.075 | |
stealthchop_threshold :0 | |
interpolate : True | |
driver_SGTHRS: 80 | |
#diag_pin: PA12 | |
[tmc2209 stepper_z] | |
uart_pin : PA3 | |
uart_address : 2 | |
#GC6609配置 | |
run_current : 1.6 | |
hold_current:0.8 | |
sense_resistor: 0.0750 | |
stealthchop_threshold : 0 | |
interpolate : True | |
[tmc2209 extruder] | |
uart_pin : nozzle_mcu:PA3 | |
uart_address : 3 | |
#GC6609配置 | |
run_current : 0.6 | |
hold_current:0.3 | |
sense_resistor: 0.075 | |
stealthchop_threshold : 99999 | |
interpolate : True | |
driver_SEMIN:15 | |
driver_SEUP:3 | |
driver_SEMAX:15 | |
driver_SEDN:3 | |
driver_SEIMIN:1 | |
[probe] | |
pin : PB15 #nozzle_mcu:PA4 #PB15 | |
z_offset:0 | |
x_offset:0 | |
y_offset:0 | |
speed : 4.0 | |
lift_speed : 4.0 | |
samples: 2 | |
sample_retract_dist: 2 | |
#samples_result: weighted | |
samples_tolerance: 0.04 | |
samples_tolerance_retries:20 | |
[bed_mesh] | |
speed: 300 | |
horizontal_move_z:3 | |
mesh_min:5,5 | |
mesh_max:245,245 | |
probe_count:5,5 | |
mesh_pps:2,2 | |
split_delta_z:0.0125 | |
algorithm:lagrange | |
fade_start: 1 | |
fade_end: 10 | |
fade_target: 0 | |
[safe_z_home] | |
home_xy_position: 125,125 | |
speed: 120 | |
z_hop: 4.0 | |
z_hop_speed: 8.0 | |
[verify_heater extruder] | |
max_error: 120 | |
check_gain_time:30 | |
hysteresis: 5 | |
heating_gain:1 | |
[verify_heater heater_bed] | |
max_error: 120 | |
check_gain_time:300 | |
hysteresis: 5 | |
heating_gain:1 | |
[controller_fan controller_fan] | |
pin : PB5 | |
fan_speed : 1 | |
idle_speed: 0 | |
idle_timeout: 30 | |
[heater_fan extruder_fan] | |
pin : nozzle_mcu:PB9 | |
#tachometer_pin:nozzle_mcu:PB5 | |
#[custom_temperture_fan] | |
[fan] | |
pin : nozzle_mcu:PB6 | |
cycle_time:0.005 | |
#tachometer_pin :nozzle_mcu:PB7 | |
hardware_pwm: True | |
[fan_generic box_fan] | |
pin : PC6 | |
cycle_time: 0.00003333333 | |
hardware_pwm: True | |
[fan_generic air_filter_fan] | |
pin : PC7 | |
cycle_time: 0.00003333333 | |
hardware_pwm: True | |
[buttons] | |
[gcode_arcs] | |
resolution:1.0 | |
[exclude_object] | |
[force_move] | |
enable_force_move: True | |
[stepper_enable] | |
[gcode_macro WIPE_NOZZLE1] | |
gcode: | |
G90 | |
G1 F8000 | |
G1 X96 | |
G1 X81 | |
[gcode_macro WIPE_STOP1] | |
gcode: | |
G90 | |
G1 F8000 | |
G1 X72 | |
G1 X77 | |
[gcode_macro WIPE_ENTER] | |
gcode: | |
G90 | |
G1 F36000 | |
G1 Y250 | |
G1 F8000 | |
G1 X81 | |
G1 Y273 | |
[gcode_macro WIPE_NOZZLE] | |
gcode: | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
WIPE_NOZZLE1 | |
[gcode_macro WIPE_STOP] | |
gcode: | |
WIPE_STOP1 | |
WIPE_STOP1 | |
G1 X75 | |
[gcode_macro WIPE_EXIT] | |
gcode: | |
G90 | |
G1 F8000 | |
G1 X83 | |
G1 Y250 | |
[gcode_macro TO_THROW_POSITION] | |
gcode: | |
G90 | |
G1 F24000 | |
G1 Y250 | |
G1 X47 | |
G1 Y276 | |
[display_status] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment