
PicoMemcard pico
dangiu/PicoMemcard
Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico

tokyo-metro-pcb — 320 × 280 mm, 2 layers, 248 WS2812B LEDs (XL-1615), one per station, generated from ../input/tokyo.json.
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.
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.
| Schematic | 248 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) |
| Chain | U1 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 |
| Nets | 256 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 |
| Controller | U1 (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 |
| Decoupling | 52 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 |
| Board | 320 × 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 |
| DRC | 0 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 |
| Placement | 248 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 |
| Routing | nothing 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 tables | firmware_tables.h: NUM_LEDS 248, 36 line/branch index arrays |
cd ../tools
python -X utf8 make_schematic.py ../hardware/tokyo-metro-pcb.kicad_sch 248tokyo-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:
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.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.python -X utf8 ../tools/check_schematic.py tokyo-metro-pcb.kicad_sch -vA 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:
x_cap = ox - 30.48
moves them clear), and then on the mounting-hole column (grid origin moved
to 95,70);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;"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 # 0A 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.
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.import_labels.py to freeze them.+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.+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 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:
"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.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 248 | XL-1615RGBC-WS2812B | C5349954-led:LED-SMD_4P-L1.6-W1.5_XL-1615RGBC-WS2812B-1 | LED1, LED10, LED11, LED100, LED101, LED102, LED103, LED104, LED105, LED106, LED107, LED108, LED109, LED110, LED111, LED112 +232 |
| 52 | 1uF,16V,X5R | Capacitor_SMD:C_0402_1005Metric | ROW0, ROW1, ROW2, ROW10, ROW11, ROW12, ROW13, ROW14, ROW15, ROW16, ROW17, ROW18, ROW19, ROW20, ROW21, ROW22 +36 |
| 9 | TestPoint | TestPoint:TestPoint_Pad_3.0x3.0mm | +5V1, +5V2, GND1, LED_IN1, LED_OUT1, TP1, TP2, TP3, TP4 |
| 4 | MountingHole | MountingHole:MountingHole_3.2mm_M3_DIN965_Pad_TopBottom | H1, H2, H3, H4 |
| 4 | TS-1187A-B-A-B | C318884-button:SW-SMD_4P-L5.1-W5.1-P3.70-LS6.5-TL_H1.5 | SW1, SW2, SW3, SW4 |
| 1 | 100uF,6.3V,X5R | Capacitor_SMD:C_1206_3216Metric | C1 |
| 1 | 330R | Resistor_SMD:R_0402_1005Metric | R1 |
| 1 | XIAO-RP2040-DIP | Seeed Studio XIAO:XIAO-RP2040-SMD | U1 |

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

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

jackw01/scanlight
A better light source for scanning color negative film

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



FujiNetWIFI/fujinet-hardware
Schematics and design files for FujiNet hardware

maxlab-io/tokay-lite-pcb
Tokay AI Camera - ESP32 camera development board
It measures 320 × 280 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask funvill before reusing the design.