Last active
February 21, 2025 13:12
-
-
Save joshschools/b642dd4355cf38edbb5310b1f385e37c to your computer and use it in GitHub Desktop.
Klipper Configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[server] | |
host: 0.0.0.0 | |
port: 7125 | |
enable_debug_logging: False | |
[file_manager] | |
config_path: ~/klipper_config | |
log_path: ~/klipper_logs | |
[data_store] | |
temperature_store_size: 600 | |
gcode_store_size: 1000 | |
[authorization] | |
force_logins: True | |
cors_domains: | |
*.local | |
*.lan | |
*://app.fluidd.xyz | |
trusted_clients: | |
10.0.0.0/8 | |
127.0.0.0/8 | |
169.254.0.0/16 | |
172.16.0.0/12 | |
192.168.0.0/16 | |
FE80::/10 | |
::1/128 | |
# enables partial support of Octoprint API | |
[octoprint_compat] | |
# enables moonraker to track and store print history. | |
[history] | |
# this enables moonraker's update manager | |
[update_manager] | |
enable_auto_refresh: True | |
# this enabled fluidd updates | |
[update_manager client fluidd] | |
type: web | |
repo: cadriel/fluidd | |
path: ~/fluidd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # This file contains common pin mappings for the BIGTREETECH SKR mini | |
# E3 v2.0. To use this config, the firmware should be compiled for the | |
# STM32F103 with a "28KiB bootloader". Also, select "Enable extra | |
# low-level configuration options" and configure "GPIO pins to set at | |
# micro-controller startup" to "!PA14". | |
# The "make flash" command does not work on the SKR mini E3. Instead, | |
# after running "make", copy the generated "out/klipper.bin" file to a | |
# file named "firmware.bin" on an SD card and then restart the SKR | |
# mini E3 with that SD card. | |
# See the example.cfg file for a description of available parameters. | |
# ====================================================================== | |
[bltouch] | |
stow_on_each_sample: False | |
probe_with_touch_mode: True | |
sensor_pin: ^PC14 | |
control_pin: PA1 | |
x_offset: 39 | |
y_offset: 3 | |
samples: 3 | |
[screws_tilt_adjust] | |
horizontal_move_z: 15 | |
screw1: .5,190 | |
screw1_name: back left | |
screw2: 155.5,190 | |
screw2_name: back right | |
screw3: .5,27 | |
screw3_name: front left | |
screw4: 156.5,27 | |
screw4_name: front right | |
[force_move] | |
#enable_force_move: True | |
[safe_z_home] | |
home_xy_position: 78.5,95 | |
z_hop: 15 | |
[bed_mesh] | |
horizontal_move_z: 10 | |
mesh_min: 40,20 | |
mesh_max: 210,190 | |
probe_count: 5 | |
# ====================================================================== | |
[stepper_x] | |
step_pin: PB13 | |
dir_pin: !PB12 | |
enable_pin: !PB14 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: ^PC0 | |
position_endstop: 0 | |
position_max: 235 | |
homing_speed: 50 | |
second_homing_speed: 20 | |
[tmc2209 stepper_x] | |
uart_pin: PC11 | |
tx_pin: PC10 | |
uart_address: 0 | |
run_current: 0.580 | |
hold_current: 0.500 | |
stealthchop_threshold: 250 | |
# ====================================================================== | |
[stepper_y] | |
step_pin: PB10 | |
dir_pin: !PB2 | |
enable_pin: !PB11 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: ^PC1 | |
position_endstop: -20 | |
position_min:-20 | |
position_max: 190 | |
homing_speed: 50 | |
second_homing_speed: 20 | |
[tmc2209 stepper_y] | |
uart_pin: PC11 | |
tx_pin: PC10 | |
uart_address: 2 | |
run_current: 0.580 | |
hold_current: 0.500 | |
stealthchop_threshold: 250 | |
# ====================================================================== | |
[stepper_z] | |
step_pin: PB0 | |
dir_pin: PC5 | |
enable_pin: !PB1 | |
microsteps: 16 | |
rotation_distance: 8 | |
endstop_pin: probe:z_virtual_endstop | |
position_min: -5 | |
position_max: 250 | |
[tmc2209 stepper_z] | |
uart_pin: PC11 | |
tx_pin: PC10 | |
uart_address: 1 | |
run_current: 0.580 | |
hold_current: 0.500 | |
stealthchop_threshold: 5 | |
# ====================================================================== | |
#SET_EXTRUDER_STEP_DISTANCE EXTRUDER=extruder DISTANCE=0.010706 | |
# Measure 120mm, then extrude 100mm | |
# G1 E100 F100 | |
# step_distance = old_e_steps * ((120 - distance_to_mark) / 100) | |
[extruder] | |
step_pin: PB3 | |
dir_pin: PB4 | |
enable_pin: !PD2 | |
microsteps: 16 | |
rotation_distance: 4.671 | |
nozzle_diameter: 0.400 | |
filament_diameter: 1.750 | |
heater_pin: PC8 | |
sensor_type: EPCOS 100K B57560G104F | |
sensor_pin: PA0 | |
min_temp: 10 | |
min_extrude_temp: 170 | |
max_extrude_only_distance: 500 | |
max_extrude_cross_section: 50.0 | |
max_temp: 280 | |
pressure_advance: 0.03 | |
[tmc2209 extruder] | |
uart_pin: PC11 | |
tx_pin: PC10 | |
uart_address: 3 | |
run_current: 0.4 | |
hold_current: 0.4 | |
stealthchop_threshold: 5 | |
# ====================================================================== | |
[heater_bed] | |
heater_pin: PC9 | |
sensor_type: EPCOS 100K B57560G104F | |
sensor_pin: PC3 | |
min_temp: 0 | |
max_temp: 130 | |
# ====================================================================== | |
[fan] | |
pin: PC6 | |
[heater_fan hotend_fan] | |
pin: PC7 | |
heater: extruder | |
heater_temp: 50.0 | |
[controller_fan case_fan] | |
pin: rpi:gpio18 | |
heater: extruder | |
# ====================================================================== | |
[temperature_sensor mcu_temp] | |
sensor_type: temperature_mcu | |
sensor_mcu: mcu | |
# ====================================================================== | |
[mcu] | |
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_39FFD4054255373722511757-if00 | |
[mcu rpi] | |
serial: /tmp/klipper_host_mcu | |
[adxl345] | |
cs_pin: rpi:None | |
[resonance_tester] | |
accel_chip: adxl345 | |
probe_points: | |
100,100,20 # an example | |
# ====================================================================== | |
[printer] | |
kinematics: cartesian | |
max_velocity: 300 | |
max_accel: 3000 | |
max_accel_to_decel: 3000 | |
max_z_velocity: 40 | |
max_z_accel: 100 | |
square_corner_velocity: 5 | |
[input_shaper] | |
#shaper_freq_x: 39.45 | |
#shaper_freq_y: 34.2 | |
#shaper_type_y: mzv | |
[static_digital_output usb_pullup_enable] | |
pins: !PA14 | |
[board_pins] | |
aliases: | |
# EXP1 header | |
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>, | |
EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PB15, EXP1_10=<5V> | |
[display] | |
lcd_type: st7920 | |
cs_pin: EXP1_7 | |
sclk_pin: EXP1_6 | |
sid_pin: EXP1_8 | |
encoder_pins: ^EXP1_5, ^EXP1_3 | |
click_pin: ^!EXP1_2 | |
[output_pin beeper] | |
pin: EXP1_1 | |
[firmware_retraction] | |
#retract_length: 0 | |
# The length of filament (in mm) to retract when G10 is activated, | |
# and to unretract when G11 is activated (but see | |
# unretract_extra_length below). The default is 0 mm. | |
#retract_speed: 20 | |
# The speed of retraction, in mm/s. The default is 20 mm/s. | |
#unretract_extra_length: 0 | |
# The length (in mm) of *additional* filament to add when | |
# unretracting. | |
#unretract_speed: 10 | |
# The speed of unretraction, in mm/s. The default is 10 mm/s | |
[gcode_arcs] | |
[exclude_object] | |
# ====================================================================== | |
# [filament_motion_sensor Filament_Sensor] | |
# detection_length: 7.0 | |
# extruder: extruder | |
# switch_pin: PC15 | |
# ====================================================================== | |
# MACROS | |
# ====================================================================== | |
# Replace the slicer's custom start and end g-code scripts with | |
# START_PRINT and END_PRINT. | |
[gcode_macro START_PRINT] | |
gcode: | |
{% set BED_TEMP = params.BED_TEMP|default(60)|float %} | |
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(200)|float %} | |
# Start bed heating | |
M140 S{BED_TEMP} | |
# Use absolute coordinates | |
G90 | |
# Reset the G-Code Z offset (adjust Z offset if needed) | |
SET_GCODE_OFFSET Z=0.0 | |
# Home the printer | |
G28 | |
# Move the nozzle near the bed | |
G1 X10 Y10 F3000; | |
G1 Z5 F3000 | |
# Move the nozzle very close to the bed | |
G1 Z0.15 F300 | |
# Wait for bed to reach temperature | |
M190 S{BED_TEMP} | |
# Set and wait for nozzle to reach temperature | |
M109 S{EXTRUDER_TEMP} | |
# Test line | |
G92 E0 ; reset extruder | |
G1 X5 Y15 F5000.0 ; move to start-line position | |
G1 X5 Y15 Z0.3 F5000.0 | |
G1 Y20 F1000 E0.8 | |
G92 E0 ; reset extruder | |
G1 X5 Y175.0 Z0.3 F1500.0 E15 ; draw 1st line | |
G1 X5.4 Y175.0 Z0.3 F5000.0 ; move to side a little | |
G1 X5.4 Y20 Z0.3 F1500.0 E30 ; draw 2nd line | |
G1 E34 ; Retract extruder | |
G92 E0 ; reset extruder | |
G1 Z3.0 F3000 ; move z up little to prevent scratching of surface | |
G1 X100 Y100 F15000 | |
[gcode_macro END_PRINT] | |
gcode: | |
# Turn off bed, extruder, and fan | |
M140 S0 | |
M104 S0 | |
M106 S0 | |
# Move nozzle away from print while retracting | |
G91 | |
G1 X-2 Y-2 E-3 F300 | |
# Raise nozzle by 10mm | |
G1 Z10 F3000 | |
G28 X Y | |
G90 | |
# Disable steppers | |
M84 | |
[gcode_macro G29] | |
gcode: | |
G28 | |
G1 Z10 F600 | |
BED_MESH_CLEAR | |
BED_MESH_CALIBRATE | |
BED_MESH_PROFILE LOAD=default | |
[gcode_macro M205] | |
gcode: | |
{% if 'X' in params %} | |
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ X } | |
{% endif %} | |
[virtual_sdcard] | |
path: ~/gcode_files | |
[display_status] | |
# ====================================================================== | |
# Save at end macros | |
# ====================================================================== | |
[gcode_macro SAVE_AT_END] | |
variable_save: 0 | |
gcode: | |
SET_GCODE_VARIABLE MACRO=SAVE_AT_END VARIABLE=save VALUE=1 | |
[gcode_macro SAVE_IF_SET] | |
gcode: | |
{% if printer["gcode_macro SAVE_AT_END"].save == 1 %} | |
{printer.gcode.action_respond_info("saving and restarting now")} | |
SAVE_CONFIG | |
{% endif %} | |
# ====================================================================== | |
# Filament load and unload macros | |
# ====================================================================== | |
[pause_resume] | |
# M600: Filament Change. This macro will pause the printer, move the | |
# tool to the change position, and retract the filament 50mm. Adjust | |
# the retraction settings for your own extruder. After filament has | |
# been changed, the print can be resumed from its previous position | |
# with the "RESUME" gcode. | |
[gcode_macro CANCEL_PRINT] | |
rename_existing: BASE_CANCEL_PRINT | |
gcode: | |
TURN_OFF_HEATERS | |
CLEAR_PAUSE | |
SDCARD_RESET_FILE | |
BASE_CANCEL_PRINT | |
[gcode_macro PARK] | |
gcode: | |
G1 X125 Y190.0 Z200.0 F4000 | |
[gcode_macro FILAMENT_LOAD] | |
gcode: | |
M83 ; set e to relative positioning | |
G92 E0.0 | |
G1 E40 F1000 ; Initially go fast | |
G92 E0.0 | |
G1 E100 F200 ; then go slow | |
G92 E0.0 | |
[gcode_macro FILAMENT_UNLOAD] | |
gcode: | |
M83 ; set e to relative positioning | |
# wiggle filament out of the nozzle | |
G1 E0.5 F1000 | |
G1 E-0.5 F1000 | |
G1 E1.0 F1000 | |
G1 E-1.0 F1000 | |
G1 E1.5 F1000 | |
G1 E-1.5 F1000 | |
G1 E2.0 F1000 | |
G1 E-450 F3000 ;fully unload | |
G92 E0.0 | |
# M600: Filament Change. This macro will pause the printer, move the | |
# tool to the change position, and retract the filament 50mm. Adjust | |
# the retraction settings for your own extruder. After filament has | |
# been changed, the print can be resumed from its previous position | |
# with the "RESUME" gcode. | |
[gcode_macro M600] | |
gcode: | |
{% set X = params.X|default(50)|float %} | |
{% set Y = params.Y|default(0)|float %} | |
{% set Z = params.Z|default(10)|float %} | |
SAVE_GCODE_STATE NAME=M600_state | |
PAUSE | |
G91 | |
G1 E-.8 F2700 | |
G1 Z{Z} | |
G90 | |
G1 X{X} Y{Y} F3000 | |
G91 | |
G1 E-50 F1000 | |
RESTORE_GCODE_STATE NAME=M600_state | |
# ====================================================================== | |
# MENU MACRO | |
# ====================================================================== | |
[menu __main __cal] | |
type: list | |
name: Calibration | |
enable: true | |
# Stand alone CAL Menus | |
# # ====================================================================== | |
# [menu __main __cal __probe_accuracy] | |
# type: command | |
# name: Test Z Probe Accuracy | |
# enable: true | |
# gcode: | |
# G28 | |
# PROBE_ACCURACY | |
# [menu __main __cal __firmware_restart] | |
# type: command | |
# name: Restart firmware | |
# enable: true | |
# gcode: | |
# FIRMWARE_RESTART | |
# [menu __main __cal __homeXYZ] | |
# type: command | |
# name: Home XYZ | |
# enable: true | |
# gcode: | |
# G28 | |
# [menu __main __cal __bed_mesh_calibrate] | |
# type: command | |
# name: Generate bed mesh | |
# enable: true | |
# gcode: | |
# G29 | |
# [menu __main __cal __screws_tilt_calculate] | |
# type: command | |
# name: Calculate Bed Tilt | |
# enable: true | |
# gcode: | |
# SCREWS_TILT_CALCULATE | |
# # ====================================================================== | |
# [menu __main __cal __calibratez] | |
# type: list | |
# name: Adjust Z offset | |
# enable: true | |
# [menu __main __cal __calibratez __test_z] | |
# type: input | |
# name: Test Z: {['++','+','+.01','+.05','+.1','+.5','-.5','-.1','-.05','-.01','-','--'][menu.input|int]} | |
# input: 6 | |
# input_min: -2 | |
# input_max: 11 | |
# input_step: 1 | |
# gcode: | |
# {%- if menu.event == 'long_click' -%} | |
# TESTZ Z={['++','+','+.01','+.05','+.1','+.5','+1','-1','-.5','-.1','-.05','-.01','-','--'][menu.input|int]} | |
# {%- endif -%} | |
# [menu __main __cal __calibratez __execute] | |
# type: command | |
# name: Execute | |
# enable: true | |
# gcode: | |
# G28 | |
# PROBE_CALIBRATE | |
# [menu __main __cal __calibratez __accept] | |
# type: command | |
# name: Accept | |
# enable: true | |
# gcode: | |
# ACCEPT | |
# [menu __main __cal __calibratez __abort] | |
# type: command | |
# name: Abort | |
# enable: true | |
# gcode: | |
# ABORT | |
# [menu __main __cal __calibratez __save_config] | |
# type: command | |
# name: Save config | |
# enable: true | |
# gcode: | |
# SAVE_CONFIG | |
# [menu __main __cal __calibratez __minus] | |
# type: command | |
# name: "-" | |
# enable: true | |
# gcode: | |
# TESTZ Z=- | |
# [menu __main __cal __calibratez __minus_minus] | |
# type: command | |
# name: "--" | |
# enable: true | |
# gcode: | |
# TESTZ Z=-- | |
# [menu __main __cal __calibratez __plus] | |
# type: command | |
# name: "+" | |
# enable: true | |
# gcode: | |
# TESTZ Z=+ | |
# [menu __main __cal __calibratez __plus_plus] | |
# type: command | |
# name: "++" | |
# enable: true | |
# gcode: | |
# TESTZ Z=++ | |
# [menu __main __cal __calibratez __minus_1] | |
# type: command | |
# name: "-1.0" | |
# enable: true | |
# gcode: | |
# TESTZ Z=-1 | |
# [menu __main __cal __calibratez __plus_1] | |
# type: command | |
# name: "+1.0" | |
# enable: true | |
# gcode: | |
# TESTZ Z=+1 | |
# [menu __main __cal __calibratez __minus_point_1] | |
# type: command | |
# name: "-0.1" | |
# enable: true | |
# gcode: | |
# TESTZ Z=-0.1 | |
# [menu __main __cal __calibratez __plus_point_1] | |
# type: command | |
# name: "+0.1" | |
# enable: true | |
# gcode: | |
# TESTZ Z=+0.1 | |
#*# <---------------------- SAVE_CONFIG ----------------------> | |
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | |
#*# | |
#*# [bltouch] | |
#*# z_offset = 1.826 | |
#*# | |
#*# [bed_mesh default] | |
#*# version = 1 | |
#*# points = | |
#*# 0.121667, 0.045833, 0.013333, 0.082500, 0.111667 | |
#*# 0.135833, 0.066667, 0.036667, 0.095833, 0.106667 | |
#*# 0.112500, 0.036667, 0.011667, 0.084167, 0.121667 | |
#*# 0.128333, 0.065833, 0.032500, 0.105000, 0.127500 | |
#*# 0.110833, 0.030000, -0.000833, 0.072500, 0.120000 | |
#*# x_count = 5 | |
#*# y_count = 5 | |
#*# mesh_x_pps = 2 | |
#*# mesh_y_pps = 2 | |
#*# algo = lagrange | |
#*# tension = 0.2 | |
#*# min_x = 40.0 | |
#*# max_x = 210.0 | |
#*# min_y = 20.0 | |
#*# max_y = 190.0 | |
#*# | |
#*# [extruder] | |
#*# control = pid | |
#*# pid_kp = 24.419 | |
#*# pid_ki = 1.282 | |
#*# pid_kd = 116.295 | |
#*# | |
#*# [heater_bed] | |
#*# control = pid | |
#*# pid_kp = 72.310 | |
#*# pid_ki = 1.530 | |
#*# pid_kd = 854.168 | |
#*# | |
#*# [input_shaper] | |
#*# shaper_type_y = mzv | |
#*# shaper_freq_y = 32.4 | |
#*# shaper_type_x = 2hump_ei | |
#*# shaper_freq_x = 44.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment