BLV 3D打印机Klipper配置参考

这篇具有很好参考价值的文章主要介绍了BLV 3D打印机Klipper配置参考。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

记录一下我的BLV mgn Cube 3D打印机升级Klipper的配置,功能包括:文章来源地址https://www.toymoban.com/news/detail-510670.html

  1. 树莓派3B作为主控
  2. BIGTREETECH SKR V1.3主板
  3. bltouch自动调平
  4. 断料检测
  5. 倾斜校正 
  6. 多Z轴高度校准
  7. 热床mesh校准
  8. 延时摄影(此文未添加)
# 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.



#bltouch配置

[bltouch]

sensor_pin:^P1.25              # 信号接口  #^P1.25 for Z-min

control_pin:P2.0                

x_offset: 28.5                 # X轴-传感器相对喷嘴偏移量

y_offset: 5.0                  # Y轴-传感器相对喷嘴偏移量

z_offset: 1.35                 # Z轴-传感器相对喷嘴偏移量 值越大,喷嘴离平台越近

speed: 10.0                    # 调平速度

samples: 1                     # 采样次数

samples_result: median         # 取值方式(默认median-中位数)       

sample_retract_dist: 3.0       # 调平回缩距离         

samples_tolerance: 0.5         # 采样公差(注意过小的值可能造成采样次数增加)       

samples_tolerance_retries: 3   # 超公差重试次数             




#断料检测,检测到断料则直接暂停

[gcode_button Broken_Material]

pin:!P1.28                      # 限位开关接口  P1.28 for X-max

press_gcode:

release_gcode:

    PAUSE



    




[gcode_macro PRINT_START]# 将 PRINT_START 设置为开始打印时的宏,自定义打印前的动作

gcode:

  

  SET_SKEW CLEAR=1

  SET_SKEW XY=140.6,141.2,99.6  #XY倾斜校正

  SET_HEATER_TEMPERATURE HEATER=extruder TARGET=210

  SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=60

  G28                       # 归位所有轴

  G92 E0                    # 将挤出机归零

  BED_MESH_CLEAR            # 卸载网床

#  G1 X10 F4000              # X回零点

  G1 E10 F1000              # 吐出10mm丝

  ;G1 Y10.0 F5000 ;intro line

  ;G92 E0 ;zero the extruded length again

  BED_MESH_PROFILE LOAD=default    # 加载网床

  hyperlapse CYCLE=30 ACTION=START #启动延时拍照,间隔30s




[gcode_macro PRINT_END]# 将 PRINT_END 设置为打印结束时的宏,自定义打印完成之后动作

gcode:

  M400                      # 等待缓冲区清除

  G1  E-10 F2000            # 回抽10mm

  G92 E0                    # 将挤出机归零

  M104 S0                   #turn off temperature

  M140 S0                   #turn off bed

  G28 X0                    #home X axis

  #M84                      #disable motors

  BED_MESH_CLEAR

  SET_SKEW CLEAR=1         #卸载倾斜校正

  hyperlapse CYCLE=30 ACTION=STOP  #停止延时拍照,间隔30s

  TIMELAPSE_RENDER          #合成视频

  CANCEL_PRINT_BASE

 # SDCARD_RESET_FILE



#####################################################################

#                      打印机配置corexy

#####################################################################

[printer]

kinematics: corexy            # 打印机类型:corexy

max_velocity: 200             # 最大速度(最大 300)

max_accel: 2000               # 最大加速度(最大 4000)

max_accel_to_decel: 2000      # 最大加速至减速(最大 4000)

max_z_velocity: 6             # Z轴最大速度

max_z_accel: 60               # Z轴最大加速度

square_corner_velocity: 5.0   # 方形拐角速度



########################################

#       SKR V1.3主板

########################################

[mcu]

serial: /dev/serial/by-id/usb-Klipper_lpc1768_13A00004619C2DAE14A51953871E00F5-if00



#辅助mcu 树莓派自己

[mcu auxboard]

serial: /tmp/klipper_host_mcu



#####################################################################

#                         X轴步进电机

#####################################################################

[stepper_x]

step_pin: P2.2                 # X轴电机脉冲引脚

dir_pin: P2.6                  # 方向设置

enable_pin: !P2.1              # 使能引脚    

microsteps: 32                 # 细分 

rotation_distance: 32          # 主动轮周长mm (2GT-20T为 40mm  16T为 32mm)        

full_steps_per_rotation: 200   # 单圈脉冲数-对于0.9度步进设置为400               

endstop_pin: ^!P1.29           # 限位开关接口  P1.28 for X-max

position_endstop: -22          # 机械限位最大行程

position_max: 320              # 软限位最大行程 

position_min: -22              # 软限位最小行程    

homing_speed: 100              # 复位速度-最大 100    

#--------------------------------------------------------------------

[tmc2208 stepper_x]

uart_pin: P1.17                # 驱动通信端口

interpolate: True              # 微步插值256

run_current: 1.200             # 运行电流A   

hold_current: 0.800            # 保持电流A     

#stealthchop_threshold: 999999  # 静音阀值              



#####################################################################

#                      Y 轴步进电机

#####################################################################

[stepper_y]

step_pin: P0.19                # Y轴电机脉冲引脚

dir_pin: P0.20                 # 方向设置

enable_pin: !P2.8              # 使能引脚  

microsteps: 32                 # 细分

rotation_distance: 32          # 主动轮周长mm (2GT-20T为 40mm  16T为 32mm)      

full_steps_per_rotation: 200   # 单圈脉冲数-对于0.9度步进设置为400               

endstop_pin: ^!P1.27           # 限位开关接口  P1.26 for Y-max

position_endstop: -3            # 械限位最大行程 改为右前方限位  -5

position_max: 320              # 软限位最大行程  

position_min: -20              # 软限位最小行程  

homing_speed: 100              # 复位速度-最大 100  

#--------------------------------------------------------------------

[tmc2208 stepper_y]

uart_pin: P1.15                # 驱动通信端口

interpolate: True              # 微步插值256

run_current: 1.200             # 运行电流A   

hold_current: 0.800            # 保持电流A     

#stealthchop_threshold: 999999  # 静音阀值              



#####################################################################

#                        Z轴步进电机

#####################################################################

[stepper_z]

step_pin: P0.1                 # Z轴电机脉冲引脚

dir_pin: !P0.0                 # 方向设置

enable_pin: !P0.10             # 使能引脚    

microsteps: 32                 # 细分

rotation_distance: 2           # 导程mm  

endstop_pin:probe:z_virtual_endstop    # 限位开关接口

#endstop_pin: P1.25            #   P1.25 for Z-min

#position_endstop: 0           #自动调平需要注释掉

position_min: -5               # 软限位最小行程   

position_max: 400              # 软限位最大行程     

homing_speed: 5.0              # 复位速度-最大 20     

second_homing_speed: 2.0       # 二次复位速度-最大 10          

homing_retract_dist: 3.0       # 后撤距离          

#--------------------------------------------------------------------

[tmc2208 stepper_z]

uart_pin: P1.1                 # 驱动通信端口

interpolate: True              # 微步插值256

run_current: 0.70              # 运行电流A    

hold_current: 0.450            # 保持电流A      

stealthchop_threshold: 999999  # 静音阀值                




[stepper_z1]

step_pin: P0.22                # Z1轴电机脉冲引脚 

dir_pin: !P2.11                # 方向设置 

enable_pin: !P0.21             # 使能引脚       

microsteps: 32                 # 细分

rotation_distance: 2           # 导程mm        

#--------------------------------------------------------------------

[tmc2208 stepper_z1]

uart_pin: P1.10                # 驱动通信端口

interpolate: True              # 微步插值256

run_current: 0.70              # 运行电流A   

