Devlog #2: Routing the PCB
Designing the schematic is one thing, but laying out the actual printed circuit board (PCB) was where hardware real estate, trace routing and physical tolerances collided. The goal was simple on paper: fit the 3x3 switch matrix, the rotary encoder, per-key RGB LEDs, the OLED screen header, and the Seeduino XIAO RP2040 onto a tight desktop footprint. In practice, every millimeter was a puzzle.
Phase 1: Component Placement & Real Estate Strategy
The first hurdle on Orbit-Chroma-9 was component positioning. Because we were building a compact 9-key macropad, component clearance had to be exact:
The XIAO RP2040 Footprint: We positioned the XIAO MCU centrally on the underside to keep trace lengths balanced to all matrix corners while leaving top-side clearance clean for mechanical switches.
Key Matrix Layout: Aligning the 3x3 mechanical switch footprints on standard 19.05mm grid spacing so keycaps wouldn’t collide during operation.
Encoder & Screen Alignment: Placing the rotary encoder knob and the 128x32 OLED header so they sit flush with the enclosure cutouts designed in Fusion 360 without overlapping underlying PCB components.
Phase 2: PCB Routing Friction & The Errors We Hit
Once components were placed, routing the copper traces brought a wave of physical layout challenges:
1. Per-Key RGB LED Data Line Daisy-Chaining (SK6812MINI-E)
The Problem: The SK6812MINI-E LEDs require a continuous, single-wire serial data line running from DOUT of one LED into DIN of the next across all 9 keys. Crossing these high-speed data lines over the 3x3 matrix row/column power and key lines caused trace congestion and routing dead-ends on a 2-layer board.
The Fix: We isolated the bottom copper layer primarily for ground pours and cross-over vias, routing the LED data line in a strict “snake” path across the 3x3 grid on the top layer to eliminate line intersections.
2. Power Rail & Decoupling Stability
The Problem: Driving 9 SK6812MINI-E RGB LEDs alongside an OLED screen and the RP2040 MCU from the 5V USB rail created sudden current draw spikes, introducing potential noise into the I2C lines of the SSD1306 display.
The Fix: We widened the 5V power traces, added dedicated ground copper pours under high-current paths, and placed decoupling capacitors close to power input pins to stabilize line voltage.
3. I2C Bus Pull-Ups & Pin Pinout Constraints
The Problem: The XIAO RP2040 has a compact GPIO count. Routing SDA and SCL for the OLED display across the board while maintaining clean matrix row/col pin assignments meant carefully managing trace crossovers near the MCU header pins.
The Fix: We optimized pin assignments directly on the RP2040 footprint in the schematic editor prior to final trace lock to minimize long, wrapping traces on the PCB.
Phase 3: Final Design Rule Check (DRC) & Manufacturing Prep
Before exporting manufacturing files, we ran through a strict verification process:
Design Rule Check (DRC): Verified trace clearances, minimum drill hole sizes, and annular rings against fabrication tolerances to ensure zero short circuits or unrouted nets.
3D Clearance Inspection: Imported the complete board 3D model (complete with switch sockets, encoder, OLED header, and XIAO RP2040 height profiles) back into Fusion 360 to verify that every component aligned with the Orbit-Chroma-9 enclosure walls.
Gerber & Drill Export: Generated final Gerber files, drill maps, and assembly layer outputs, ready for production.
Current PCB Status
The PCB design for Orbit-Chroma-9 is completely routed, verified through DRC, and finalized for production!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.