Skip to the content
2 layers320 × 280 mmTokyo metro pcb, the printed circuit board in 3D

tokyo-metro-pcb — 320 × 280 mm, 2 layers, 248 WS2812B LEDs (XL-1615), one per station, generated from ../input/tokyo.json.

Size
320 × 280 mm
Copper layers
2
Thickness
1.6 mm
Parts
320
Nets
267
Pads
1,157
Tracks, vias
3,269, 600
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
19 Oct 2026
Updated
22 Oct 2026

Overview

Tokyo metro pcb is an open-source printed circuit board by funvill, from the funvill/tokyo-metro-pcb repository on GitHub. It is a 2-layer board of 320 × 280 mm with 320 parts on 267 nets, routed with 3,269 tracks and 600 vias.

It is built around the TS-1187A-B-A-B. Its parts include 248 diodes, 4 switches, 1 capacitor, 1 resistor and 1 IC. It belongs with the RP2040 boards of this library.

Main components

1

README

hardware/README.md

Hardware (KiCad 10)

tokyo-metro-pcb — 320 × 280 mm, 2 layers, 248 WS2812B LEDs (XL-1615), one per station, generated from ../input/tokyo.json.

Copied from the Montréal board and ported by the scripts in ../tools. The schematic is built and verified, and the board is placed and has its artwork. Nothing is routed.

State

Schematic248 LEDs in 13 rows of 20, generated by make_schematic.py; 0 duplicate uuids; 0 overlapping symbols, labels or visible text (check_schematic.py); regenerating is idempotent (byte-identical on a second run)
ChainU1 GPIO1 → LED_DATA → R1 → LED_IN → LED1 … LED248 → LED_OUT, verified by check_led_chain.py — which now checks the driver, the rails and the capacitors too, not just the hops. Each of those was added after a bug it would have caught: the generator deleted LED_DATA/LED_IN off R1 and put nothing back (R1 floating, nothing driving the chain, PASS); a rail checked by name would pass with no source on it; and extending from 13 caps to 52 without extending the power rail left 39 of them floating, also PASS
Nets256 real nets; +5V 265 nodes, GND 272. 11 single-node nets, all deliberate: seven spare XIAO GPIOs, 3V3, and the redundant pad of each 4-pad tactile switch
ControllerU1 (XIAO RP2040), R1 (330 Ω), C1 (100 µF 6.3 V, 1206), SW1–4, four test points, four M3 holes — all inherited from Montréal, wiring intact. U1's Value says XIAO-RP2040-DIP but its footprint is the SMD/castellated land pattern — a header module will not fit; reconcile before assembly
Decoupling52 caps, ROW0–ROW51 at 1uF,16V,X5R in 0402, four per schematic row, each across the rails and spread along the chain by index so they land across the whole map. Was 13 — one per row of 20 LEDs, which is bulk rather than decoupling: the far LED sat nineteen pitches of trace from its cap and the east of the board was 74 mm from the nearest one. The old value, 10uF,10V,X5R in an 0402, is not a buyable part; 1 µF 16 V in 0402 is
Board320 × 280 mm, r5 corners; Montréal's tracks and front art stripped; 1,118 art blocks written; schematic parity clean. One GND zone on F.Cu + B.Cu — there were three stacked copies with identical outlines, whose fills split arbitrarily by priority and accounted for all 32 isolated_copper reports
DRC0 shorts, 0 clearance, 0 isolated copper, 0 parity. Left: 16 starved_thermal (GND pads on cut-up islands, routing-stage), 11 silk_edge_clearance (art bleeding off the edge — intended, the fab clips it), 199 solder_mask_bridge. The mask-bridge check was set to ignore and is now warning: 199 of its 200 hits are pad-to-pad inside one LED footprint, whose own inter-pad gap is 0.250 mm, so this is a fab mask-dam question about the footprint, not an artwork bug
Placement248 LEDs at their stations, all at one orientation (270°, pin 1 up); 52 decoupling capacitors; 4 M3 holes; controller group at (40, 220). They used to be turned individually so DOUT faced the next in the chain, which gave the router shorter hops but put the parts at eight different angles — and pads 1 and 4 share the part's long edge, so a 180° error swaps GND with DI and +5V with DO. One orientation makes the whole board a single thing to check
Routingnothing routed — 547 unconnected pads. Note the DRC report says 499: its JSON omits 48 real ratsnest edges (the chain hops that cross the bay, and the four BUTTON nets), so do not use "unconnected: 0" in the report as the routing-complete gate — read GetUnconnectedCount from pcbnew instead
Firmware tablesfirmware_tables.h: NUM_LEDS 248, 36 line/branch index arrays

Regenerating the schematic

text
cd ../tools
python -X utf8 make_schematic.py ../hardware/tokyo-metro-pcb.kicad_sch 248

tokyo-metro-pcb.kicad_sch.template is a required input: a pristine copy of the Montréal sheet, committed alongside the schematic. The generator always builds from it, never from its own last output - reading its own output moved the generated power symbols outside the drop region and left 130 duplicate uuids on the second run.

It rebuilds the whole LED section — symbols, rails, row decoupling caps, chain wiring and the CHAIN1…CHAIN12 row labels — and leaves the controller block and the test-point column untouched. It is safe to re-run: the second run drops what the first generated and produces the same bytes.

Three things it has to get right, each of which it got wrong first:

  • Keep the controller's wiring. Dropping every wire on the sheet leaves U1, R1 and the test points floating, with nothing on LED_IN or LED_OUT. Only wires below GRID_TOP and right of GRID_LEFT belong to the grid; the test-point column runs down to y = 83 at x = 24.
  • Do not reuse Montréal's row label names. Its last output was tied to the LED_OUT test point with a second label, ROW8. With 13 rows that collides, shorting LED160 to the chain output. Generated labels are CHAIN*, and stray ROW* labels are dropped.
  • Re-uuid every uuid in a cloned block, not just the first. A symbol carries one per property, so cloning 248 LEDs left four uuids shared across all of them.

Checking the schematic for overlaps

text
python -X utf8 ../tools/check_schematic.py tokyo-metro-pcb.kicad_sch -v

A generated sheet can be electrically perfect and unreadable: nothing in the netlist notices a decoupling capacitor sitting on a global label, and KiCad's ERC does not check it either. The checker takes each symbol's outline from its lib_symbols definition, rotates and moves it to the instance, and adds a box for every global label and every visible Reference and Value - the hidden ones are metadata and counting them buries the real collisions in 900 false ones. It reports 710 placed items and 0 overlapping pairs.

Three overlaps it found, all now fixed in the generator:

  • the row capacitors sat on their own row's input label (x_cap = ox - 30.48 moves them clear), and then on the mounting-hole column (grid origin moved to 95,70);
  • Montréal's LED_DATA and LED_IN labels sat directly on R1's body, because they were placed on its pins with no wire at all - each now gets a 5.08 mm stub wire;
  • C1's Value text is 16 mm wide and the gap between U1 and the +5V symbol is 14.5 mm, so it is moved to the clear band below the controller.

Checking

text
"C:/Program Files/KiCad/10.0/bin/kicad-cli.exe" sch export netlist \
    --format kicadsexpr -o ../test-results/netlist.net tokyo-metro-pcb.kicad_sch
python -X utf8 ../tools/check_led_chain.py ../test-results/netlist.net 248
grep -o 'uuid "[^"]*"' tokyo-metro-pcb.kicad_sch | sort | uniq -d | wc -l   # 0

A netlist export that prints no warning means the annotation is clean; a duplicate #PWR reference is what "schematic has annotation errors" means, so the generated power symbols are numbered from #PWR901 to stay clear of the controller's own.

Still to do

  1. The board. port_board.py --strip on a fresh copy, then reposition_board.py --board 320 --height 280, then export_art.py and mask_under_silk.py.
  2. The hand pass over the 25 remaining label collisions, then import_labels.py to freeze them.
  3. A way to get power in. There is none: every +5V node is an LED, a cap, U1's VBUS, or a 3 × 3 mm test pad. The only real inputs are the XIAO's USB-C and two SMD test points, and neither passes amps. This is a schematic change plus a board re-import — cheap now, painful after routing. Decide the LED current first: 248 × 60 mA (the 5050 WS2812B figure) is 15 A, but the XL-1615 is a 1.6 × 1.5 mm part and is likely well under 20 mA full-white, which would put the board nearer 4–5 A. No datasheet is in the repo and the symbol's Datasheet field is empty.
  4. Routing, by hand. Note before starting: 44 LEDs sit in holes cut out of the bare-copper water (across 9 holes; none stands on live water copper), so the front pour is cut into islands and each needs its own via to the back plane; and 38 chain hops cross water, which cannot be routed on the front at all. +5V has no plane anywhere — the one pour is GND on both layers — so the usual plan is front becomes +5V, back stays GND. Sixteen GND pads reach the pour by a single thermal spoke and want an explicit via at the pad: LED18, 19, 30, 35, 37, 47, 58, 82, 98, 99, 109, 133, 136, 158, 239, 244.

The label font

The board draws its station names in Archivo Narrow SemiBold, set as (face ...) on every gr_text. That is not cosmetic: every label placement, capsule and collision check in the pipeline is computed from this face, and KiCad's default stroke font is 35-59% wider. Drawn in the stroke font the names are wider than the space cleared for them; drawn in Verdana, which is what KiCad substitutes when the face is missing, wider still.

The font is embedded in the board (embedded_fonts yes, with the TTF in the embedded_files section - it is most of the file's 7 MB), so the board carries it and does not depend on what any particular machine has installed. Embedding is done by board.EmbedFonts() through pcbnew, and it only works once the board-level embedded_fonts flag is set AND the font resolves on the machine doing the embedding - with the flag off, or the font missing, it runs and silently embeds nothing.

If the face ever has to be re-embedded, install fonts/ArchivoNarrow-SemiBold.ttf and run:

text
"C:/Program Files/KiCad/10.0/bin/python.exe" -c "import pcbnew; b=pcbnew.LoadBoard('tokyo-metro-pcb.kicad_pcb'); b.EmbedFonts(); pcbnew.SaveBoard('tokyo-metro-pcb.kicad_pcb', b)"

Check it took: kicad-cli pcb render prints a substitution warning when the face is missing, and says nothing when it is found.

Parts

320
QtyValueFootprintReferences
248XL-1615RGBC-WS2812BC5349954-led:LED-SMD_4P-L1.6-W1.5_XL-1615RGBC-WS2812B-1LED1, LED10, LED11, LED100, LED101, LED102, LED103, LED104, LED105, LED106, LED107, LED108, LED109, LED110, LED111, LED112 +232
521uF,16V,X5RCapacitor_SMD:C_0402_1005MetricROW0, ROW1, ROW2, ROW10, ROW11, ROW12, ROW13, ROW14, ROW15, ROW16, ROW17, ROW18, ROW19, ROW20, ROW21, ROW22 +36
9TestPointTestPoint:TestPoint_Pad_3.0x3.0mm+5V1, +5V2, GND1, LED_IN1, LED_OUT1, TP1, TP2, TP3, TP4
4MountingHoleMountingHole:MountingHole_3.2mm_M3_DIN965_Pad_TopBottomH1, H2, H3, H4
4TS-1187A-B-A-BC318884-button:SW-SMD_4P-L5.1-W5.1-P3.70-LS6.5-TL_H1.5SW1, SW2, SW3, SW4
1100uF,6.3V,X5RCapacitor_SMD:C_1206_3216MetricC1
1330RResistor_SMD:R_0402_1005MetricR1
1XIAO-RP2040-DIPSeeed Studio XIAO:XIAO-RP2040-SMDU1

Similar boards

  • 2 layers36.2 × 63.1 mmPicoMemcard pico, the printed circuit board in 3D

    PicoMemcard pico

    dangiu/PicoMemcard

    Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico

    8 parts694GPL-3.0
  • 2 layers10.3 × 23.3 mmMini receiver, the printed circuit board in 3D

    Mini receiver

    loopj/wavephoenix

    Open-source implementation of the Nintendo WaveBird receiver using Silicon Labs Wireless Gecko SoCs

    11 parts430
  • 4 layers86 × 34 mmBsl drv v1, the printed circuit board in 3D

    Bsl drv v1

    jackw01/scanlight

    A better light source for scanning color negative film

    157 parts397CERN-OHL-W-2.0
  • 2 layers26.5 × 34.4 mmPicoLoaderNSB, the printed circuit board in 3D

    PicoLoaderNSB

    makeo/PicoLoader

    A cheap and easy to install modchip for the Nintendo GameCube!

    45 parts320GPL-2.0
  • 2 layers66.8 × 34 mmESP8266, the printed circuit board in 3D

    ESP8266

    MaloufSleep/ME-ESP8266

    Malouf Electronics - ESP8266 Dev Board

    127 parts204MIT
  • 2 layers139 × 59 mmEsp32s2-nixiehost, the printed circuit board in 3D

    Esp32s2-nixiehost

    cnlohr/cnixxi

    My experiment with nixie tubes.

    60 parts151MIT
  • 6 layers84 × 98 mmFujiNet-5200-Rev0, the printed circuit board in 3D

    FujiNet-5200-Rev0

    FujiNetWIFI/fujinet-hardware

    Schematics and design files for FujiNet hardware

    145 parts142
  • 4 layers70 × 70 mmAi camera, the printed circuit board in 3D

    Ai camera

    maxlab-io/tokay-lite-pcb

    Tokay AI Camera - ESP32 camera development board

    161 parts130CERN-OHL-P-2.0

Questions

How big is the Tokyo metro pcb PCB?

It measures 320 × 280 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Tokyo metro pcb use?

320 parts, built around the TS-1187A-B-A-B. 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 Tokyo metro pcb KiCad files?

From the funvill/tokyo-metro-pcb repository on GitHub, at the commit this page was made from: the board is hardware/tokyo-metro-pcb.kicad_pcb and its schematic hardware/tokyo-metro-pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Tokyo metro pcb design in my own project?

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