hold_current: 0.450            # 保持电流A      

stealthchop_threshold: 999999  # 静音阀值                




#####################################################################

#                             挤出机配置

#####################################################################

[extruder]

step_pin: P2.13                # E0电机脉冲引脚 

dir_pin: !P0.11                # 方向设置 

enable_pin: !P2.12             # 使能引脚     

microsteps: 16                 # 细分

rotation_distance: 23.15       # 步进值    Bondtech 5mm Drive Gears

gear_ratio: 50:17              # 传动比    (M4 为 80:20 , BMG 为 50:17)   

full_steps_per_rotation: 200   # 单圈脉冲数 (200 为 1.8 度, 400 为 0.9 度)             

nozzle_diameter: 0.400         #喷嘴直径

filament_diameter: 1.75        #耗材直径

heater_pin: P2.7               # 加热棒引脚 

sensor_type: EPCOS 100K B57560G104F   #传感器型号  (NTC 100K beta 3950,ATC Semitec 104GT-2)             

sensor_pin: P0.24              # 传感器接口  

control: pid                

pid_kp = 11.700

pid_ki = 0.600

pid_kd = 57.036

min_temp: 0                    # 最小温度

max_temp: 260                  # 最大温度

pressure_advance:0.058         # 压力推进补偿pressure advance=0+11.6*0.005

#--------------------------------------------------------------------

[tmc2208 extruder]

uart_pin: P1.8                 # 驱动通信端口

interpolate: True              # 微步插值256

run_current: 0.800             # 运行电流A    

hold_current: 0.500            # 保持电流A     

stealthchop_threshold: 999999  # 静音阀值               





[verify_heater extruder]

max_error: 120

#   The maximum "cumulative temperature error" before raising an

#   error. Smaller values result in stricter checking and larger

#   values allow for more time before an error is reported.

#   Specifically, the temperature is inspected once a second and if it

#   is close to the target temperature then an internal "error

#   counter" is reset; otherwise, if the temperature is below the

#   target range then the counter is increased by the amount the

#   reported temperature differs from that range. Should the counter

#   exceed this "max_error" then an error is raised. The default is

#   120.

check_gain_time:20

#   This controls heater verification during initial heating. Smaller

#   values result in stricter checking and larger values allow for

#   more time before an error is reported. Specifically, during

#   initial heating, as long as the heater increases in temperature

#   within this time frame (specified in seconds) then the internal

#   "error counter" is reset. The default is 20 seconds for extruders

#   and 60 seconds for heater_bed.

hysteresis: 50

#   The maximum temperature difference (in Celsius) to a target

#   temperature that is considered in range of the target. This

#   controls the max_error range check. It is rare to customize this

#   value. The default is 5.

heating_gain: 2

#   The minimum temperature (in Celsius) that the heater must increase

#   by during the check_gain_time check. It is rare to customize this

#   value. The default is 2.





#####################################################################

#                            热床配置

#####################################################################

[heater_bed]

heater_pin: P2.5               # 热床接口     

sensor_type: ATC Semitec 104GT-2    # 热床传感器类型            

sensor_pin: P0.23              # 热床传感器接口 

min_temp: 0                    # 最小温度(注意:测量温度超过设定值会触发紧急停止)

max_temp: 110                  # 最大温度(注意:测量温度超过设定值会触发紧急停止)

# 热床温度PID校准命令:  "PID_CALIBRATE HEATER=heater_bed TARGET=60"




              



#####################################################################

#                            热床网格校准

#####################################################################

[bed_mesh]

speed:100                      # 校准速度

horizontal_move_z:5            # Z轴运动速度    

mesh_min:10,10                 # 最小校准点坐标x,y

mesh_max:300,300               # 最大校准点坐标x,y 

probe_count: 5,5               # 采样点数(5X5为25点) 

mesh_pps:2,2                   # 补充采样点数

algorithm: bicubic             # 算法模型   

bicubic_tension: 0.2           # 算法插值不要动      

relative_reference_index: 13    # 第多少个点作为±0.00  (最好将点位设置在热床中间或者较平处)(解决热床校准之后在空中的问题)

#####################################################################

#                            Z轴归位坐标

#####################################################################

[safe_z_home]

home_xy_position: 150,150      # Z轴归位位置定义(重要!!!自行进行调整)

speed: 100                     # 归位速度

z_hop: 10                      # 归位之后抬升高度

z_hop_speed: 5                 # 抬升速度

#####################################################################

#                            多轴Z高度校准

#####################################################################

[z_tilt]

z_positions:

    -63,160

    356,160

points:

    260,160

    -20,160

speed: 150

horizontal_move_z:10

#####################################################################

#                             风扇配置

#####################################################################

[fan]

pin: P2.3                     # 信号接口




[temperature_sensor raspberry_pi]

sensor_type: temperature_host

min_temp: 10

max_temp: 100



#[temperature_sensor mcu_temp]

#sensor_type: temperature_mcu

#min_temp: 10

#max_temp: 100



#####################################################################

#                             倾斜校正

#####################################################################

[skew_correction] #校正框架组装的倾斜

#Length AC = 140.6 #测试件 AC对焦长度mm

#Length BD = 141.2 #测试件 BD对焦长度mm

#Length AD = 99.5 #测试件 AD边长度mm




[virtual_sdcard]

path: ~/gcode_files



[display_status]



[pause_resume]




#[mcu rpi]

#serial: /tmp/klipper_host_mcu



#[adxl345]

#cs_pin: rpi:None



#[resonance_tester]

#accel_chip: adxl345

#probe_points:

#    150,150,20  # 这个地方建议配置成热床的中间



#####################################################################

#                           自定义gcode宏

#####################################################################

[gcode_arcs]#允许圆弧插补

resolution: 1.0  #启用圆弧插补G2,G3




[gcode_macro Z_TILT]

gcode:

  BED_MESH_CLEAR

  G28

  SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=60

  SET_HEATER_TEMPERATURE HEATER=extruder TARGET=200

  Z_TILT_ADJUST

  G28

  BED_MESH_CALIBRATE

  SAVE_CONFIG




[gcode_macro BLTOUCH_RESET]

gcode:

  BLTOUCH_DEBUG COMMAND=reset






# [gcode_macro clean_nozzle]

# gcode:

  # {% set wipe_count = 8 %}

  # SAVE_GCODE_STATE NAME=clean_nozzle_state

  # G90

  # G0 Z15 F300

  # {% for wipe in range(wipe_count) %}

    # {% for coordinate in [(275,4),(235,4)] %}

      # G0 X{coordinate[0]} Y{coordinate[1] + 0.25 * wipe} Z9.7 F12000

    # {% endfor %}

  # {% endfor %}

  # RESTORE_GCODE_STATE NAME=clean_nozzle_state








[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:

  G92 E0                    # 将挤出机归零

  G1  E-10 F2000            # 回抽10mm

  #TURN_OFF_HEATERS

  CANCEL_PRINT_BASE

  M84

  hyperlapse CYCLE=30 ACTION=stop

  SDCARD_RESET_FILE

[include timelapse.cfg]



到了这里,关于BLV 3D打印机Klipper配置参考的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 3D打印机Marlin固件双Z轴设置

    在3D打印机Marlin固件的最新版本2.1.1中,设置双Z轴和老版本有一些改动。记录一下如何在最新版本的Marlin固件中设置双Z轴。 以MKS GEN_L V2.1的主板为例,硬件连接还是和原来一样,第二个Z轴的电动机连接到空闲的第二个挤出机电机接口上。 打开Marlin固件的配置文件configuration

    2024年02月15日
    浏览(62)
  • 3D 打印机 G 代码命令:完整列表和教程

    查看原文 了解 G 代码命令将开启 3D 打印的下一个层次。继续阅读以快速了解此代码的基础知识! 内容 它是什么? 3D 打印的重要命令 G0 G1:直线运动 G90 G91:绝对和相对定位 G28 和 G29:汽车家庭和床调平 M104、M109、M140 和 M190:设定温度 M106 M107:风扇控制 程序结构 阶段 1:初

    2024年02月03日
    浏览(23)
  • 【花一周,打造属于自己的一台DIY3D打印机1.0】

    读者你们好!这是DIY系列的第一次,我希望这个系列能一直更新,也希望你们能从我的文章中有所收获。我也是小白,还需要继续努力,所以这篇文章会不定期更新,总结给大家相关的知识,将来这个系列也会更新别的DIY产品,这个系列并不局限于硬件,而是所有的DIY产品哦

    2023年04月13日
    浏览(33)
  • 如何在安卓端的SAP里配置打印机

    1、转到 SPAD 事务(“假脱机管理”屏幕)。单击“设备/服务器”选项卡,输入输出设备的名称,然后点击显示按钮。 2、如果打印机已配置,它将显示设备属性、输出设备属性和纸盒信息的所有详细信息。如果输入新的打印机名称,则将导航到以下屏幕。然后,单击 “更改

    2024年03月13日
    浏览(34)
  • 使用Vue @media print在JavaScript中插入不同尺寸的打印页面,可自定义尺寸大小和打印机配置

    本文介绍了如何在Vue项目中使用@media print和JavaScript来插入不同尺寸的打印页面,并提供了代码编写、使用教程、注意事项和避坑点,最后进行了总结。 在开发Web应用程序时,经常需要提供打印功能。Vue框架提供了@media print媒体查询,可以根据打印需求自定义打印页面的样式

    2024年02月05日
    浏览(78)
  • 惠普打印机---共享打印机安装 --连接

    输入 win+R ,再输入共享打印机的连接的IP 2.进入 连接 界面 3.右击打印机 ,点击连接 ,就可以添加打印机设备 方法二、 添加打印机

    2024年02月03日
    浏览(52)
  • Windows11连接共享打印机失败,提示以下错误:Windows 无法连接到打印机。请检查打打印机名并重试。如果这是网络打印机,请确保打印机已打开

    1.在确定打印机所在的主机是开机状态且局域网内其他电脑连接打印机正常情况下; 2.检查所需安装打印机的电脑打印服务运行状态; 2.1 按住Win+R键输入 services.msc 点击确 定后,打开服务; 2.2 Print Spooler、DCOM Server Process Launcher、RPC Endpoint Mapper,将其运行状态设置为自动启动

    2024年02月04日
    浏览(167)
  • 老毛子、华硕固件USB连接打印机,普通打印机变无线打印机

    本次作为打印机服务器的是Newifi Mini,1千兆wan口,2百兆lan口,1USB2.0接口,打印机型号为canon ip1180,年代非常久远,不过墨盒可以反复加墨,算下来打印费用很便宜,无奈不支持无线打印,于是利用路由器的usb口使其变成无线打印机。 由于打印机离主机位置较远,且布线不方

    2024年02月08日
    浏览(120)
  • 安装pdf打印机无法找到安装打印机的核心驱动

    安装pdf打印机无法找到安装打印机的核心驱动,出现这种情况下。可以利用以下方法解决 * C:WindowsSystem32DriverStore* 这个文件夹。在 FileRepository 文件夹上面,点击右键“管理员取得所有权”命令,这个时候会跳出一个命令行窗口不停的执行取得权限操作,耐心等待几十秒钟等

    2024年02月11日
    浏览(41)
  • mac Canon打印机连接教程(附打印机驱动下载)

    网上大多是windows版驱动和安装教程,mac链接相对参考材料较少,记录于此方便节省大家时间。本篇以Canon iR C3025打印机为例,流程大同小异。

    2024年02月12日
    浏览(53)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包