

DCC/RailCom Function Decoder for Minitrix Passenger Cars
- Size
- 160.8 × 12 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 153
- Nets
- 121
- Pads
- 459
- Tracks, vias
- 1,133, 138
- Pours
- 10
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 24 Oct 2023
- Updated
- 20 Feb 2026
Overview
D13 is an open-source printed circuit board by git4dcc, from the git4dcc/RTB_D13 repository on GitHub, published under the Apache-2.0 licence. It is a 4-layer board of 160.8 × 12 mm with 153 parts on 121 nets, routed with 1,133 tracks and 138 vias.
It is built around the AVR64DA48-E/PT, 74HC595 and MAX40203AUK+T, with the BMA255, LM393 and BC847BDW1 among its other parts. Its parts include 70 resistors, 36 diodes, 20 capacitors, 12 ICs and 3 transistors.
Main components
10AVR64DA48-E/PT
TQFP-48(7x7)-40℃~+125℃ 1.8V~5.5V 10bit 12bit 24MHz 41 512Byte 64KB 8 Bit 8KB AVR Built-in FLASH TQFP-48(7x7) Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)74HC595
SOP-16-40℃~+85℃ 1 100ns@5V,50pF 10MHz 2V~6V 74HC 8 Serial-to-Serial or Parallel Tri-State SOP-16 Shift Registers ROHSGRShift RegistersMAX40203AUK+T
SOT-23-5-40℃~+125℃ 1.2V~5.5V 200mV 300nA 6V SOT-23-5 ORing Controllers ROHSMaxim Integrated (Analog Devices)Power Distribution SwitchesBMA255
LGA-12(2x2)-40℃~+85℃ 1.62V~3.6V 12bit 62uA Accelerometer SPI、I2C X,Y,Z ±16g LGA-12(2x2) Accelerometers ROHSBoschAccelerometersLM393
SOP-8-16V~16V 0℃~+70℃ 2 2.5mA 250nA 2V~36V 36V 5mV 5nA Fail-safe function Open-drain SOP-8 Comparators ROHSMSKSEMIComparatorsBC847BDW1
SOT-363-55℃~+150℃ 100MHz 100mA 150 2 NPN 250mV 380mW 45V 5uA 6V NPN SOT-363 Bipolar (BJT) ROHSonsemiBipolar (BJT)BC857BDW1
SOT-363-55℃~+150℃ 100MHz 100mA 2 PNP 220 250mW 45V 4uA 5V 650mV PNP SOT-363 Bipolar (BJT) ROHSonsemiBipolar (BJT)CDBU0245-HF
SOD-523F1uA@10V 200mA 2A 45V 550mV@200mA Independent SOD-523F Schottky Diodes ROHSComchipSchottky DiodesCDBURT0530LL-HF
SOD-523F-55℃~+125℃ 1 Independent 100uA@20V 20V 460mV@500mA 500mA 5A SOD-523F Schottky Diodes ROHSComchipSchottky DiodesSFH 2440
SMD-40℃~+100℃ 150mW 16V 400nm~690nm 5nA 60° 620nm SMD Photodiodes ROHSOSRAM Opto SemiconPhotodiodes
README
README.mdRTB_D13
My Homebrew D13 LED decoder is a drop in design for Minitrix (#15791) coach with no mechanical modification required. The decoder is designed to integrate into the RTB digital control infrastructure.
See also
- RTB_D12 - custom (Fleischmann V100)
- RTB_D15 - custom (Minitrix V160)
- RTB_D16 - NEM651
- RTB_D20 - NEM651
- RTB_D21 - Next18
- RTB_D22 - Plux16
- RTB_D23 - NEM652
User Guides
- User Guide - DE
- User Guide - EN
Decoder features
- DCC
- DCC-A automatic logon
- DCC-R protocol extension
- Service Mode Programming
- Railcom
- Channel 1/2
- POM, xPOM
- DYN: QoS, Track-Voltage, Scap-Voltage, Temp, Ambient light
- 1x4F/2.8V SCAP (on PCB)
- Inrush limited
- step up/down converter
- max track voltage 25V
- Corridor (11 LEDs), Cabin (13 LEDs), Lavatory (2 LEDs)
- Status LEDs: heartbeat, charging, no-power
- motion sensor
- ambient light sensor
- fast firmware update within seconds on main tracks via DCC-R
Hardware
The current PCB layout uses SMD footprints with 0.5mm pitch and mainly 0603 parts. Reflow soldering is recommended whereas handsoldering will be difficult.
PCB
- 4-layer PCB, FR4, 1mm
- CPU: AVR64DA48
Kicad
Dependency
:yellow_circle: Requires my Kicad project library RTB_SamacSys in the same directory tree.
Firmware
Filename structure: { pcb }{ code }{ version }.hex
Example: D13F0001.hex
| Description | |
|---|---|
| pcb | Name of matching hardware (D13) |
| code | Type of code contained (R=rom, B=bootloader, F=flash, U=bld update, P=UPDI factory code) |
| version | Release version (####) |
Images
YouTube
See the D13 decoder in action.

This project is intended for hobby use only and is distributed in accordance with the Apache License 2.0 agreement.
Parts
153| Qty | Value | Footprint | References |
|---|---|---|---|
| 30 | LED | LED_SMD:LED_0603_1608Metric | D10, D11, D12, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24, D25, D26 +14 |
| 26 | 4.7k | Capacitor_SMD:C_0603_1608Metric | R5, R10, R11, R12, R45, R46, R47, R48, R49, R50, R51, R52, R53, R54, R55, R56 +10 |
| 6 | 1u | Capacitor_SMD:C_0402_1005Metric | C1, C5, C6, C7, C13, C21 |
| 5 | R | Resistor_SMD:R_0402_1005Metric | R38, R62, R65, R66, R74 |
| 4 | 100k | Resistor_SMD:R_0603_1608Metric | R27, R29, R30, R32 |
| 4 | 1k | Capacitor_SMD:C_0603_1608Metric | R18, R19, R20, R21 |
| 4 | 74HC595 | _Local:74HC595BQ115 | U2, U3, U4, U5 |
| 4 | TestPoint | TestPoint:TestPoint_Pad_1.5x1.5mm | TP1, TP2, TP3, TP4 |
| 3 | 220k | Resistor_SMD:R_0402_1005Metric | R35, R39, R43 |
| 3 | 9.1k | Resistor_SMD:R_0402_1005Metric | R36, R40, R44 |
| 3 | D_Schottky | Diode_SMD:D_0603_1608Metric | D2, D3, D4 |
| 2 | 100k | Capacitor_SMD:C_0603_1608Metric | R22, R23 |
| 2 | 100nF | Capacitor_SMD:C_0603_1608Metric | C16, C20 |
| 2 | 100pF | Capacitor_SMD:C_0603_1608Metric | C15, C19 |
| 2 | 10k | Resistor_SMD:R_0402_1005Metric | R15, R75 |
| 2 | 120k | Resistor_SMD:R_0603_1608Metric | R28, R31 |
| 2 | 150uH | Inductor_THT:L_Axial_L5.0mm_D3.6mm_P10.00mm_Horizontal_Murata_BL01RN1A2A2 | L2, L3 |
| 2 | 22 | Capacitor_SMD:C_0402_1005Metric | R2, R16 |
| 2 | 22pF | Capacitor_SMD:C_0603_1608Metric | C9, C17 |
| 2 | 330k | Resistor_SMD:R_0402_1005Metric | R24, R26 |
| 2 | 470 | Resistor_SMD:R_0603_1608Metric | R14, R71 |
| 2 | 47k | Resistor_SMD:R_0402_1005Metric | R37, R73 |
| 2 | 47pF | Capacitor_SMD:C_0603_1608Metric | C14, C18 |
| 2 | 6.8k | Capacitor_SMD:C_0402_1005Metric | R3, R77 |
| 2 | BC847BDW1 | Package_TO_SOT_SMD:SOT-363_SC-70-6 | Q1, Q3 |
| 2 | Conn_01x01 | TestPoint:TestPoint_THTPad_D4.0mm_Drill2.0mm | J2, J3 |
| 2 | MAX40203AUK | Package_TO_SOT_SMD:SOT-23-5 | U10, U11 |
| 2 | TestPoint | TestPoint:TestPoint_Pad_4.0x4.0mm | TP5, TP6 |
| 1 | 1.69M | Resistor_SMD:R_0402_1005Metric | R69 |
| 1 | 100 | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | 100k | Resistor_SMD:R_0402_1005Metric | R72 |
| 1 | 10k | Capacitor_SMD:C_0402_1005Metric | R4 |
| 1 | 1M | Resistor_SMD:R_0402_1005Metric | R70 |
| 1 | 1k | Resistor_SMD:R_0402_1005Metric | R61 |
| 1 | 220uF/4V | Capacitor_SMD:C_1206_3216Metric | C12 |
| 1 | 220uF/6V | Capacitor_SMD:C_1206_3216Metric | C4 |
| 1 | 22k | Resistor_SMD:R_0402_1005Metric | R25 |
| 1 | 22u/25V | Capacitor_SMD:C_1206_3216Metric | C10 |
| 1 | 3.3k | Resistor_SMD:R_0603_1608Metric | R13 |
| 1 | 4.7u | Capacitor_SMD:C_0805_2012Metric | C3 |
| 1 | 4.7u/35V | Capacitor_SMD:C_0805_2012Metric | C8 |
| 1 | 4.7uH | Inductor_SMD:L_Taiyo-Yuden_MD-4040 | L1 |
| 1 | 47k | Capacitor_SMD:C_0603_1608Metric | R17 |
| 1 | <=100uF/4V | Capacitor_SMD:C_1206_3216Metric | C2 |
| 1 | AVR-64DA48 | Package_DFN_QFN:UQFN-48-1EP_6x6mm_P0.4mm_EP4.62x4.62mm | U1 |
| 1 | BC857BDW1 | Package_TO_SOT_SMD:SOT-363_SC-70-6 | Q2 |
| 1 | BMA255 | Package_LGA:LGA-12_2x2mm_P0.5mm | IC1 |
| 1 | CDBU0245-HF | Diode_SMD:D_0603_1608Metric | D1 |
| 1 | CDBURT0530LL-HF | Diode_SMD:D_0603_1608Metric | D36 |
| 1 | LM393 | _Local:DFN-8-1EP_NG_2x2mm_Pitch0.5mm | U8 |
| 1 | MCP1640BCH | Package_TO_SOT_SMD:SOT-23-6 | U6 |
| 1 | MCP6001x-LT | Package_TO_SOT_SMD:SOT-23-5 | U9 |
| 1 | SFH2440 | OptoDevice:Osram_SMD-DIL2_4.5x4.0mm | D13 |
| 1 | ST732 | Package_TO_SOT_SMD:SOT-23-5 | U7 |
| 1 | UDPI | Connector_PinHeader_1.27mm:PinHeader_2x04_P1.27mm_Vertical | J5 |
Questions
How big is the D13 PCB?
It measures 160.8 × 12 mm and has 4 copper layers, 1.6 mm thick.
What parts does the D13 use?
153 parts, built around the AVR64DA48-E/PT, 74HC595, MAX40203AUK+T and BMA255. 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 D13 KiCad files?
From the git4dcc/RTB_D13 repository on GitHub, at the commit this page was made from: the board is D13.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the D13 design in my own project?
Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).
Similar boards
- 4 layers90.3 × 26.6 mm

- 6 layers17 × 10.9 mm

- 6 layers14 × 8 mm

- 6 layers15.2 × 9.5 mm

- 6 layers15.3 × 11.4 mm

- 4 layers50.9 × 15.5 mm

- 4 layers76 × 11 mm

- 6 layers17 × 10.9 mm
