Skip to the content
PCBKitNew board
2 layers15.5 × 8 mmSwitchdecoder3, the printed circuit board in 3D

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

5

README

README.md

SwitchDecoder3

PCB Preview

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
QtyValueFootprintReferences
4102footprint:R_1608R3, R4, R7, R8
4104footprint:R_1608R1, R2, R17, R18
4PADfootprint:PAD_2.2x0.8_SMDP1, P2, P3, P4
4SS2040FLfootprint:PMDUD1, D2, D3, D4
2104footprint:C_1005C1, C5
2331footprint:R_1608R5, R6
2DMG6601LVTfootprint:SOT-23-6Q1, Q2
1182footprint:C_1005C7
1226footprint:C_1608C3
12SC4116footprint:SC-70_v2Q5
1472footprint:R_1608R12
1ATtiny406-Mfootprint:VQFN-20-1EP_3x3mm_P0.4mm_EP1.7x1.7mmU2
1PMBT3904VSfootprint:SOT-666-nomarkQ3
1PROGfootprint:PAD_PROG_2PIN_HOLE0.7P7
1PROG_PADfootprint:PAD_1.0x1.8_SMDP11
1Testfootprint:Test_4pin_2mmP10
1UDZV5.1Bfootprint:UMD2D5

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

    Switchdecoder3

    ytsurui/SwitchDecoder3

    NMRA DCC Compatible Accessory Decoder

    1,296 parts1MIT

Similar boards

  • 4 layers140.2 × 47.5 mmUSB VSense gamma, the printed circuit board in 3D

    USB VSense gamma

    Meticulous-Technologies/USB_VSense

    87 parts3
  • 2 layers48 × 48 mmPrrpls406-panel, the printed circuit board in 3D

    Prrpls406-panel

    jimktrains/prrpls

    PRR Position Light Signal for N-Scale

    315 partsAGPL-3.0
  • 2 layers80 × 90 mmRobot controller, the printed circuit board in 3D

    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
  • 6 layers50 × 33 mmCastleBox Pro, the printed circuit board in 3D

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

    FW16 EPD

    arthomnix/FW16_EPD

    Touchscreen e-paper input module for Framework Laptop 16

    67 parts44CC-BY-SA-4.0
  • 4 layers178 × 99 mmFreeDSP OCTAVIA, the printed circuit board in 3D

    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