Kod: Markera allt
# 2020 Creality Ender 3 V2
# This file contains pin mappings
# To use this config, during "make menuconfig" select the
# STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9)
# communication.
# If you prefer a direct serial connection, in "make menuconfig"
# select "Enable extra low-level configuration options" and select
# serial (on USART3 PB11/PB10), which is broken out 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 firmware
# filename must end in ".bin" and must not match the last filename
# that was flashed.
# See docs/Config_Reference.md for a description of parameters.
[include mainsail.cfg]
[mcu rpi]
serial: /tmp/klipper_host_mcu
[adxl345]
cs_pin: rpi:None
[resonance_tester]
accel_chip: adxl345
probe_points:
100,100,20 # an example
[input_shaper]
shaper_freq_x: 36.8
shaper_type_x: mzv
shaper_freq_y: 44.0
shaper_type_y: mzv
[bltouch] #Creality CR touch
sensor_pin: ^PB1
control_pin: PB0
x_offset: -40 # Enter your own value here
y_offset: -40 # Enter your own value here
[safe_z_home]
home_xy_position: 117.5,117.5 # Change coordinates to the center of your print bed
z_hop: 20 # Move up 20mm
z_hop_speed: 5
[bed_mesh]
speed: 120
horizontal_move_z: 5
mesh_min: 27, 37
mesh_max: 150,150
probe_count: 9, 9
mesh_pps: 2, 3
algorithm: bicubic
bicubic_tension: 0.
fade_start: 1
fade_end: 10
fade_target: 0
[bed_screws]
screw1: 64.5, 232.5 # Left_rear
screw2: 204.5, 232.5 # Light_rear
screw3: 204.5, 92.5 # Right_front
screw4: 64.5,92.5 # Left_front
[stepper_x]
step_pin: PB9
dir_pin: PC2
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA5
position_endstop:7.5
position_max: 240
homing_speed: 50
[stepper_y]
step_pin: PB7
dir_pin: PB8
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA6
position_endstop: 17.5
position_max: 240
homing_speed: 50
[stepper_z]
step_pin: !PB5
dir_pin: !PB6
enable_pin: !PC3
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop # Comment out if not using BL/CR-Touch
#endstop_pin: ^!PA7 # Uncomment if not using BL/CR-Touch
#position_endstop: 0.0 # Uncomment if not using BL/CR-Touch
position_max: 100
position_min: -2
[extruder] # Creality sprite pro
max_extrude_only_distance: 100.0
step_pin: PB4
dir_pin: PB3
enable_pin: !PC3
microsteps: 16
rotation_distance: 7.45 # Change value to 34.406 if not using Micro Swiss Dual Gear Extruder
nozzle_diameter: 0.6
filament_diameter: 1.750
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
control: pid
# tuned for stock hardware with 230 degree Celsius target
pid_Kp: 22.605
pid_Ki: 1.215
pid_Kd: 105.112
min_temp: 0
max_temp: 300
pressure_advance = 1.0
[heater_bed]
heater_pin: PA2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
control: pid
# tuned for stock hardware with 80 degree Celsius target
pid_Kp: 74.533
pid_Ki: 1.854
pid_Kd: 749.059
min_temp: 0
max_temp: 130
[fan]
pin: PA0
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 0.94
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.035000, -0.027500, -0.035000, -0.030000, 0.015000, 0.042500, 0.047500, 0.035000, 0.080000
#*# -0.047500, -0.015000, -0.027500, -0.017500, 0.022500, 0.055000, 0.060000, 0.062500, 0.075000
#*# 0.002500, 0.000000, -0.020000, -0.015000, 0.022500, 0.047500, 0.050000, 0.037500, 0.077500
#*# 0.007500, 0.015000, 0.005000, 0.007500, 0.047500, 0.070000, 0.070000, 0.075000, 0.090000
#*# 0.002500, 0.010000, -0.010000, -0.007500, 0.045000, 0.052500, 0.065000, 0.060000, 0.107500
#*# -0.005000, 0.017500, 0.002500, 0.002500, 0.055000, 0.085000, 0.100000, 0.102500, 0.125000
#*# 0.015000, 0.022500, 0.002500, 0.007500, 0.050000, 0.082500, 0.085000, 0.080000, 0.137500
#*# 0.055000, 0.075000, 0.062500, 0.055000, 0.092500, 0.132500, 0.130000, 0.132500, 0.150000
#*# 0.080000, 0.090000, 0.065000, 0.055000, 0.110000, 0.140000, 0.140000, 0.130000, 0.170000
#*# x_count = 9
#*# y_count = 9
#*# mesh_x_pps = 2
#*# mesh_y_pps = 3
#*# algo = bicubic
#*# tension = 0.0
#*# min_x = 26.999999999999986
#*# max_x = 149.95999999999998
#*# min_y = 37.0
#*# max_y = 149.96
#*#
#*# [bed_mesh default1]
#*# version = 1
#*# points =
#*# 0.120000, 0.120000, 0.087500, 0.080000, 0.107500, 0.130000, 0.125000, 0.087500, 0.115000
#*# 0.067500, 0.087500, 0.055000, 0.050000, 0.075000, 0.105000, 0.090000, 0.075000, 0.067500
#*# 0.082500, 0.070000, 0.035000, 0.017500, 0.040000, 0.052500, 0.050000, 0.025000, 0.032500
#*# 0.052500, 0.047500, 0.017500, -0.002500, 0.020000, 0.030000, 0.025000, 0.007500, 0.000000
#*# 0.012500, 0.002500, -0.040000, -0.062500, -0.032500, -0.025000, -0.025000, -0.050000, -0.012500
#*# -0.045000, -0.032500, -0.072500, -0.090000, -0.060000, -0.042500, -0.030000, -0.045000, -0.042500
#*# -0.062500, -0.065000, -0.102500, -0.117500, -0.102500, -0.082500, -0.085000, -0.100000, -0.072500
#*# -0.057500, -0.055000, -0.092500, -0.115000, -0.097500, -0.080000, -0.087500, -0.105000, -0.090000
#*# -0.072500, -0.067500, -0.122500, -0.150000, -0.125000, -0.100000, -0.110000, -0.142500, -0.115000
#*# x_count = 9
#*# y_count = 9
#*# mesh_x_pps = 2
#*# mesh_y_pps = 3
#*# algo = bicubic
#*# tension = 0.0
#*# min_x = 26.999999999999986
#*# max_x = 149.95999999999998
#*# min_y = 37.0
#*# max_y = 149.96
#*#
#*# [bed_mesh default2]
#*# version = 1
#*# points =
#*# 0.087500, 0.075000, 0.052500, 0.037500, 0.057500, 0.070000, 0.067500, 0.035000, 0.050000
#*# 0.040000, 0.065000, 0.027500, 0.020000, 0.040000, 0.067500, 0.055000, 0.037500, 0.027500
#*# 0.070000, 0.057500, 0.022500, 0.000000, 0.027500, 0.037500, 0.027500, -0.002500, 0.010000
#*# 0.060000, 0.055000, 0.025000, 0.007500, 0.022500, 0.035000, 0.030000, 0.002500, 0.000000
#*# 0.037500, 0.032500, -0.015000, -0.027500, -0.005000, 0.002500, 0.002500, -0.015000, 0.005000
#*# 0.000000, 0.017500, -0.017500, -0.035000, -0.007500, 0.012500, 0.015000, 0.002500, 0.007500
#*# 0.000000, 0.017500, -0.027500, -0.045000, -0.030000, -0.007500, -0.010000, -0.025000, 0.002500
#*# 0.032500, 0.040000, -0.002500, -0.022500, -0.002500, 0.017500, 0.007500, -0.012500, 0.000000
#*# 0.042500, 0.050000, -0.012500, -0.030000, -0.012500, 0.012500, 0.002500, -0.020000, -0.005000
#*# x_count = 9
#*# y_count = 9
#*# mesh_x_pps = 2
#*# mesh_y_pps = 3
#*# algo = bicubic
#*# tension = 0.0
#*# min_x = 26.999999999999986
#*# max_x = 149.95999999999998
#*# min_y = 37.0
#*# max_y = 149.96
#*#
#*# [bed_mesh default3]
#*# version = 1
#*# points =
#*# -0.002500, -0.002500, -0.022500, -0.042500, -0.015000, 0.000000, 0.000000, -0.027500, -0.007500
#*# -0.032500, -0.007500, -0.037500, -0.047500, -0.022500, 0.002500, 0.000000, -0.017500, -0.017500
#*# 0.007500, 0.000000, -0.032500, -0.057500, -0.032500, -0.022500, -0.027500, -0.050000, -0.035000
#*# 0.000000, -0.005000, -0.027500, -0.050000, -0.030000, -0.020000, -0.025000, -0.042500, -0.037500
#*# -0.012500, -0.017500, -0.057500, -0.082500, -0.047500, -0.040000, -0.042500, -0.055000, -0.027500
#*# -0.035000, -0.017500, -0.052500, -0.082500, -0.042500, -0.027500, -0.025000, -0.032500, -0.022500
#*# -0.025000, -0.022500, -0.060000, -0.080000, -0.057500, -0.035000, -0.040000, -0.055000, -0.022500
#*# 0.010000, 0.010000, -0.025000, -0.052500, -0.027500, -0.007500, -0.020000, -0.030000, -0.022500
#*# 0.012500, 0.022500, -0.027500, -0.057500, -0.030000, -0.012500, -0.022500, -0.037500, -0.017500
#*# x_count = 9
#*# y_count = 9
#*# mesh_x_pps = 2
#*# mesh_y_pps = 3
#*# algo = bicubic
#*# tension = 0.0
#*# min_x = 26.999999999999986
#*# max_x = 149.95999999999998
#*# min_y = 37.0
#*# max_y = 149.96