Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains common pin mappings for the BIGTREETECH SKR mini
- # E3 v3.0. To use this config, the firmware should be compiled for the
- # STM32G0B1 with a "8KiB bootloader" and USB communication/USART.
- # 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 docs/Config_Reference.md for a description of parameters.
- # OFF
- #[include GET_PROBE_LIMITS.cfg]
- #[include neopixel.cfg]
- #[include ledcontrol.cfg]
- #[include led_progress.cfg]
- # ON
- [include mainsail.cfg]
- [include timelapse.cfg]
- [include simple-stealthburner_leds.cfg]
- [include smart-m600.cfg]
- #[include RESTART_KLIPPERSCREEN.cfg]
- #[include pico.cfg]
- [include PID_TUNE.cfg]
- #[include shell_command.cfg]
- [bltouch]
- sensor_pin: ^PC14
- control_pin: PA1
- x_offset: -41.5 # Change to fit your printer
- y_offset: 6.5 # Change to fit your printer
- #z_offset: 0.0 # Change to fit your printer
- probe_with_touch_mode: True
- stow_on_each_sample: False # Keep the probe extended between points
- samples: 2 # Probe each point at least twice
- samples_tolerance: 0.0125 # If those measurements aren't this close then
- samples_tolerance_retries: 3 # Re-probe this many times and use the average
- [safe_z_home]
- #When set to True, the X and Y axes are reset to their
- #previous positions after Z axis homing.
- move_to_previous: True
- home_xy_position: 157, 104 # Change coordinates to the center of your print bed
- speed: 200
- z_hop: 10 # Move up 10mm
- z_hop_speed: 5
- [bed_mesh]
- speed: 300
- fade_start: 0.010
- fade_end: 10
- fade_target: 0
- horizontal_move_z: 5
- mesh_min: 5, 5
- mesh_max: 197.5, 210
- probe_count: 5, 5
- #mesh_pps: 2, 2
- algorithm: bicubic
- #bicubic_tension: .2
- #relative_reference_index: 69, 112
- [stepper_x]
- step_pin: PB13
- dir_pin: !PB12
- enable_pin: !PB14
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PC0
- position_min: -5
- position_endstop: -5
- position_max: 239
- homing_speed: 150
- [tmc2209 stepper_x]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 0
- run_current: 0.650
- hold_current: 0.580
- stealthchop_threshold: 999999
- [stepper_y]
- step_pin: PB10
- dir_pin: !PB2
- enable_pin: !PB11
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PC1
- position_min: -16
- position_endstop: -16
- position_max: 226
- homing_speed: 150
- [tmc2209 stepper_y]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 2
- run_current: 0.620
- hold_current: 0.580
- stealthchop_threshold: 999999
- [stepper_z]
- step_pin: PB0
- dir_pin: PC5
- enable_pin: !PB1
- microsteps: 16
- rotation_distance: 8
- # endstop_pin: ^PC2
- # position_endstop: 0.0
- endstop_pin: probe:z_virtual_endstop
- position_max: 258
- position_min: -2
- [tmc2209 stepper_z]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 1
- run_current: 0.600
- hold_current: 0.590
- stealthchop_threshold: 999999
- [extruder]
- step_pin: PB3
- dir_pin: !PB4
- enable_pin: !PD1
- microsteps: 16
- rotation_distance: 4.553
- full_steps_per_rotation: 200
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PC8
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PA0
- #control: pid
- #pid_Kp: 21.527
- #pid_Ki: 1.063
- #pid_Kd: 108.982
- min_temp: 00
- max_temp: 300
- pressure_advance: 0.060
- [tmc2209 extruder]
- uart_pin: PC11
- tx_pin: PC10
- uart_address: 3
- run_current: 0.480
- hold_current: 0.400
- stealthchop_threshold: 999999
- [heater_bed]
- heater_pin: PC9
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: PC4
- #control: pid
- #pid_Kp: 54.027
- #pid_Ki: 0.770
- #pid_Kd: 948.182
- min_temp: 0
- max_temp: 130
- [controller_fan controller_fan]
- pin: PB15
- fan_speed: 1.0
- idle_speed: 0.5
- idle_timeout: 180
- heater: extruder
- [heater_fan nozzle_cooling_fan]
- heater: extruder
- pin: PC7
- heater_temp: 50.0
- fan_speed: 1.0
- [fan]
- pin: PC6
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_15003F000B50414733303120-if00
- baud: 250000
- # serial: /dev/ttyAMA0
- # restart_method: command
- [printer]
- kinematics: cartesian
- max_velocity: 1000
- max_accel: 3500
- max_z_velocity: 5
- max_z_accel: 1000
- [input_shaper]
- #shaper_freq_x: 56.2
- #shaper_type_x: ei
- #shaper_freq_y: 40.4
- #shaper_type_y: mzv
- #shaper_freq_x: 11.39 # frequency for the X mark of the test model
- #shaper_freq_y: 21.11 # frequency for the Y mark of the test model
- [bed_screws]
- screw1: 71, 20
- screw2: 239, 20
- screw3: 239, 189
- screw4: 71, 189
- [screws_tilt_adjust]
- screw1: 71, 20
- screw1_name: front_left
- screw2: 239, 20
- screw2_name: front_right
- screw3: 239, 189
- screw3_name: back_right
- screw4: 71, 189
- screw4_name: back_left
- speed:250
- horizontal_move_z: 5
- screw_thread: CW-M4
- # Additional bed leveling screws. At least two screws must be
- # defined.
- [filament_switch_sensor SB]
- switch_pin:PC15
- pause_on_runout: True
- runout_gcode:
- insert_gcode:
- event_delay: 3.0
- pause_delay: 0.5
- [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=PD6, EXP1_10=<5V>
- ######################################################################
- # BigTreeTech TFT TouchScreen emulated 12864 mode
- ######################################################################
- [display]
- lcd_type: emulated_st7920
- spi_software_miso_pin: PD8 # status led, Virtual MISO
- spi_software_mosi_pin: PD6
- spi_software_sclk_pin: PB9
- en_pin: PB8
- encoder_pins: ^PA10, ^PA9
- click_pin: ^!PA15
- [output_pin beeper]
- pin: PB5
- ######################################################################
- # MACROS
- ######################################################################
- ### Print Start
- [gcode_macro START_PRINT]
- variable_bed_temp: 100
- variable_extruder_temp: 250
- gcode:
- # Turn on filament sensor
- ENABLEFILAMENTSENSOR
- # 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 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}
- # Load bed Mesh
- BED_MESH_PROFILE LOAD=default
- # Reset Extruder
- G92 E0
- # Move Z Axis up
- G1 Z2.0 F3000
- # Move to start position
- G1 X2.1 Y20 Z0.28 F5000.0
- # Draw the first line
- G1 X2.1 Y200.0 Z0.22 F1000.0 E10
- # Move to side a little
- G1 X2.4 Y200.0 Z0.22 F5000.0
- # Draw the second line
- G1 X2.4 Y20 Z0.22 F1000.0 E20
- # Reset Extruder
- G92 E0
- # Move Z Axis up
- G1 Z0.5 F3000
- # Print message on LCD
- M117 By your command!
- ###Print End
- [gcode_macro END_PRINT]
- variable_machine_depth: 220
- gcode:
- # Turn off bed, extruder, and fan
- M140 S0
- M104 S0
- M106 S0
- # Relative positionning
- G91
- # Retract and raise Z
- G1 Z0.2 E-2 F2400
- # Wipe out
- G1 X5 Y5 F3000
- # Raise Z more
- G1 Z10
- # Absolute positionning
- G90
- # Present print
- G1 X0 Y220
- # Turn off filament sensor
- DISABLEFILAMENTSENSOR
- # Disable steppers
- M84
- # Print message on LCD
- M117 That's All Folks
- ###Bed Mesh
- [gcode_macro G29]
- gcode:
- G28
- BED_MESH_CALIBRATE
- G0 X0 Y0 Z10 F6000
- BED_MESH_PROFILE save=default
- ###Cancel Print
- [gcode_macro CANCEL_PRINT]
- description: Cancel the actual running print
- rename_existing: CANCEL_PRINT_BASE
- variable_park: True
- gcode:
- ## Move head and retract only if not already in the pause state and park set to true
- {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%}
- _TOOLHEAD_PARK_PAUSE_CANCEL
- {% endif %}
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- [gcode_macro PAUSE]
- description: Pause the actual running print
- rename_existing: PAUSE_BASE
- gcode:
- PAUSE_BASE
- _TOOLHEAD_PARK_PAUSE_CANCEL
- [gcode_macro RESUME]
- description: Resume the actual running print
- rename_existing: RESUME_BASE
- gcode:
- ##### read extrude from _TOOLHEAD_PARK_PAUSE_CANCEL macro #####
- {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude %}
- #### get VELOCITY parameter if specified ####
- {% if 'VELOCITY' in params|upper %}
- {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
- {%else %}
- {% set get_params = "" %}
- {% endif %}
- ##### end of definitions #####
- {% if printer.extruder.can_extrude|lower == 'true' %}
- M83
- G1 E{extrude} F2100
- {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %}
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- RESUME_BASE {get_params}
- [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL]
- description: Helper: park toolhead used in PAUSE and CANCEL_PRINT
- variable_extrude: 1.0
- gcode:
- ##### set park positon for x and y #####
- # default is your max posion from your printer.cfg
- {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
- {% set z_park_delta = 2.0 %}
- ##### calculate save lift position #####
- {% set max_z = printer.toolhead.axis_maximum.z|float %}
- {% set act_z = printer.toolhead.position.z|float %}
- {% if act_z < (max_z - z_park_delta) %}
- {% set z_safe = z_park_delta %}
- {% else %}
- {% set z_safe = max_z - act_z %}
- {% endif %}
- ##### end of definitions #####
- {% if printer.extruder.can_extrude|lower == 'true' %}
- M83
- G1 E-{extrude} F2100
- {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %}
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- {% if "xyz" in printer.toolhead.homed_axes %}
- G91
- G1 Z{z_safe} F900
- G90
- G1 X{x_park} Y{y_park} F6000
- {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %}
- {% else %}
- {action_respond_info("Printer not homed")}
- {% endif %}
- [gcode_macro Center]
- gcode:
- G28
- G0 X157 Y104 Z10 F6000
- PROBE_CALIBRATE
- #[gcode_macro FILAMENT_LOAD]
- #gcode:
- # M83 # Put the extruder into relative mode
- #G92 E0.0 # Reset the extruder so that it thinks it is at position zero
- #G1 E120 F350 # Move the extruder forward 120mm at a speed of 350mm/minute
- # G92 E0.0 # Reset the extruder again
- # M82 # Put the extruder back into absolute mode.
- #[gcode_macro FILAMENT_UNLOAD]
- #gcode:
- # M83 # Put the extruder into relative mode
- # G92 E0.0 # Reset the extruder so that it thinks it is at position zero
- # G1 E-120 F350 # Move the extruder forward 120mm at a speed of 350mm/minute
- # G92 E0.0 # Reset the extruder again
- # M82 # Put the extruder back into absolute mode.
- [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
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bltouch]
- #*# z_offset = 0.454
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 26.754
- #*# pid_ki = 1.784
- #*# pid_kd = 100.327
- #*#
- #*# [heater_bed]
- #*# control = pid
- #*# pid_kp = 73.399
- #*# pid_ki = 1.520
- #*# pid_kd = 886.296
- #*#
- #*# [bed_mesh gold mesh]
- #*# version = 1
- #*# points =
- #*# -0.055000, 0.101250, 0.043750, 0.077500, 0.060000
- #*# -0.063750, 0.112500, 0.015000, 0.077500, 0.045000
- #*# -0.078750, 0.075000, 0.025000, 0.046250, 0.045000
- #*# -0.032500, 0.096250, 0.027500, 0.102500, 0.068750
- #*# 0.077500, 0.152500, 0.038750, 0.123750, 0.100000
- #*# x_count = 5
- #*# y_count = 5
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 15.0
- #*# max_x = 185.0
- #*# min_y = 15.0
- #*# max_y = 212.47
- #*#
- #*# [bed_mesh gld/blk flex ]
- #*# version = 1
- #*# points =
- #*# 0.035000, 0.156250, 0.041250, 0.030000, -0.022500
- #*# 0.022500, 0.160000, 0.020000, 0.010000, -0.030000
- #*# 0.005000, 0.105000, -0.016250, 0.008750, -0.037500
- #*# 0.057500, 0.147500, 0.027500, 0.045000, -0.005000
- #*# 0.152500, 0.197500, 0.068750, 0.063750, 0.038750
- #*# x_count = 5
- #*# y_count = 5
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 15.0
- #*# max_x = 185.0
- #*# min_y = 15.0
- #*# max_y = 212.47
- #*#
- #*# [bed_mesh default22]
- #*# version = 1
- #*# points =
- #*# 0.047500, 0.178750, 0.075000, 0.080000, -0.030000
- #*# 0.080000, 0.173750, 0.056250, 0.037500, -0.027500
- #*# 0.047500, 0.117500, 0.008750, 0.061250, -0.036250
- #*# 0.060000, 0.157500, 0.056250, 0.038750, -0.010000
- #*# 0.162500, 0.232500, 0.063750, 0.086250, 0.027500
- #*# x_count = 5
- #*# y_count = 5
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 15.0
- #*# max_x = 185.0
- #*# min_y = 15.0
- #*# max_y = 212.47
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# -0.081250, 0.022500, 0.027500, -0.038750, -0.110000
- #*# 0.023750, 0.016250, 0.028750, -0.002500, -0.057500
- #*# -0.028750, -0.023750, -0.008750, 0.023750, -0.031250
- #*# -0.017500, 0.025000, 0.015000, -0.013750, -0.060000
- #*# -0.136250, -0.046250, -0.036250, -0.032500, -0.032500
- #*# x_count = 5
- #*# y_count = 5
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 5.0
- #*# max_x = 197.47
- #*# min_y = 5.0
- #*# max_y = 210.0
- #*#
- #*# [bed_mesh test]
- #*# version = 1
- #*# points =
- #*# 0.188750, 0.156250, 0.100000, 0.111250, 0.095000
- #*# 0.330000, 0.160000, 0.107500, 0.157500, 0.066250
- #*# 0.307500, 0.148750, 0.046250, 0.100000, 0.007500
- #*# 0.177500, 0.141250, 0.050000, 0.116250, 0.020000
- #*# 0.265000, 0.172500, 0.067500, 0.146250, 0.138750
- #*# x_count = 5
- #*# y_count = 5
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 15.0
- #*# max_x = 185.0
- #*# min_y = 15.0
- #*# max_y = 212.47
- #*#
- #*# [input_shaper]
- #*# shaper_type_y = mzv
- #*# shaper_freq_y = 38.0
- #*# shaper_type_x = mzv
- #*# shaper_freq_x = 57.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement