AI-Agent of-PCB-Design

liuyubin8056·AI-Agent-of-PCB-Design·examples/board.kicad_sch

This repository ships a schematic but no board layout.

About the AI-Agent of-PCB-Design

AI-Agent of-PCB-Design is an open source AVR/Arduino PCB design by liuyubin8056, published on GitHub. It is a board, with 18 components from 13 distinct parts.

Its main chip is the ATmega328P-PU, from the AVR/Arduino family. Other key parts include the AMS1117-5.0 and I2C_SENSOR. By type, the board carries 7 capacitors, 4 resistors, 3 ICs, 1 crystal, 1 connector and 1 switch.

From the project

一个用于设计电路板的Agent

课程大作业《AI Agent 电路板设计》的实现仓库:不画板子,而是做一个会画板子的 Agent。

当前进度:W1–W6 已完成。骨架、MVP、审查闭环、追问改需求均可用,并已通过 KiCad 真机验证:从生成的原理图导出网表,与 IR 逐引脚一致(差异 0 条),ERC 0 error。 DRC 闭环与报告留 W7–W8。详见下文「六、八周排期」。

这个项目的难点不在「调通 API」,而在「让 LLM 不出电气错误」。三条原则贯穿全仓库:

1. LLM 只产出结构化中间表示(IR),绝不直接写 KiCad 文件。 模型输出 {器件, 值, 封装, 网络成员} 这样的 JSON,由确定性代码渲染成 .kicadsch`。让模型直接拼 s-expression,它一定会编出不存在的引脚和非法 UUID。

2. 引脚必须「喂给」模型,而不是「问」模型。 library.pintabletext() 把器件真实引脚表注入 prompt,模型只能从枚举里选。 配合器件库白名单校验,引脚幻觉会被当场抓住(tests/testvalidate.py::testfakepinnumbercaught`)。

Main components on the AI-Agent of-PCB-Design

AI-Agent of-PCB-Design bill of materials (BOM)

18 components, 13 distinct parts — part numbers from the project's BOM.

QtyPartRefs
1
ATmega328P-PU
U1
1
AMS1117-5.0
U2
1
I2C_SENSOR
U3
1
16MHz
Y1
1
Conn_01x02
J1
1
SW_PUSH
SW1
1
LED-Green
D1
3
100nF
C1, C2, C5
2
22pF
C3, C4
2
10uF
C6, C7
1
10k
R1
1
330
R2
2
4.7k
R3, R4

AI-Agent of-PCB-Design design files

The KiCad project lives in the liuyubin8056/AI-Agent-of-PCB-Design repository on GitHub; these links point at the commit this page was built from.

AI-Agent of-PCB-Design: common questions

What microcontroller does the AI-Agent of-PCB-Design use?

The AI-Agent of-PCB-Design is built around the ATmega328P-PU, from the AVR/Arduino family.

How many components are on the AI-Agent of-PCB-Design?

18 components, from 13 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.

Where can I download the AI-Agent of-PCB-Design design files?

From the liuyubin8056/AI-Agent-of-PCB-Design repository on GitHub, which has the schematic and the BOM; the links under Design files point to each one.

Can I use the AI-Agent of-PCB-Design design in my own project?

The repository has no license, so all rights stay with liuyubin8056. Use it as a reference, and ask the author before reusing the design.

Can I test firmware for the AI-Agent of-PCB-Design without the hardware?

Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug AVR/Arduino firmware against it before you order a PCB.

Similar boards