Skip to content

Instantly share code, notes, and snippets.

@emarref
Created July 17, 2025 04:15
Show Gist options
  • Select an option

  • Save emarref/427063d9af9464a5e217fa82880fb20a to your computer and use it in GitHub Desktop.

Select an option

Save emarref/427063d9af9464a5e217fa82880fb20a to your computer and use it in GitHub Desktop.
# Pin Mappings for Stock 2023 Creality Ender 3 V3 SE
#
# To use this configuration:
# 1. During "make menuconfig", select:
# - STM32F103 with a "28KiB bootloader"
# - Serial communication on USART1 (PA10/PA9)
#
# 2. For a direct serial connection:
# - In "make menuconfig", select:
# - "Enable extra low-level configuration options"
# - Serial communication on USART3 (PB11/PB10)
# - This is accessible via the 10-pin IDC cable used for the LCD module:
# - Pin 3: Tx
# - Pin 4: Rx
# - Pin 9: GND
# - Pin 10: VCC
#
# 3. Build the firmware by running:
# - make
#
# 4. Flash the firmware:
# - Copy "klipper/out/klipper.bin" to an SD card.
# - Insert the SD card into the printer and power it on.
# - Ensure the firmware filename ends in ".bin" and is different from the last flashed filename.
#
# For further details, refer to https://www.klipper3d.org/Config_Reference.html.
#####################################################################
# Include the relevant configuration depending on what you are using.
#####################################################################
[include fluidd.cfg]
# [include mainsail.cfg]
[include macros.cfg]
[mcu]
#####################################################################
# Obtain definition by "ls -l /dev/serial/by-id/"
#####################################################################
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
[printer]
kinematics: cartesian
max_velocity: 250
max_accel: 2500
minimum_cruise_ratio: 0.5
square_corner_velocity: 5.0
max_z_velocity: 100
max_z_accel: 500
#####################################################################
# X/Y Stepper Settings
#####################################################################
[stepper_x]
step_pin: PC2
dir_pin: !PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: !PA5
position_endstop: -6
position_min: -6
position_max: 230
homing_speed: 60
[tmc2209 stepper_x]
uart_pin: PB12
run_current: 0.6
sense_resistor: 0.150
stealthchop_threshold: 0
interpolate: True
[stepper_y]
step_pin: PB8
dir_pin: PB7
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: !PA6
position_endstop: -14
position_min: -14
position_max: 225
homing_speed: 60
[tmc2209 stepper_y]
uart_pin: PB13
run_current: 0.6
sense_resistor: 0.150
stealthchop_threshold: 0
interpolate: True
#####################################################################
# Z Stepper Settings
#####################################################################
[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
homing_speed: 5
second_homing_speed: 1
homing_retract_dist: 2.5
[tmc2209 stepper_z]
uart_pin: PB14
run_current: 0.8
sense_resistor: 0.150
stealthchop_threshold: 0
interpolate: True
#####################################################################
# Extruder
#####################################################################
[extruder]
step_pin: PB4
dir_pin: PB3
enable_pin: !PC3
microsteps: 16
rotation_distance: 7.414527225
nozzle_diameter: 0.400
filament_diameter: 1.750
max_extrude_cross_section: 5
max_extrude_only_distance: 101
pressure_advance: 0.05
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
#control: pid
# Tuned for stock hardware with a target of 200 degrees Celsius.
#pid_Kp: 27.142
#pid_Ki: 1.371
#pid_Kd: 134.351
min_temp: 0
max_temp: 260
#####################################################################
# Bed Heater
#####################################################################
[heater_bed]
heater_pin: PB2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
#control: pid
# Tuned for stock hardware with a target of 70 degrees Celsius.
#pid_kp: 66.371
#pid_ki: 0.846
#pid_kd: 1301.702
min_temp: 0
max_temp: 100
#####################################################################
# Bed Mesh & BL Touch
#####################################################################
[bed_mesh]
speed: 150
mesh_min: 10,10
mesh_max: 206,210.5
probe_count: 5, 5
algorithm: bicubic
[bltouch]
sensor_pin: ^PC14
control_pin: PC13
stow_on_each_sample: False
probe_with_touch_mode: True
x_offset: -24.0
y_offset: -14.5
#z_offset: 0
speed: 5
samples: 3
lift_speed: 10
#####################################################################
# Fan Control
#####################################################################
[heater_fan hotend_fan]
pin: PC1
[fan]
pin: PA0
#####################################################################
# Idle Timeout & Homing
#####################################################################
[idle_timeout]
gcode:
OFF
timeout: 600
[safe_z_home]
home_xy_position: 139, 127
speed: 60
z_hop: 10
z_hop_speed: 5
#####################################################################
# Beeper
#####################################################################
[output_pin beeper]
pin: PB0
#####################################################################
# G-Code features
#####################################################################
[gcode_arcs]
#####################################################################
# My Stuff
#####################################################################
[virtual_sdcard]
path: ~/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
[include prtouch.cfg]
[include shell_command.cfg]
[include e3v3se_display.cfg]
[include KAMP_Settings.cfg]
[exclude_object]
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.401667, 0.426667, 0.400000, 0.370833, 0.245833
#*# 0.271667, 0.258333, 0.259167, 0.216667, 0.045833
#*# 0.093333, 0.080000, 0.063333, 0.021667, -0.132500
#*# -0.054167, -0.108333, -0.135000, -0.175000, -0.319167
#*# -0.196667, -0.282500, -0.333333, -0.366667, -0.496667
#*# 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 = 206.0
#*# min_y = 10.0
#*# max_y = 210.48
#*#
#*# [bltouch]
#*# z_offset = 2.124
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 65.147
#*# pid_ki = 0.819
#*# pid_kd = 1294.789
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 27.050
#*# pid_ki = 1.515
#*# pid_kd = 120.712
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment