Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains common pin mappings for the BIGTREETECH SKR V1.3
- # board. To use this config, the firmware should be compiled for the
- # LPC1768.
- # See docs/Config_Reference.md for a description of parameters.
- [virtual_sdcard]
- path: ~/gcode_files
- [display_status]
- [pause_resume]
- [stepper_x]
- step_pin: P2.2
- dir_pin: !P2.6
- enable_pin: !P2.1
- microsteps: 16
- rotation_distance: 40
- endstop_pin: P1.29 # P1.28 for X-max
- position_endstop: 0
- position_max: 200
- homing_speed: 50
- homing_retract_dist: 0
- [stepper_y]
- step_pin: P0.19
- dir_pin: !P0.20
- enable_pin: !P2.8
- microsteps: 16
- rotation_distance: 40
- endstop_pin: P1.27 # P1.26 for Y-max
- position_endstop: 0
- position_max: 220
- homing_speed: 50
- [stepper_z]
- step_pin: P0.22
- dir_pin: P2.11
- enable_pin: !P0.21
- microsteps: 16
- rotation_distance: 8
- endstop_pin: P1.25 # P1.24 for Z-max
- position_endstop: 0.5
- position_max: 190
- [extruder]
- step_pin: P2.13
- dir_pin: !P0.11
- enable_pin: !P2.12
- microsteps: 16
- rotation_distance: 33.500
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- #pressure_advance = 0.1
- heater_pin: P2.7
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: P0.24
- #control: pid
- #pid_Kp: 22.2
- #pid_Ki: 1.08
- #pid_Kd: 114
- min_temp: 0
- max_temp: 260
- [heater_bed]
- heater_pin: P2.5
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: P0.23
- control: pid
- pid_Kp: 54.027
- pid_Ki: 0.770
- pid_Kd: 948.182
- min_temp: 0
- max_temp: 130
- [fan]
- pin: P2.3
- [heater_fan hotend_fan]
- pin: P2.4
- heater: extruder
- heater_temp: 50.0
- fan_speed: 1.0
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_lpc1768_20D0FF04809C48AF952E3A5DC22000F5-if00
- [printer]
- kinematics: cartesian
- max_velocity: 300
- max_accel: 3000
- max_accel_to_decel: 3000
- square_corner_velocity: 5.0
- max_z_velocity: 5
- max_z_accel: 100
- [input_shaper]
- #shaper_freq_x: 38 # frequency for the X mark of the test model
- #shaper_freq_y: 39.5 # frequency for the Y mark of the test model
- #shaper_type: mzv
- ########################################
- # TMC2208 configuration
- ########################################
- # For TMC2208 UART
- # 1) Remove all of the jumpers below the stepper drivers
- # 2) Place jumpers on the red pin headers labeled XUART (XUART, YUART etc.)
- [tmc2208 stepper_x]
- uart_pin: P1.17
- run_current: 0.800
- hold_current: 0.500
- stealthchop_threshold: 999999
- [tmc2208 stepper_y]
- uart_pin: P1.15
- run_current: 0.800
- hold_current: 0.500
- stealthchop_threshold: 999999
- [tmc2208 stepper_z]
- uart_pin: P1.10
- run_current: 0.650
- hold_current: 0.450
- stealthchop_threshold: 999999
- [tmc2208 extruder]
- uart_pin: P1.8
- run_current: 0.800
- hold_current: 0.500
- ########################################
- # EXP1 / EXP2 (display) pins
- ########################################
- [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"
- # See the sample-lcd.cfg file for definitions of common LCD displays.
- [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
- #kill_pin: ^!EXP2_8
- [output_pin beeper]
- pin: EXP1_1
- #[gcode_macro PAUSE]
- #rename_existing: BASE_PAUSE
- #default_parameter_X: 220 # edit to #your preferred park position
- #default_parameter_Y: 220 # edit to #your preferred park position
- #default_parameter_Z: 10 # edit to #your preferred park position
- #default_parameter_E: 1 # edit to #your preferred 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 PAUSE]
- #description: Pause the actual running print
- #rename_existing: PAUSE_BASE
- ## change this if you need more or less extrusion
- #variable_extrude: 1.0
- #gcode:
- # ##### read E from pause macro #####
- # {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- # ##### set park positon for x and y #####
- # # default is your max posion from your printer.cfg
- # {% set x_park = printer.toolhead.axis_0|float - 5.0 %}
- # {% set y_park = printer.toolhead.axis_0|float - 5.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 - 2.0) %}
- # {% set z_safe = 2.0 %}
- # {% else %}
- # {% set z_safe = max_z - act_z %}
- # {% endif %}
- # ##### end of definitions #####
- # PAUSE_BASE
- # G91
- # {% if printer.extruder.can_extrude|lower == 'true' %}
- # G1 E-{E} F2100
- # {% else %}
- # {action_respond_info("Extruder not hot enough")}
- # {% endif %}
- # {% if "xyz" in printer.toolhead.homed_axes %}
- # G1 Z{z_safe} F900
- # G90
- # G1 X{x_park} Y{y_park} F6000
- # {% else %}
- # {action_respond_info("Printer not homed")}
- # {% endif %}
- #[gcode_macro RESUME]
- #rename_existing: BASE_RESUME
- #default_parameter_E: 1 # edit to #your preferred retract length
- #gcode:
- #G91
- #G1 E{E} F2100
- #G90
- #RESTORE_GCODE_STATE #NAME=PAUSE_state MOVE=1
- #BASE_RESUME
- #[gcode_macro RESUME]
- #description: Resume the actual running print
- #rename_existing: RESUME_BASE
- #gcode:
- # ##### read E from pause macro #####
- # {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- # #### 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' %}
- # G91
- # G1 E{E} F2100
- # {% else %}
- # {action_respond_info("Extruder not hot enough")}
- # {% endif %}
- # RESUME_BASE {get_params}
- [gcode_macro CANCEL_PRINT]
- description: Cancel the actual running print
- rename_existing: CANCEL_PRINT_BASE
- gcode:
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 23.415
- #*# pid_ki = 1.092
- #*# pid_kd = 125.561
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement