Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save hpiaia/ba3d7fcfd08cfe1750ac66ccc7781b5b to your computer and use it in GitHub Desktop.
klipper ender 3 v2 cfg
[include mainsail.cfg]
[virtual_sdcard]
path: /home/ender/printer_enderv2_data/gcodes
# ==============================================================================
# MCU Configuration
# ==============================================================================
[mcu]
serial: /dev/serial/by-path/platform-300e0000.usb-usbv1-0:1:1.0-port0
restart_method: command
# ==============================================================================
# Printer Configuration
# ==============================================================================
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
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: 0
position_min: 0
position_max: 242
homing_speed: 100
[stepper_y]
step_pin: PB8
dir_pin: PB7
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA6
position_endstop: 0
position_min: 0
position_max: 205
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: -3
position_max: 250
# ==============================================================================
# Extruder
# ==============================================================================
[extruder]
step_pin: PB4
dir_pin: PB3
enable_pin: !PC3
microsteps: 16
rotation_distance: 34.406
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
control: pid
pid_Kp: 21.527
pid_Ki: 1.063
pid_Kd: 108.982
min_temp: 0
max_temp: 250
max_extrude_only_distance: 100.0
# ==============================================================================
# Heated Bed
# ==============================================================================
[heater_bed]
heater_pin: PA2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
control: pid
pid_Kp: 54.027
pid_Ki: 0.770
pid_Kd: 948.182
min_temp: 0
max_temp: 100
# ==============================================================================
# Cooling
# ==============================================================================
[fan]
pin: PA0
# ==============================================================================
# BLTouch Probe
# ==============================================================================
[bltouch]
sensor_pin: ^PB1
control_pin: PB0
x_offset: -42.5
y_offset: -5
z_offset: 2.81
probe_with_touch_mode: true
stow_on_each_sample: false
# ==============================================================================
# Bed Leveling
# ==============================================================================
[bed_mesh]
speed: 150
mesh_min: 29, 29
mesh_max: 198, 198
probe_count: 5, 5
algorithm: bicubic
fade_start: 1
fade_end: 10
fade_target: 0
[safe_z_home]
home_xy_position: 117.5, 117.5
speed: 150
z_hop: 10
z_hop_speed: 5
[screws_tilt_adjust]
screw1: 72, 32
screw1_name: front left screw
screw2: 242, 32
screw2_name: front right screw
screw3: 242, 205
screw3_name: rear right screw
screw4: 72, 205
screw4_name: rear left screw
horizontal_move_z: 10
speed: 100
screw_thread: CW-M4
# ==============================================================================
# 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.032500, -0.005000, -0.045000, 0.010000, -0.005000
#*# 0.010000, -0.002500, -0.042500, 0.025000, 0.015000
#*# -0.015000, -0.007500, -0.037500, 0.027500, 0.007500
#*# -0.007500, -0.012500, -0.052500, 0.017500, 0.015000
#*# 0.012500, -0.005000, -0.052500, 0.015000, 0.017500
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 29.0
#*# max_x = 198.0
#*# min_y = 29.0
#*# max_y = 198.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment