记录一下我的BLV mgn Cube 3D打印机升级Klipper的配置,功能包括:

  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-mincontrol_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-maxpress_gcode:release_gcode:PAUSE[gcode_macro PRINT_START]# 将 PRINT_START 设置为开始打印时的宏,自定义打印前的动作gcode:SET_SKEW CLEAR=1SET_SKEW XY=140.6,141.2,99.6  #XY倾斜校正SET_HEATER_TEMPERATURE HEATER=extruder TARGET=210SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=60G28                       # 归位所有轴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 againBED_MESH_PROFILE LOAD=default    # 加载网床hyperlapse CYCLE=30 ACTION=START #启动延时拍照,间隔30s[gcode_macro PRINT_END]# 将 PRINT_END 设置为打印结束时的宏,自定义打印完成之后动作gcode:M400                      # 等待缓冲区清除G1  E-10 F2000            # 回抽10mmG92 E0                    # 将挤出机归零M104 S0                   #turn off temperatureM140 S0                   #turn off bedG28 X0                    #home X axis#M84                      #disable motorsBED_MESH_CLEARSET_SKEW CLEAR=1         #卸载倾斜校正hyperlapse CYCLE=30 ACTION=STOP  #停止延时拍照,间隔30sTIMELAPSE_RENDER          #合成视频CANCEL_PRINT_BASE# SDCARD_RESET_FILE######################################################################                      打印机配置corexy#####################################################################[printer]kinematics: corexy            # 打印机类型:corexymax_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-maxposition_endstop: -22          # 机械限位最大行程position_max: 320              # 软限位最大行程 position_min: -22              # 软限位最小行程    homing_speed: 100              # 复位速度-最大 100    #--------------------------------------------------------------------[tmc2208 stepper_x]uart_pin: P1.17                # 驱动通信端口interpolate: True              # 微步插值256run_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-maxposition_endstop: -3            # 械限位最大行程 改为右前方限位  -5position_max: 320              # 软限位最大行程  position_min: -20              # 软限位最小行程  homing_speed: 100              # 复位速度-最大 100  #--------------------------------------------------------------------[tmc2208 stepper_y]uart_pin: P1.15                # 驱动通信端口interpolate: True              # 微步插值256run_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              # 微步插值256run_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              # 微步插值256run_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 Gearsgear_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.700pid_ki = 0.600pid_kd = 57.036min_temp: 0                    # 最小温度max_temp: 260                  # 最大温度pressure_advance:0.058         # 压力推进补偿pressure advance=0+11.6*0.005#--------------------------------------------------------------------[tmc2208 extruder]uart_pin: P1.8                 # 驱动通信端口interpolate: True              # 微步插值256run_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,ymesh_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,160356,160points:260,160-20,160speed: 150horizontal_move_z:10######################################################################                             风扇配置#####################################################################[fan]pin: P2.3                     # 信号接口[temperature_sensor raspberry_pi]sensor_type: temperature_hostmin_temp: 10max_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_CLEARG28SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=60SET_HEATER_TEMPERATURE HEATER=extruder TARGET=200Z_TILT_ADJUSTG28BED_MESH_CALIBRATESAVE_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 printrename_existing: PAUSE_BASE# change this if you need more or less extrusionvariable_extrude: 1.0gcode:##### 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_BASEG91{% 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} F900G90G1 X{x_park} Y{y_park} F6000{% else %}{action_respond_info("Printer not homed")}{% endif %} [gcode_macro RESUME]description: Resume the actual running printrename_existing: RESUME_BASEgcode:##### 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' %}G91G1 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 printrename_existing: CANCEL_PRINT_BASEgcode:G92 E0                    # 将挤出机归零G1  E-10 F2000            # 回抽10mm#TURN_OFF_HEATERSCANCEL_PRINT_BASEM84hyperlapse CYCLE=30 ACTION=stopSDCARD_RESET_FILE[include timelapse.cfg]

BLV 3D打印机Klipper配置参考相关推荐

  1. marlin固件烧录教程_【打印虎】Marlin firmware RepRap Prusa i3 3D打印机固件配置教程.pdf...

    [打印虎]Marlin firmware RepRap Prusa i3 3D打印机固件配置教程 [打印虎原创]RepRap_Prusa_i3_3D 打印机固件 Marlin_firmware 配置教 ...

  2. Voron 3d打印机 Klipper双挤出配置方式

    此"双挤出"是指两个挤出机在耗材的前后端同步驱动(只有一个挤出头),而不是双挤出头(两套挤出装置). 为什么要搞双挤出? 只是为了测试"对Voron层纹的处理方式的其中一 ...

  3. 3D打印机切片配置设置

    本文的设置全部使用Simplify3D切片软件 一.设置打印平台的大小 根据自己的打印机设置X/Y/Z轴的数据,在工具->选项->模型 二.新增一个打印进程 三.挤出机的喷嘴直径 设置喷嘴 ...

  4. 3D打印机ender3-V2通过上位机以及下位机的安装并使用klipper的总体流程

    1.香橙派(树莓派.玩客云等能装系统的板)安装指定系统(稳定性.兼容性) 因为现在树莓派涨价严重,国内越来越多的企业会考虑国产的SOC,就比如香橙派,价格实惠而且能够在一定程度上代替树莓派(国产就是牛 ...

  5. 3D打印机DIY之三------Arduino开发环境构建和Marlin固件配置

    一.Arduino开发环境 1.搜索Arduino IDE下载安装即可. 2.使用VS code开发Arduino Arduino IDE很简单,很多功能都没有,使用起来很不方便.因此建议使用Visu ...

  6. 【3D打印机】原来配置Marlin2.0这么简单,别说我没告诉你。

    `` ​ 可能由于各人的打印机款式不同,某些参数没有出现在文中,但是只要你完全看完本指南,就可以理解Marlin是如何工作的,我相信在此基础上,你在固件中找到哪些不同配置并不困难. 本文的最终的目标是 ...

  7. prusai3打印机使用教程_prusa i3 3D打印机固件Marlin配置初学者篇

    前边的教程已经给大家介绍了如何组装Prusa i3打印机,不知道各位小伙伴有没有get到,既然打印机已经有了躯体,那么就需要一个灵魂.这个灵魂就是Marlin固件,记得刚开始了解3D打印机的时候,经常 ...

  8. Voron2.2 3D打印机制作-软件篇(1)

    Voron2.2 3D打印机制作-软件篇(1) 作者:Fortunate 日期:2020/4/15 Tip:教程都是参考官方原版说明,文档全程手码,自己并非专业,文中有误希望大佬及时提点! 前期准备 ...

  9. 台电x80HD 安装linux系统,可调电压电源供电,外网访问、3D打印klipper固件

    一.系统安装 参照https://blog.csdn.net/gangtieren/article/details/102975027安装 安装过程遇到的问题: 1.试了 linux mint 21 ...

最新文章

  1. 《数据科学家养成手册》第十章--混沌论
  2. java判断直到_3. JavaSE-位运算及判断循环程序结构的讲解
  3. Python 进阶_模块 包
  4. 怎么看台式计算机是几位的,怎么查看自己电脑型号
  5. Python编程语言学习:for循环中常用方法经验技巧(利用enumerate函数对列表实现自带索引等)之详细攻略
  6. python基础代码的含义_Python基础学习篇
  7. 19.jsp生命周期
  8. SIEM比以往更重要的5个原因
  9. c++ primer 函数传值1
  10. 沫沫金::jqGrid插件-弹窗返回值
  11. 微服务熔断限流Hystrix之流聚合
  12. 去银行写代码是种什么体验?
  13. 大数据杀熟 算法_大数据杀熟这事,究竟有多没谱?
  14. 微软拼音开启小鹤双拼
  15. Android 华为手机ADB调试连接不上的参考解决办法
  16. AI绘画小程序图片转漫画SaaS多开
  17. html 内嵌iframe,html页面 内嵌iframe
  18. 超详细讲解!在字节跳动我是如何当面试官的,附大厂真题面经
  19. [转载]程序员三部曲
  20. 数据通信系统的基本模型

热门文章

  1. 室外管线lisp_利用Autocad lisp进行地下管线成果表制作方法的研究
  2. 计算机网络安全工作室介绍,计算机网络技术专业 “网络工作室”做法简介
  3. Zooming Slow-Mo: Fast and Accurate One-Stage Space-Time Video Super-Resolution | 摘要翻译 |
  4. Mac-工具-IntelliJ IDEA升级2022.1问题
  5. java number比较大小_JAVA Number与Math类
  6. #一日一图#自己的小窝舒服
  7. python国际象棋规则_如何使用Python编写一个国际象棋AI程序
  8. Python AutoCAD 注释
  9. anaconda图形界面打开方式
  10. kvm静态迁移error: Cannot access storage file