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 v1.2. To use this config, the firmware should be compiled for the
- # STM32F103 with a "28KiB bootloader".
- # The "make flash" command does not work on the SKR mini. 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 with that SD card.
- # See the example.cfg file for a description of available parameters.
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_33FFDD053046593219511851-if00
- [stepper_x]
- step_pin: PB13
- dir_pin: !PB12
- enable_pin: !PB14
- step_distance: .0125
- endstop_pin: PC0
- position_endstop: 120
- position_max: 120
- homing_speed: 50 #Max 100
- homing_retract_dist: 5
- homing_positive_dir: true
- [tmc2209 stepper_x]
- uart_pin: PB15
- microsteps: 16
- interpolate: True
- run_current: .25
- hold_current: .25
- sense_resistor: 0.110
- stealthchop_threshold: 500
- [stepper_y]
- step_pin: PB10
- dir_pin: !PB2
- enable_pin: !PB11
- step_distance: .0125
- endstop_pin: PC1
- position_endstop: 120
- position_max: 120
- homing_speed: 50 #Max 100
- homing_retract_dist: 5
- homing_positive_dir: true
- [tmc2209 stepper_y]
- uart_pin: PC6
- microsteps: 16
- interpolate: True
- run_current: .25
- hold_current: .25
- sense_resistor: 0.110
- stealthchop_threshold: 500
- [stepper_z]
- step_pin: PB0
- dir_pin: !PC5
- enable_pin: !PB1
- step_distance: .0025 #for T8x8 lead screw
- #step_distance: .000625 #for T8x2 lead screw
- endstop_pin: PC2
- position_endstop: -.10
- position_max: 120
- position_min: -1
- homing_speed: 20 #Max 100
- second_homing_speed: 3.0
- homing_retract_dist: 3.0
- [tmc2209 stepper_z]
- uart_pin: PC10
- microsteps: 16
- interpolate: True
- run_current: .25
- hold_current: 0.25
- sense_resistor: 0.110
- stealthchop_threshold: 500
- [extruder]
- step_pin: PB3
- dir_pin: !PB4
- enable_pin: !PD2
- #step_distance: .0024 #calibrate this value for your individual printer!!
- #step_distance: 0.001818 #M4 calibrated
- step_distance: 0.001416344540292 #Sherpa Mini calibrated
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PC8
- sensor_type: SliceEngineering 450
- sensor_pin: PA0
- #control: pid
- #pid_Kp: 22.2
- #pid_Ki: 1.08
- #pid_Kd: 114
- min_temp: 0
- max_temp: 425
- min_extrude_temp: 170
- max_extrude_only_distance: 780.0
- max_extrude_cross_section: .8
- # The pressure advance value is dependent on the extruder, the nozzle,
- # and the filament. It is common for filament from different manufactures
- # or with different pigments to require significantly different pressure
- # advance values. Therefore, one should calibrate pressure advance on each
- # printer and with each spool of filament.
- # Pressure Advance OFF
- #Pressure_advance: 0.0
- # eSun PLA+ Pressure Advance Setting - Sherpa Mini
- #Pressure_advance: 0.06735
- # Sainsmart TPU Pressure Advance Setting
- #Pressure_advance: 0.0
- # ABS Pressure Advance Setting - Sherpa Mini
- Pressure_advance: 0.07275
- pressure_advance_smooth_time: 0.040
- [tmc2209 extruder]
- uart_pin: PC11
- microsteps: 16
- interpolate: True
- run_current: 0.3
- hold_current: 0.3
- sense_resistor: 0.110
- stealthchop_threshold: 500
- [heater_bed]
- heater_pin: PC12
- #sensor_type: NTC 100K beta 3950
- sensor_type: NTC 100K MGB18-104F39050L32
- sensor_pin: PC3
- smooth_time: 3.0
- max_power: 1.0
- #control: pid
- min_temp: 0
- max_temp: 120
- #pid_kp: 58.437
- #pid_ki: 2.347
- #pid_kd: 363.769
- [printer]
- kinematics: corexy
- max_velocity: 250
- max_accel: 2000
- max_z_velocity: 10
- max_z_accel: 30
- square_corner_velocity: 5.0
- [heater_fan hotend_fan]
- # Hotend Fan
- pin: PA8
- max_power: 1.0
- kick_start_time: 0.5
- heater: extruder
- heater_temp: 50.0
- #If you are experiencing back flow, you can reduce fan_speed
- #fan_speed: 1.0
- [fan]
- # Print Cooling Fan - XYE board, Fan Pin
- pin: PC9
- kick_start_time: 0.5
- #depending on your fan, you may need to increase or reduce this value
- #if your fan will not start
- off_below: 0.13
- cycle_time: 0.010
- # The rpi microcontroller is used as secondary.
- [mcu host]
- serial: /tmp/klipper_host_mcu
- # Using the i2c bus of the RPi to read a sensor
- [temperature_sensor enclosure_temp]
- sensor_type: HTU21D
- i2c_mcu: host
- i2c_bus: i2c.1
- htu21d_hold_master: False
- [gcode_macro QUERY_ENCLOSURE]
- default_parameter_SENSOR: htu21d enclosure_temp
- gcode:
- {action_respond_info(
- "Temperature: %.2f C\n"
- "Humidity: %.2f%%" % (
- printer[SENSOR].temperature,
- printer[SENSOR].humidity))}
- [temperature_sensor Pi]
- sensor_type: rpi_temperature
- min_temp: 0
- max_temp: 90
- [idle_timeout]
- timeout: 1800
- [homing_override]
- axes: z
- set_position_z: 0
- gcode:
- G90
- G0 Z5 F600
- G28 X Y
- G0 X30 Y0 F3600
- G28 Z
- G0 Z10 F1800
- G0 X60 Y60 Z20 F3600
- # Tool to help adjust bed leveling screws. One may define a
- # [bed_screws] config section to enable a BED_SCREWS_ADJUST g-code
- # command.
- [bed_screws]
- screw1: 60,5
- screw1_name: front screw
- screw2: 5,115
- screw2_name: back left
- screw3: 115,115
- screw3_name: back right
- [gcode_macro PRINT_START]
- # Use PRINT_START for the slicer starting script - please customise for your slicer of choice
- gcode:
- G28 ; home all axes
- G1 Z20 F3000 ; move nozzle away from bed
- [gcode_macro PRINT_END]
- # Use PRINT_END for the slicer ending script - please customise for your slicer of choice
- gcode:
- M400 ; wait for buffer to clear
- G92 E0 ; zero the extruder
- #G1 E-4.0 F3600 ; retract filament
- G1 E-2.0 F3600 ; retract filament
- G91 ; relative positioning
- #G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
- # Get Boundaries
- {% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
- {% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
- {% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}
- # Check end position to determine safe direction to move
- {% if printer.toolhead.position.x < (max_x - 20) %}
- {% set x_safe = 20.0 %}
- {% else %}
- {% set x_safe = -20.0 %}
- {% endif %}
- {% if printer.toolhead.position.y < (max_y - 20) %}
- {% set y_safe = 20.0 %}
- {% else %}
- {% set y_safe = -20.0 %}
- {% endif %}
- {% if printer.toolhead.position.z < (max_z - 2) %}
- {% set z_safe = 2.0 %}
- {% else %}
- {% set z_safe = max_z - printer.toolhead.position.z %}
- {% endif %}
- G0 Z{z_safe} F3600 ; move nozzle up
- G0 X{x_safe} Y{y_safe} F20000 ; move nozzle to remove stringing
- TURN_OFF_HEATERS
- M107 ; turn off fan
- # G1 Z2 F3000 ; move nozzle up 2mm
- G90 ; absolute positioning
- # G0 X60 Y120 F3600 ; park nozzle at rear
- G0 X60 Y{max_y} F3600 ; park nozzle at rear
- [gcode_macro LOAD_FILAMENT]
- gcode:
- M83 ; set extruder to relative
- #G1 E280 F1800 ; quickly load filament to down bowden
- G1 E20 F1800 ; quickly load filament to down hotend (Sherpa Mini)
- G1 E60 F300 ; slower extrusion for hotend path
- G1 E15 F150 ; prime nozzle with filament
- M82 ; set extruder to absolute
- [gcode_macro UNLOAD_FILAMENT]
- gcode:
- M83 ; set extruder to relative
- G1 E10 F300 ; extrude a little to soften tip
- #G1 E-380 F1800 ; retract filament completely
- G1 E-80 F1800 ; retract filament completely (Sherpa Mini)
- M82 ; set extruder to absolute
- ######################################################################
- # Filament Change
- ######################################################################
- # M600: Filament Change. This macro will pause the printer, move the
- # tool to the change position, and retract the filament 130mm. 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 SWAP_FILAMENT]
- ########### Change this ############
- default_parameter_X: 0.1 #park position
- default_parameter_Y: 0.1 #park position
- default_parameter_Z: 120 #park position
- default_parameter_E: -50 #retract dist
- ########### Gcode ############
- gcode:
- SAVE_GCODE_STATE NAME=M600_state
- PAUSE
- G91
- G1 E-5 F4000
- G1 Z{Z}
- G90
- G1 X{X} Y{Y} F3000 ;park position
- G0 E10 F500 ;extrude filament to get better blob on end
- G0 E{E} F600 ;retract additional filament to move out of melt zone
- G92 E0
- # Use this command resume during a mid print filament swap (DONT USE OCTO/MAINSAIL/DWC RESUME)
- [gcode_macro SWAP_RESUME]
- gcode:
- RESTORE_GCODE_STATE NAME=M600_state
- resume
- [gcode_macro HEAT_SOAK]
- #uncomment HEAT_SOAK lines in PRINT_START to enable
- gcode:
- G0 X60 Y60 Z10 ; move toolhead to centre
- PAUSE
- M106 S255 ; run cooling fans at full power
- M117
- UPDATE_DELAYED_GCODE ID=SOAK_TIME DURATION=600 ; resume after 300 seconds
- [delayed_gcode SOAK_TIME]
- gcode:
- RESUME
- M107 ; turn off cooling fans
- [gcode_macro SKIP_HEAT_SOAK]
- gcode:
- RESUME
- UPDATE_DELAYED_GCODE ID=SOAK_TIME DURATION=1
- # Sensor Types
- # "EPCOS 100K B57560G104F"
- # "ATC Semitec 104GT-2"
- # "NTC 100K beta 3950"
- # "Honeywell 100K 135-104LAG-J01"
- # "NTC 100K MGB18-104F39050L32" (Keenovo Heater Pad)
- # "AD595"
- # "PT100 INA826"
- # "SliceEngineering 450"
- [virtual_sdcard]
- #path: ~/gcode_files
- path: ~/sdcard
- [display_status]
- [pause_resume]
- #recover_velocity: 50.
- # When capture/restore is enabled, the speed at which to return to
- # the captured position (in mm/s). Default is 50.0 mm/s.
- [gcode_macro PAUSE]
- rename_existing: BASE_PAUSE
- default_parameter_X: 200 #edit to your park position
- default_parameter_Y: 200 #edit to your park position
- default_parameter_Z: 10 #edit to your park position
- default_parameter_E: 2.5 #edit to your retract length
- gcode:
- SAVE_GCODE_STATE NAME=PAUSE_state
- BASE_PAUSE
- G91
- G1 E-{E} F2100
- G1 Z{Z}
- G90
- G1 X{X} Y{Y} F6000
- [gcode_macro RESUME]
- rename_existing: BASE_RESUME
- default_parameter_E: 2.5 #edit to your retract length
- gcode:
- G91
- G1 E{E} F2100
- G90
- RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
- BASE_RESUME
- [gcode_macro CANCEL_PRINT]
- rename_existing: BASE_CANCEL_PRINT
- gcode:
- TURN_OFF_HEATERS
- CLEAR_PAUSE
- SDCARD_RESET_FILE
- BASE_CANCEL_PRINT
- [mcu displayEncoder]
- serial: /dev/serial/by-id/usb-Klipper_stm32f042x6_290020001043534137393720-if00
- restart_method: command
- [display]
- lcd_type: sh1106
- i2c_mcu: displayEncoder
- i2c_bus: i2c1a
- encoder_pins: ^displayEncoder:PA4, ^displayEncoder:PA3
- click_pin: ^!displayEncoder:PA1
- kill_pin: ^!displayEncoder:PA5
- vcomh: 31
- [neopixel displayStatus]
- pin: displayEncoder:PA0
- chain_count: 1
- color_order: GRB
- initial_RED: 0.2
- initial_GREEN: 0.05
- initial_BLUE: 0
- [include bedScrewMenu.cfg]
- #[filament_switch_sensor my_sensor]
- [filament_switch_sensor Runout]
- pause_on_runout: True
- # When set to True, a PAUSE will execute immediately after a runout
- # is detected. Note that if pause_on_runout is False and the
- # runout_gcode is omitted then runout detection is disabled. Default
- # is True.
- #runout_gcode:
- # A list of G-Code commands to execute after a filament runout is
- # detected. See docs/Command_Templates.md for G-Code format. If
- # pause_on_runout is set to True this G-Code will run after the
- # PAUSE is complete. The default is not to run any G-Code commands.
- #insert_gcode:
- # A list of G-Code commands to execute after a filament insert is
- # detected. See docs/Command_Templates.md for G-Code format. The
- # default is not to run any G-Code commands, which disables insert
- # detection.
- #event_delay: 3.0
- # The minimum amount of time in seconds to delay between events.
- # Events triggered during this time period will be silently
- # ignored. The default is 3 seconds.
- #pause_delay: 0.5
- # The amount of time to delay, in seconds, between the pause command
- # dispatch and execution of the runout_gcode. It may be useful to
- # increase this delay if OctoPrint exhibits strange pause behavior.
- # Default is 0.5 seconds.
- switch_pin: ^!PC15
- # The pin on which the switch is connected. This parameter must be
- # provided.
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [heater_bed]
- #*# control = pid
- #*# pid_kp = 53.265
- #*# pid_ki = 2.864
- #*# pid_kd = 247.681
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 23.151
- #*# pid_ki = 1.416
- #*# pid_kd = 94.629
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement