Skip to content

Instantly share code, notes, and snippets.

@gretel
Last active January 28, 2024 18:18
Show Gist options
  • Save gretel/31bf10f3b1ac7e4a4a4e9049ac5365bc to your computer and use it in GitHub Desktop.
Save gretel/31bf10f3b1ac7e4a4a4e9049ac5365bc to your computer and use it in GitHub Desktop.
get klippered on multec m420+, skr v1.3, bigtreetech tmc2209
# This line includes all the standard macros.
[include klipper-macros/*.cfg]
# Uncomment to include features that require specific hardware support.
# LCD menu support for features like bed surface selection and pause next layer.
[include klipper-macros/optional/lcd_menus.cfg]
# Optimized bed leveling
[include klipper-macros/optional/bed_mesh.cfg]
[include macro.cfg]
# [include resonance_test.cfg]
# multec m420: y:400 x:210 z:220
[mcu]
restart_method: command
serial: /dev/serial/by-id/usb-Klipper_lpc1768_20500008610039AF06EAF45BC22000F5-if00
[mcu rpi]
serial: /tmp/klipper_host_mcu
# X, Y, Z, E0
# #define DEFAULT_AXIS_STEPS_PER_UNIT { 64, 64, 1600, 513 }
# #define DEFAULT_MAX_ACCELERATION { 3000, 3000, 100, 10000 }
[printer]
kinematics: cartesian
max_velocity: 100
max_accel: 3000
max_z_velocity: 10
max_z_accel: 100
[stepper_x]
step_pin: P2.2
dir_pin: !P2.6
enable_pin: !P2.1
microsteps: 16
rotation_distance: 50
endstop_pin: P1.29 # P1.28 for X-max
position_endstop: 0
position_max: 215
homing_speed: 80
homing_retract_dist: 0
[stepper_y]
step_pin: P0.19
dir_pin: !P0.20
enable_pin: !P2.8
microsteps: 16
rotation_distance: 50
endstop_pin: P1.27 # P1.26 for Y-max
position_endstop: 0
position_max: 395
homing_speed: 80
homing_retract_dist: 0
[stepper_z]
step_pin: P0.22
dir_pin: P2.11
enable_pin: !P0.21
microsteps: 16
rotation_distance: 2 # 17HS19-1684S-PG5X
endstop_pin: probe:z_virtual_endstop
homing_speed: 5.0
second_homing_speed: 1.0
position_max: 390
position_min: -4
# distance to backoff (in mm) before homing a second time during
homing_retract_dist: 2
[extruder]
step_pin: P2.13
dir_pin: P0.11
enable_pin: !P2.12
microsteps: 16
rotation_distance: 6.474
nozzle_diameter: 0.400
filament_diameter: 2.82
heater_pin: P2.7
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.24
min_temp: 10
max_temp: 260
pressure_advance: 0.21
#pressure_advance_smooth_time: 0.080
max_extrude_cross_section: 50.0
max_extrude_only_distance: 500.0
[heater_bed]
heater_pin: P2.5
sensor_type: ATC Semitec 104GT-2
sensor_pin: P0.23
min_temp: 10
max_temp: 105
[probe]
pin: P1.25
#x_offset: -33.2
x_offset: -28.0
# The distance (in mm) between the probe and the nozzle along the
# x-axis. The default is 0.
#y_offset: -6.6
y_offset: -31.0
# The distance (in mm) between the probe and the nozzle along the
# y-axis. The default is 0.
#z_offset: 0.105
# The distance (in mm) between the bed and the nozzle when the probe
# triggers. This parameter must be provided.
[safe_z_home]
home_xy_position: 107.5,200
speed: 100
z_hop: 10
z_hop_speed: 5.0
[bed_mesh]
speed: 80
horizontal_move_z: 3
mesh_min: 20,25
#mesh_max: 145,280
mesh_max: 185,360
probe_count: 5,8
algorithm: bicubic
fade_end: 10
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 80
[fan]
pin: P2.3
#kick_start_time: 0.5
[board_pins]
aliases:
# EXP1 header
EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
# EXP2 header
EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
[tmc2209 stepper_x]
uart_pin: P1.17
run_current: 1.0
[tmc2209 stepper_y]
uart_pin: P1.15
run_current: 1.0
[tmc2209 stepper_z]
uart_pin: P1.10
run_current: 1.0
[tmc2209 extruder]
uart_pin: P1.8
run_current: 1.0
[motor_constants oyo-17hs19-1684s1]
# Coil resistance, Ohms
resistance: 1.65
# Coil inductance, Henries
inductance: 2.80
# Holding torque, Nm
holding_torque: 0.45
# Nominal rated current, Amps
max_current: 1.68
# Steps per revolution (1.8deg motors use 200, 0.9deg motors use 400)
steps_per_revolution: 200
[autotune_tmc stepper_x]
motor: oyo-17hs19-1684s1
tuning_goal: silent
#extra_hysteresis: 4
[autotune_tmc stepper_y]
motor: oyo-17hs19-1684s1
tuning_goal: silent
#extra_hysteresis: 4
[autotune_tmc stepper_z]
motor: oyo-17hs19-1684s1
tuning_goal: silent
[autotune_tmc extruder]
motor: oyo-17hs19-1684s1
tuning_goal: performance
#extra_hysteresis: 2
[display]
lcd_type: st7920
cs_pin: EXP1_4
sclk_pin: EXP1_5
sid_pin: EXP1_3
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
#kill_pin: ^!EXP2_8
[output_pin beeper]
pin: EXP1_1
pwm: True
[idle_timeout]
timeout: 360
[pause_resume]
[force_move]
enable_force_move: True
# Set to true to enable FORCE_MOVE and SET_KINEMATIC_POSITION
# extended G-Code commands. The default is false.
[respond]
[save_variables]
filename: ~/Multec_data/config/variables.cfg
[virtual_sdcard]
path: ~/Multec_data/gcodes
on_error_gcode: CANCEL_PRINT
[display_status]
[exclude_object]
[idle_timeout]
gcode:
_KM_IDLE_TIMEOUT # This line must be in your idle_timeout section.
[firmware_retraction]
retract_length: 0.5
retract_speed: 30
[input_shaper]
shaper_type_x: zv
shaper_freq_x: 26.0
shaper_type_y: zv
shaper_freq_y: 26.4
[gcode_arcs]
resolution: 0.1
[gcode_macro _km_options]
variable_bed_surfaces: ['pei']
variable_start_clear_adjustments_at_end: False
variable_load_length: 30.0
variable_menu_show_octoprint: False
variable_menu_show_sdcard: False
variable_menu_temperature: [ {'name' : 'PET', 'extruder' : 237.0, 'bed' : 80.0} ]
variable_park_z: 10.0
variable_start_bed_heat_overshoot: 0.0
variable_start_extruder_preheat_scale: 0.6
variable_start_purge_clearance: 5.0
variable_start_purge_length: 15.0
variable_start_try_saved_surface_mesh: True
variable_travel_speed_z: 300
gcode: # This line is required by Klipper.
# Any code you put here will run at klipper startup, after the initialization
# for these macros. For example, you could uncomment the following line to
# automatically adjust your bed surface offsets to account for any changes made
# to your Z endstop or probe offset.
ADJUST_SURFACE_OFFSETS
BED_MESH_CHECK
LOAD_SURFACE_MESH
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 18.244
#*# pid_ki = 0.908
#*# pid_kd = 91.677
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 51.841
#*# pid_ki = 0.589
#*# pid_kd = 1141.140
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.232500, -0.210000, -0.205625, -0.273750, -0.436875
#*# -0.119375, -0.113125, -0.115000, -0.173125, -0.321250
#*# -0.033125, -0.022500, -0.033750, -0.098125, -0.216250
#*# -0.040000, -0.022500, -0.023750, -0.061875, -0.170625
#*# -0.085625, -0.045625, -0.033750, -0.065625, -0.154375
#*# -0.178125, -0.126875, -0.115625, -0.129375, -0.205000
#*# -0.238125, -0.192500, -0.171875, -0.201250, -0.251875
#*# -0.217500, -0.160000, -0.165000, -0.175000, -0.231250
#*# x_count = 5
#*# y_count = 8
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 20.0
#*# max_x = 185.0
#*# min_y = 25.0
#*# max_y = 359.95
#*#
#*# [bed_mesh pei]
#*# version = 1
#*# points =
#*# -0.232500, -0.210000, -0.205625, -0.273750, -0.436875
#*# -0.119375, -0.113125, -0.115000, -0.173125, -0.321250
#*# -0.033125, -0.022500, -0.033750, -0.098125, -0.216250
#*# -0.040000, -0.022500, -0.023750, -0.061875, -0.170625
#*# -0.085625, -0.045625, -0.033750, -0.065625, -0.154375
#*# -0.178125, -0.126875, -0.115625, -0.129375, -0.205000
#*# -0.238125, -0.192500, -0.171875, -0.201250, -0.251875
#*# -0.217500, -0.160000, -0.165000, -0.175000, -0.231250
#*# min_x = 20.0
#*# max_x = 185.0
#*# min_y = 25.0
#*# max_y = 359.95
#*# x_count = 5
#*# y_count = 8
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*#
#*# [endstop_phase stepper_x]
#*# trigger_phase = 50/64
#*#
#*# [endstop_phase stepper_y]
#*# trigger_phase = 2/64
#*#
#*# [probe]
#*# z_offset = 0.815
@flyernb
Copy link

flyernb commented Mar 3, 2023

Hallo Tom,
ich habe auch einen M420 mit Dual Extruder, Höhensensor und würde ihn gerne verbessern. Die Umstellung der Platine habe ich in der neuesten Make Zeitschrift gefunden. Wie hast du das damals gemacht?
Verwendest du noch den M420 oder hast du auf einen anderen umgestellt?
Falls du Tipps hast würde ich mich sehr gerne mit dir austauschen.

Liebe Grüßen
flyernb

@gretel
Copy link
Author

gretel commented Mar 3, 2023

ich habe auch einen M420

please dont german here. this gist relates to https://www.klipper3d.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment