免责声明: This is an independent resource site. 与 Voron 项目或其开发团队无关联。

Voron 的 Klipper 设置 — 完整配置指南

固件 Klipper Tutorial

Klipper 固件让 Voron 打印机脱颖而出。与传统的基于 Marlin 的固件(所有计算都在主板的微控制器上进行)不同,Klipper 将运动规划卸载到单板计算机(Raspberry Pi、CB1、BTT Pi 等),并仅向主板发送低级步进命令。这可以实现更高的步进速率、更复杂的运动算法(输入整形器、压力提前)以及实时调整,而无需重新刷新固件。

最后更新时间:2025 年 5 月。 This guide covers the complete Klipper setup process for Voron printers: installing on various SBC options, flashing the controller board, building the printer.cfg from official Voron templates, calculating stepper rotation distances, configuring endstops, running PID auto-tuning, calibrating input shaper (with and without an accelerometer), setting up pressure advance, bed mesh, and creating useful macros. We also include troubleshooting for the most common errors.

运行 Klipper 的硬件选项

小型计算机公司 中央处理器 内存 价格(中国直达) 笔记
树莓派 4B 2GB BCM2711(4核) 2GB $45-60 最受支持,很容易找到
树莓派 5 4GB BCM2712(4核) 4GB $60-80 矫枉过正但面向未来
BTT CB1 (v2.2) 全志H616(4核) 1GB $15-25 直接替换 Pi,预算选项
BTT Pi V1.2 全志H616(4核) 1GB $30-40 集成CB1,物超所值
橙子圆周率零2 全志H616(4核) 1GB $20-30 需要手动操作系统设置

对于大多数 Voron 构建者来说,Raspberry Pi 4B 2GB 或 BTT CB1/Pi 组合是最佳选择。 Pi 4B 拥有最好的社区支持和文档。 CB1 更便宜且运行良好,但马力稍低 — 对于单个打印机来说还好,但在相机或多个 Klipper 实例上可能会遇到困难。

专业提示: If you're going the China-direct route, the BTT CB1 + BTT Pi V1.2 combination is hard to beat at $30-40 total. It provides the same functionality as a Pi 4B at half the price.

安装 Klipper — 一步一步

选项 A:Raspberry Pi 操作系统上的 Klipper(推荐 Pi 用户):

  1. Flash Raspberry Pi OS (64-bit, Lite) to an SD card using Raspberry Pi Imager
  2. 在闪烁期间启用 SSH 和 WiFi(Imager 中的齿轮图标)
  3. SSH into the Pi: ssh pi@voron-printer.local
  4. Run the KIAUH installer (Klipper Installation And Update Helper): cd ~ && git clone https://github.com/dw-0/kiauh.git && ./kiauh/kiauh.sh
  5. 在 KIAUH 中选择 Klipper、Moonraker (API)、Mainsail (Web UI) 和 KlipperScreen(可选)
  6. KIAUH 自动处理所有依赖项和配置

选项B:CB1 / BTT Pi上的Klipper:

  1. 从 BTT GitHub 页面下载 CB1 特定的 Armbian 版本
  2. 使用 balenaEtcher 闪存至 eMMC 或 SD 卡
  3. SSH 输入(默认:root@192.168.x.x,密码:pi)
  4. 以与上面选项 A 相同的方式运行 KIAUH
  5. 注意:CB1 需要特定的内核构建 - 不要使用标准的 Raspberry Pi 操作系统映像

选项 C:MainsailOS(一体化解决方案): Download the MainsailOS image for your SBC platform. It comes pre-configured with Klipper, Moonraker, and Mainsail. This is the easiest option for beginners — just flash and go. You'll still need to flash the controller board firmware and configure printer.cfg manually.

刷新控制器板

Klipper 在 SBC 上运行后,您需要将 Klipper 固件刷新到您的控制器板(BTT Octopus、SKRat、Fysetc Spider 等)。

一般流程(适用于大多数主板):

常见板卡配置:

排除闪存故障: If the board doesn't appear after flashing, check: (1) correct microcontroller selected in menuconfig, (2) correct bootloader offset, (3) SD card formatted as FAT32 with MBR partition table, (4) board is in DFU/bootloader mode (some boards require a jumper or button press).

构建 Printer.cfg

The official Voron Klipper configurations are maintained in the Voron GitHub repository. Start by copying the template for your printer model and size.

需要定制的关键部分:

[单片机]: Set the serial path to your controller board. Find it with ls /dev/serial/by-id/*. It should look like /dev/serial/by-id/usb-Klipper_stm32f446xx_12345-if00.

[步进器_x]、[步进器_y]、[步进器_z]: Set endstop pins, position endpoints, and homing speed. The Voron templates have correct values for standard builds. Only change if you've modified your printer geometry.

旋转距离——最常见的配置错误: This value tells Klipper how far a linear axis moves per full motor rotation. Get it wrong and your printer will be dimensionally inaccurate. Calculate it:

终点挡板和探头配置

物理终点站: X and Y endstops on the Voron are mechanical switches or optical sensors. Configure them in the [stepper_x] and [stepper_y] sections with endstop_pin pointing to the correct pin on your board. Set homing_speed: 20 and position_endstop to match your printer's corner dimensions.

Z 探针(虚拟终点挡块): Vorons use the nozzle probe method — the nozzle touches a switch or uses an inductive probe (Omron TL-Q5MC2 or PL-08N) to detect the bed surface. Configure the probe in Klipper as a virtual endstop:

PID自整定

PID(比例-积分-微分)调节可优化打印机维持目标温度的方式。 Klipper 的自动调整非常出色。

挤出机PID校准: Run PID_CALIBRATE HEATER=extruder TARGET=245 (use 250 for ABS, 220 for PLA). The process takes about 10 minutes and cycles the heater on/off to measure thermal response.

床PID校准: Run PID_CALIBRATE HEATER=heater_bed TARGET=100 (or 110 for PC/PA prints). Bed PID tuning takes longer (15-20 minutes) because of the larger thermal mass.

保存结果: After each calibration, Klipper shows the PID values. Use SAVE_CONFIG to write them to your printer.cfg. Typical values for a Rapido UHF (50W): P=25-35, I=1.0-1.5, D=100-140. For a 350mm bed (500-800W): P=500-800, I=0.5-1.0, D=100-200.

输入整形器校准

输入整形器通过计算打印机的共振频率并过滤加速度曲线以避免激发振铃,从而消除振铃(重影)。

方法A:ADXL345加速度计(推荐):

方法B:手动调谐(无加速度计):

推荐的 Voron 成型成型机轮廓:

压力提前校准

压力提前通过在移动开始时稍微过度挤压和在结束时挤压不足来补偿热端中的细丝压缩。这消除了拐角处的凸出并提高了尺寸精度。

校准方法:

专业提示: Pressure advance is temperature-dependent. If you change materials or printing temperatures, re-run the PA calibration. Save different PA values in your START_PRINT macro based on the material being printed.

床网校准

床网格补偿映射床表面高度并在打印过程中调整 Z 轴移动,以保持整个床的第一层高度一致。

配置:

解释床网格结果: A good bed mesh has a total variance (max - min) of 0.1mm or less. If you see 0.3mm+ variance, check: bed mounting screws tight? Bed thermal expansion (heat to printing temp before meshing)? Frame squareness? Z leadscrews properly aligned?

对 Voron 构建者有用的宏

宏自动执行重复性任务。以下是任何 Voron 人都必须具备的要素:

排除常见 Klipper 错误

最终配置清单

在宣布 Klipper 设置完成之前,请验证以下各项:

Klipper 使 Voron 从一台优秀的打印机变成了一台卓越的打印机。初始设置需要几个小时,但一旦拨通,您将拥有一台能够以最少的维护生产一致、高质量打印的机器。输入整形器、压力推进和床网的组合——所有这些都由 Klipper 实现——赋予了 Voron 打印机传奇的高速打印质量。

需要 Klipper 设置帮助吗?

我们提供预配置的 Klipper SD 卡和设置指南,作为我们的中国直接零件生态系统的一部分。我们的小程序包含适用于流行 Voron 构建的经过验证的 Printer.cfg 模板,可为您节省数小时的配置时间。

Contact Us / 联系我们