Skip to the content
PCBKitNew board
4 layers50.9 × 15.5 mmD12, the printed circuit board in 3D

DCC Railcom Decoder FLM V100

Size
50.9 × 15.5 mm
Copper layers
4
Thickness
0.8 mm
Parts
72
Nets
53
Pads
185
Tracks, vias
570, 73
Pours
3
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
24 Oct 2023
Updated
29 Jun 2026

Overview

D12 is an open-source printed circuit board by git4dcc, from the git4dcc/RTB_D12 repository on GitHub, published under the Apache-2.0 licence. It is a 4-layer board of 50.9 × 15.5 mm with 72 parts on 53 nets, routed with 570 tracks and 73 vias.

It is built around the AVR64DA32-E/PT, SM5819L2-TP and PMZB200UNEYL, with the BC847BDW1 and BC857BDW1 among its other parts. Its parts include 26 resistors, 21 connectors, 9 capacitors, 9 diodes and 4 transistors.

Main components

5

README

README.md

RTB_D12

Real-time Bus (RTB) Kicad_Libs Apache License 2.0

My Homebrew D12 decoder is a drop in replacement for the original analog FLM (#7230) PCB. The decoder is designed to integrate into the RTB digital control infrastructure.

See also
User Guides

Decoder features

  • Fleischmann V100 PCB decoder
  • DCC
    • DCC-A automatic logon
    • DCC-R protocol extension
    • Service Mode Programming
  • Railcom
    • Channel 1/2
    • POM, xPOM
    • DYN: Speed, QoS, Track-voltage, Motor-current, AUX-current, Temp, Distance travelled
  • 7-18V track voltage
  • heartbeat LED
  • adjustable max motor current (default 250mA)
  • adjustable max AUX current (default 250mA)
  • over temp protection
  • Function output: LF/LR (dimmable, 1.4kHz), LED on PCB
  • Function output: AUX1/AUX2 (dimmable, 1.4kHz) logic level (3.3V)
  • Function output: AUX3/AUX4 open drain
  • Function output: AUX5 cabin light, LED on PCB
  • buffer capacitor 2x330uF
  • <10mA idle power consumption
  • Firmware update over main tracks via DCC-R protocol

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, 0.8mm
  • CPU: AVR64DA32
  • Motor bridge: DRV8231
  • Inrush limiter: R/D combination

Kicad

Schematic | Layout

The BOM is tailored to JLCPCB part#.

Dependency

:yellow_circle: Requires my Kicad project library RTB_SamacSys in the same directory tree.

Firmware

Filename structure: { pcb }{ code }{ version }.hex

Example: D12F0001.hex

Description
pcbName of matching hardware (D12)
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 D12 decoder in action.

This project is intended for hobby use only and is distributed in accordance with the Apache License 2.0 agreement.

Parts

72
QtyValueFootprintReferences
7SM5819L2-TPRTB:SM5819L2TPD1, D2, D4, D6, D7, D8, D9
6Conn_01x01TestPoint:TestPoint_Pad_1.0x1.0mmJ1, J5, J8, J9, J20, J21
533kResistor_SMD:R_0402_1005MetricR5, R6, R10, R12, R21
410kResistor_SMD:R_0402_1005MetricR15, R18, R19, R20
42.2kResistor_SMD:R_0402_1005MetricR2, R4, R24, R25
4Conn_01x01TestPoint:TestPoint_THTPad_1.5x1.5mm_Drill0.7mmJ2, J3, J4, J6
3220kResistor_SMD:R_0402_1005MetricR9, R34, R35
210u/6.3VCapacitor_SMD:C_0402_1005MetricC11, C13
212kResistor_SMD:R_0402_1005MetricR11, R13
23.3kResistor_SMD:R_0402_1005MetricR22, R23
2330u/20VCapacitor_Tantalum_SMD:CP_EIA-7361-38_AVX-VC2, C3
29.1kResistor_SMD:R_0402_1005MetricR36, R37
2Conn_01x01RTB:Solder 0.8 x 0.8J18, J19
2LEDLED_SMD:LED_0402_1005MetricD3, D5
2PMZB200UNEYLRTB:PMZB200UNEYLQ3, Q4
2VtrkRTB:Solder 0.8 x 0.8J12, J14
11Resistor_SMD:R_0603_1608MetricR7
1100nCapacitor_SMD:C_0402_1005MetricC5
1100n/50VCapacitor_SMD:C_0402_1005MetricC1
11kResistor_SMD:R_0402_1005MetricR1
11uCapacitor_SMD:C_0402_1005MetricC22
122Resistor_SMD:R_0402_1005MetricR3
14.7u/25VCapacitor_SMD:C_0402_1005MetricC4
147uF/6.3VCapacitor_SMD:C_0805_2012MetricC12
168Resistor_SMD:R_0402_1005MetricR8
1AUX3.odRTB:Solder 0.8 x 0.8J15
1AUX4.odRTB:Solder 0.8 x 0.8J13
1AVR-64DA32Package_DFN_QFN:VQFN-32-1EP_5x5mm_P0.5mm_EP3.1x3.1mmU1
1Aux1RTB:Solder 0.8 x 0.8J16
1Aux2RTB:Solder 0.8 x 0.8J17
1BC847BDW1Package_TO_SOT_SMD:SOT-666Q2
1BC857BDW1Package_TO_SOT_SMD:SOT-666Q1
1DRV8231ADSGRRTB:SON50P200X200X80-9NIC1
1Motor ARTB:Solder 2.0 x 0.8J10
1Motor BRTB:Solder 2.0 x 0.8J11
1NCP730BMT500TBGPackage_SON:WSON-6-1EP_2x2mm_P0.65mm_EP1x1.6mm_ThermalViasIC2
1UDPIRTB:Solder 0.8 x 0.8J7

Questions

How big is the D12 PCB?

It measures 50.9 × 15.5 mm and has 4 copper layers, 0.8 mm thick.

What parts does the D12 use?

72 parts, built around the AVR64DA32-E/PT, SM5819L2-TP, PMZB200UNEYL and BC847BDW1. 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 D12 KiCad files?

From the git4dcc/RTB_D12 repository on GitHub, at the commit this page was made from: the board is D12.kicad_pcb and its schematic D12.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the D12 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

  • 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 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
  • 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
  • 4 layers160.8 × 12 mmD13, the printed circuit board in 3D

    D13

    git4dcc/RTB_D13

    DCC/RailCom Function Decoder for Minitrix Passenger Cars

    153 partsApache-2.0