• 注册
  • 查看作者
  • 蜘蛛主板Klipper配置文件翻译稿

    • 保持我的一贯风格,中英对照翻译
    • 请务必去Github下载最新版本的,此文章作为翻译和来源参考
    • 原始文件位置下载: 链接
    • 有空就来翻译一点,不一定现在就是完全体,所以,吐槽会被我骂,然后有问题欢迎提出
    • 有些中英文之间不大好直译,所以我会意译。
     Code
    # This file contains common pin mappings for the Fysetc Spider board.
    # 此文件用于定义富源盛蜘蛛主板通用接口
    # To use this config, the firmware should be compiled for the STM32F446.
    # 为了使用此配置文件,固件配置选择STM32F446
    # When calling "menuconfig", enable "extra low-level configuration setup"
    # 使能/打开,“extra low-level configuration setup”选项
    # and select the "12MHz crystal" as clock reference
    # 晶振频率选择 12MHz
    # For flashing, write the compiled klipper.bin to memory location 0x08000000
    # 生成的Klipper.bin文件,刷机存储起始位置为 0x08000000
    
    # See docs/Config_Reference.md for a description of parameters.
    # 去docs/Config Reference.md 找更多的配置参数
    
    ## Voron Design VORON2 250/300/350mm Spider TMC2209 UART config
    # Voron V2 250/300/350mm 蜘蛛标准版 TMC2209 UART 配置
    
    ## *** THINGS TO CHANGE/CHECK: ***
    ## *** 以下内容需要在使用前反复的确认: ***
    ## MCU paths                            [mcu] section
    ## Thermistor types                     [extruder] and [heater_bed] sections - See 'sensor types' list at end of file
    ## Z Endstop Switch location            [homing_override] section
    ## Z Endstop Switch  offset for Z0      [stepper_z] section
    ## Probe points                         [quad_gantry_level] section
    ## Min & Max gantry corner postions     [quad_gantry_level] section
    ## PID tune                             [extruder] and [heater_bed] sections
    ## Fine tune E steps                    [extruder] section
    
    # 下面是配置指引
    ## MCU 路径                           [mcu] 章节
    ## 热敏电阻种类                       [挤出机] 和 [热床] 详细请看“热敏种类”列表
    ## Z 限位位置           [homing_override] section
    ## Z 限位偏移量 Z0       [stepper_z] section
    ## 探头                           [quad_gantry_level] section
    ## 最大最小热床位置     [quad_gantry_level] section
    ## PID 矫正                               [extruder] and [heater_bed] sections
    ## 细调挤出机                    [extruder] section
    
    [mcu]
    ##  MCU for X/Y/E steppers main MCU
    ## xy电机配置
    ##  [X in X] - B Motor
    ##  [Y in Y] - A Motor
    ##  [E in E0] - Extruder
    ## E是挤出机
    ##  Obtain definition by "ls -l /dev/serial/by-path/" then unplug to verify
    ##下面这个是设备的串口好,需要自己查找自己的串口号,不能直接复制黏贴实用
    ##--------------------------------------------------------------------
    serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0
    ##--------------------------------------------------------------------
    
    [printer]
    kinematics: corexy         #打印机xy运动方式
    max_velocity: 300  
    max_accel: 3000                 #最大加速度限制
    max_z_velocity: 15          #最大 15 for 12V TMC Drivers, 当电压为24V时可以适当增加
    max_z_accel: 350            #z加速度限制值
    square_corner_velocity: 5.0  #Can experiment with 8.0, 初始值 5.0
    
    #####################################################################
    #      X/Y Stepper Settings    X/Y 步进电机设置,
    #####################################################################
    
    [stepper_x]    #X步进电机设置
    ##  Connected to X-MOT (B Motor)
    step_pin: PE11      # 步进
    dir_pin: !PE10            #方向
    enable_pin: !PE9                #使能
    rotation_distance: 40     #具体的请看我另外一篇文章专门写电机配置的,cnvoron自己找一下
    microsteps: 16
    full_steps_per_rotation:200  #set to 400 for 0.9 degree stepper
    endstop_pin: ^PB14
    position_min: 0
    
    ##--------------------------------------------------------------------
    #在这里选择自己的热床大小,比如说我的热床是300mm,那么就把下面300mm前面的"#"符号删掉
    
    ##  Uncomment below for 250mm build
    ##把下面的部分前面的那个#号删掉就可以用,这个定义限位的位置,几乎就是热床的大小吧
    #position_endstop: 250
    #position_max: 250
    
    ##  Uncomment for 300mm build
    #position_endstop: 300
    #position_max: 300
    
    ##  Uncomment for 350mm build
    position_endstop: 350
    position_max: 350
    
    ##--------------------------------------------------------------------
    # 归零
    #归零速度,其实是找xy限位的速度
    homing_speed: 25   #Max 100
    #归零钱z抬升的高度
    homing_retract_dist: 5
    homing_positive_dir: true
    
    [tmc2209 stepper_x]
    uart_pin: PE7  #uart引脚
    microsteps: 16   #细分
    interpolate: True
    run_current: 0.8  #运行电流
    hold_current: 0.7   #保持电流
    stealthchop_threshold: 0  #静音阈值,一般2209再0到255之间调整,越高越静音,但是扭矩越小,0关闭此功能获得最大扭矩
    
    [stepper_y]
    ##  Connected to Y-MOT (A Motor)
    step_pin: PD8
    dir_pin: !PB12
    enable_pin: !PD9
    rotation_distance: 40
    microsteps: 16
    full_steps_per_rotation:200  #set to 400 for 0.9 degree stepper
    endstop_pin: ^PB13   # z限位位置
    position_min: 0
    ##--------------------------------------------------------------------
    
    ##  Uncomment for 250mm build
    #position_endstop: 250
    #position_max: 250
    
    ##  Uncomment for 300mm build
    #position_endstop: 300
    #position_max: 300
    
    ##  Uncomment for 350mm build
    position_endstop: 350
    position_max: 350
    
    ##--------------------------------------------------------------------
    homing_speed: 25  #Max 100   归零速度
    homing_retract_dist: 5   #归零前z抬升高度
    homing_positive_dir: true
    
    [tmc2209 stepper_y]
    uart_pin: PE15
    microsteps: 16
    interpolate: True
    run_current: 0.8
    hold_current: 0.7
    stealthchop_threshold: 0
    
    #####################################################################
    #   Z Stepper Settings
    #####################################################################
    
    ## In Z Position
    ## Z0 Stepper - Front Left
    [stepper_z]
    step_pin: PD14
    dir_pin: !PD13
    enable_pin: !PD15
    rotation_distance: 40
    gear_ratio: 80:16
    microsteps: 16
    ##  In Z- Position
    endstop_pin: PA0
    ##  Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
    ##  (+) value = endstop above Z0, (-) value = endstop below
    ##  Increasing position_endstop brings nozzle closer to the bed
    ##  After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
    #position_endstop: -0.5
    ##--------------------------------------------------------------------
    
    ##  Uncomment below for 250mm build
    #position_max: 240
    
    ##  Uncomment below for 300mm build
    #position_max: 290
    
    ##  Uncomment below for 350mm build
    position_max: 340
    
    ##--------------------------------------------------------------------
    position_min: -5
    homing_speed: 15.0
    second_homing_speed: 3.0
    homing_retract_dist: 3.0
    
    ##  Make sure to update below for your relevant driver (2208 or 2209)
    [tmc2209 stepper_z]
    uart_pin: PD10
    uart_address: 0
    microsteps: 16
    interpolate: True
    run_current: 0.8
    hold_current: 0.8
    stealthchop_threshold: 0
    
    ##  In E1 Position
    ##  Z1 Stepper - Rear Left
    [stepper_z1]
    step_pin: PE6
    dir_pin: PC13
    enable_pin: !PE5
    step_distance: .00250
    
    [tmc2209 stepper_z1]
    uart_pin: PC14
    microsteps: 16
    interpolate: True
    run_current: 0.8
    hold_current: 0.8
    stealthchop_threshold: 0
    
    ##  In E2 Position
    ##  Z2 Stepper - Rear Right
    [stepper_z2]
    step_pin: PE2
    dir_pin: !PE4
    enable_pin: !PE3
    step_distance: .0025
    
    ##  Make sure to update below for your relevant driver (2208 or 2209)
    [tmc2209 stepper_z2]
    uart_pin: PC15
    microsteps: 16
    run_current: 0.8
    hold_current: 0.8
    stealthchop_threshold: 0
    
    ##  In E3 Position
    ##  Z3 Stepper - Front Right
    [stepper_z3]
    step_pin: PD12
    dir_pin: PC4
    enable_pin: !PE8
    step_distance: 0.0025
    
    [tmc2209 stepper_z3]
    uart_pin: PA15
    microsteps: 16
    interpolate: true
    run_current: 0.8
    hold_current: 0.8
    stealthchop_threshold: 0
    
    #####################################################################
    #   Extruder
    #####################################################################
    
    ##  In E0-MOT Position
    [extruder]    #挤出机配置
    step_pin: PD5
    dir_pin: !PD6
    enable_pin: !PD4
    
    ##  Update value below when you perform extruder calibration
    ##  If you ask for 100mm of filament, but in reality it is 98mm:
    ##  rotation_distance =  *  / 100
    ##  22.6789511 is a good starting point
    rotation_distance: 22.6789511   #Bondtech 5mm Drive Gears
    ##  Update Gear Ratio depending on your Extruder Type
    ##  Use 50:17 for Afterburner/Clockwork (BMG Gear Ratio) 这个是bmg的配置,也就是咋们的近程挤出机的配置
    ##  Use 80:20 for M4, M3.1
    gear_ratio: 50:17               #BMG Gear Ratio
    microsteps: 16       #细分,大伙可以尝试32或者64
    full_steps_per_rotation: 200    #200 for 1.8 degree, 400 for 0.9 degree
    # 1.8度电机这个值是200,具体的调整方式看我另外的文章
    nozzle_diameter: 0.400      # 挤出嘴孔径
    filament_diameter: 1.75   #耗材直径
    ##      In E0 OUT Position
    heater_pin: PB15           #加热脚
    ##  Validate the following thermistor type to make sure it is correct
    sensor_type: ATC Semitec 104GT-2  #NTC100就选这个
    sensor_pin: PC0    #温度探头脚
    min_temp: 10               #这个部分是最低最高温度,比如你家冬天零下10度,那这个位置就要改,或者你要打PEEK等高温材料,最高温度限制也要改
    max_temp: 270
    max_power: 1.0
    min_extrude_temp: 170
    control = pid    #PID的值一般情况不需要改,但是热床需要自动整定一下,不然功率释放不出来
    pid_kp = 26.213
    pid_ki = 1.304
    pid_kd = 131.721
    ##  Try to keep pressure_advance below 1.0
    pressure_advance: 0.05
    ##  Default is 0.040, leave stock
    pressure_advance_smooth_time: 0.040
    
    ##  In E0-MOT Position
    ##  Make sure to update below for your relevant driver (2208 or 2209)
    [tmc2209 extruder]
    uart_pin: PD7
    interpolate: false
    run_current: 0.5
    hold_current: 0.4
    sense_resistor: 0.110
    stealthchop_threshold: 0
    
    #####################################################################
    #   Bed Heater   热床的配置
    #####################################################################
    [heater_bed]
    heater_pin: PB4   #加热脚
    sensor_type: NTC 100K MGB18-104F39050L32
    sensor_pin: PC3   
    ##  Adjust Max Power so your heater doesn't warp your bed
    max_power: 0.6   #这个是设置最高占空比的
    min_temp: 0
    max_temp: 120
    control: pid
    pid_kp: 58.437
    pid_ki: 2.347
    pid_kd: 363.769
    
    #####################################################################
    #   Probe
    #####################################################################
    
    [probe]
    ##  Inductive Probe
    ##  This probe is not used for Z height, only Quad Gantry Leveling
    ##  Z_MAX on mcu_z
    ##  If your probe is NO instead of NC, add change pin to !z:P0.10
    pin: ^!PA3
    x_offset: 0
    y_offset: 25.0
    z_offset: 0
    speed: 10.0
    samples: 3
    samples_result: median
    sample_retract_dist: 3.0
    samples_tolerance: 0.006
    samples_tolerance_retries: 3
    
    #####################################################################
    #   Fan Control
    #####################################################################
    
    [heater_fan hotend_fan]
    ##  Hotend Fan - FAN0 Connector
    pin: PB0
    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 - FAN1 Connector
    pin: PB1
    max_power: 0.4
    kick_start_time: 0.5
    ##  Depending on your fan, you may need to increase this value
    ##  if your fan will not start. Can change cycle_time (increase)
    ##  if your fan is not able to slow down effectively
    off_below: 0.10
    
    [heater_fan controller_fan]
    ##  Controller fan - FAN2 Connector
    pin: PB2
    kick_start_time: 0.5
    heater: heater_bed
    heater_temp: 45.0
    
    #[heater_fan exhaust_fan]
    ##  Exhaust fan - Z board, Fan Pin
    #pin: z:PC8
    #max_power: 1.0
    #shutdown_speed: 0.0
    #kick_start_time: 5.0
    #heater: heater_bed
    #heater_temp: 60
    #fan_speed: 1.0
    
    #####################################################################
    #   LED Control
    #####################################################################
    
    #[output_pin caselight ]
    ## XYE board, R pin in RGB ouput 
    #pin: PB0
    #pwm: true
    #value: 0
    #scale: 10
    
    #####################################################################
    #   Homing and Gantry Adjustment Routines
    #####################################################################
    
    [idle_timeout]
    timeout: 1800
    
    [homing_override]
    axes: xyz
    set_position_z: 0
    gcode:
       G90
       G0 Z5 F600
       G28 X Y
       ##   XY Location of the Z Endstop Switch
       ##   Update X0 and Y0 to your values (such as X157, Y305) after going through
       ##   Z Endstop Pin Location Definition step.
       G0 X258 Y332 F3600 
    
       G28 Z
       G0 Z10 F1800
    
        ##  Uncomment for for your size printer:
    #--------------------------------------------------------------------
        ##  Uncomment for 250mm build
        #G0 X125 Y125 Z30 F3600
    
        ##  Uncomment for 300 build
        #G0 X150 Y150 Z30 F3600
    
        ##  Uncomment for 350mm build
        #G0 X175 Y175 Z30 F3600
    #--------------------------------------------------------------------
    
    [quad_gantry_level]
    ##  Use QUAD_GANTRY_LEVEL to level a gantry.
    ##  Min & Max gantry corners - measure from nozzle at MIN (0,0) and 
    ##  MAX (250, 250), (300,300), or (350,350) depending on your printer size
    ##  to respective belt positions
    
    #--------------------------------------------------------------------
    ##  Gantry Corners for 250mm Build
    ##  Uncomment for 250mm build
    #gantry_corners:
    #   -60,-10
    #   310, 320
    ##  Probe points
    #points:
    #   50,25
    #   50,175
    #   200,175
    #   200,25
    
    ##  Gantry Corners for 300mm Build
    ##  Uncomment for 300mm build
    #gantry_corners:
    #   -60,-10
    #   360,370
    ##  Probe points
    #points:
    #   50,25
    #   50,225
    #   250,225
    #   250,25
    
    ##  Gantry Corners for 350mm Build
    ##  Uncomment for 350mm build
    gantry_corners:
        -60,-10
        410,420
    ##  Probe points
    points:
        50,25
        50,275
        300,275
        300,25
    
    #--------------------------------------------------------------------
    speed: 100
    horizontal_move_z: 10
    retries: 5
    retry_tolerance: 0.0075
    max_adjust: 10
    
    #####################################################################
    #   Displays
    #####################################################################
    
    ##  Uncomment the display that you have. Display connects to Z MCU
    #--------------------------------------------------------------------
    
    #[display]
    ##  RepRapDiscount 128x64 Full Graphic Smart Controller
    #lcd_type: st7920
    #cs_pin: z:P1.19
    #sclk_pin: z:P1.20
    #sid_pin: z:P1.18
    #menu_timeout: 40
    #encoder_pins: ^z:P3.26, ^z:P3.25 
    #click_pin: ^!z:P0.28
    
    #[output_pin beeper]
    #pin: z:P1.30
    
    #--------------------------------------------------------------------
    
    [display]
    ##  mini12864 LCD Display
    lcd_type: uc1701
    cs_pin: PC11
    a0_pin: PD2
    rst_pin: PC10
    encoder_pins: ^PC6,^PC7
    click_pin: ^!PA8
    contrast: 63
    spi_bus: spi1
    #spi_software_mosi_pin: PA7
    #spi_software_sclk_pin: PA5
    
    [neopixel fysetc_mini12864]
    ##  To control Neopixel RGB in mini12864 display and PD3 is for RGB light
    pin: PC12
    #pin: PD3
    chain_count: 3
    chain_count: 60
    initial_RED: 0.1
    initial_GREEN: 0.5
    initial_BLUE: 0.0
    color_order: RGB
    
    ##  Set RGB values on boot up for each Neopixel. 
    ##  Index 1 = display, Index 2 and 3 = Knob
    [delayed_gcode setdisplayneopixel]
    initial_duration: 1
    gcode:
            SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0
            SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0
            SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 
    
    #--------------------------------------------------------------------
    
    #####################################################################
    #   Macros
    #####################################################################
    
    [gcode_macro G32]
    gcode:
        BED_MESH_CLEAR
        G28
        QUAD_GANTRY_LEVEL
        G28
        G0 X150 Y150 Z20 F6000
    
    [gcode_macro PRINT_START]
    #   Use PRINT_START for the slicer starting script - please customise for your slicer of choice
    gcode:
        G28                            ; home all axes
        QUAD_GANTRY_LEVEL
        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-10.0 F3600                ; retract filament
        G91                            ; relative positioning
        G0 Z1.00 X20.0 Y20.0 F20000    ; move nozzle to remove stringing
        TURN_OFF_HEATERS
        M107                           ; turn off fan
        G1 Z2 F3000                    ; move nozzle up 2mm
        G90                            ; absolute positioning
        G0  X125 Y250 F3600            ; park nozzle at rear
        BED_MESH_CLEAR
    
    ##  Thermistor 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"
    
    #*# <---------------------- SAVE_CONFIG ---------------------->
    #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
    #*#
    #*# [stepper_z]
    #*# position_endstop = 0.500
    
    
  • 0
  • 9
  • 0
  • 1.3k
  • 请登录之后再进行评论

    登录
  • 0
    打印菜鸟
    这些针脚的名字是哪里可以看到嘛?
  • 0
    打印菜鸟
    有没有 ramps1.4 + tmc2208 的配置文件介绍?
  • 0
    打印菜鸟
    爬楼梯
  • 0
    对,实际拥有者就是我
  • 0
    感谢大佬的服务器支持,没有大佬的服务器,就没有产房
  • 0
    打印菜鸟
    全论坛都是你的,哈哈
  • 0
    打印菜鸟
    高产似母猪
  • 单栏布局 侧栏位置: