Skip to the content
PCBKitNew board
4 layers160.8 × 12 mmD13, the printed circuit board in 3D

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

10

README

README.md

RTB_D13

Real-time Bus (RTB) Kicad_Libs Apache License 2.0

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
User Guides

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

Schematic | Layout | Gerber

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
pcbName of matching hardware (D13)
codeType of code contained (R=rom, B=bootloader, F=flash, U=bld update, P=UPDI factory code)
versionRelease version (####)

Firmware files

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
QtyValueFootprintReferences
30LEDLED_SMD:LED_0603_1608MetricD10, D11, D12, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24, D25, D26 +14
264.7kCapacitor_SMD:C_0603_1608MetricR5, R10, R11, R12, R45, R46, R47, R48, R49, R50, R51, R52, R53, R54, R55, R56 +10
61uCapacitor_SMD:C_0402_1005MetricC1, C5, C6, C7, C13, C21
5RResistor_SMD:R_0402_1005MetricR38, R62, R65, R66, R74
4100kResistor_SMD:R_0603_1608MetricR27, R29, R30, R32
41kCapacitor_SMD:C_0603_1608MetricR18, R19, R20, R21
474HC595_Local:74HC595BQ115U2, U3, U4, U5
4TestPointTestPoint:TestPoint_Pad_1.5x1.5mmTP1, TP2, TP3, TP4
3220kResistor_SMD:R_0402_1005MetricR35, R39, R43
39.1kResistor_SMD:R_0402_1005MetricR36, R40, R44
3D_SchottkyDiode_SMD:D_0603_1608MetricD2, D3, D4
2100kCapacitor_SMD:C_0603_1608MetricR22, R23
2100nFCapacitor_SMD:C_0603_1608MetricC16, C20
2100pFCapacitor_SMD:C_0603_1608MetricC15, C19
210kResistor_SMD:R_0402_1005MetricR15, R75
2120kResistor_SMD:R_0603_1608MetricR28, R31
2150uHInductor_THT:L_Axial_L5.0mm_D3.6mm_P10.00mm_Horizontal_Murata_BL01RN1A2A2L2, L3
222Capacitor_SMD:C_0402_1005MetricR2, R16
222pFCapacitor_SMD:C_0603_1608MetricC9, C17
2330kResistor_SMD:R_0402_1005MetricR24, R26
2470Resistor_SMD:R_0603_1608MetricR14, R71
247kResistor_SMD:R_0402_1005MetricR37, R73
247pFCapacitor_SMD:C_0603_1608MetricC14, C18
26.8kCapacitor_SMD:C_0402_1005MetricR3, R77
2BC847BDW1Package_TO_SOT_SMD:SOT-363_SC-70-6Q1, Q3
2Conn_01x01TestPoint:TestPoint_THTPad_D4.0mm_Drill2.0mmJ2, J3
2MAX40203AUKPackage_TO_SOT_SMD:SOT-23-5U10, U11
2TestPointTestPoint:TestPoint_Pad_4.0x4.0mmTP5, TP6
11.69MResistor_SMD:R_0402_1005MetricR69
1100Resistor_SMD:R_0603_1608MetricR1
1100kResistor_SMD:R_0402_1005MetricR72
110kCapacitor_SMD:C_0402_1005MetricR4
11MResistor_SMD:R_0402_1005MetricR70
11kResistor_SMD:R_0402_1005MetricR61
1220uF/4VCapacitor_SMD:C_1206_3216MetricC12
1220uF/6VCapacitor_SMD:C_1206_3216MetricC4
122kResistor_SMD:R_0402_1005MetricR25
122u/25VCapacitor_SMD:C_1206_3216MetricC10
13.3kResistor_SMD:R_0603_1608MetricR13
14.7uCapacitor_SMD:C_0805_2012MetricC3
14.7u/35VCapacitor_SMD:C_0805_2012MetricC8
14.7uHInductor_SMD:L_Taiyo-Yuden_MD-4040L1
147kCapacitor_SMD:C_0603_1608MetricR17
1<=100uF/4VCapacitor_SMD:C_1206_3216MetricC2
1AVR-64DA48Package_DFN_QFN:UQFN-48-1EP_6x6mm_P0.4mm_EP4.62x4.62mmU1
1BC857BDW1Package_TO_SOT_SMD:SOT-363_SC-70-6Q2
1BMA255Package_LGA:LGA-12_2x2mm_P0.5mmIC1
1CDBU0245-HFDiode_SMD:D_0603_1608MetricD1
1CDBURT0530LL-HFDiode_SMD:D_0603_1608MetricD36
1LM393_Local:DFN-8-1EP_NG_2x2mm_Pitch0.5mmU8
1MCP1640BCHPackage_TO_SOT_SMD:SOT-23-6U6
1MCP6001x-LTPackage_TO_SOT_SMD:SOT-23-5U9
1SFH2440OptoDevice:Osram_SMD-DIL2_4.5x4.0mmD13
1ST732Package_TO_SOT_SMD:SOT-23-5U7
1UDPIConnector_PinHeader_1.27mm:PinHeader_2x04_P1.27mm_VerticalJ5

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 mmC12, the printed circuit board in 3D

    C12

    git4dcc/RTB_C12

    DCC Railcom booster

    95 parts1Apache-2.0
  • 6 layers17 × 10.9 mmD16, the printed circuit board in 3D

    D16

    git4dcc/RTB_D16

    DCC / Railcom decoder (NEM651, single sided)

    43 parts2Apache-2.0
  • 6 layers14 × 8 mmD20, the printed circuit board in 3D

    D20

    git4dcc/RTB_D20

    DCC / Railcom decoder (NEM651, double sided)

    51 parts1Apache-2.0
  • 6 layers15.2 × 9.5 mmD21, the printed circuit board in 3D

    D21

    git4dcc/RTB_D21

    DCC / Railcom decoder (Next18, double sided)

    48 parts1Apache-2.0
  • 6 layers15.3 × 11.4 mmD22, the printed circuit board in 3D

    D22

    git4dcc/RTB_D22

    DCC / Railcom decoder (Plux16, double sided)

    48 parts1Apache-2.0
  • 4 layers50.9 × 15.5 mmD12, the printed circuit board in 3D

    D12

    git4dcc/RTB_D12

    DCC Railcom Decoder FLM V100

    72 partsApache-2.0
  • 4 layers76 × 11 mmD15, the printed circuit board in 3D

    D15

    git4dcc/RTB_D15

    Minitrix V160 N-Scale Locomotive Decoder (DCC/RailCom)

    83 partsApache-2.0
  • 6 layers17 × 10.9 mmD24, the printed circuit board in 3D

    D24

    git4dcc/RTB_D24

    DCC / Railcom decoder (NEM651, single sided), WS28xx

    53 partsApache-2.0