kicad-symbol
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThis skill allows an LLM to generate KiCad symbols using a variety of data sources, validated against KLC standards.
该技能允许LLM利用多种数据源生成KiCad符号,并根据KLC标准进行验证。
Setup
设置
Clone the https://gitlab.com/kicad/libraries/klc standard. This includes a means of checking if a symbol is KLC compliant. In some cases, it is acceptable to be non-compliant but this should be the way, the truth, and the light for looping to create a compliant symbol. https://gitlab.com/kicad/libraries/kicad-library-tools can also be used to generate symbols if necessary, but this may not be a requirement.
Usage
使用方法
- If available, use easyeda2kicad for ground truth pin table. If this is not available, that's okay, but ask the user to install it. This takes an LCSC part number and returns a symbol if available.
- If this doesn't help, look for the pin table in HTML format. If this fails, get an image of the pin table from a PDF and convert it there. These methods require the user to approve the pin table so please ask them to review it!
- Use proper text formatting, pin formatting, and pin type. If there are alternate values for a pin, make sure you use alternates with proper pin type instead of creating a long list delimited with slashes! KiCad supports bars with ~{FOO} syntax, underscores with _{BAR}, and superscripts with ^{BAZ}.
- Per KLC, keep inputs on the left, outputs on the right, grounds on the bottom, NC pins invisible and on outline of symbol, power pins on top. This isn't a hard and fast set of rules honestly but it's helpful.
- Combine/stack pins whenever possible! Do not use legacy stacking, create a proper pin group that displays these pin number groups.
- Render the symbol as an image to confirm that it looks correct. kicad-cli should be able to assist here.
- Pins that are internally connected should be handled properly as well as a jumper group.
- 如果可用,使用easyeda2kicad获取基准引脚表。如果不可用也没关系,但请告知用户安装该工具。它接收LCSC零件编号,并在可用时返回对应的符号。
- 如果上述方法无效,查找HTML格式的引脚表。如果这也失败,从PDF中提取引脚表图片并进行转换。这些方法需要用户确认引脚表,请务必让用户进行审核!
- 使用正确的文本格式、引脚格式和引脚类型。如果某个引脚有替代值,请使用带有正确引脚类型的替代格式,而非创建用斜杠分隔的长列表!KiCad支持使用~{FOO}语法表示取反,_{BAR}表示下划线,^{BAZ}表示上标。
- 根据KLC标准,将输入引脚放在左侧,输出引脚放在右侧,接地引脚放在底部,NC引脚设为不可见并置于符号轮廓上,电源引脚放在顶部。严格来说这并非硬性规则,但遵循这些会很有帮助。
- 尽可能合并/堆叠引脚!不要使用旧版堆叠方式,创建合适的引脚组来显示这些引脚编号组。
- 将符号渲染为图片以确认外观正确。kicad-cli可用于此操作。
- 内部连接的引脚以及跳线组也应妥善处理。