Skip to the content
4 layers150.8 × 84 mmEda uahyxtbgs-165w three way multi protocol fa dc91a91e--300W四路彩屏桌面电源(彩屏版)-56ddf4ed, the printed circuit board in 3D

Eda uahyxtbgs-165w three way multi protocol fa dc91a91e--300W四路彩屏桌面电源(彩屏版)-56ddf4ed

Sysu-PCB-RL-Group/PCB_RL3

中山大学PCBxRL的小组仓库

Size
150.8 × 84 mm
Copper layers
4
Thickness
1.6 mm
Parts
97
Nets
60
Pads
381
Tracks, vias
543, 249
Pours
520
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
25 Jul 2026
Updated
13 Oct 2026

Overview

Eda uahyxtbgs-165w three way multi protocol fa dc91a91e--300W四路彩屏桌面电源(彩屏版)-56ddf4ed is an open-source printed circuit board by Sysu-PCB-RL-Group, from the Sysu-PCB-RL-Group/PCB_RL repository on GitHub. It is a 4-layer board of 150.8 × 84 mm with 97 parts on 60 nets, routed with 543 tracks and 249 vias.

Its parts include 45 capacitors, 15 resistors, 9 ICs, 8 connectors and 3 inductors.

README

README.md

PCB_RL

基于强化学习的 PCB 自动布局(Double DQN)。

⚠️ 本项目 2026-09-22 起整体重构:旧的 5 步动作栈(env/pcb_layout_env.py + dqn/ + config/argument.txt + main.py/run.py/run_inference.py 那套)已废弃并删除。 本文以下内容全部是现行架构。

先读这三份

(重构前的旧文档在 docs/旧版结构文档/,已作废,仅作历史对照。)

环境要求

项要求说明
Python3.11项目既有环境即 3.11(conda 环境名 pcb_rl_311);更低版本未验证
第三方依赖只有 5 个numpy / matplotlib / gymnasium / torch / pytest,见 requirements.txt(实测全仓库只 import 这 5 个)
KiCad训练/推理都不需要只有「重建缓存」和「读真实板的测试」需要 KiCad 10.0+,见下文
图形显示不需要3 个绘图模块都强制了 matplotlib.use("Agg"),没有 DISPLAY 也能出图
网络只有装依赖时需要能访问 PyPI(或内网镜像)即可;依赖装完后训练/推理全程离线
磁盘约 62 MB其中 data/ 约 62 MB(板源文件 + 离线缓存)

安装(新机器 / Linux 服务器)

bash
git clone https://github.com/Sysu-PCB-RL-Group/PCB_RL.git
cd PCB_RL

# ① conda(推荐,与本机环境同名同版本)
conda create -n pcb_rl_311 python=3.11 -y
conda activate pcb_rl_311
# ② 或者 venv
#   python3 -m venv .venv && source .venv/bin/activate

python -m pip install --upgrade pip
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
python -m pip install -r requirements.txt

# 自检:这行必须打印出版本号,否则说明解释器或依赖没装对
python -c "import torch, numpy, gymnasium, matplotlib; print(torch.__version__, numpy.__version__)"

想用 GPU:把 torch 那一行换成

bash
python -m pip install torch --index-url https://download.pytorch.org/whl/cu124

训练时再加 --device cuda(默认是 cpu)。

最快跑起来

bash
python main.py train        # 训练:默认 1000 局 → output/
python main.py infer        # 推理:读 output/best.pt → result/
python main.py help         # 用法
python main.py train --help # 训练的全部参数

# 冒烟(几分钟):装完环境先跑这个,确认跑得通再上正式训练
python main.py train --episodes 5 --eval-every-episodes 5 --log-every 1 --out output_smoke

python -m pytest tests -q   # 测试(需要 KiCad 的用例会自动 skip)

main.py train|infer 的参数原样透传给 scripts/train_dqn.py / scripts/infer_dqn.py,所以用 --help 看全部选项。

Windows 本机等价写法(本机 conda 环境的绝对路径):

powershell
cd E:\PCB_AI\PCB_RL
& E:\miniconda\envs\pcb_rl_311\python.exe main.py train

常用参数

默认值来自 scripts/train_dqn.py:

参数默认值用途
--episodes1000训练局数(冒烟用 5)
--devicecpucpu / cuda
--threads0torch CPU 线程数;0 = 用默认(吃满核,多人共用机器时建议显式限制)
--outoutput产物目录(训练开始时会先清空该目录,见下)
--boards全部逗号分隔的板名,只跑其中几块
--seed114514随机种子,固定(连网络初始化都由它决定)
--eval-every-episodes50每多少局评估一次(评估更优就写 best.pt)

