Skip to content

Instantly share code, notes, and snippets.

@morganfw
Created June 18, 2019 19:39
Show Gist options
  • Save morganfw/2237c22edfffa369d75ad629510be3bd to your computer and use it in GitHub Desktop.
Save morganfw/2237c22edfffa369d75ad629510be3bd to your computer and use it in GitHub Desktop.
Klipper configuration file for Ender-3/Ender-3 PRO with TMC2208 in UART mode
#####################################################################################
# SKR v1.3 Configuration for Ender 3/Ender 3 PRO
# X, Y, Z and E are Eryone TMC2208 v1.2 in UART Mode.
# BLTouch
# Source: https://gist.github.com/zwnk/92066555145cddecfd7df92a713dc5f1
#####################################################################################
[mcu]
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
#####################################################################################
[printer]
kinematics: cartesian
max_velocity: 400 #300
max_accel: 3000 #2000
max_z_velocity: 50
max_z_accel: 150
#max_extrude_only_velocity: 120
#max_extrude_only_accel: 1500
#####################################################################################
# 128x64 Full Graphic Creality CR10 / ENDER 3 stockdisplay
[display]
lcd_type: st7920
cs_pin: P1.19
sclk_pin: P1.21
sid_pin: P1.23
encoder_pins: ^P1.18, ^P1.20
click_pin: !P0.28
[output_pin beeper]
pin: P1.30
#####################################################################################
[tmc2208 stepper_x]
uart_pin: P1.17
microsteps: 16
interpolate: True
hold_current: 0.5
run_current: 0.7
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
hold_current: 0.5
run_current: 0.7
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
hold_current: 0.5
run_current: 0.7
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
#####################################################################################
[tmc2208 extruder]
uart_pin: P1.8
microsteps: 16
interpolate: True
hold_current: 0.5
run_current: 0.9
stealthchop_threshold: 0 #200
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: 10 #10
max_temp: 260 #290
pressure_advance: 0 #0.6
#####################################################################################
[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: 10 #10
max_temp: 130 #130
#####################################################################################
## Side Hotend FAN
[fan]
pin: P2.3
## Always on Hotend FAN
[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: -42
#y_offset: -8
#z_offset: 2.7
##speed: 3
#####################################################################################
#[homing_override]
#set_position_z: 10
#axes: z
#gcode:
# G90
# G1 Z20 F600
# G28 X0 Y0 F3000
# G1 X117 Y117 F3000
# G28 Z0
# G1 Z20 F500
#[bed_mesh]
#samples: 2
#speed: 100
#horizontal_move_z: 10
#min_point: 45,30
#max_point: 220,220
#probe_count: 5,5
#split_delta_z: 0.025
#move_check_distance: 10.0
#mesh_pps: 2,2
#algorithm: lagrange
#####################################################################################
#[mcu]
#serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
#####################################################################################
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 28.348
#*# pid_ki = 1.734
#*# pid_kd = 115.873
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 67.420
#*# pid_ki = 1.129
#*# pid_kd = 1006.242
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment