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: 320
- homing_speed: 50
- [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: 300
- 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: 400
- [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
- 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_z_velocity: 5
- max_z_accel: 100
- ########################################
- # 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
- stealthchop_threshold: 0
- ########################################
- # 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]
- 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_maximum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_maximum.y|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]
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement