RP2040-Decoder
gab-k·RP2040-Decoder·KiCad/USB/RP2040-Decoder.kicad_pcb
About the RP2040-Decoder PCB
RP2040-Decoder is an open source RP2040/RP2350 PCB design by gab-k, published on GitHub under the CERN-OHL-P-2.0 license. It is a 4-layer board measuring 25 × 20 mm, with 47 components from 20 distinct parts.
Its main chip is the MIC5200-3.3YS, from the RP2040/RP2350 family. Other key parts include the W25Q64JVSSIQ, RP2040 and BDR6133. By type, the board carries 18 capacitors, 14 resistors, 5 transistors, 4 ICs, 3 diodes and 1 crystal.
From the project
Cost effective DIY DCC Decoder for model railroad locomotives
Designed to be a low-cost, open-source alternative to commercial DCC decoders, it utilizes the Raspberry Pi RP2040 dual-core microcontroller. The decoder features DCC protocol decoding and command interpretation alongside motor control in a compact 25x20 mm form factor.
Core 0: Signal Processing & Management DCC edge detection and packet decoding. Configuration Variable (CV) management using persistent flash storage. Service Mode (Programming Track) logic and acknowledgment pulse generation. Core 1: Motion Control PID Controller: A discrete-time PID motor controller implementation utilizing…

Main components on the RP2040-Decoder
RP2040-Decoder bill of materials (BOM)
47 components, 20 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | MIC5200-3.3YS | SOT-223 | U1 |
| 1 | W25Q64JVSSIQ | SOIC-8_5.23x5.23mm_P1.27mm | U2 |
| 1 | RP2040 | QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm | U3 |
| 1 | BDR6133 | SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias | U4 |
| 5 | Si1308EDL | SOT-323_SC-70 | Q1, Q2, Q3, Q4, Q5 |
| 1 | X322512MSB4SI | Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | USB_C_Receptacle_USB2.0_16P | USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J3 |
| 1 | YTS1T0162AWJ00 | SW_Push_1P1T_NO_Vertical_Wuerth_434133025816 | SW1 |
| 1 | 1N5819WS | D_SOD-323_HandSoldering | D1 |
| 1 | KMB24F | TO-269AA | D2 |
| 1 | LED | LED_0603_1608Metric | D3 |
| 2 | 10p | C_0402_1005Metric | C1, C4 |
| 9 | 100n | C_0402_1005Metric | C2, C6, C7, C10, C11, C12, C14, C15 +1 |
| 4 | 10u | C_0603_1608Metric | C3, C5, C17, C18 |
| 3 | 10u | C_0402_1005Metric | C8, C9, C13 |
| 2 | 5k1 | R_0402_1005Metric | R2, R3 |
| 5 | 1k | R_0402_1005Metric | R4, R5, R10, R13, R15 |
| 2 | 27 | R_0402_1005Metric | R6, R7 |
| 4 | 6k8 | R_0402_1005Metric | R8, R9, R12, R14 |
| 1 | 200 | R_0402_1005Metric | R11 |
RP2040-Decoder design files
The KiCad project lives in the gab-k/RP2040-Decoder repository on GitHub; these links point at the commit this page was built from.
RP2040-Decoder: common questions
What microcontroller does the RP2040-Decoder use?
The RP2040-Decoder is built around the MIC5200-3.3YS, from the RP2040/RP2350 family.
How big is the RP2040-Decoder PCB?
The RP2040-Decoder measures 25 × 20 mm, has 4 copper layers and is 1.6062 mm thick.
How many components are on the RP2040-Decoder?
47 components, from 20 distinct parts. The full bill of materials is listed on this page.
Where can I download the RP2040-Decoder design files?
From the gab-k/RP2040-Decoder repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.
Can I use the RP2040-Decoder design in my own project?
Yes, under the terms of its CERN-OHL-P-2.0 license, which gab-k chose for the repository.
Can I test firmware for the RP2040-Decoder without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug RP2040/RP2350 firmware against it before you order a PCB.
Similar boards
RP2040/RP2350
Open Book Abridged Edition
joeycastillo
85 × 115 mm29 parts2LCC-BY-SA-4.08.1kRP2040/RP2350
Corne
foostan
277.2 × 107.5 mm164 parts2LCC-BY-4.07.7kRP2040/RP2350
Corne
foostan
277.2 × 107.5 mm164 parts2LCC-BY-4.07.7kRP2040/RP2350
LogicAnalyzer
gusmanb
57 × 55.2 mm6 parts2LGPL-3.05.0kRP2040/RP2350
Jitx design
gusmanb
55.5 × 65 mm26 parts4LGPL-3.05.0kRP2040/RP2350
Pro V2
kata0510
290.1 × 130 mm270 parts2LMIT2.3k