Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains common pin mappings for the Two Trees Sapphire
- # Pro printer from 2020. To use this config, the firmware should be
- # compiled for the STM32F103. When running "make menuconfig", enable
- # "extra low-level configuration setup", select the 28KiB bootloader,
- # disable "USB for communication", select USART3 for the "Serial
- # Port", and set "GPIO pins to set at micro-controller startup" to
- # "!PC6,!PD13".
- # Note that the "make flash" command does not work with the Sapphire
- # Pro. After running "make", run the following command:
- # ./scripts/update_mks_robin.py out/klipper.bin out/Robin_nano35.bin
- # Copy the file out/Robin_nano35.bin to an SD card and then restart the
- # printer with that SD card.
- # See docs/Config_Reference.md for a description of parameters.
- [stepper_x]
- step_pin: PE3
- dir_pin: !PE2
- enable_pin: !PE4
- microsteps: 16
- rotation_distance: 40
- endstop_pin: !PA15
- position_endstop: 0
- position_max: 230
- homing_speed: 50
- [stepper_y]
- step_pin: PE0
- dir_pin: !PB9
- enable_pin: !PE1
- microsteps: 16
- rotation_distance: 40
- endstop_pin: !PA12
- position_endstop: 220
- position_max: 220
- homing_speed: 50
- [stepper_z]
- step_pin: PB5
- dir_pin: !PB4
- enable_pin: !PB8
- microsteps: 16
- rotation_distance: 2
- endstop_pin: !PA11
- position_endstop: 1.0
- position_max: 220
- position_min: -2.0
- homing_speed: 8
- second_homing_speed: 2
- [tmc2209 stepper_x]
- uart_pin: PA10
- run_current: 1.0
- hold_current: 0.4
- stealthchop_threshold: 81
- [tmc2209 stepper_y]
- uart_pin: PA9
- run_current: 1.0
- hold_current: 0.4
- stealthchop_threshold: 81
- [tmc2209 stepper_z]
- uart_pin: PC7
- run_current: 1.0
- hold_current: 0.55
- stealthchop_threshold: 0
- [tmc2209 extruder]
- uart_pin: PC13
- run_current: 0.7
- hold_current: 0.4
- stealthchop_threshold: 40
- [extruder]
- step_pin: PD6
- dir_pin: !PD3
- enable_pin: !PB3
- microsteps: 16
- rotation_distance: 7.898
- nozzle_diameter: 0.600
- filament_diameter: 1.750
- heater_pin: PC3
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: PC1
- control: pid
- pid_Kp: 20.32
- pid_Ki: 1.66
- pid_Kd: 62.33
- min_temp: 10
- max_temp: 275
- max_extrude_only_distance: 300.0
- pressure_advance: 0.22
- pressure_advance_smooth_time: 0.020
- [firmware_retraction]
- retract_length: 0.9
- retract_speed: 10
- unretract_extra_length: 0
- unretract_speed: 10
- [bed_mesh]
- speed: 80
- horizontal_move_z: 1
- mesh_min: 25,25
- mesh_max: 205, 195
- probe_count: 3,3
- fade_start: 0.8
- fade_end: 5
- [heater_bed]
- heater_pin: PA0
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC0
- control: pid
- pid_Kp: 32.36
- pid_Ki: 6.21
- pid_Kd: 112.43
- min_temp: 0
- max_temp: 130
- [fan]
- pin: PB1
- [mcu]
- serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
- restart_method: command
- [printer]
- kinematics: corexy
- max_velocity: 250
- max_accel: 1500
- max_accel_to_decel: 750
- max_z_velocity: 15
- max_z_accel: 50
- square_corner_velocity: 10
- [static_digital_output reset_display]
- pins: !PC6, !PD13
- [probe]
- pin: !PA2
- x_offset: 0.0
- y_offset: 0.0
- z_offset: -0.23
- speed: 2.0
- samples_tolerance: 0.03
- samples: 5
- #samples_result: median
- samples_tolerance_retries: 3
- ########################
- [virtual_sdcard]
- path: ~/gcode_files/sapphire
- [pause_resume]
- [display_status]
- [gcode_macro PARK_MACRO]
- default_parameter_X: 0
- default_parameter_Y: 220
- default_parameter_Z: 5
- gcode:
- M117 PARKING..
- G91
- G1 E-3 F1000
- G1 Z{Z}
- G90
- G1 X{X} Y{Y} F3000
- [gcode_macro UNLOAD]
- gcode:
- G91
- G1 E-500 F1000
- G90
- [gcode_macro M600]
- gcode:
- PAUSE_MACRO
- UNLOAD
- [gcode_macro PAUSE_MACRO]
- gcode:
- PAUSE
- PARK_MACRO
- [gcode_macro PURGE]
- gcode:
- M117 PURGING...
- G91
- G1 E25.0 F600
- G4 P1000
- G1 E-3.0 F600
- G90
- [gcode_macro LOAD_FILAMENT]
- gcode:
- M117 LOADING...
- G91
- G1 E25.0 F100
- G1 E300 F600
- G90
- [gcode_macro RESUME_MACRO]
- gcode:
- M117 RESUME...
- G91
- G1 E3.5 F600
- G90
- G4 P1000
- RESUME
- ################
- [gcode_macro CANCEL_PRINT]
- rename_existing: BASE_CANCEL_PRINT
- gcode:
- TURN_OFF_HEATERS
- CLEAR_PAUSE
- SDCARD_RESET_FILE
- BASE_CANCEL_PRINT
- M107
- [gcode_macro PAUSE]
- rename_existing: BASE_PAUSE
- # 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 #####
- SAVE_GCODE_STATE NAME=PAUSE_state
- BASE_PAUSE
- G91
- G1 E-{E} F2100
- G1 Z{z_safe} F900
- G90
- G1 X{x_park} Y{y_park} F6000
- [gcode_macro RESUME]
- rename_existing: BASE_RESUME
- gcode:
- ##### read E from pause macro #####
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- ##### end of definitions #####
- G91
- G1 E{E} F2100
- RESTORE_GCODE_STATE NAME=PAUSE_state
- BASE_RESUME
- ###############
- [gcode_arcs]
- resolution: 0.5
- [gcode_macro G29]
- gcode:
- BED_MESH_OUTPUT
- ###################
- [gcode_macro Poziom_Start]
- gcode:
- BED_MESH_CALIBRATE
- # TESTZ Z=-3
- [gcode_macro PROBE_MACRO]
- gcode:
- PROBE
- #[gcode_macro Z_MINUS]
- #gcode:
- # TESTZ Z=-0.025
- #[gcode_macro Z_PLUS]
- #gcode:
- # TESTZ Z=+0.025
- #[gcode_macro Poziom_OK]
- #gcode:
- # ACCEPT
- # TESTZ Z=-3
- [gcode_macro Zapisz_Ustawienia]
- gcode:
- SAVE_CONFIG
- ##################
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# 0.100000, 0.275000, 0.100000
- #*# 0.125000, 0.350000, 0.150000
- #*# 0.200000, 0.450000, 0.340000
- #*# tension = 0.2
- #*# min_x = 25.0
- #*# algo = lagrange
- #*# y_count = 3
- #*# mesh_y_pps = 2
- #*# min_y = 25.0
- #*# x_count = 3
- #*# max_y = 195.0
- #*# mesh_x_pps = 2
- #*# max_x = 205.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement