Skip to content

Instantly share code, notes, and snippets.

@hpiaia
Created January 17, 2026 11:45
Show Gist options
  • Select an option

  • Save hpiaia/c1f705cf474f139d97d9ecc3b55d8693 to your computer and use it in GitHub Desktop.

Select an option

Save hpiaia/c1f705cf474f139d97d9ecc3b55d8693 to your computer and use it in GitHub Desktop.
klipper ender 3 s1 cfg
[include mainsail.cfg]
[virtual_sdcard]
path: /home/ender/printer_enders1_data/gcodes
# ==============================================================================
# MCU Configuration
# ==============================================================================
[mcu]
serial: /dev/serial/by-path/platform-30120000.usb-usb-0:1:1.0-port0
restart_method: command
# ==============================================================================
# Printer Configuration
# ==============================================================================
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 2000
max_z_velocity: 5
max_z_accel: 100
# ==============================================================================
# Stepper Motors
# ==============================================================================
[stepper_x]
step_pin: PC2
dir_pin: PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: !PA5
position_endstop: -10
position_min: -15
position_max: 232
homing_speed: 100
[stepper_y]
step_pin: PB8
dir_pin: PB7
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: !PA6
position_endstop: -8
position_min: -13
position_max: 226
homing_speed: 100
[stepper_z]
step_pin: PB6
dir_pin: !PB5
enable_pin: !PC3
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_min: -4
position_max: 270
# ==============================================================================
# Extruder
# ==============================================================================
[extruder]
step_pin: PB4
dir_pin: PB3
enable_pin: !PC3
microsteps: 16
gear_ratio: 42:12
rotation_distance: 26.359
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
control: pid
pid_Kp: 23.561
pid_Ki: 1.208
pid_Kd: 114.859
min_temp: 0
max_temp: 260
max_extrude_only_distance: 100.0
# ==============================================================================
# Heated Bed
# ==============================================================================
[heater_bed]
heater_pin: PA7
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
control: pid
pid_Kp: 71.867
pid_Ki: 1.536
pid_Kd: 840.843
min_temp: 0
max_temp: 100
# ==============================================================================
# Cooling
# ==============================================================================
[heater_fan hotend_fan]
pin: PC0
[fan]
pin: PA0
# ==============================================================================
# BLTouch Probe
# ==============================================================================
[bltouch]
sensor_pin: ^PC14
control_pin: PC13
x_offset: -31.8
y_offset: -40.5
z_offset: 1.9
probe_with_touch_mode: true
stow_on_each_sample: false
# ==============================================================================
# Bed Leveling
# ==============================================================================
[bed_mesh]
speed: 150
mesh_min: 10, 10
mesh_max: 200, 184
probe_count: 5, 5
algorithm: bicubic
fade_start: 1
fade_end: 10
fade_target: 0
[safe_z_home]
home_xy_position: 147, 154
speed: 150
z_hop: 10
z_hop_speed: 5
[screws_tilt_adjust]
screw1: 51, 68
screw1_name: front left screw
screw2: 227, 68
screw2_name: front right screw
screw3: 227, 226
screw3_name: rear right screw
screw4: 51, 226
screw4_name: rear left screw
horizontal_move_z: 10
speed: 50
screw_thread: CW-M4
# ==============================================================================
# Filament Sensor
# ==============================================================================
[filament_switch_sensor e0_sensor]
switch_pin: !PC15
pause_on_runout: true
runout_gcode: PAUSE
# ==============================================================================
# Pause/Resume
# ==============================================================================
[pause_resume]
recover_velocity: 25
# ==============================================================================
# SAVE_CONFIG - Auto-generated settings (DO NOT EDIT MANUALLY)
# ==============================================================================
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.022500, 0.112500, 0.125000, 0.040000, 0.052500
#*# -0.042500, 0.005000, 0.060000, 0.025000, -0.017500
#*# -0.072500, -0.007500, 0.050000, 0.015000, -0.045000
#*# -0.060000, -0.007500, 0.052500, -0.027500, -0.072500
#*# -0.012500, 0.055000, 0.070000, 0.010000, -0.095000
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 10.0
#*# max_x = 200.0
#*# min_y = 10.0
#*# max_y = 184.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment