跳到正文
Skillpedia
其他48k · #5178

marlin-bed-leveling

它能做什么

这个工具可以帮你设置 3D 打印机的热床调平,适用于使用 Marlin 固件的打印机。它能确保打印的第一层牢牢贴合热床,即使打印热床并不完全平整。

适用场景

  • ✓当你 3D 打印的第一层没有很好地粘在热床上时。
  • ✓如果打印机在自动归位(homing)之后,似乎没有“开启”热床调平时。
  • ✓当你需要微调打印喷嘴与测量热床的传感器之间的精确距离时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/marlin-bed-leveling/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/marlin-bed-leveling/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我要怎样在使用 Marlin 的打印机上设置自动热床调平?”

每周 5 个新技能,1 分钟读完。

工作原理

它会调整打印机软件(Marlin)中的设置,让打印机知道热床上各个点的准确高度。具体做法是发送特定的指令,让打印机测量热床并保存这些数据。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Marlin Bed Leveling: Deterministic Calibration & First-Layer Mesh Engineering

Master Marlin 2.x bed leveling architectures (Unified Bed Leveling UBL, Bilinear ABL, Manual Mesh MBL) to guarantee flawless first-layer adhesion through rigorous G-code phase workflows, probe offset math, and persistent EEPROM compensation.

When to Use This Skill

Activate this skill when:

  • Calibrating, tuning, or troubleshooting automatic bed leveling on Marlin 2.x 3D printers (Ender 3, CR-10, Prusa clones, custom CoreXY / Cartesian machines).
  • The user asks: "How do I set up UBL in Marlin?", "My printer homes with G28 and ignores the mesh", "Calculate BLTouch Z-probe offset", "Generate G26 validation print G-code", or "Edit warped mesh points with M421".
  • Diagnosing first-layer defects: nozzle dragging across PEI sheets, corner detachment, uneven squish, or compensation disabling after homing.
  • Sizing slicer start G-code sequences (Cura, PrusaSlicer, OrcaSlicer, Bambu Studio) with thermal soaking and mesh restoration.

Do NOT use this skill when:

  • Calibrating Klipper or RepRapFirmware printers (different firmware syntax and mesh compensation systems).
  • Fixing gross mechanical skew: loose V-slot rollers, bent Z leadscrews, or wobbly gantry arms (hardware faults cannot be solved by software leveling).
  • Delta printer kinematics setup requiring radius and tower endstop adjustments before mesh probing.

Core Mental Models & Non-Negotiable Rules

  1. The Post-Homing Enable Mandate (G28 Disables Leveling):

    • In Marlin firmware, executing G28 (Home All Axes) automatically DISABLES bed leveling compensation by default (RESTORE_LEVELING_AFTER_G28 is often disabled in vendor firmware).
    • In every print start G-code, the leveling restoration command MUST be issued strictly AFTER G28:
      G28      ; Home all axes (silently turns leveling OFF)
      M420 S1  ; Re-enable bed leveling compensation from EEPROM mesh
      
    • Failing to include M420 S1 (or G29 A for UBL) after G28 causes the printer to execute the entire print with zero leveling compensation.
  2. The 5-Phase UBL Calibration Loop: Unified Bed Leveling (UBL) is a state machine requiring five sequential phases:

    • Phase 1 (Probe Reachable Grid): G29 P1 probes all coordinates physically reachable by the probe offset.
    • Phase 2 (Manual Edge Probing): G29 P2 uses a paper feeler gauge for points the BLTouch cannot reach due to gantry geometry.
    • Phase 3 (Mathematical Extrapolation): G29 P3 T0.0 fills unprobed edge coordinates by extrapolating slopes from adjacent measured points.
    • Phase 4 (Validation & Micro-Tuning): G26 B60 H210 F1.75 prints a single-layer validation test pattern; inspect and edit coordinates with M421 I... J... Q....
    • Phase 5 (Storage & Activation): G29 S1 saves to EEPROM mesh slot 1; G29 A activates UBL; M500 commits to permanent EEPROM storage.
  3. Thermal Equilibrium Pre-Flight Invariant:

    • Aluminum build plates, magnetic stickers, and spring-steel PEI sheets expand and warp non-linearly under thermal expansion.
    • Probing a bed at room temperature (20°C) and then printing at 60°C or 100°C bakes a $0.08\text{--}0.20\text{mm}$ error into every mesh point.
    • Mandatory Pre-Flight: Beds MUST be heated to target operating temperature and soaked for $\ge 5\text{ minutes}$ prior to running G29 probing.
  4. Z-Probe Offset Sign Convention (M851 Z...):

    • For downward-deploying probes (BLTouch, CRTouch, inductive sensors) where the probe trigger point triggers below the nozzle tip: $$\mathbf{Z\text{-}Offset\ is\ strictly\ NEGATIVE}\ (e.g.,\ \text{M851 Z-1.85})$$
    • A positive Z-offset on a downward-deploying probe instructs the firmware that the nozzle is lower than the probe trigger, driving the nozzle directly into the bed on the first move.
    • Adjusting Z-offset with paper gauge:
      • More resistance / tighter squish $\implies$ more negative (e.g., -1.80 $\to$ -1.85).
      • Less resistance / looser gap $\implies$ less negative (e.g., -1.80 $\to$ -1.75).
  5. Mesh Fade Height Geometry (M420 Z...):

    • Leveling compensation must gradually fade out as Z-height increases so top surface layers print geometrically flat rather than conforming to the bed warp.

…

常见问题

为什么打印机归位之后,热床调平就不工作了?

让打印机归位的指令(G28)默认会关闭调平功能。归位之后,你需要再发送一次 M420 S1 来重新开启调平。

调平之前需要给热床加热吗?

需要,这一点很重要。你应该把热床加热到打印温度,并等待几分钟。金属受热会膨胀,这会改变热床的形状。

什么是 Z 探针偏移(Z-probe offset)?

它是打印喷嘴的尖端与调平传感器(探针)触碰热床的那一点之间的精确距离。对于 BLTouch 这类传感器,通常使用负值。

详情

作者的原始描述

Calibrates Marlin 2.x 3D printer firmware bed leveling: Unified Bed Leveling (UBL), Bilinear ABL, M420 S1 post-homing, Z-probe offsets, G26 mesh prints, and EEPROM slots. Trigger phrases: marlin bed leveling, ubl calibration, m420 s1, z probe offset, g29 bed level, first layer adhesion.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5178
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能