Skip to the content
PCBKitNew board
4 layers22.9 × 15.8 mmLokdecoder TI altQuartz, the printed circuit board in 3D

Lokdecoder TI altQuartz

gyuritill/DCC-Lokdecoder19

DCC locomotive decoder

Size
22.9 × 15.8 mm
Copper layers
4
Thickness
1.6 mm
Parts
63
Nets
51
Pads
171
Tracks, vias
362, 30
Pours
4
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
12 Feb 2021
Updated
17 Feb 2021

Overview

Lokdecoder TI altQuartz is an open-source printed circuit board by gyuritill, from the gyuritill/DCC-Lokdecoder repository on GitHub, published under the CC0-1.0 licence. It is a 4-layer board of 22.9 × 15.8 mm with 63 parts on 51 nets, routed with 362 tracks and 30 vias.

It is built around the DRV8872DDAR and MIC5205-5.0YM5-TR. Its parts include 10 capacitors, 10 resistors, 8 diodes, 3 ICs and 1 crystal. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

DCC-Lokdecoder

Description

DCC multifunction decoder for H0 locomotives

Features

  • 1 motor H-bridge output
    • 3.6 A peak current
    • PWM frequency configurable (1-40 kHz)
    • overcurrent and temperature protected
  • 10 function outputs
    • 115 mA per output
    • F0f, F0r, AUX1 and AUX2 are dimmable todo
    • mappable to F0-F12 function keys
  • DCC asymmetry can be detected (for automatic brake control) todo

Hardware

  • 4-layer PCB esigned in KiCAD
  • fairly standard components (available from Digi-Key, Farnell, Mouser, etc...)
  • hand solderable (I did it too)
  • 4 debug LEDs (red, yellow, green and blue)
topbottom
top sidebottom side

Firmware

  • Arduino compatible programming (behaves like an UNO)
  • DCC decoding by NmraDcc library

JMRI integration

basicmotorbasic_speedspeed_tablefunction_mapadvanced
BasicMotorBasic speed controlSpeed tableFunction mapAdvanced

Install guide

  1. Get the PCB (e.g. JLCPCB) and the components (e.g. mouser, digikey)
  2. Solder the components. The SOIC with exposed pad is a bit tricky, it can be soldered from the other side with a big tip and a lot of flux.
  3. Install the Arduino bootloader using the pads 5V, GND, SCK, MISO, MOSI, RST and an Arduino. Arduino as ISP
  4. Uncomment the line #define RESET_FACTORY_DEFAULTS to fill the EEPROM with the default CV values
  5. Upload the code using the pads 5V, GND, RX, TX, DTR and a USB TTL UART cable like this
  6. Re-comment the line #define RESET_FACTORY_DEFAULTS to avoid resetting to factory defaults every time.
  7. Upload the code again.
  8. Add the decoder XML file to JMRI. In DecoderPro select "File-> Import Decoder File..." and browse to the decoder XML. It will take some time, then adds the decoder definition to the database.
  9. Connect the T1 and T2 pads to the programming track of your DCC system.
  10. Add new locomotive with the "New Loco" button and then "Read type from decoder". It should detect the correct type: add
  11. If everything is fine, you can install the decoder into your locomotive!

Pinout

PadFunction
M1Motor 1
M2Motor 2
T1Track 1
T2Track 2
V+Positive common for function outputs (keep-alive capacitor positive)
F0fF0 function output forward (open drain)
F0rF0 function output reverse (open drain)
1-8AUX function output n (open drain)
5Vinternal microcontroller +5V supply
GNDground (keep alive capacitor negative)
SCKISP programming clock (connect to ISP SCK)
MISOISP programming read (connect to ISP MISO)
MOSIISP programming write (connect to ISP MOSI)
RSTISP programming reset (connect to ISP reset output)
RXserial programming receive (connect to TTL UART TX)
TXserial programming transmit (connect to TTL UART RX)
DTRserial programming reset through a 100 nF capacitor (connect to TTL UART DTR)

Todo list

  • CV15, CV16 decoder locking
  • CV65 kick start
  • CV67-94 speed table
  • CV27 automatic brake control
  • function output dimming
  • motor fault check

Parts

63
QtyValueFootprintReferences
52N7002DWCTPackage_TO_SOT_SMD:SOT-363_SC-70-6T1, T2, T3, T4, T5
4100nFCapacitor_SMD:C_0603_1608MetricC1, C2, C5, C10
41kResistor_SMD:R_0603_1608MetricR7, R9, R10, R11
327kResistor_SMD:R_0603_1608MetricR2, R3, R4
34.7kResistor_SMD:R_0603_1608MetricR1, R5, R6
2+VTestPoint:TestPoint_Pad_1.5x1.5mmTP6, TP17
210pFCapacitor_SMD:C_0603_1608MetricC8, C9
24.7uFCapacitor_SMD:C_0603_1608MetricC6, C7
2NSR0530HT1GDiode_SMD:D_SOD-323D3, D4
11TestPoint:TestPoint_Pad_1.5x1.5mmTP9
116MmyCrystal:Crystal_SMD_2520-2Pin_2.5x2.0mm_HandSolderingX1
12TestPoint:TestPoint_Pad_1.5x1.5mmTP10
12.2uFCapacitor_SMD:C_0805_2012MetricC4
13TestPoint:TestPoint_Pad_1.5x1.5mmTP11
14TestPoint:TestPoint_Pad_1.5x1.5mmTP12
1470pFCapacitor_SMD:C_0603_1608MetricC3
15TestPoint:TestPoint_Pad_1.5x1.5mmTP13
15VTestPoint:TestPoint_Pad_1.0x1.0mmTP22
16TestPoint:TestPoint_Pad_1.5x1.5mmTP14
17TestPoint:TestPoint_Pad_1.5x1.5mmTP15
18TestPoint:TestPoint_Pad_1.5x1.5mmTP16
1ATMEGA328P-AURPackage_QFP:TQFP-32_7x7mm_P0.8mmIC2
1Bl_LEDLED_SMD:LED_0603_1608MetricD8
1DRV8872DDARPackage_SO:Texas_HTSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.95x4.9mm_Mask2.4x3.1mm_ThermalViasIC3
1DTRTestPoint:TestPoint_Pad_1.0x1.0mmTP25
1D_Bridge_+-AAPackage_TO_SOT_SMD:TO-269AAD1
1F0fTestPoint:TestPoint_Pad_1.5x1.5mmTP7
1F0rTestPoint:TestPoint_Pad_1.5x1.5mmTP8
1GNDTestPoint:TestPoint_Pad_1.5x1.5mmTP5
1GNDTestPoint:TestPoint_Pad_1.0x1.0mmTP26
1Gr_LEDLED_SMD:LED_0603_1608MetricD6
1M1TestPoint:TestPoint_Pad_1.5x1.5mmTP1
1M2TestPoint:TestPoint_Pad_1.5x1.5mmTP2
1MIC5205-5.0YM5-TRPackage_TO_SOT_SMD:SOT-23-5IC1
1MISOTestPoint:TestPoint_Pad_1.0x1.0mmTP20
1MM3Z4V7ST1GDiode_SMD:D_SOD-323D2
1MOSITestPoint:TestPoint_Pad_1.0x1.0mmTP21
1RESETTestPoint:TestPoint_Pad_1.0x1.0mmTP18
1RXTestPoint:TestPoint_Pad_1.0x1.0mmTP23
1Rd_LEDLED_SMD:LED_0603_1608MetricD7
1SCKTestPoint:TestPoint_Pad_1.0x1.0mmTP19
1T1TestPoint:TestPoint_Pad_1.5x1.5mmTP3
1T2TestPoint:TestPoint_Pad_1.5x1.5mmTP4
1TXTestPoint:TestPoint_Pad_1.0x1.0mmTP24
1Ye_LEDLED_SMD:LED_0603_1608MetricD5

Questions

How big is the Lokdecoder TI altQuartz PCB?

It measures 22.9 × 15.8 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Lokdecoder TI altQuartz use?

63 parts, built around the DRV8872DDAR and MIC5205-5.0YM5-TR. 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 Lokdecoder TI altQuartz KiCad files?

From the gyuritill/DCC-Lokdecoder repository on GitHub, at the commit this page was made from: the board is KiCAD_project/Lokdecoder_TI_altQuartz/Lokdecoder_TI_altQuartz.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Lokdecoder TI altQuartz design in my own project?

Its repository publishes it under the CC0-1.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

  • 2 layers120 × 110 mmLineFollower V2, the printed circuit board in 3D

    LineFollower V2

    degesz/LineFollower_PCBs

    146 parts1MIT
  • 4 layers27 × 31.5 mmAmp macom vga, the printed circuit board in 3D

    Amp macom vga

    loxodes/vna

    Under development open hardware microwave vector network analyzer

    63 parts205
  • 4 layers71 × 10 mm001 dot flipper, the printed circuit board in 3D

    001 dot flipper

    pierre-muth/fast-flipdot

    Driving a flipdot matrix differently. All dots simultaneously.

    63 parts145GPL-3.0
  • 4 layers68.1 × 66 mmAmbient, the printed circuit board in 3D

    Ambient

    lab11/signpost

    Exploring what happens when you put computers on sign posts.

    63 parts97Apache-2.0
  • 4 layers40 × 40 mmLocus, the printed circuit board in 3D

    Locus

    Nieko27/Frame-Workshop

    A repo for all things steam frame hardware.

    63 parts93CERN-OHL-S-2.0
  • 4 layers60.2 × 20.8 mmPhaseLatchMini, the printed circuit board in 3D

    PhaseLatchMini

    AndersBNielsen/PhaseLatchMini

    High-rate continuous streaming of interleaved dual ADC (I/Q) samples over USB Full‑Speed (FS) using only the built‑in CDC class on an STM32F103C8 ("Blue Pill" style) board.

    63 parts72
  • 4 layers54 × 34 mmNeurband main, the printed circuit board in 3D

    Neurband main

    jlcjak/neurband

    Open, minimal sEMG wristband like the Meta Neural Band: 8-ch ADS1298 + nRF52832 BLE, dry gold electrodes on a flex, 3D-printed band. KiCad, FreeCAD, Zephyr, Python, simulations.

    63 parts46
  • 4 layers20.5 × 50.8 mmPicoPD Pro, the printed circuit board in 3D

    PicoPD Pro

    CentyLab/PicoPD_Pro

    Repo for PicoPD Pro hardware/software and documentation

    63 parts42