274 lines
		
	
	
		
			6.5 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			274 lines
		
	
	
		
			6.5 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
# 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 mainsail.cfg]
 | 
						|
 | 
						|
[include macros.cfg]
 | 
						|
 | 
						|
[include timelapse.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
 | 
						|
 | 
						|
[filament_switch_sensor filament_sensor]
 | 
						|
switch_pin: ^PC15
 | 
						|
pause_on_runout: true
 | 
						|
 | 
						|
[temperature_sensor mcu_temp]
 | 
						|
sensor_type: temperature_mcu
 | 
						|
min_temp: 0
 | 
						|
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
 | 
						|
 | 
						|
[force_move]
 | 
						|
enable_force_move: 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.3403877
 | 
						|
nozzle_diameter: 0.400
 | 
						|
filament_diameter: 1.750
 | 
						|
max_extrude_cross_section: 5
 | 
						|
max_extrude_only_distance: 500
 | 
						|
pressure_advance: 0.04
 | 
						|
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: 265
 | 
						|
 | 
						|
#####################################################################
 | 
						|
#   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: 7, 7
 | 
						|
algorithm: bicubic
 | 
						|
 | 
						|
[bltouch]
 | 
						|
sensor_pin: ^PC14
 | 
						|
control_pin: PC13
 | 
						|
x_offset: -24.0
 | 
						|
y_offset: -14.5
 | 
						|
#z_offset: 0.1
 | 
						|
speed: 20
 | 
						|
pin_move_time: 0.4
 | 
						|
stow_on_each_sample: False
 | 
						|
probe_with_touch_mode: True
 | 
						|
 | 
						|
#####################################################################
 | 
						|
#   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]
 | 
						|
 | 
						|
[exclude_object]
 | 
						|
 | 
						|
#*# <---------------------- SAVE_CONFIG ---------------------->
 | 
						|
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
 | 
						|
#*#
 | 
						|
#*# [bltouch]
 | 
						|
#*# z_offset = 1.540
 | 
						|
#*#
 | 
						|
#*# [bed_mesh default]
 | 
						|
#*# version = 1
 | 
						|
#*# points =
 | 
						|
#*# 	0.222500, -0.060000, -0.092500, -0.065000, -0.027500, -0.002500, 0.010000
 | 
						|
#*# 	0.150000, -0.077500, -0.155000, -0.105000, -0.052500, 0.002500, -0.025000
 | 
						|
#*# 	0.187500, -0.085000, -0.157500, -0.120000, -0.100000, -0.042500, -0.057500
 | 
						|
#*# 	0.062500, -0.087500, -0.140000, -0.130000, -0.112500, -0.097500, -0.090000
 | 
						|
#*# 	0.007500, -0.077500, -0.150000, -0.122500, -0.112500, -0.105000, -0.097500
 | 
						|
#*# 	0.142500, -0.007500, -0.095000, -0.102500, -0.102500, -0.082500, -0.080000
 | 
						|
#*# 	0.305000, 0.275000, 0.040000, 0.022500, 0.007500, -0.002500, 0.020000
 | 
						|
#*# x_count = 7
 | 
						|
#*# y_count = 7
 | 
						|
#*# mesh_x_pps = 2
 | 
						|
#*# mesh_y_pps = 2
 | 
						|
#*# algo = bicubic
 | 
						|
#*# tension = 0.2
 | 
						|
#*# min_x = 10.0
 | 
						|
#*# max_x = 205.95999999999998
 | 
						|
#*# min_y = 10.0
 | 
						|
#*# max_y = 210.45999999999998
 | 
						|
#*#
 | 
						|
#*# [extruder]
 | 
						|
#*# control = pid
 | 
						|
#*# pid_kp = 28.332
 | 
						|
#*# pid_ki = 1.536
 | 
						|
#*# pid_kd = 130.682
 | 
						|
#*#
 | 
						|
#*# [heater_bed]
 | 
						|
#*# control = pid
 | 
						|
#*# pid_kp = 67.201
 | 
						|
#*# pid_ki = 0.976
 | 
						|
#*# pid_kd = 1156.696
 |