Skip to main content
SchematicFreeNewv1.0.0

LM2596 降压电源原理图

从输入规格到 KiCad 原理图:LM2596 降压模块的元件计算、逐引脚连线表、ERC 检查与电源布局建议。

Claude CodeAltium DesignerKiCad

Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.

Script environment

  • kicad ≥ 8.0
  • python ≥ 3.9

Dependencies

SKILL.md

Content matches the files inside the package; extracted by the publish pipeline.

LM2596 降压电源原理图

把用户的输入规格变成一张可 ERC 的 LM2596 降压原理图。LM2596 是 150 kHz 固定频率、3 A 输出的非同步降压稳压器(TI SNVS124),需要外部续流二极管、 电感与输入/输出电容。

1. Brief 确认

先向用户确认以下参数,缺一不可,禁止使用占位值:

  • Vin 范围(典型 7–40 V,绝对最大 45 V,留 20% 裕量)
  • Vout(固定版 3.3 / 5 / 12 V,或 ADJ 版 1.23–37 V)
  • Iout 连续值(≤3 A;超过 2 A 必须讨论散热)
  • 输出纹波预算(默认 50 mVpp)
  • 是否需要使能控制(ON/OFF 引脚,低电平关断)

2. 元件计算

运行随包脚本(纯计算,不需要 KiCad):

python scripts/design_calc.py --vin-max 24 --vout 5 --iout 2 \
  --vout-ripple-mv 50

脚本按数据手册公式输出:占空比、最小电感与标准值、电感纹波电流、 输出电容 ESR 上限与容量下限、续流二极管电压/电流定额、输入电容 RMS 电流、ADJ 版反馈分压电阻。把结果完整展示给用户并确认后再画图。

3. 原理图绘制

按 references/connection-table.md 的逐引脚连线表在 KiCad 中放置符号 并连线(Altium 用户按同一张表操作)。要点:

  1. 固定输出版本:FB(引脚 4)直接接 Vout 采样点。
  2. ADJ 版本:R1 下偏置电阻接 FB→GND,R2 接 Vout→FB, Vout = 1.23 × (1 + R2/R1)。
  3. ON/OFF(引脚 5)接地 = 常开;需要使能时接 MCU GPIO 并加 100 kΩ 下拉,注意该引脚逻辑为低有效关断。
  4. 输入电容紧贴 VIN–GND,续流二极管阴极接 OUTPUT(引脚 2)、阳极接 GND,环路面积最小化。
  5. 给每个元件填 Footprint 属性(参考 references/design-rules.md 的 封装建议),否则 BOM/网表导出不完整。

4. ERC + 验证

kicad-cli sch erc --format json --output erc.json project.kicad_sch
kicad-cli version   # 记录实际版本号
python scripts/erc_check.py erc.json --tool-version 8.0.9 \
  --out erc-report.json

erc_check.py 把 KiCad ERC JSON 转成 pskillry.report.v1 契约报告。 errors > 0 时逐条修复后重跑,禁止在仍有 error 的情况下交付。 把报告原文展示给用户。

5. 布局建议

交付原理图时附上 references/design-rules.md 中的布局要点(热环路、 反馈走线、铜宽与散热),并建议用户安装 decoupling-cap-selection Skill 做输入/输出去耦网络复核。

Rules

  1. 参数仅来自 brief 与 design_calc.py 的计算结果;无占位值。
  2. 不打印、不存储任何 API key;本 Skill 不需要第三方凭证。
  3. ERC 报告必须来自真实的 kicad-cli 运行;没有 KiCad 环境时明确告知 用户,不得编造"0 错误"结论。
  4. 超出 LM2596 能力(Vin > 40 V、Iout > 3 A)时拒绝并推荐换型, 不得硬画。

Package files

references/

scripts/

  • kicad-lm2596-buck/scripts/design_calc.py3.9 KB
  • kicad-lm2596-buck/scripts/erc_check.py2.1 KB

Demo run

No demo run
Demo artifacts and verification reports appear here once a package includes them.

Ratings & reviews

Not rated0 ratings

5 star0
4 star0
3 star0
2 star0
1 star0

Sign in to rate this skill.

Sign in

Versions

  • v1.0.0Latest7.8 KB

    首发种子版本。

    License: MITSourceSHA-256: f31ca32721a08829…

Related skills

No related skills
Skills with the same output type and use case will appear here.