Skip to the content
PCBKitNew board
6 layers17 × 10.9 mmD24, the printed circuit board in 3D

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

Size
17 × 10.9 mm
Copper layers
6
Thickness
0.8 mm
Parts
53
Nets
51
Pads
169
Tracks, vias
382, 61
Pours
5
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
31 May 2026
Updated
9 Jul 2026

Overview

D24 is an open-source printed circuit board by git4dcc, from the git4dcc/RTB_D24 repository on GitHub, published under the Apache-2.0 licence. It is a 6-layer board of 17 × 10.9 mm with 53 parts on 51 nets, routed with 382 tracks and 61 vias.

It is built around the AVR64DA32-E/PT, PMZB200UNEYL and BAS3007ARPPE6327HTSA1, with the BC847BDW1 and BC857BDW1 among its other parts. Its parts include 25 resistors, 9 connectors, 6 capacitors, 6 transistors and 3 ICs.

Main components

5

README

README.md

RTB_D24

Real-time Bus (RTB) Kicad_Libs Apache License 2.0

My Homebrew D24 is a single-sided DIY mobile decoder featuring a NEM-651 connector. While it shares the exact same dimensions as the D16, it offers additional AUX channels and supports WS28xx LED connections. It is fully designed for integration into the RTB digital control ecosystem.

See also
User Guides

The decoder has the following features,

  • NEM-651 connector
  • 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
  • Single sided
  • Dimension: 17 x 11 mm
  • 7-20V track voltage
  • heartbeat LED
  • adjustable max motor current (default 300mA)
  • adjustable max AUX current (default 500mA)
  • over temp protection
  • Function output: LV/LR/AUX1/AUX2 (dimmable, 1.4kHz) open drain
  • Function output: AUX3/AUX4/AUX5/AUX6/AUX7 logic level (5V)
    • AUX3/AUX4 can be configured to drive WS28xx chips
  • optional external buffer capacitor (max. 1500uF)
  • <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 0402 parts. Reflow soldering is recommended, handsoldering will be difficult.

Note: The '5V zone' silk text can be misleading as the above test point is not 5V source but rather the UPDI interface.

PCB

  • 6-layer PCB, FR4, 17 x 11 x 0.8mm (single sided)
  • CPU: AVR64DA32
  • Motor bridge: DRV8231
  • Connector: NEM-651

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: D16F0001.hex

Description
pcbName of matching hardware (D24)
codeType of code contained (R=rom, B=bootloader, F=flash, U=bld update, P=UPDI factory code)
versionRelease version (####)

Firmware files

Images

topbottom

YouTube

Some YouTubes to see the D24 decoder in action.

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

Parts

53
QtyValueFootprintReferences
610kResistor_SMD:R_0402_1005MetricR11, R13, R15, R18, R19, R20
5Conn_01x01RTB:Solder_Pad_1.0x1.0mmJ1, J3, J4, J5, J6
433kResistor_SMD:R_0402_1005MetricR7, R8, R10, R12
44.7kResistor_SMD:R_0402_1005MetricR1, R4, R5, R6
4PMZB200UNEYLRTB:PMZB200UNEYLQ2, Q3, Q5, Q6
310u/6.3VCapacitor_SMD:C_0402_1005MetricC1, C3, C13
3220kResistor_SMD:R_0402_1005MetricR17, R34, R35
22.2Resistor_SMD:R_0402_1005MetricR9, R22
29.1kResistor_SMD:R_0402_1005MetricR36, R37
1100Resistor_SMD:R_0603_1608MetricR14
11kResistor_SMD:R_0402_1005MetricR21
11uCapacitor_SMD:C_0402_1005MetricC6
11u/35VCapacitor_SMD:C_0603_1608MetricC4
122Resistor_SMD:R_0402_1005MetricR3
122u/25VCapacitor_SMD:C_0805_2012MetricC7
13.3kResistor_SMD:R_0402_1005MetricR2
1AVR-64DA32Package_DFN_QFN:VQFN-32-1EP_5x5mm_P0.5mm_EP3.1x3.1mmU1
1BAS3007ARPPE6327HTSA1RTB:BF998215D3
1BC847BDW1Package_TO_SOT_SMD:SOT-666Q1
1BC857BDW1Package_TO_SOT_SMD:SOT-666Q4
1DRV8231ADSGRRTB:SON50P200X200X80-9NIC1
1LED pinkLED_SMD:LED_0402_1005MetricD1
1NCP730BMT500TBGPackage_SON:WSON-6-1EP_2x2mm_P0.65mm_EP1x1.6mm_ThermalViasIC2
1NEM651Connector_PinHeader_1.27mm:PinHeader_1x08_P1.27mm_HorizontalJ2
1NSR20F40NXT5GRTB:NSR20F40NXT5GD2
1TestPointTestPoint:TestPoint_Pad_D1.0mmTP1
1WS28xx GNDRTB:Solder_Pad_1.0x1.0mmJ8
1WS28xx dataRTB:Solder_Pad_1.0x1.0mmJ7
1WS28xx powerRTB:Solder_Pad_1.0x1.0mmJ9

Questions

How big is the D24 PCB?

It measures 17 × 10.9 mm and has 6 copper layers, 0.8 mm thick.

What parts does the D24 use?

53 parts, built around the AVR64DA32-E/PT, PMZB200UNEYL, BAS3007ARPPE6327HTSA1 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 D24 KiCad files?

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

Can I use the D24 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 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.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 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
  • 4 layers17.3 × 15.3 mmEngine, the printed circuit board in 3D

    Engine

    Lambosaurus/Train-Controller-HW

    39 parts