Skip to content

Instantly share code, notes, and snippets.

@zwnk
Last active October 8, 2020 21:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save zwnk/92066555145cddecfd7df92a713dc5f1 to your computer and use it in GitHub Desktop.
Save zwnk/92066555145cddecfd7df92a713dc5f1 to your computer and use it in GitHub Desktop.
klipper config 4 skr v1.3
#####################################################################################
# SKR v1.3 Configuration for Ender 3
# X,Y and Z are TMC2208 in UART Mode.
# E is an TMC2209
# BLTouch
#####################################################################################
[printer]
kinematics: cartesian
max_velocity: 400 #300
max_accel: 2500 #2000
max_z_velocity: 50
max_z_accel: 150
#####################################################################################
[tmc2208 stepper_x]
uart_pin: P1.17
microsteps: 16
interpolate: True
run_current: 0.7
hold_current: 0.5
stealthchop_threshold: 600
driver_PWM_AUTOGRAD: True
driver_PWM_AUTOSCALE: True
driver_HEND: 3
driver_HSTRT: 0
[stepper_x]
step_pin: P2.2
dir_pin: !P2.6
enable_pin: !P2.1
step_distance: .0125
endstop_pin: P1.29
position_endstop: 0
position_min: 0
position_max: 235
homing_speed: 50
#####################################################################################
[tmc2208 stepper_y]
uart_pin: P1.15
microsteps: 16
interpolate: True
run_current: 0.7
hold_current: 0.5
stealthchop_threshold: 600
driver_PWM_AUTOGRAD: True
driver_PWM_AUTOSCALE: True
driver_HEND: 3
driver_HSTRT: 0
[stepper_y]
step_pin: P0.19
dir_pin: !P0.20
enable_pin: !P2.8
step_distance: .0125
endstop_pin: P1.27
position_endstop: 0
position_min: 0
position_max: 235
homing_speed: 50
#####################################################################################
[tmc2208 stepper_z]
uart_pin: P1.10
microsteps: 16
interpolate: True
run_current: 0.7
hold_current: 0.5
stealthchop_threshold: 200
driver_PWM_AUTOGRAD: True
driver_PWM_AUTOSCALE: True
driver_HEND: 3
driver_HSTRT: 0
[stepper_z]
step_pin: P0.22
dir_pin: P2.11
enable_pin: !P0.21
step_distance: .0025
endstop_pin: P1.25
endstop_pin: probe:z_virtual_endstop
position_endstop: 0
position_min: -1
position_max: 250
homing_retract_dist: 10 # to fix bltouch clone error
#####################################################################################
[tmc2209 extruder]
uart_pin: P1.8
microsteps: 16
interpolate: False
hold_current: 0.5
run_current: 0.95
stealthchop_threshold: 250
#driver_PWM_AUTOGRAD: True
#driver_PWM_AUTOSCALE: True
#driver_HEND: 3
#driver_HSTRT: 0
[extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
step_distance: 0.00926
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: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 290
pressure_advance: 0.0
max_extrude_only_velocity: 120
max_extrude_only_accel: 1000
#####################################################################################
[heater_bed]
heater_pin: P2.5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.23
control: pid
pid_Kp: 54.027
pid_Ki: 0.770
pid_Kd: 948.182
min_temp: 0
max_temp: 130
#####################################################################################
[fan]
pin: P2.3
[heater_fan noozle_fan]
heater: extruder
shutdown_speed: 0
cycle_time: 0.010
#hardware_pwm: True
kick_start_time: 0.100
heater_temp: 50
fan_speed: 1.0
pin: P2.4
#####################################################################################
[bltouch]
sensor_pin: P1.25
control_pin: P2.0
#pin_move_time: 0.8
#pin_up_reports_not_triggered: True
#pin_up_touch_mode_reports_triggered: False
x_offset: -60
y_offset: -13
z_offset: 2.95 #3.1
samples: 2
#speed: 3
#####################################################################################
[homing_override]
set_position_z: 10
axes: z
gcode:
G90
G1 Z20 F600
G28 X0 Y0 F3000
G1 X177 Y130 F3000 # G1 X117 Y117 F3000
G28 Z0
G1 Z20 F500
[bed_mesh]
speed: 100
horizontal_move_z: 10
mesh_min: -3,20
mesh_max: 160,207
probe_count: 4,4
split_delta_z: 0.025
move_check_distance: 10.0
mesh_pps: 2,2
algorithm: bicubic
[virtual_sdcard]
path = ~/sdcard
#####################################################################################
[mcu]
serial: /dev/serial/by-id/usb-Klipper_lpc1768_09A0FF10031436AF84F46A5BC72000F5-if00
#####################################################################################
@zwnk
Copy link
Author

zwnk commented Sep 17, 2020

updated to latest version on 16.09.2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment