问渠电子·起草台帮助

起草台怎么用

起草台把一句话需求变成一份电路板设计描述。AI 只起草,判定都由代码做;草稿不存服务器,你确认后下载。

一、写需求

写清楚电压、电流、电机、接口。例如:“给 400 W、48 V 的机器人关节伺服电机做一块驱动板,额定相电流 8.5 A,峰值 30 A,带 2500 线增量编码器和 CAN。”需求框下面有三个示例可以点。

本版只做三相电机驱动板:九种功能单元(母线输入、辅助电源、半桥、栅极驱动、电流采样、MCU、增量编码器、SSI 编码器、CAN),拓扑固定。别的板子、别的接口会列在“目录里做不了的”里。

二、看草稿:每个数都有来源

必须有的规格(母线电压、额定和峰值相电流)AI 不许假设:需求里没有,就留空、提问,页面上方会提示“缺必须有的规格”,你填上再重算。

“被代码退回的数”是 AI 给了、但没通过校验的数:不在目录里、超出范围、来源不成立。这些数没有进设计。

三、看结论、改数、重算

上方四个数是所有判定的结论:通过、不通过、待核对(用到的器件数据还没人对照规格书核对,不算通过)、未知(缺数据)。展开“计算书”能看到每个功能块怎么算的、仿真对照、出处。

在规格表和功能块参数里改数,点“按改过的数重算”。只列 AI 可以改的参数,范围以外的数会被拒绝并说明原因。

四、板子检查

计算书下面是“板子检查”:用驱动板模板已经布好线的板子,按你这份草稿的规格再查一遍。不重新布线(服务器上布一次线要几十分钟),所以规格改了、板子没跟着改的地方会在这里报出来。例如额定相电流改大,“大电流走线宽度”会变成不通过:电机线、母线要的线宽按 IPC-2221 跟着电流变。

不通过、未知的项排在前面;通过的收在“通过的 N 项”里。完整的报告(带温度分布图)由工程师用 python3 -m wqeda.report 生成。

五、确认并下载

勾选“我已看过标成‘AI 假设’的数”,再点“下载设计描述(YAML)”。文件里 draft.provenance 记着每个数的来源。板子层(摆放、铺铜)本版沿用驱动板模板,按新规格重新布局在下一期做。

六、次数与记录

AI 起草要登录问渠账号,每人每天有次数上限。每次调用模型都有记录:谁、需求摘要、用的模型、是否通过代码校验。美国站用 Claude,国内站用已备案的 DeepSeek。

七、问渠贴片(工厂端)

起草台页头的“问渠贴片”是给贴片厂用的:上传客户的光绘、钻孔、物料清单和坐标(CSV),选按哪家工厂的工艺能力查,十几秒出检查结果、板图上的位置和数量统计(报价依据,只算量)。点“用演示资料包”可以直接试:驱动板 A 版,故意漏了一个物料编号。

八、录像

三段短视频,每段半分钟左右,字幕在画面下方。录像里 AI 的回答是事先准备的示例;设计和工厂都是演示数据。

起草台

问渠贴片

网页审图

九、网页审图

起草台页头的“网页审图”:不装软件,在浏览器里看原理图和板子。

十、KiCad 插件(KiCad 9 起)

在 KiCad 的板子编辑器里,一键检查打开着的板子。判定和网页、工厂端是同一套确定性代码,不调 AI、不联网。

  1. 下载插件:wenquest-eda-kicad-plugin.zip。
  2. 解压,把里面的 wenquest-eda 文件夹放进 KiCad 的插件文件夹:Windows 是“文档\KiCad\9.0\plugins”,macOS 是“~/Documents/KiCad/9.0/plugins”,Linux 是“~/.local/share/kicad/9.0/plugins”。
  3. KiCad 里打开“首选项 → 插件”,勾选“启用 KiCad API”,重启 KiCad。第一次会自动给插件装它要的 Python 库(kicad-python、shapely、PyYAML),要等一会儿,装好后板子编辑器的工具栏上多一个绿色圆形按钮。
  4. 按下按钮,浏览器里开一个只在本机的结果页:每条结果点“定位”,KiCad 里选中那个器件并放大;“把摆放读回设计描述”在 design.yaml 旁边写一份 design.readback.yaml(原文件不动);“出报告”写在工程文件夹的 wqeda-report/。

工艺能力表:工程文件夹里放 wqeda-factory.yaml 就按它查;没有就用插件自带的示例工厂(虚构,示例值)。KiCad 9 的插件还不能在编辑器侧边嵌面板,所以结果在浏览器里看。KiCad 7、8 用命令行:python3 -m wqeda.report、python3 -m wqeda.readback。

English, in brief

Write a requirement; AI drafts the specification and block parameters with a source for every number (requirement quote, derived rule, AI assumption, entered by you, template default). Code checks the draft, expands the circuit and runs the calculations and simulations; required values the requirement does not give are left empty with a question, never guessed. Edit, recalculate, tick the confirmation and download the design description. Board checks re-check the template's routed board against your specification (process, layout constraints, thermal estimate) without re-routing, so a larger current shows up as a failing trace width. This version covers one board family (three-phase motor drive). Example design, not for production.

Web review (/eda/view/): view schematics and boards in the browser with KiCanvas; click an open item from the report to jump to it; your own KiCad files are opened in the browser and never uploaded. KiCad 9 plugin: download the zip, put wenquest-eda in KiCad's plugins folder, enable the KiCad API under Preferences → Plugins; the toolbar button checks the open board and opens a local results page with jump-to, placement read-back and report. Short help videos above (AI answers in them are prepared examples).

WenQuest PCBA (factory side, /eda/factory/): upload a customer's Gerber, drill, BOM and placement files, pick a factory capability table and get the checks, locations on the board and quantities for quoting. AI drafts an engineering query from the open results only (never from your files); every item must cite a result. Files are deleted after the check. Demo factories are fictional.