Add KAMP adaptive mesh leveling and priming - untested

This commit is contained in:
2024-10-12 03:08:17 +01:00
parent 6cca953a81
commit 5145e11e4d
7 changed files with 352 additions and 13 deletions

View File

@@ -0,0 +1,172 @@
# This file contains common pin mappings for the 2018 Creality
# Ender 3. To use this config, the firmware should be compiled for the
# AVR atmega1284p.
# Note, a number of Melzi boards are shipped with a bootloader that
# requires the following command to flash the board:
# avrdude -p atmega1284p -c arduino -b 57600 -P /dev/ttyUSB0 -U out/klipper.elf.hex
# If the above command does not work and "make flash" does not work
# then one may need to flash a bootloader to the board - see the
# Klipper docs/Bootloaders.md file for more information.
[include mainsail.cfg]
[include scottc.cfg]
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PD7
dir_pin: !PC5
enable_pin: !PD6
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC2
position_endstop: 0
position_max: 235
homing_speed: 50
[stepper_y]
step_pin: PC6
dir_pin: !PC7
enable_pin: !PD6
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC3
position_endstop: 0
position_max: 235
homing_speed: 50
[stepper_z]
step_pin: PB3
dir_pin: PB2
enable_pin: !PA5
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_max: 250
[extruder]
max_extrude_cross_section: 200 ### DELETE ME?
max_extrude_only_distance: 100.0
step_pin: PB1
dir_pin: !PB0
enable_pin: !PD6
microsteps: 16
rotation_distance: 23.046
nozzle_diameter: 0.600
filament_diameter: 1.750
heater_pin: PD5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA7
min_temp: 0
max_temp: 250
[heater_bed]
heater_pin: PD4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA6
min_temp: 0
max_temp: 80
[fan]
pin: PB4
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
baud: 250000
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
[bed_screws]
screw1: 30.5, 37
screw2: 30.5, 207
screw3: 204.5, 207
screw4: 204.5, 37
[display]
lcd_type: st7920
cs_pin: PA3
sclk_pin: PA1
sid_pin: PC1
encoder_pins: ^PD2, ^PD3
click_pin: ^!PC0
# The print bed can move so far to the front, that the nozzle can reach the
# plastic cover of the print bed heater cable (only when the bed is moved by
# hand). By homing the Y axis before the X axis, it is ensured the nozzle will
# not melt through the plastic part.
# BEWARE: You will lose the ability to home axes individually. The printer will
# always home all axes for every G28 command.
#[homing_override]
#gcode:
# G28 Y0
# G28 X0
# G28 Z0
[bltouch]
sensor_pin: ^PC4
control_pin: PA4
x_offset: -40.00
y_offset: -8.00
z_offset: 2.60
[safe_z_home]
home_xy_position: 162, 125 # Change coordinates to the center of your print bed
speed: 50
z_hop: 10 # Move up 10mm
z_hop_speed: 5
[bed_mesh]
speed: 120
horizontal_move_z: 5
mesh_min: 20, 20
mesh_max: 195, 220
mesh_pps: 2, 2
probe_count: 8,8
algorithm: bicubic
fade_start: 1
fade_end: 10
fade_target: 0
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 64.222
#*# pid_ki = 1.278
#*# pid_kd = 806.790
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 26.561
#*# pid_ki = 1.476
#*# pid_kd = 119.524
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.027500, 0.022500, -0.012500, -0.017500, -0.042500, -0.050000, -0.047500, -0.035000
#*# 0.062500, 0.047500, 0.015000, 0.010000, -0.022500, -0.030000, -0.027500, -0.037500
#*# 0.110000, 0.100000, 0.050000, 0.037500, -0.010000, -0.022500, -0.027500, -0.035000
#*# 0.117500, 0.105000, 0.065000, 0.037500, 0.000000, -0.007500, -0.022500, -0.022500
#*# 0.132500, 0.112500, 0.072500, 0.055000, 0.017500, -0.007500, -0.017500, -0.025000
#*# 0.152500, 0.125000, 0.087500, 0.060000, 0.025000, 0.005000, -0.002500, -0.010000
#*# 0.105000, 0.102500, 0.062500, 0.045000, 0.022500, 0.015000, 0.015000, 0.025000
#*# 0.100000, 0.087500, 0.055000, 0.055000, 0.032500, 0.025000, 0.037500, 0.035000
#*# x_count = 8
#*# y_count = 8
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 20.0
#*# max_x = 195.0
#*# min_y = 20.0
#*# max_y = 219.99