

Digifant2-pruefstand
Automated test bench for the VW Digifant-2 ECU: Raspberry Pi Pico signal simulator and capture board (KiCad + firmware)
- Size
- 144 × 150 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 78
- Nets
- 70
- Pads
- 490
- Tracks, vias
- 752, 78
- Pours
- 4
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 10 Sep 2026
- Updated
- 30 Oct 2026
Overview
Digifant2-pruefstand is an open-source printed circuit board by designer2k2, from the designer2k2/digifant2-pruefstand repository on GitHub, published under the MIT licence. It is a 2-layer board of 144 × 150 mm with 78 parts on 70 nets, routed with 752 tracks and 78 vias.
It is built around the TS5A3159ADBV, AD9833BRM and SK6812, with the SS54 among its other parts. Its parts include 23 resistors, 10 capacitors, 8 ICs, 4 transistors and 4 connectors. It belongs with the RP2040 boards of this library.
Main components
4TS5A3159ADBV
SOT-23-6-40℃~+85℃ 1 1.65V~5.5V 100MHz 12ns 12ns 2:1 55pF 700mΩ Bidirectional analog channel、Glitch-free switching SOT-23-6 Analog Switches, Multiplexers ROHSTexas InstrumentsAnalog Switches, MultiplexersAD9833BRM
-- Direct Digital Synthesis (DDS)Analog DevicesDirect Digital Synthesis (DDS)SK6812
SMD-4P,5.4x5mm-40℃~+85℃ 0.6mA 1.6mm 120° 160mcd~320mcd 1kHz 2000V 280mcd~515mcd 3.7V~5.5V 460nm~470nm 520nm~530nm 620nm~625nm 800Kbit/s 815mcd~1275mcd Built-in power-on reset circuit Semi-transparent lens SMD-4P,5.4x5mm RGB LEDs(Built-in IC) ROHSOPSCO OptoelectronicsRGB LEDs(Built-In IC)SS54
SMA(DO-214AC)-55℃~+125℃ 1mA@40V 40V 550mV@5A 5A Independent SMA(DO-214AC) Schottky Diodes ROHSMDDSchottky Diodes
README
README.mdDigifant-2 Prüfstand
Hardware for a fully-automated test bench for the VW Golf 1 Cabrio Digifant-2 ECU: signal simulator + capture front-end, driven by a Raspberry Pi Pico 2, with a high-side load switch so the bench can cold-boot the ECU and cut power on overcurrent. Scope here is the Signal-Simulator + Erfassungseinheit only — the EPROM emulator is a separate future board.
The schematic is generated from Python with
circuit-synth; the PCB is placed
and autorouted headless (pcbnew + Freerouting).
firmware/OPERATION.md — how to operate the
bench: display and buttons, PC control and scripting, reading the
measurements.
BRINGUP.md — step-by-step first power-on checklist, tools
needed, and the open questions to settle on the bench.
DESIGN.md — what every block does, part-selection rationale, the
GPIO / I²C / VW-harness maps. USE_CASES.md traces every real
bench use case through the schematic to concrete numbers (voltage/current/timing
headroom) — a requirements/test matrix for the hardware, and where the AD9833
decoupling-cap gap turned up before it got fixed.
Layout
| path | what |
|---|---|
digifant2_pruefstand.py | the circuit — one @circuit function, flat single sheet |
gen_custom_symbols.py | builds kicad-symbols/Custom_Digifant2.kicad_sym (INA226, AD9833, 2N7002, DPAK P-FET, VW connector — pinouts verified against datasheets) |
gen_project.py | python3 gen_project.py <name> → full KiCad project + netlist + lib tables, runs ERC/DRC via kicad-cli, auto-applies no-connect flags |
place_and_route.py | pcbnew functional-zone placement → Specctra DSN → Freerouting → SES import (run inside the KiCad flatpak; java runs outside it) |
add_nc_flags.py | stamps no_connect flags from an ERC report (circuit-synth has no NC API) |
fix_layout.py | post-route layout surgery (real netclasses, GND/Kelvin re-routing) — see the header comment for the 2-phase, 2-process invocation it needs |
reroute_missing.py | re-exports a Specctra DSN from a partially-ripped-up board so Freerouting only has to fill the reopened ratsnest |
firmware/ | Pico firmware (Pico SDK, C): USB serial command protocol, build/flash instructions, what's implemented vs. stubbed |
host/bench.py | PC-side client for the firmware protocol: interactive prompt, one-shot CLI, or importable Bench class; host/examples/ has a scripted rpm sweep |
board/ | the current KiCad project (144×150 mm, 2-layer, 4× M3 corner holes, isolated OLED + USB clearance zones) |
board/bom_output/bom.html | interactive BOM (InteractiveHtmlBom) — click a part to highlight it on the board, no KiCad needed |
BOM.md | Mouser sourcing: part numbers for every line item, with confidence notes — 6 of 30 need manual confirmation, see the file |
mouser_cart.csv | only the Mouser-verified part numbers, ready to paste into Mouser's bulk order tool |
JLCPCB_ASSEMBLY.md | hybrid plan: JLCPCB machine-places the SMD parts, you hand-solder THT + 4 unconfirmed SMD parts — read this before submitting |
jlcpcb_bom.csv / jlcpcb_cpl.csv | JLCPCB SMT-assembly BOM + pick-and-place, 42 of 46 SMD parts (real positions from board/, real LCSC part numbers) |
UPSTREAM_BUGS.md | circuit-synth bugs found, drafted for upstream filing |
kicad-symbols/, kicad-footprints/ | libraries — custom/community committed, stock via ./fetch_libs.sh |
.github/workflows/ | CI: firmware build + tests, spell check, KiCad ERC/DRC, firmware releases (see below) |
Build
./fetch_libs.sh # one-time: pull stock KiCad 9.0 libs
python3 gen_custom_symbols.py # if the custom symbols changed
python3 gen_project.py digifant2_pruefstand_cs_v1Placement + routing needs KiCad's pcbnew Python API (KiCad ≥ 10) and a
non-headless JRE for Freerouting — see the header of place_and_route.py.
Status
Schematic ERC-clean; VW harness pinout verified against the cabby-info.com
Digifant II reference and the user's own hands-on HiL notes (see DESIGN.md).
Board placed + autorouted (144 × 150 mm, 2-layer, 4 × M3 holes, isolated OLED + USB
clearance zones), real Power/Gnd netclasses, GND re-routed as one connected net
(was 4 islands), dedicated Kelvin sense traces for both shunts. The tight
U1/U3/RS1/RS2 pocket (2 shorting_items, 2 clearance, 5 tracks_crossing left by
the scripted Kelvin routing) was cleaned up by hand in KiCad's interactive
router, and a B.Cu GND pour was added. Added the two AD9833 decoupling caps
(C7, C8), fully routed. Fixed RS2 (idle-valve shunt) to be truly in series
with the ECU's VW-23 driver instead of a parallel path to GND that was
corrupting the current reading — this reopened one small pocket at U3 pin 9
(2 shorting_items, confined to that one spot after extensive
hand-routing/Freerouting attempts, same class of residual as the historical
U1/U3/RS1/RS2 items). Gave the AD9833 knock output a defined path out
(TP1/TP2 test points for VW-4/VW-5) instead of a dead end. Added 12 more
THT scope-probe test points (TP3–TP14, real drilled holes — an earlier pass
used bare SMD pads and put 10 of them physically underneath the Pico module,
both corrected) on the main GPIO signals, both buses, and both 12 V rails.
Found and fixed a real bug along the way: footprints cloned via
pcbnew.FOOTPRINT(template) inherit the template's UUID unless you
explicitly reset it, which had corrupted DRC's item-identity tracking for
every cloned part this session (C7/C8 and all of TP1–TP14) — several
"violations" turned out to be real defects reported against the wrong
footprint. See DESIGN.md's "Known open points" for details if you script
further additions. Remaining warnings are cosmetic (silkscreen overlap,
lib_footprint_mismatch, and one starved_thermal note on a single Pico GND
pad with only 1 pour spoke instead of 2 — connected fine, just a slightly
weaker thermal/mechanical joint). Thermal copper for D1/Q2 still optional to
add by hand. Added a 12×16 perfboard-style proto area (PROTO1, isolated THT
pads on 0.1″ pitch) in the empty space bottom-right of J0. Checked the whole
board against JLCPCB's published fab minimums (trace/spacing, via/hole sizes,
hole-to-hole, copper-to-edge, board thickness) — everything copper- and
hole-related had 1.5×–14× margin already. The one real miss was silkscreen:
KiCad's default 0.1mm line width and 0.8mm text height are both below
JLCPCB's stated minimums (0.15mm / 1.0mm), risking thin/dropped silkscreen.
Bumped the project defaults and widened/enlarged every existing silkscreen
line and text item on the board to meet those minimums.
Checked +3V3 for adequate trace width (it's on the thinnest Default
netclass, 0.2mm, despite feeding ~15 chips) — worked out the real numbers
(thermal capacity ~0.77A at 10°C rise, worst-case drop a few mV) and it's
fine as-is; not worth the rerouting risk in this densely-packed board.
Checked decoupling instead: per each part's own datasheet, U1 and U3 (the
two INA226 current-sense amps) had no bypass cap at all, unlike U2/U4 which
already have theirs (C6, C2/C7/C8). Added C9 (U1) and C10 (U3), 100nF 0805,
tapped directly off the existing +3V3 B.Cu trunk and the GND pour a few mm
south of the packed U1/U3/RS1/RS2 pocket (no room to place them right at the
pins) — verified DRC-clean (the only residuals are the same
new-copper-vs-stale-zone-fill noise that clears on a zone refill, same as
after the TP resort). U6/U7/U8 (the sensor-disconnect analog switches) are
still without a bypass cap; lower priority since they're not
noise-sensitive, but could use the same treatment.
Added the thermal copper for D1/Q2 that was flagged as a real (not cosmetic) risk in USE_CASES.md — D1 dissipates ~1.25W at sustained ~2.5A with no thermal relief otherwise. Both pours verified electrically connected to their pads (not just overlapping) and DRC-clean. Q2's is small since there's almost no open board space around its DPAK tab; D1's is generous since F1/RS1 (same nets, either side) leave a wide open corridor.
All 14 test points (TP1–TP14) are now fully routed — the user hand-routed
7 of the 10 remaining GPIO test points after the resort (TP3, TP10, TP11,
TP4, TP12, TP5, TP6); the last 3 (TP9, TP8, TP7 — all on U5's east side, the
tightest part of the board) were routed with a grid-based pathfinder (A* over
a 0.1mm grid, spatial-bucket-indexed for speed) purpose-built for this corridor
after several rounds of manual/heuristic routing kept snagging on real
obstacles: the Pico's own pin column has no gap wide enough for a second
trace anywhere along its length (confirmed by direct probing — routed escape
stubs from other GPIOs fill in what would otherwise be a 0.49mm theoretical
gap between pin pads), so both TP8 and TP9 had to detour around the south
end of the Pico footprint entirely, and — since that detour corridor is
itself only wide enough for one trace at a time — needed genuinely different
physical crossing points, not just parallel lanes. Verified via real
kicad-cli pcb drc, not just the pathfinder's own clearance model (which
undercounted real collisions during development in two ways worth noting for
next time: it modeled non-circular pads by their half-width instead of their
half-diagonal, and it didn't check hole-to-hole spacing against a net's own
via near its own pad — both are now fixed in the approach, see DESIGN.md).
GND zone refilled after all of the above (TP9/TP8 routing, C9/C10, D1/Q2
thermal pours) — DRC dropped from 136 to 101 violations, all pre-existing
cosmetic categories plus the one known starved_thermal note, zero
clearance/short/crossing issues. (The "whole-board refill introduces ~115
spurious violations" finding earlier this session was a testing artifact —
running kicad-cli against a bare copy of the .kicad_pcb without its
paired .kicad_pro silently falls back to stricter default netclass rules;
with the project file present, the refill is clean.)
Trimmed the board from 144×169mm to 144×150mm — the bottom 19mm was completely empty (bare GND pour, nothing below PROTO1/J3 until the old mounting holes). H3/H4 moved up to keep the same 4.5mm hole-to-edge margin as H1/H2; DRC stayed clean (99 violations, same pre-existing cosmetic set).
Added functional silkscreen labels next to J0 (the VW harness connector) and
every test point, instead of leaving bare unlabeled pads. J0 gets each pin's
real VW harness number (VW-2, VW-9, ... or GND / +12V SW) in the clear strip
just outside its footprint. The TPs already had descriptive text (e.g.
GP2_CRANK) sitting on them from earlier in the session — turned out it was
on F.Fab, a documentation-only layer that doesn't actually get printed on
the physical board, so none of it was ever going to be visible with a probe
in hand. Moved it to F.SilkS and shortened the long ones (e.g.
GP6_THROTTLE_IDLE_SW → IDLE SW) since the west-margin TP column only has
about 10mm of clearance between the board edge and the Pico's pin column —
the original full-length strings would have run off the board edge once
actually rendered as real silkscreen (checked via real bounding-box widths,
not by eye). This did add some new silk_overlap hits — mostly TP labels
sitting close to the Pico module's own tiny per-pin silkscreen text in that
same tight corridor — all cosmetic, same accepted category as the rest of
this board's silkscreen warnings, verified via DRC to introduce zero
clearance/short/crossing issues.
Added fab-identification text on the back silkscreen (B.SilkS, previously
completely empty — no back components, nothing on that layer at all):
project name, revision, date, and designer, so a bare board can still be
identified later. Set via the board's title block (${TITLE},
${REVISION}, ${ISSUE_DATE}, ${COMPANY}) rather than hardcoded text, so
updating the revision/date for a future respin is a one-place edit in
KiCad's Page Settings, not a silkscreen re-edit. Verified the variables
resolve correctly (checked the exported SVG's embedded text, since this
sandbox can't render the actual glyphs) and confirmed zero new DRC
violations. Not yet fabbed.
Continuous integration
Every push and pull request runs on GitHub Actions:
| Workflow | What it checks |
|---|---|
CI (ci.yml) | Builds the firmware with Pico SDK 2.1.1, warnings as errors, and uploads pruefstand.uf2 as a build artifact. Runs firmware/test/run_all.sh: all PC unit tests, the command parser, host/bench.py over a virtual serial port, and the crank PIO program in an emulator. |
Spell check with codespell over code, comments and docs (.codespellrc). | |
Board (board.yml, only when board/ changes) | KiCad 10 ERC, and DRC with schematic parity. Fails on errors (unconnected nets, clearance, shorts); the known cosmetic warnings are only reported. Full reports are attached to the run. |
Before opening a pull request, the same checks run locally with
firmware/test/run_all.sh (after a firmware build) and codespell.
Firmware releases: bump FW_VERSION in firmware/src/cmd.h, commit, then
push a matching tag, e.g. git tag fw-v0.9.0 && git push origin fw-v0.9.0. CI
checks the tag against FW_VERSION, runs everything above, and publishes a
GitHub Release with pruefstand-<version>.uf2 to download and flash.
License
MIT (see LICENSE) for everything authored here — scripts, custom symbols, the
board design. Bundled third-party files (the Raspberry Pi Pico symbol/footprint
from ncarandini/KiCad-RP-Pico,
CC-BY-SA-4.0) keep their own licenses — see NOTICE.
Parts
78| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | 100nF | Capacitor_SMD:C_0805_2012Metric | C2, C4, C5, C6, C7, C8, C9, C10 |
| 5 | 100k | Resistor_SMD:R_0805_2012Metric | R16, R19, R22, R23, R24 |
| 4 | 220R | Resistor_SMD:R_0805_2012Metric | R2, R3, R4, R10 |
| 4 | MountingHole_3.2mm_M3 | MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 3 | 10k | Resistor_SMD:R_0805_2012Metric | R8, R13, R21 |
| 3 | 1k | Resistor_SMD:R_0805_2012Metric | R5, R15, RPU1 |
| 3 | 2N7002 | Package_TO_SOT_SMD:SOT-23 | Q1, Q3, Q5 |
| 3 | 330R | Resistor_SMD:R_0805_2012Metric | R9, R11, R17 |
| 3 | 4.7k | Resistor_SMD:R_0805_2012Metric | R6, R7, R14 |
| 3 | PUSH | Button_Switch_THT:SW_PUSH_6mm | SW1, SW2, SW3 |
| 3 | TS5A3159A | Package_TO_SOT_SMD:SOT-23-6 | U6, U7, U8 |
| 1 | +12V ECU | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP13 |
| 1 | +12V SW | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP14 |
| 1 | 0.02R 1% shunt | Resistor_SMD:R_2512_6332Metric | RS1 |
| 1 | 0.033R 1% shunt | Resistor_SMD:R_2512_6332Metric | RS2 |
| 1 | 100R | Resistor_SMD:R_0805_2012Metric | RG1 |
| 1 | 100uF/25V | Capacitor_THT:CP_Radial_D8.0mm_P3.50mm | C1 |
| 1 | 10nF | Capacitor_SMD:C_0805_2012Metric | C3 |
| 1 | 12V BENCH IN | TerminalBlock:TerminalBlock_bornier-2_P5.08mm | J1 |
| 1 | 200R | Resistor_SMD:R_0805_2012Metric | R12 |
| 1 | 20k | Resistor_SMD:R_0805_2012Metric | R20 |
| 1 | 25MHz | Oscillator:Oscillator_SMD_EuroQuartz_XO91-4Pin_7.0x5.0mm | Y1 |
| 1 | 3A | Fuse:Fuse_1206_3216Metric | F1 |
| 1 | AD9833 | Package_SO:MSOP-10_3x3mm_P0.5mm | U4 |
| 1 | CRANK | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP3 |
| 1 | I2C SCL | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP11 |
| 1 | I2C SDA | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP10 |
| 1 | IDLE SW | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP4 |
| 1 | IDLE VALVE N71 | Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical | J2 |
| 1 | IGNITION | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP5 |
| 1 | INA226 (0x40) | Package_SO:MSOP-10_3x3mm_P0.5mm | U1 |
| 1 | INA226 (0x41) | Package_SO:MSOP-10_3x3mm_P0.5mm | U3 |
| 1 | INJECTOR | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP6 |
| 1 | KNOCK GND (to VW-5) | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP2 |
| 1 | KNOCK OUT (to VW-4) | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP1 |
| 1 | LED DATA | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP12 |
| 1 | MCP4728 (0x60) | Package_SO:MSOP-10_3x3mm_P0.5mm | U2 |
| 1 | OLED / UI I2C | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J3 |
| 1 | P-MOS -30V >=5A | Package_TO_SOT_SMD:TO-252-2 | Q2 |
| 1 | PROTO AREA | PROTO1 | |
| 1 | Raspberry Pi Pico | RPi_Pico:RPi_Pico_SMD_TH | U5 |
| 1 | SK6812 | LED_SMD:LED_SK6812_PLCC4_5.0x5.0mm_P3.2mm | D2 |
| 1 | SPI CS | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP7 |
| 1 | SPI MOSI | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP9 |
| 1 | SPI SCK | TestPoint:TestPoint_THTPad_D1.5mm_Drill0.7mm | TP8 |
| 1 | SS54 | Diode_SMD:D_SMC | D1 |
| 1 | VW ECU HARNESS | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-15P_1x15_P5.00mm | J0 |
Similar boards
- 2 layers99 × 90 mm

- 2 layers80 × 65 mm

- 2 layers50.8 × 22.9 mm

Waveform Generator
CedarGroveStudios/AD9833_FeatherWing
Precision Waveform Generator FeatherWing
25 parts15 - 2 layers50.8 × 22.9 mm

Waveform Gen ADSR
CedarGroveStudios/PCB_AD9833_ADSR_Featherwing
An amplitude-controlled version of the original AD9833 Waveform Generator FeatherWing.
28 parts2 - 2 layers65 × 85 mm

Function Generator
MUDAL/Function-Generator
Custom Function Generator designed and developed by Olaoluwa Raji. This project is a complete embedded system solution with both hardware and software implemented by me. Relevant reference materials are included.
30 parts1GPL-3.0 - 2 layers127.1 × 61.8 mm

Impedance analyzer
Wang-ZiWen2006/impedance-analyzer-pcb
Custom in-home impedance analyzer pcb
16 parts1 - 2 layers28 × 25.5 mm

- 2 layers295 × 150 mm

Questions
How big is the Digifant2-pruefstand PCB?
It measures 144 × 150 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Digifant2-pruefstand use?
78 parts, built around the TS5A3159ADBV, AD9833BRM, SK6812 and SS54. 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 Digifant2-pruefstand KiCad files?
From the designer2k2/digifant2-pruefstand repository on GitHub, at the commit this page was made from: the board is board/digifant2-pruefstand.kicad_pcb and its schematic board/Digifant2_Pruefstand.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Digifant2-pruefstand design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).