Skip to the content
2 layers95 × 72 mmPc power controller, the printed circuit board in 3D

(列内は上から下がピン1→7、右列は下から上がピン8→14。KiCadの Local:SeeedXIAOESP32C3 シンボルおよび Local.pretty/SeeedXIAOESP32C3.kicadmod フットプリントのピン番号は上表と完全に一致しています。) - TLP225A(F) / TLP621-1: 自作の汎用4pinオプトカプラシンボル…

Size
95 × 72 mm
Copper layers
2
Thickness
1.6 mm
Parts
7
Nets
9
Pads
30
Tracks, vias
15, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
10 Oct 2026
Updated
10 Oct 2026

Overview

Pc power controller is an open-source printed circuit board by wakky-alcedo, from the wakky-alcedo/pc_power_controller repository on GitHub. It is a 2-layer board of 95 × 72 mm with 7 parts on 9 nets, routed with 15 tracks and 0 vias.

It is built around the TLP621-1. Its parts include 3 ICs, 2 resistors and 2 connectors. It belongs with the ESP32 and RISC-V boards of this library.

Main components

1

README

circuit/README.md

pc_power_controller — KiCad プロジェクト

ESP32 で PC電源ボタン(PWR_SW)をフォトMOSリレー経由でON/OFFし、PLED(電源LED)の 点灯状態をフォトカプラ経由で監視するための回路の「回路図」と、ユニバーサル基板への 手配線を前提とした「部品配置+ラッツネスト確認用PCBレイアウト」です。 銅箔パターンは作成していません(配線ガイド用途のみ)。

ファイル構成

text
circuit/
├── pc_power_controller.kicad_sch   回路図
├── pc_power_controller.kicad_pcb   PCBレイアウト(配置のみ、ルーティング無し)
├── pc_power_controller.kicad_pro   プロジェクトファイル
├── sym-lib-table                  プロジェクト用シンボルライブラリテーブル
├── fp-lib-table                   プロジェクト用フットプリントライブラリテーブル
├── Local.kicad_sym                 自作シンボル(4pinオプトカプラ代替 / XIAO ESP32C3)
├── Local.pretty/
│   └── Seeed_XIAO_ESP32C3.kicad_mod  自作フットプリント(XIAO ESP32C3用)
├── pc_power_controller.net         回路図から書き出したネットリスト(参考用)
├── erc_report.txt / erc_report.json  ERC結果
├── pcb_drc.txt                     PCB DRC結果(未配線=ラッツネスト11本を含む)
├── BOM.md                          部品表(秋月電子リンク付き)
├── scripts/
│   ├── gen_sch.py                  回路図生成スクリプト
│   ├── gen_pcb.py                  PCB自動生成スクリプト(KiCad付属pythonで実行)
│   └── gen_ratsnest_svg.py         配置+ラッツネストのSVG可視化を書き出すスクリプト
└── output/
    └── placement_guide.svg         配置+ラッツネストの可視化(SVG)

開き方

  1. KiCad 10.0 系で pc_power_controller.kicad_pro を開く(プロジェクトマネージャ経由)。
  2. 「回路図エディタ」で pc_power_controller.kicad_sch を確認できます。
  3. 「PCBエディタ」で pc_power_controller.kicad_pcb を開くと、部品が配置された状態で、 配線されていないネットがラッツネスト(黄色い破線のエアワイヤー)として自動的に 表示されます(KiCadのPCBエディタは接続情報から自動でラッツネストを描画するため、 ファイルには線そのものは保存されていません)。
    • ラッツネストが表示されない場合は、メニュー「編集」→「ボードの再構築」 または表示メニューでラッツネスト表示をONにしてください(デフォルトでON)。

ERC / DRC 結果

  • 回路図ERC: エラー0件(erc_report.txt)。警告は、手作業で構築したため ライブラリキャッシュと実ライブラリのシンボル定義が完全一致しない旨の lib_symbol_mismatch と、汎用シンボルのピン間隔(1.27mm)由来の endpoint_off_grid のみで、接続には影響しません。
  • PCB DRC: 違反0件、未配線アイテム11件(pcb_drc.txt)。この11件が そのまま「ラッツネスト」として表示される未配線のネット接続です (= 意図的に配線していない状態)。

回路構成の要点

  • XIAO ESP32C3 (U3) D1/GPIO3 → R1(330Ω) → TLP225A(F)(U1) → J1 (PWR_SW_HEADER, 2P)
  • J2 (PLED_HEADER, 2P) → TLP621-1(U2) → XIAO ESP32C3 (U3) D2/GPIO4 (R2=10kΩでプルアップ)
  • GND / 3V3 はすべて U3(XIAO ESP32C3)のGND / 3V3ピンに集約 (3V3はXIAO本体のレギュレータ出力をそのまま基板側の電源として使う想定)
  • D1/D2(GPIO3/GPIO4)を選んでいるのは、GPIO2・GPIO8・GPIO9 (XIAOのD0・D8・D9)が ESP32-C3 のストラッピングピンで起動時の挙動に 影響するため、それらを避けたためです。
  • U1は当初TLP222AFを想定していましたが秋月電子で在庫切れのため TLP225A(F)に変更しています(同一パッケージ・同一ピン配置のため 回路・フットプリントは変更なし)。
  • ESP32本体・TLP225A(F)・TLP621-1 は標準ライブラリに厳密一致するシンボルが無いため、 以下のように代用しています(各シンボルの Note プロパティにも明記済み)。
    • Seeed XIAO ESP32C3: 自作シンボル (Local:Seeed_XIAO_ESP32C3) + 自作フットプリント (Local:Seeed_XIAO_ESP32C3、Local.pretty/ に格納)。 XIAO本体は基板に直接ハンダ付けせず、2×7・2.54mmピッチの丸ピンICソケット 経由で着脱する前提のフットプリントです(詳細はBOM.md)。

XIAOのピン配置(重要)

Seeed公式のピン配置資料で実機を確認したところ、5V/GND/3V3はUSBコネクタ側の 先頭ピンではなく、右列の末尾に固まって配置されています。本プロジェクトの シンボル・フットプリントは以下の実物理配置に合わせてあります。

物理ピン番号左列 (USB側が上)物理ピン番号右列 (USB側が上)
1D0 / GPIO2 (ストラッピング)8D7 / GPIO20
2D1 / GPIO3 → リレー制御9D8 / GPIO8 (ストラッピング)
3D2 / GPIO4 → PLED監視10D9 / GPIO9 (ストラッピング)
4D3 / GPIO511D10 / GPIO10
5D4 / GPIO6 (SDA)123V3
6D5 / GPIO7 (SCL)13GND
7D6 / GPIO21 (TX)145V (未使用)

(列内は上から下がピン1→7、右列は下から上がピン8→14。KiCadの Local:Seeed_XIAO_ESP32C3 シンボルおよび Local.pretty/Seeed_XIAO_ESP32C3.kicad_mod フットプリントのピン番号は上表と完全に一致しています。)

  • TLP225A(F) / TLP621-1: 自作の汎用4pinオプトカプラシンボル (Local:Optocoupler_Generic_4Pin、Local.kicad_sym に格納) + フットプリント Package_DIP:DIP-4_W7.62mm_Socket(ICソケット実装想定)

基板サイズを変更したい場合

想定している基板サイズは 秋月電子 片面ガラス・ユニバーサル基板 Bタイプ (95×72mm) です(BOM.md 参照)。手持ちの基板サイズが異なる場合は、

  1. circuit/scripts/gen_pcb.py を開き、冒頭付近の
    python
    BOARD_W = 95.0
    BOARD_H = 72.0
    を実際のサイズ(mm)に書き換える。
  2. KiCad付属のPythonでスクリプトを再実行して .kicad_pcb を再生成する。
    text
    "C:\Program Files\KiCad\10.0\bin\python.exe" circuit\scripts\gen_pcb.py
    (PCBエディタでEdge.Cutsの矩形を直接ドラッグして編集しても構いません)
  3. 部品配置がボード外に出ていないか、PCBエディタで確認してください。

配置+ラッツネストの画像(PNG)について

kicad-cli にはラッツネスト(未配線エアワイヤー)を含めてSVG/PNGへ書き出す機能が 無く、ラッツネストはPCBエディタ上でのみ動的に計算・表示される情報のため、 kicad-cli pcb export svg 等では再現できません。

代わりに、circuit/scripts/gen_ratsnest_svg.py で .kicad_pcb の接続情報 (BuildConnectivity())から各ネットの未配線ペアを取得し、独自にラッツネスト線を 描画したSVGを circuit/output/placement_guide.svg として生成しています (黄色の破線 = ラッツネスト)。そのままブラウザ等で開いて確認できます。 PNG化したい場合は、このSVGをブラウザで開いてスクリーンショットを撮るか、 Inkscape等で placement_guide.svg → PNG に変換してください。

実際のPCBエディタでの見た目を確認したい場合は、上記「開き方」の手順で PCBエディタを開いてください(GUI上のラッツネスト表示が最も正確です)。

再生成する場合:

text
"C:\Program Files\KiCad\10.0\bin\python.exe" circuit\scripts\gen_ratsnest_svg.py

Parts

7
QtyValueFootprintReferences
110kR_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2
1330R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
1PLED_HEADERPinHeader_1x02_P2.54mm_VerticalJ2
1PWR_SW_HEADERPinHeader_1x02_P2.54mm_VerticalJ1
1Seeed_XIAO_ESP32C3Seeed_XIAO_ESP32C3U3
1TLP225A(F)DIP-4_W7.62mm_SocketU1
1TLP621-1DIP-4_W7.62mm_SocketU2

Similar boards

  • 2 layers300 × 300 mmNew file, the printed circuit board in 3D

    New file

    takeyamayuki/RCJ_Kanto_Soccer2017_Board

    Board data of Team NTK that participated in the RoboCup Junior 2017 Kanto Tournament

    158 partsMIT
  • 2 layersEncoder, the printed circuit board in 3D

    Encoder

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    7 parts4.3kMIT
  • 2 layers40 × 20 mmSensor smd, the printed circuit board in 3D

    Sensor smd

    scottbez1/splitflap

    DIY split-flap display

    7 parts4.2k
  • 2 layers19.8 × 30 mmZ limit, the printed circuit board in 3D

    Z limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    7 parts3.7k
  • 2 layers35.6 × 58.2 mmDisplay Carrier, the printed circuit board in 3D

    Display Carrier

    AxxAxx/AxxSolder

    STM32 Based soldering station for JBC cartridges, 9-24 VDC and USB-PD power

    7 parts1.7kGPL-3.0
  • 2 layers20.3 × 16.3 mmMap MPX, the printed circuit board in 3D

    Map MPX

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    7 parts1.2k
  • 2 layers26 × 44 mmCompact carrier board, the printed circuit board in 3D

    Compact carrier board

    jamro/tiny-engineer

    A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

    7 parts1.1k
  • 2 layers26.4 × 53.8 mmAtari pickup, the printed circuit board in 3D

    Atari pickup

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    7 parts1kGPL-3.0

Questions

How big is the Pc power controller PCB?

It measures 95 × 72 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Pc power controller use?

7 parts, built around the TLP621-1. 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 Pc power controller KiCad files?

From the wakky-alcedo/pc_power_controller repository on GitHub, at the commit this page was made from: the board is circuit/pc_power_controller.kicad_pcb and its schematic circuit/pc_power_controller.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pc power controller design in my own project?

Its repository states no licence, so its author keeps all rights: ask wakky-alcedo before reusing the design.