输入数据与产物

  • 输入:data/model_cache/ —— 16 块板的离线几何缓存(index.json + 16 个 .pkl,共 17 个文件、约 1.1 MB,随仓库一起 clone 下来)。这是训练/推理 唯一的几何来源:不要删、也不要重新生成(重新生成需要 KiCad)。
  • 产物:output/(best.pt / train_curves.png / train.log / log.jsonl)、 result/。这两类目录都在 .gitignore 里,不会污染仓库。
  • ⚠️ --out 指向的目录会在训练开始时被清空。代码里有安全闸:目标目录若含 .git / data / env / tests / scripts / docs / utils 之一(或就是仓库 根目录)会直接报错拒绝执行 —— 但别去试。

关于 KiCad

训练与推理不需要 KiCad:env/ 里 0 处调用 pcbnew(只在一条注释里提到), 几何全部从 data/model_cache/ 读。只有下面两件事需要本机装 KiCad 10.0+ 并设置 KICAD_PATH:

  1. 重建模型缓存:python scripts/dump_models.py
  2. 读真实板的测试:pytest tests/kicad

没装 KiCad 时,pytest tests 里需要 KiCad 的用例会自动跳过,其余照常运行。

下载:https://www.kicad.org/download/

训练要多久 / 怎么盯进度

默认 1000 局(16 块板),本机 CPU 实测参考约 4.4 小时。训练过程中每 10 局往 output/train.log 打一行进度、每 50 局打一行评估;日志每局都落盘,可以随时

bash
tail -f output/train.log

看进度。

排障

症状原因 / 处理
main.py 提示"这个解释器没有 torch"用错解释器了:必须用装了依赖的那个(见「安装」)
CacheError: 缓存索引不存在:…data/model_cache/index.json 缺失 —— 从仓库重新 clone,别删缓存
CacheVersionError缓存版本与代码不匹配:代码改过 PcbModel 字段,需要重新 dump(要有 KiCad)
训练一开始就报"拒绝清零 …"--out 指到了仓库目录,换成 output 之类的独立目录
出图里的中文显示成方框运行环境缺中文字体。仓库里有 setup_chinese_font 做回退(utils/viz_layout.py),但未在没装字体的 Linux 上验证过;只影响图面文字,不影响数值与训练结果

Parts

97
QtyValueFootprintReferences
20eda_uahyxt-easyedapro:C0603_1C3, C15, C16, C19, C20, C22, C23, C25, C34, C36, C37, C39, C41, C44, C47, C48 +4
12eda_uahyxt-easyedapro:C0805C4, C6, C10, C11, C14, C24, C26, C33, C35, C38, C45, C46
11eda_uahyxt-easyedapro:C0603C1, C5, C7, C12, C13, C17, C18, C21, C40, C42, C43
8eda_uahyxt-easyedapro:R1206R9, R11, R12, R21, R24, R25, R26, R27
4eda_uahyxt-easyedapro:CAP-TH_BD6.3-P2.60-D0.6-FD-1EC4, EC5, EC6, EC7
4eda_uahyxt-easyedapro:MSOP-10_L3.0-W3.0-P0.50-LS5.0-BLU7, U8, U9, U10
4eda_uahyxt-easyedapro:R0603_1R2, R8, R20, R23
3eda_uahyxt-easyedapro:R0603R1, R7, R22
3eda_uahyxt-easyedapro:USB-C-SMD_U263-163N-4GS1735J1, J3, J4
2eda_uahyxt-easyedapro:SOD-123_L2.6-W1.6-LS3.5-RDT1, T2
2eda_uahyxt-easyedapro:QFN-24_L4.0-W4.0-P0.50-TL-EP2.5U1, U11
2eda_uahyxt-easyedapro:C0603_4C2, C32
2eda_uahyxt-easyedapro:CONN-TH_XT30UPB-MCN3, U4
2eda_uahyxt-easyedapro:CAP-TH_BD8.0-P3.50-D0.6-FDEC2, EC3
2eda_uahyxt-easyedapro:IND-TH_L15.5-W7.5-P8.00-D0.8L3, L4
1eda_uahyxt-easyedapro:QFN-28_L4.0-W4.0-P0.40-TL-EP2.4U2
1eda_uahyxt-easyedapro:IND-TH_L23.0-W12.0-P9.00-D1.3L1
1Pad_e373
1Pad_e375
1eda_uahyxt-easyedapro:DC-IN-TH_HX-DC007B-2.5U5
1Pad_e377
1eda_uahyxt-easyedapro:CONN-SMD_6P-P1.00_X1002WVS-06E-LPSWHFU12
1eda_uahyxt-easyedapro:CAP-TH_BD8.0-P3.50-D0.6-FD-2EC1
1Pad_e374
1eda_uahyxt-easyedapro:CONN-TH_DB-6-1P4P3CN2
1eda_uahyxt-easyedapro:USB-A-TH_U224-051N-3GRA035J2
1eda_uahyxt-easyedapro:CONN-TH_DB125-3.81-5P-GN-SCN5
1Pad_e376
1Pad_e378
1eda_uahyxt-easyedapro:DFN-8_L3.0-W3.0-P0.65-LS3.4-BLQ4
1eda_uahyxt-easyedapro:DFN-8_L6.0-W5.0-P1.27_AON6938Q1

More from Sysu-PCB-RL-Group/PCB_RL

12

Similar boards

  • 4 layers38 × 39 mmCLN17-V2.0, the printed circuit board in 3D

    CLN17-V2.0

    creapunk/CLN-ClosedLoopNemaDriver

    Compact closed-loop stepper motor driver designed for NEMA motors

    97 parts1.1k
  • 4 layers119 × 79 mmLuxdmx, the printed circuit board in 3D

    Luxdmx

    tombueng/LuxDMX

    Open-source Art-Net / sACN (E1.31) → DMX512 gateway for ESP32 / ESP32-S3 / Ethernet. Live web UI shows all 512 channels in real time, flags console conflicts, and drives galvanically-isolated DMX.

    97 parts97
  • 4 layers184.2 × 169.5 mmSB mini II, the printed circuit board in 3D

    SB mini II

    simonboak/SB-mini-II

    A homebrewed Apple II clone

    97 parts76MIT
  • 4 layers169.7 × 99.8 mm65816-computer, the printed circuit board in 3D

    65816-computer

    mike42/65816-computer

    A 65C816-based homebrew computer (prototype)

    97 parts37
  • 4 layers100 × 100 mmGfxVGA, the printed circuit board in 3D

    GfxVGA

    ddraig68k/hardware

    Schematic and CAD files for my 68K based computer

    97 parts29MIT
  • 4 layers150 × 100 mmUltimate LPS, the printed circuit board in 3D

    Ultimate LPS

    BTTLab/simple_and_affordable_lps

    Simple and affordable power supply

    97 parts27MIT
  • 4 layers52.1 × 67.8 mmSensor board, the printed circuit board in 3D

    Sensor board

    sufst/pcb

    Monorepo for all schematics and PCB designs

    97 parts19GPL-3.0
  • 4 layers72 × 47 mmMini motor go V1 rev3, the printed circuit board in 3D

    Mini motor go V1 rev3

    Every-Flavor-Robotics/motorgo-mini-hardware

    hardware files for motorgo mini

    97 parts12

Questions

How big is the Eda uahyxtbgs-165w three way multi protocol fa dc91a91e--300W四路彩屏桌面电源(彩屏版)-56ddf4ed PCB?

It measures 150.8 × 84 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Eda uahyxtbgs-165w three way multi protocol fa dc91a91e--300W四路彩屏桌面电源(彩屏版)-56ddf4ed use?

97 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Eda uahyxtbgs-165w three way multi protocol fa dc91a91e--300W四路彩屏桌面电源(彩屏版)-56ddf4ed KiCad files?

From the Sysu-PCB-RL-Group/PCB_RL repository on GitHub, at the commit this page was made from: the board is data/kicad-native-batch/eda_uahyxtbgs-165w-three-way-multi-protocol-fa-dc91a91e--300W四路彩屏桌面电源(彩屏版)-56ddf4ed/eda_uahyxtbgs-165w-three-way-multi-protocol-fa-dc91a91e--300W四路彩屏桌面电源(彩屏版)-56ddf4ed.kicad_pcb and its schematic data/bad_data/li-chuang-kai-fa-ban-li-chuang-coloreasypico2-kai-fa-ban-7911d14e/li-chuang-kai-fa-ban-li-chuang-coloreasypico2-kai-fa-ban-7911d14e.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Eda uahyxtbgs-165w three way multi protocol fa dc91a91e--300W四路彩屏桌面电源(彩屏版)-56ddf4ed design in my own project?

Its repository states no licence, so its author keeps all rights: ask Sysu-PCB-RL-Group before reusing the design.