Skip to content

Instantly share code, notes, and snippets.

@mathisschmieder
Created February 5, 2021 21:07
Show Gist options
  • Save mathisschmieder/712ad254dc7688a6cb80f781f633d6c2 to your computer and use it in GitHub Desktop.
Save mathisschmieder/712ad254dc7688a6cb80f781f633d6c2 to your computer and use it in GitHub Desktop.
switchwire-skr_mini_v2
[stepper_x]
step_pin: PB13
dir_pin: PB12
enable_pin: !PB14
step_distance: 0.0125
endstop_pin: ^PC0
position_endstop: 215
position_min: 0
position_max: 215
homing_speed: 70
homing_positive_dir: true
[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
microsteps: 16
run_current: 0.5
hold_current: 0.3
interpolate: True
stealthchop_threshold: 250
[stepper_y]
step_pin: PB10
dir_pin: PB2
enable_pin: !PB11
step_distance: 0.0125
endstop_pin: ^PC1
position_endstop: 0
position_min: 0
position_max: 235
homing_speed: 70
homing_positive_dir: false
[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
microsteps: 16
run_current: 0.5
hold_current: 0.3
interpolate: True
stealthchop_threshold: 250
[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
step_distance: .0125
endstop_pin: probe:z_virtual_endstop
position_max: 250
homing_speed: 40
position_min: -3.0
[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
uart_address: 1
microsteps: 16
run_current: 0.5
hold_current: 0.3
interpolate: True
stealthchop_threshold: 250
[homing_override]
axes: z
set_position_z: 0
gcode:
G90
G0 Z5 F500
G28 X0 Y0
G0 X107.5 Y117.5 F9000
G28 Z0
G0 Z5 F500
[bed_mesh]
speed: 150
horizontal_move_z: 5
mesh_min: 25,25
mesh_max: 205,205
probe_count: 5,5
algorithm: bicubic
fade_start: 1
fade_end: 10
fade_target: 0
[probe]
pin: ^PC2
x_offset: 0.0
y_offset: 25.0
z_offset: 0.975
speed: 40
[screws_tilt_adjust]
screw1: 37.5,12
screw1_name: front left screw
screw2: 195,12
screw2_name: front right screw
screw3: 195,180
screw3_name: rear right screw
screw4: 37.5,180
screw4_name: rear left screw
horizontal_move_z: 10
speed: 80
screw_thread: CW-M4
[extruder]
max_extrude_only_distance: 100.0
step_pin: PB3
dir_pin: PB4
enable_pin: !PD2
microsteps: 16
rotation_distance: 7.471
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC8
pressure_advance: 0.05
pressure_advance_smooth_time: 0.040
sensor_type: ATC Semitec 104GT-2
sensor_pin: PA0
control = pid
pid_kp = 22.391
pid_ki = 1.194
pid_kd = 104.958
min_temp: 0
max_temp: 270
[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
run_current: 0.5
hold_current: 0.3
interpolate: True
[heater_bed]
heater_pin: PC9
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC3
control = pid
pid_kp = 73.565
pid_ki = 1.417
pid_kd = 954.500
min_temp: 0
max_temp: 130
[fan]
pin: PC7
# thermally controlled hotend fan
[heater_fan part_fan]
pin: PC6
max_power: 1.0
kick_start_time: 0.100
heater: extruder
heater_temp: 50.0
fan_speed: 1.0
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_36FFDA055058373939600843-if00
[printer]
kinematics: corexz
max_velocity: 200
max_accel: 1000
max_z_velocity: 50
max_z_accel: 1000
square_corner_velocity: 4.0
[static_digital_output usb_pullup_enable]
pins: !PA14
[output_pin LIGHTS]
pin: PC12
value: 0
shutdown_value: 0
[virtual_sdcard]
path: /home/pi/sdcard
[pause_resume]
[display_status]
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
default_parameter_X: 230
default_parameter_Y: 230
default_parameter_Z: 10
gcode:
M104 S0
M140 S0
M141 S0
M106 S0
CLEAR_PAUSE
RESET_SD
BASE_CANCEL_PRINT
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 230
default_parameter_Y: 230
default_parameter_Z: 10
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-1.7 F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
G91
[gcode_macro RESUME]
rename_existing: BASE_RESUME
gcode:
G91
G1 E1.7 F2100
G91
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
[gcode_macro DISABLE_MOTORS]
gcode:
M18
[gcode_macro G29]
gcode:
BED_MESH_CALIBRATE
BED_MESH_PROFILE SAVE=p1
G1 X0 Y0 Z10 F4000
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.200000, 0.075000, 0.025000, 0.050000, 0.162500
#*# 0.087500, -0.012500, -0.062500, -0.050000, 0.037500
#*# 0.050000, -0.050000, -0.100000, -0.075000, 0.037500
#*# 0.075000, -0.025000, -0.075000, -0.050000, 0.050000
#*# 0.150000, 0.050000, -0.000000, 0.025000, 0.125000
#*# tension = 0.2
#*# min_x = 25.0
#*# algo = bicubic
#*# y_count = 5
#*# mesh_y_pps = 2
#*# min_y = 25.0
#*# x_count = 5
#*# max_y = 205.0
#*# mesh_x_pps = 2
#*# max_x = 205.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment