Skip to the content
2 layers20.3 × 33.6 mmPmod StereoDAC, the printed circuit board in 3D

Pmod StereoDAC

ciniml/fpga_samples31

FPGA samples

Size
20.3 × 33.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
16
Nets
17
Pads
47
Tracks, vias
28, 16
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
18 Aug 2021
Updated
4 Nov 2026

Overview

Pmod StereoDAC is an open-source printed circuit board by ciniml, from the ciniml/fpga_samples repository on GitHub, published under the BSL-1.0 licence. It is a 2-layer board of 20.3 × 33.6 mm with 16 parts on 17 nets, routed with 28 tracks and 16 vias.

It is built around the PJ-313D. Its parts include 6 capacitors, 6 resistors and 3 connectors. It belongs with the fPGA and programmable logic boards of this library.

Main components

1

README

eda/csi_capture/hw/Pmod_RPiCamera/README.md

Pmod RPi Camera (Rev. A)

Raspberry Pi カメラ (15 ピン 1.0 mm FFC, 2 レーン MIPI CSI-2) を Pmod 1 個につなぐ変換基板。 FPGA 側はソフト D-PHY (eda/csi_capture, rtl/csi2)。KiCad 10。

状態: 設計のみ (未発注・実機未確認)。ERC / DRC (回路図との一致を含む) はエラー 0。

仕様

  • 外形 25.4 × 24.13 mm、2 層 1.6 mm (FR4)、角 1.27 mm 面取り。 FFC コネクタ (取付金具込み 20.8 mm) を載せるため Pmod 標準幅 (20.32 mm) より片側 2.5 mm 程度広い
  • J1: Pmod 2x6 直角ヘッダ (TangFPGAExtensions の Conn_Pmod_Spec_B_Thin)、基板下端
  • J2: Amphenol (FCI) SFW15R-1STE1LF (15 ピン 1.0 mm FFC、下面接点、ZIF、JLC C3168538)。 Raspberry Pi Camera Module 2 の J1 と同じ部品。フットプリントは FCI 図面 JSA95855 rev AE / JSA95854 から作成 (Local/local.pretty)。基板上端寄り、ケーブルは上から挿す (ハウジング前端は基板端から 2.5 mm 内側)。 rev A の当初は TE 1-84952-5 だったが JLC 在庫が 1 個のため変更 (接点列の位置は同じ = 配線は無変更)
  • CSI 3 対: 差動 100Ω (Pmod_DisplayPort と同じ Link クラス 0.1661 / 0.127 mm)、 F.Cu のみ・ビアなし、B.Cu は全面 GND (3.3V の短いストラップは I2C の下だけ)。 P/N の長さ差 ~2.5 mm (~17 ps) は 1 Gbps 以下では無視できる
  • F1: ポリスイッチ 0.5 A (カメラの 3.3V)、C1: 10 µF、R1/R2: I2C プルアップ 2.2k、R3: CAM_GPIO プルアップ 10k
  • 直列抵抗・AC 結合・バイアス抵抗なし (D-PHY は DC 結合が必須、終端は FPGA 内蔵)

ピン割り当て

Pmod信号FFCTang Primer 25K (pmod0)
1 / 7SCL / SDA13 / 14F5 / G5
2 / 8CLK P / N9 / 8G7 / G8
3 / 9D1 P / N6 / 5H8 / H7
4 / 10D0 P / N3 / 2H5 / J5
5, 11GND1, 4, 7, 10, MP
6, 123.3 V15 (F1 経由)
—CAM_GPIO11R3 で 3.3 V へ (カメラは Pmod 給電で即起動)
—CAM_CLK12未接続

FFC のピン配置は Raspberry Pi 4 公式回路図 (J3 CAMERA) で確認。Pmod 上の並び (CLK, D1, D0) は FFC 上の並びと同じ順にして、差動対が交差しないようにしてある (FPGA の pins.cst も同じ割り当て)。 FPGA 側の定義は mod/pmod_rpi_camera/pmod_pins.csv。

ケーブルの向き

公式資料から確認済み:

  • 標準カメラケーブル (Raspberry Pi RP-008146) は両端で接点の面が逆 (片端は上面、もう片端は下面)
  • カメラ側 J1 (SFW15R-1STE1LF) も本基板の J2 も下面接点で、ピン 1 の位置の約束が同じ (FCI JSA95855: 実装面から見て、ケーブル挿入口を手前にしたときピン 1 が左)

同じコネクタ同士を両端逆面のケーブルでつなぐと、基板の向きによらず ピン n ↔ ピン n になる (3.3V は 15 番どうし、GND は 1 番どうし)。カメラに付属の標準ケーブルを使うこと。 両端が同じ面の社外ケーブルでは逆転し、本基板の 3.3V (15 番) がカメラの GND に当たる (F1 が制限する)。

念のための確認 (カメラをつながずに): ケーブルを J2 に挿し、ケーブル反対端の導体 1 番と Pmod の GND (5/11 番) の 導通をテスタで見る。導通すれば正しい。

製造データ

tools/build.sh が ERC / DRC (回路図との一致、ベタ再充填込み) を通してから fab/ を作る:

