

Switchdecoder3
NMRA DCC Compatible Accessory Decoder
- Size
- 15.5 × 8 mm
- Copper layers
- 2
- Thickness
- 0.6 mm
- Parts
- 32
- Nets
- 32
- Pads
- 97
- Tracks, vias
- 221, 13
- Pours
- 22
- Routed
- Yes
- KiCad
- KiCad 6 (file 20211014)
- Created
- 6 Nov 2022
- Updated
- 1 Feb 2026
Overview
Switchdecoder3 is an open-source printed circuit board by ytsurui, from the ytsurui/SwitchDecoder3 repository on GitHub, published under the MIT licence. It is a 2-layer board of 15.5 × 8 mm with 32 parts on 32 nets, routed with 221 tracks and 13 vias.
It is built around the ATTINY406-MN, SS2040FL and DMG6601LVT, with the 2SC4116 and PMBT3904VS among its other parts. Its parts include 11 resistors, 7 connectors, 5 diodes, 4 capacitors and 4 transistors. It belongs with the AVR (ATmega, ATtiny) boards of this library.
Main components
5ATTINY406-MN
VQFN-20(3x3)VQFN-20(3x3) Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)SS2040FL
SOD-123FLSOD-123FL Schottky Diodes ROHSFUXINSEMISchottky DiodesDMG6601LVT
SOT-26MOSFETsTECH PUBLIC2SC4116
SOT-323Bipolar (BJT)Jiangsu Changjing Electronics Technology (CJ)PMBT3904VS
SOT-666-6-55℃~+150℃ 100 2 NPN 200mA 200mV 240mW 300MHz 40V 50nA 6V NPN SOT-666-6 Bipolar (BJT) ROHSNexperiaBipolar (BJT)
README
README.mdSwitchDecoder3

NMRA DCC規格のアクセサリパケットを受信して、直流二線式のポイント線路を動作させることができるアクセサリデコーダです。
本リポジトリには、基板設計データとファームウェア、動作確認用ファームウェアが含まれています。
開発環境
- KiCad 6.0.8
- Microchip Studio Version 7.0.2542
主要スペック
- 組み立て後の基板サイズ: 15.5mm x 8.0mm
- 推奨最大電圧: 16V
- 出力電流: 最大2A (ピーク3A)
- マイコン書き込み端子を用意し、実装後のプログラム書き換えも可能
UPDI 2pin Interface (GND / UPDI)
通常ファームウェア (Firmware)
設定したアクセサリアドレスに応じたDCCパケットを受信すると、ポイント線路を動作させます。
通電開始時にPROG端子に取り付けた配線をどちらかの線路に接触させることで、プログラムモードで起動します。
プログラムモードで起動している間に、同一のアクセサリアドレスに対する操作を連続して3回以上送信することで、設定されているアクセサリアドレスを送信したものに変更することができます。
また、CV値の書き込みにより、通電時間や通電開始までの遅延時間など、細かい動作の調整や、設定のリセットも可能です。
動作確認用ファームウェア (Firm_Test)
アクセサリアドレス「1」固定でDCCパケットを受信して動作できる機能と、PROG端子を線路に接触させると約1秒おきにポイント線路の転換動作を行うようにプログラムを作成してあります。
このファームウェアを書き込むことで、SwitchDecoder3基板のDCC入力、PROG端子、モータードライバ回路のすべてをテストすることができます。
各種ドキュメント
Parts
32| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 102 | footprint:R_1608 | R3, R4, R7, R8 |
| 4 | 104 | footprint:R_1608 | R1, R2, R17, R18 |
| 4 | PAD | footprint:PAD_2.2x0.8_SMD | P1, P2, P3, P4 |
| 4 | SS2040FL | footprint:PMDU | D1, D2, D3, D4 |
| 2 | 104 | footprint:C_1005 | C1, C5 |
| 2 | 331 | footprint:R_1608 | R5, R6 |
| 2 | DMG6601LVT | footprint:SOT-23-6 | Q1, Q2 |
| 1 | 182 | footprint:C_1005 | C7 |
| 1 | 226 | footprint:C_1608 | C3 |
| 1 | 2SC4116 | footprint:SC-70_v2 | Q5 |
| 1 | 472 | footprint:R_1608 | R12 |
| 1 | ATtiny406-M | footprint:VQFN-20-1EP_3x3mm_P0.4mm_EP1.7x1.7mm | U2 |
| 1 | PMBT3904VS | footprint:SOT-666-nomark | Q3 |
| 1 | PROG | footprint:PAD_PROG_2PIN_HOLE0.7 | P7 |
| 1 | PROG_PAD | footprint:PAD_1.0x1.8_SMD | P11 |
| 1 | Test | footprint:Test_4pin_2mm | P10 |
| 1 | UDZV5.1B | footprint:UMD2 | D5 |
Questions
How big is the Switchdecoder3 PCB?
It measures 15.5 × 8 mm and has 2 copper layers, 0.6 mm thick.
What parts does the Switchdecoder3 use?
32 parts, built around the ATTINY406-MN, SS2040FL, DMG6601LVT and 2SC4116. 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 Switchdecoder3 KiCad files?
From the ytsurui/SwitchDecoder3 repository on GitHub, at the commit this page was made from: the board is Board/KiCad/switchdecoder3.kicad_pcb and its schematic Board/KiCad/switchdecoder3.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Switchdecoder3 design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).
More from ytsurui/SwitchDecoder3
1- 2 layers87.5 × 72 mm

Similar boards
- 4 layers140.2 × 47.5 mm

- 2 layers48 × 48 mm

- 2 layers80 × 90 mm

Robot controller
Moryu-Io/Roboken-FMSKF-robot-controller
docker pull microros/microrosstaticlibrarybuilder:foxy docker run -it --rm -v $(pwd):/project --env MICROROSLIBRARYFOLDER=extras microros/microrosstaticlibrarybuilder:foxy -p teensy4 ※2022/05/08…
102 parts - 2 layers94.5 × 92.5 mm

Funcdecoder tomix pcb 0773 0507 rev0 panelize 94 5mm 92 5mm
ytsurui/dcc-funcdecoder-pcb-t0507d
NMRA DCC Decoder Circuit Diagram / PCB Design Data for TOMIX 0507/0773
735 partsMIT - 2 layers94 × 97 mm

Funcdecoder tomix pcb 8919 rev0 panelize 94mm 97mm
ytsurui/dcc-funcdecoder-pcb-t8919d
NMRA DCC Decoder Circuit Diagram / PCB Design Data for TOMIX 8919
576 partsMIT - 6 layers50 × 33 mm

CastleBox Pro
zeankundev/boards
A collection and an archive of KiCad projects I made. Contains projects from 2023 - 2024.
86 parts1 - 2 layers67.9 × 131 mm

FW16 EPD
arthomnix/FW16_EPD
Touchscreen e-paper input module for Framework Laptop 16
67 parts44CC-BY-SA-4.0 - 4 layers178 × 99 mm

FreeDSP OCTAVIA
freeDSP/freeDSP-OCTAVIA
8ch Output ADAU1452/1466 DSP Board with Analog/COAX/OPT/USB/Raspberry-Pi Input
529 parts19CC-BY-SA-4.0