##################Creality Ender 3 S1 Pro Klipper Config - Enhanced Version###############
######Full guide: https://3dprintbeginner.com/how-to-install-klipper-on-ender-3-s1/######
# This file contains pin mappings for the stock 2021 Creality Ender 3
# S1 & S1 Pro. To use this config, check the STM32 Chip on the
# Mainboard, during "make menuconfig" select accordingly either the
# STM32F103 with "28KiB bootloader" or the STM32F401 with
# "64KiB bootloader" and serial (on USART1 PA10/PA9) for both.
# For a direct serial connection, in "make menuconfig" select
# "Enable extra low-level configuration options" and Serial
# (on USART2 PA3/PA2), which is on the 10 pin IDC cable used
# for the LCD module as follows: 3: Tx, 4: Rx, 9: GND, 10: VCC
# Flash this firmware by copying "out/klipper.bin" to a SD card and
# turning on the printer with the card inserted. The filename
# must be changed to "firmware.bin"
# With STM32F401, you might need to put "firmware.bin" in a
# folder on the SD card called "STM32F4_UPDATE" in order to flash.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PC2
dir_pin: PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: !PA5
position_endstop: -10
position_max: 240
position_min: -15
homing_speed: 50
[stepper_y]
step_pin: PB8
dir_pin: PB7
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: !PA6
position_endstop: -10
position_max: 225
position_min: -15
homing_speed: 50
[stepper_z]
step_pin: PB6
dir_pin: !PB5
enable_pin: !PC3
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_max: 270
position_min: -4
[extruder]
step_pin: PB4
dir_pin: PB3
enable_pin: !PC3
microsteps: 16
gear_ratio: 42:12
rotation_distance: 26.3952
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA1
#sensor_type: EPCOS 100K B57560G104F
sensor_type: Generic 3950
sensor_pin: PC5
# control = pid
# pid_kp = 22.472
# pid_ki = 1.161
# pid_kd = 108.708
min_temp: 0
max_temp: 300
pressure_advance = 0.0950
[heater_bed]
heater_pin: PA7
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
control = pid
pid_kp = 81.000 # Increased from 73.609
pid_ki = 1.616 # Increased from 1.469
pid_kd = 1014.000 # Increased from 921.956
min_temp: 0
max_temp: 110
# Note: PID values adjusted to compensate for ~8°C temperature offset
[verify_heater extruder]
check_gain_time: 200
hysteresis: 5
[heater_fan hotend_fan]
pin: PC0
[fan]
pin: PA0
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
[include PIS.cfg]
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 2000
max_z_velocity: 10
max_z_accel: 200
[bltouch]
sensor_pin: ^PC14 # Add inversion to sensor
control_pin: PC13 # Keep as working
x_offset: -31.8
y_offset: -40.5
#z_offset = 4.000
speed:10
samples:1
samples_result:average
probe_with_touch_mode: true
stow_on_each_sample: false
[include mainsail.cfg]
[safe_z_home]
home_xy_position: 147,154
speed: 100
z_hop: 10
z_hop_speed: 5
[bed_mesh]
speed: 120
mesh_min: 20, 20
mesh_max: 200, 184.5
probe_count: 11,11
algorithm: bicubic
[gcode_macro TILT_ADJUST]
description: Start screws tilt adjust
gcode:
SCREWS_TILT_CALCULATE
[screws_tilt_adjust]
screw1: 50, 67
screw1_name: front left
screw2: 226, 67
screw2_name: front right
screw3: 226, 225
screw3_name: back right
screw4: 50, 225
screw4_name: back left
horizontal_move_z: 10.
speed: 50.
screw_thread: CW-M3
[exclude_object]
# This file contains all settings for KAMP, and must be included in printer.cfg with:
[include KAMP_Settings.cfg]
### see KAMP_Settings.cfg. for its settings ###
[temperature_sensor Raspberry_Pi]
sensor_type: temperature_host
min_temp: 0
max_temp: 85
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
[display_status]
[filament_switch_sensor e0_sensor]
switch_pin: !PC15
pause_on_runout: true
runout_gcode: PAUSE
[pause_resume]
recover_velocity: 25
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 21.734
#*# pid_ki = 1.050
#*# pid_kd = 112.471
#*#
#*# [heater_bed]
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.012500, -0.007500, -0.035000, -0.077500, -0.145000, -0.092500, -0.057500, -0.047500, 0.002500, 0.180000, 0.282500
#*# -0.002500, -0.025000, -0.052500, -0.122500, -0.167500, -0.127500, -0.082500, -0.075000, -0.007500, 0.170000, 0.300000
#*# -0.000000, -0.022500, -0.090000, -0.132500, -0.197500, -0.100000, -0.142500, -0.100000, -0.052500, 0.057500, 0.087500
#*# 0.020000, 0.050000, -0.035000, -0.105000, -0.115000, -0.065000, -0.112500, -0.022500, -0.015000, 0.005000, 0.087500
#*# 0.032500, -0.030000, -0.040000, -0.077500, -0.097500, -0.085000, -0.037500, -0.037500, -0.042500, 0.072500, 0.182500
#*# 0.030000, 0.007500, -0.040000, -0.062500, -0.097500, -0.060000, -0.047500, -0.010000, -0.022500, 0.122500, 0.107500
#*# 0.035000, -0.015000, 0.012500, -0.015000, -0.115000, -0.072500, -0.017500, -0.005000, 0.012500, 0.077500, 0.182500
#*# 0.030000, -0.010000, -0.010000, -0.087500, -0.097500, -0.062500, -0.022500, -0.040000, 0.005000, 0.032500, 0.160000
#*# 0.010000, 0.012500, -0.042500, -0.090000, -0.137500, -0.072500, -0.032500, 0.005000, -0.005000, 0.082500, 0.167500
#*# -0.012500, -0.027500, -0.085000, -0.097500, -0.130000, -0.080000, -0.140000, 0.010000, -0.005000, 0.052500, 0.155000
#*# -0.095000, -0.092500, -0.135000, -0.180000, -0.185000, -0.140000, -0.107500, -0.055000, -0.092500, -0.027500, 0.037500
#*# x_count = 11
#*# y_count = 11
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 20.0
#*# max_x = 200.0
#*# min_y = 20.0
#*# max_y = 184.49999999999997
#*#
#*# [bltouch]
#*# z_offset = 2.915
Comments