ファイル内容
fab/Pmod_RPiCamera_gerber.zipガーバー (F/B Cu, Mask, Silk, F.Paste, Edge) + ドリル (PTH/NPTH 別)
fab/Pmod_RPiCamera_bom.csv部品表 (LCSC 番号、MPN 付き)
fab/Pmod_RPiCamera_pos.csv実装位置 (表面のみ、原点は基板左下)
fab/jlc/Pmod_RPiCamera_jlc_bom.csv, ..._jlc_cpl.csvJLCPCB 実装用 BOM / CPL (LCSC 番号のある部品のみ。J1 は手はんだ想定で除外)
fab/lcsc/Pmod_RPiCamera_lcsc_5pcs.csvLCSC 部品購入用 (5 枚分、J1 含む)。tools/lcsc_order.py N で N 枚分を作り直す (LCSC に問い合わせて最小発注数・単価・在庫を反映、要ネットワーク)
fab/Pmod_RPiCamera_schematic.pdf回路図
fab/*.png3D レンダリング
fab/erc.rpt, fab/drc.rpt検査結果 (ライブラリ表の警告はヘッドレス環境由来)

回路図・基板の初版は tools/gen_sch.py / tools/gen_pcb.py で生成し、その後 KiCad で手を入れている (rev A: P 側の等長化ミアンダ、ティアドロップ、ロゴ、J2 を SFW15R-1STE1LF に変更、LCSC 番号)。KiCad のファイルが正 (スクリプトは初版の TE コネクタのまま)。tools/build.sh は既定で 現状のファイルを検査して出力するだけ。--regen を付けるとスクリプトから作り直し、KiCad での修正は消える。

部品 (JLCPCB 在庫は 2026-10-18 時点)

Ref部品LCSC備考
J12x6 2.54 mm 直角ピンヘッダ—手はんだ想定。JLC で載せるならピン長・本体寸法をフットプリントと照合 (候補 C41417354)
J2Amphenol SFW15R-1STE1LFC3168538在庫 9,155、Extended
F1RUILON SMD0805P050TF (I_hold 0.5 A, 6 V)C20978代替 Littelfuse 0805L050WR (C207022)
C1Samsung CL21A106KAYNNNE (10 µF 25 V X5R 0805)C15850Basic
R1, R2UNI-ROYAL 0402WGF2201TCE (2.2 kΩ)C25879Basic
R3UNI-ROYAL 0402WGF1002TCE (10 kΩ)C25744Basic

JLC の配置プレビューで J2 の回転・原点を確認すること (KiCad のフットプリント原点は接点列の中心。 JLC 側のモデル原点と違う場合はオフセットが出る)。J2 の 3D モデルは無い (3D 画像に J2 は写らない)。

未確定事項

  • 差動インピーダンスは DP 基板の実績値を流用 (2 層 1.6 mm でのペア結合主体)。製造業者のスタックアップで要再計算
  • カメラ v2 の消費電流 (~250 mA 程度の見込み、未実測) に対する F1 の定格と電圧降下
  • GW5A LVDS25 入力のコモンモード下限 (SLVS-200 は ~200 mV) は FPGA 側の最大リスク (../../README.md)

Parts

16
QtyValueFootprintReferences
2100kResistor_SMD:R_0603_1608MetricR3, R13
210kResistor_SMD:R_0603_1608MetricR2, R12
21kResistor_SMD:R_0603_1608MetricR1, R11
21uCapacitor_SMD:C_0805_2012MetricC3, C13
23.3nCapacitor_SMD:C_0603_1608MetricC1, C11
2330pCapacitor_SMD:C_0603_1608MetricC2, C12
1L / GND / RConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
1PJ-313Dlocal:Jack_3.5mm_SHOUHAN_PJ-313D_HorizontalJ2
1Pmod (host)local:Conn_Pmod_Spec_B_ThinJ1
1logolocal:logoLOGO1

More from ciniml/fpga_samples

5

Similar boards

  • 4 layers76 × 100 mmChlorine revD, the printed circuit board in 3D

    Chlorine revD

    kanengomibako/Chlorine

    206 parts11Unlicense
  • 4 layers143 × 162.5 mmVERA MODULE RBL, the printed circuit board in 3D

    VERA MODULE RBL

    gianlucarenzi/Vera-Module-RBL-XE

    [WORK IN PROGRESS - NOT WORKING] VERA video/audio module for ATARI XL/XE (PBI / cartridge, ESP32-S3 + iCE40)

    219 partsGPL-3.0
  • 2 layers78 × 58 mmDick mouse, the printed circuit board in 3D

    Dick mouse

    segfau-yama/dxxk_mouse

    ESP32-S3 上で動作する Rust 製 USB 入力デバイスの実験用リポジトリです。

    51 partsMIT
  • 2 layers140.5 × 30 mmType e, the printed circuit board in 3D

    Type e

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    16 parts3kApache-2.0
  • 2 layers41.4 × 14.5 mmU2f zero, the printed circuit board in 3D

    U2f zero

    conorpp/u2f-zero

    U2F USB token optimized for physical security, affordability, and style

    16 parts2.4k
  • 2 layers122 × 37 mmV0-UmbilicalBoard, the printed circuit board in 3D

    V0-UmbilicalBoard

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    16 parts1.1kGPL-3.0

Questions

How big is the Pmod StereoDAC PCB?

It measures 20.3 × 33.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Pmod StereoDAC use?

16 parts, built around the PJ-313D. 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 Pmod StereoDAC KiCad files?

From the ciniml/fpga_samples repository on GitHub, at the commit this page was made from: the board is eda/dvi_hub75/hw/Pmod_StereoDAC/Pmod_StereoDAC.kicad_pcb and its schematic eda/csi_capture/hw/Pmod_RPiCamera/Pmod_RPiCamera.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pmod StereoDAC design in my own project?

Its repository publishes it under the BSL-1.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).