Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file contains common pin mappings for the SuperRacer with the BIGTREETECH SKR V1.3
- # board. To use this config, the firmware must be compiled for the LPC1768.
- # The hotend PID values are for a Triangle Labs CMC Pro hotend
- # See docs/Config_Reference.md for a description of parameters.
- [include mainsail.cfg]
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_lpc1768_15FB05055B1652539111C54C010000F5-if00 ### BTT Pad 7
- restart_method: command
- ###Flsun Super Racer printer config####
- [printer]
- kinematics: delta
- max_velocity: 300
- max_accel: 10000
- max_accel_to_decel: 5000
- square_corner_velocity: 5
- max_z_velocity: 300
- print_radius: 132
- #delta_radius: 132
- minimum_z_position=-55 #-25
- [input_shaper]
- shaper_freq_x: 25.00 # frequency for the X mark of the test model
- shaper_freq_y: 23.29 # frequency for the Y mark of the test model
- ###Stepper X config###
- [stepper_a]
- step_pin: P2.2
- dir_pin: P2.6
- enable_pin: !P2.1
- microsteps: 16
- rotation_distance: 40
- endstop_pin: P1.28 # P1.28 for X-max
- homing_speed: 50
- #position_endstop: 320
- #arm_length: 315.0
- ###Stepper Y config###
- [stepper_b]
- step_pin: P0.19
- dir_pin: P0.20
- enable_pin: !P2.8
- microsteps: 16
- rotation_distance: 40
- endstop_pin: P1.26 # P1.26 for Y-max
- ###Stepper Z config###
- [stepper_c]
- step_pin: P0.22
- dir_pin: P2.11
- enable_pin: !P0.21
- microsteps: 16
- rotation_distance: 40
- endstop_pin: P1.24 # P1.24 for Z-max
- ###Stepper E config####
- [extruder]
- step_pin: P2.13
- dir_pin: P0.11
- enable_pin: !P2.12
- rotation_distance: 5.694 # 200*16/562
- microsteps: 16
- full_steps_per_rotation: 200
- nozzle_diameter: 0.400
- filament_diameter: 1.75
- heater_pin: P2.7
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: P0.24
- min_temp: -5
- max_temp: 275
- #pressure_advance: 0.033
- #control = pid
- #pid_kp = 18.240
- #pid_ki = 0.558
- #pid_kd = 149.109
- max_extrude_cross_section: 110
- max_extrude_only_distance: 1100
- ###Stepper driver config###
- [tmc2209 stepper_a]
- uart_pin: P1.17
- run_current: 1.138
- hold_current: .500
- stealthchop_threshold: 999999
- [tmc2209 stepper_b]
- uart_pin: P1.15
- run_current: 1.138
- hold_current: .500
- stealthchop_threshold: 999999
- [tmc2209 stepper_c]
- uart_pin: P1.10
- run_current: 1.138
- hold_current: .500
- stealthchop_threshold: 999999
- [tmc2209 extruder]
- uart_pin: P1.8
- run_current: 0.55 #0.75 # 0.55
- hold_current: .500
- stealthchop_threshold: 999999
- ###Bed config###
- [heater_bed]
- heater_pin: P2.5
- sensor_type: EPCOS 100K B57560G104F #ATC Semitec 104GT-2
- sensor_pin: P0.23
- min_temp: 0
- max_temp: 130
- control = pid
- pid_kp = 71.041
- pid_ki = 1.422
- pid_kd = 887.123
- ###Fan config###
- [fan]
- pin: P2.3
- [heater_fan nozzle_fan]
- pin: P2.4
- heater: extruder
- heater_temp: 50.0
- fan_speed: 1.0
- ###Filament Sensor Config###
- [filament_switch_sensor filament_sensor]
- pause_on_runout: True
- runout_gcode: PAUSE
- switch_pin: P1.29
- ###Probe config###
- [probe]
- pin: !P1.25
- x_offset: 0
- y_offset: 0
- #z_offset: 13.0 #-14.50 #10 #-18.18 <=========================
- speed: 10
- samples: 3
- samples_result: average
- sample_retract_dist: 3
- samples_tolerance: 0.02
- samples_tolerance_retries: 5
- ###Delta Calibration config###
- [delta_calibrate]
- radius: 127.5 #120
- horizontal_move_z: 30 #25
- speed: 20 #10
- [bed_mesh]
- speed: 50
- horizontal_move_z: 30 #25 #MUST BE THE SAME AS DELTA_CALIBRATE.
- mesh_radius: 127.5 #120
- mesh_origin: 0,0
- round_probe_count: 13
- algorithm: bicubic
- ###Fluidd config###
- [temperature_sensor raspberry_pi]
- sensor_type: temperature_host
- min_temp: 10
- max_temp: 220
- [virtual_sdcard]
- #path: ~/gcode_files
- #path: /home/biqu/printer_data/gcodes
- path = ~/printer_data/gcodes
- [display_status]
- [pause_resume]
- # Enable object exclusion
- [exclude_object]
- # Enable arcs support
- [gcode_arcs]
- resolution: 0.1
- ###Macros###
- [gcode_macro PAUSE]
- description: Pause the actual running print
- rename_existing: PAUSE_BASE
- gcode:
- ##### set defaults #####
- {% set x = params.X|default(0) %} #edit to your park position
- {% set y = params.Y|default(-120) %} #edit to your park position
- {% set z = params.Z|default(10)|float %} #edit to your park position
- {% set e = params.E|default(1) %} #edit to your retract length
- ##### calculate save lift position #####
- {% set max_z = printer.toolhead.axis_maximum.z|float %}
- {% set act_z = printer.toolhead.position.z|float %}
- {% set lift_z = z|abs %}
- {% if act_z < (max_z - lift_z) %}
- {% set z_safe = lift_z %}
- {% 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}
- G90
- G1 X{x} Y{y} F6000
- {% else %}
- {action_respond_info("Printer not homed")}
- {% endif %}
- [gcode_macro RESUME]
- description: Resume the actual running print
- rename_existing: RESUME_BASE
- gcode:
- ##### set defaults #####
- {% if printer["filament_switch_sensor filament_sensor"].filament_detected == True %}
- {% set e = params.E|default(1) %} #edit to your retract length
- #### get VELOCITY parameter if specified ####
- {% if 'VELOCITY' in params|upper %}
- {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
- {%else %}
- {% set get_params = "" %}
- {% endif %}
- ##### end of definitions #####
- G91
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G1 E{e} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- RESUME_BASE {get_params}
- {% endif %}
- [gcode_macro CANCEL_PRINT]
- description: Cancel the actual running print
- rename_existing: CANCEL_PRINT_BASE
- gcode:
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- G28
- [gcode_macro ZUP]
- gcode:
- SET_GCODE_OFFSET Z_ADJUST=0.025 MOVE=1
- [gcode_macro ZDOWN]
- gcode:
- SET_GCODE_OFFSET Z_ADJUST=-0.025 MOVE=1
- [gcode_macro UNLOAD_FILAMENT] #unload filament
- gcode:
- G91
- G1 E20 F800
- G1 E-1000 F800
- G90
- [gcode_macro LOAD_FILAMENT] #load filament
- gcode:
- G91
- G1 E950 F800
- G1 E50 F300
- G90
- [save_variables]
- filename: ~/savedVariables1.cfg
- [gcode_macro SET_GCODE_OFFSET]
- rename_existing: _SET_GCODE_OFFSET
- gcode:
- {% if printer.save_variables.variables.gcode_offsets %}
- {% set offsets = printer.save_variables.variables.gcode_offsets %}
- {% else %}
- {% set offsets = {'x': None,'y': None,'z': None} %}
- {% endif %}
- {% set ns = namespace(offsets={'x': offsets.x,'y': offsets.y,'z': offsets.z}) %}
- _SET_GCODE_OFFSET {% for p in params %}{'%s=%s '% (p, params[p])}{% endfor %}
- {%if 'X' in params %}{% set null = ns.offsets.update({'x': params.X}) %}{% endif %}
- {%if 'Y' in params %}{% set null = ns.offsets.update({'y': params.Y}) %}{% endif %}
- {%if 'Z' in params %}{% set null = ns.offsets.update({'z': params.Z}) %}{% endif %}
- {%if 'Z_ADJUST' in params %}
- {%if ns.offsets.z == None %}{% set null = ns.offsets.update({'z': 0}) %}{% endif %}
- {% set null = ns.offsets.update({'z': (ns.offsets.z | float) + (params.Z_ADJUST | float)}) %}
- {% endif %}
- SAVE_VARIABLE VARIABLE=gcode_offsets VALUE="{ns.offsets}"
- [delayed_gcode LOAD_GCODE_OFFSETS]
- initial_duration: 2
- gcode:
- {% if printer.save_variables.variables.gcode_offsets %}
- {% set offsets = printer.save_variables.variables.gcode_offsets %}
- _SET_GCODE_OFFSET {% for axis, offset in offsets.items() if offsets[axis] %}{ "%s=%s " % (axis, offset) }{% endfor %}
- { action_respond_info("Loaded gcode offsets from saved variables [%s]" % (offsets)) }
- {% endif %}|
- [gcode_arcs]
- [gcode_macro bed_level_1]
- gcode:
- SET_GCODE_OFFSET Z=0
- G28
- delta_calibrate
- G1 X0 Y0 Z50 F4200
- G28
- save_config
- [gcode_macro bed_level_2]
- gcode:
- G28
- G1 X0 Y0 Z50 F4200
- bed_mesh_calibrate
- G1 X0 Y0 Z50 F4200
- G28
- save_config
- ########################################
- # 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.
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [probe]
- #*# z_offset = 0.010
- #*#
- #*# [printer]
- #*# delta_radius = 148.144631
- #*#
- #*# [stepper_a]
- #*# angle = 209.839292
- #*# arm_length = 315.000000
- #*# position_endstop = 331.241
- #*#
- #*# [stepper_b]
- #*# angle = 329.899137
- #*# arm_length = 315.000000
- #*# position_endstop = 331.313
- #*#
- #*# [stepper_c]
- #*# angle = 90.000000
- #*# arm_length = 315.000000
- #*# position_endstop = 331.168
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 14.056
- #*# pid_ki = 0.876
- #*# pid_kd = 56.401
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# 25.681391, 25.681391, 25.681391, 25.681391, 25.681391, 25.681391, 25.681391, 25.681391, 25.681391, 25.681391, 25.681391, 25.681391, 25.681391
- #*# 25.956063, 25.956063, 25.956063, 25.956063, 25.875043, 25.824967, 25.731784, 25.720195, 25.657385, 25.636184, 25.636184, 25.636184, 25.636184
- #*# 25.954746, 25.954746, 25.954746, 25.946114, 25.881453, 25.805642, 25.766598, 25.791830, 25.744162, 25.679487, 25.746253, 25.746253, 25.746253
- #*# 25.926710, 25.926710, 25.888723, 25.963543, 25.905104, 25.929626, 25.919988, 25.965516, 25.957755, 25.855392, 25.841834, 26.144752, 26.144752
- #*# 25.860417, 25.860417, 25.847475, 25.953998, 26.035273, 26.176178, 26.270358, 26.384459, 26.362514, 26.133141, 26.024630, 26.127954, 26.127954
- #*# 25.838024, 25.838024, 25.863865, 26.011673, 26.242483, 26.469631, 26.609724, 26.734411, 26.700357, 26.325096, 26.074960, 26.025780, 26.025780
- #*# 25.853477, 25.807754, 25.881205, 26.108965, 26.484153, 26.691831, 26.815162, 26.825507, 26.705302, 26.339379, 26.052816, 25.924928, 26.001637
- #*# 25.816526, 25.816526, 25.842131, 26.117390, 26.451250, 26.691944, 26.689500, 26.627690, 26.451901, 26.171242, 25.950059, 25.941684, 25.941684
- #*# 25.831039, 25.831039, 25.860002, 25.961986, 26.178506, 26.351400, 26.304531, 26.197718, 26.064115, 25.954140, 25.892870, 25.894186, 25.894186
- #*# 25.878884, 25.878884, 25.881174, 25.878515, 25.948748, 25.993637, 25.945475, 25.876671, 25.807022, 25.784099, 25.809525, 25.833704, 25.833704
- #*# 25.886120, 25.886120, 25.886120, 25.892813, 25.910233, 25.855282, 25.858298, 25.804815, 25.767825, 25.733908, 25.735152, 25.735152, 25.735152
- #*# 25.958258, 25.958258, 25.958258, 25.958258, 25.917971, 25.846075, 25.799889, 25.783405, 25.780787, 25.737810, 25.737810, 25.737810, 25.737810
- #*# 25.875778, 25.875778, 25.875778, 25.875778, 25.875778, 25.875778, 25.875778, 25.875778, 25.875778, 25.875778, 25.875778, 25.875778, 25.875778
- #*# x_count = 13
- #*# y_count = 13
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = -127.5
- #*# max_x = 127.5
- #*# min_y = -127.5
- #*# max_y = 127.5
- #*#
- #*# [delta_calibrate]
- #*# height0 = 13.0
- #*# height0_pos = 25203.000,25202.000,25190.000
- #*# height1 = 13.0
- #*# height1_pos = 30528.333,30573.000,22320.000
- #*# height2 = 13.0
- #*# height2_pos = 24651.667,33597.667,24656.667
- #*# height3 = 13.0
- #*# height3_pos = 22434.667,29638.333,29642.667
- #*# height4 = 13.0
- #*# height4_pos = 24481.333,24456.333,30892.333
- #*# height5 = 13.0
- #*# height5_pos = 28884.000,22587.000,28853.000
- #*# height6 = 13.0
- #*# height6_pos = 32157.000,24556.000,24532.000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement