100%
rtb_d21 D21cpu view
Description

Imported from GitHub: git4dcc/RTB_D21 · commit f0f4bb6 · license Apache-2.0

Description

DCC / Railcom decoder (Next18, double sided)

README

RTB_D21

Real-time Bus (RTB) Kicad_Libs Apache License 2.0

My Homebrew D21 decoder is a double sided mobile decoder with Next18 (NEM-662) connector. The decoder is designed to integrate into the RTB digital control infrastructure.

Decoder features

  • Next18 (NEM-662) 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
  • Double sided
  • Dimension: 15 x 9.5 mm
  • 7-20V track voltage
  • heartbeat LED
  • adjustable max motor current (default 300mA)
  • adjustable max AUX current (default 500mA)
  • over temp protection
  • Function output: LF/LR (dimmable, 1.4kHz) open drain
  • Function output: AUX1/AUX2 (dimmable, 1.4kHz) open drain
  • Function output: AUX3/AUX4 logic level or ZBCLK/ZBDAT
  • Function output: AUX5/AUX6 logic level
  • optional external buffer capacitor (max. 1500uF)
  • <10mA idle power consumption
  • SUSI3 (logic level)
  • Firmware update over main tracks via DCC-R protocol

Hardware

The current PCB layout uses SMD footprints with 0.5mm pitch and 0402 parts. Reflow soldering is recommended.

PCB

  • 6-layer PCB, FR4, 15 x 9.5 x 0.8mm (double sided)
  • Power: 3.3V or 5V
  • CPU: AVR64DD28
  • Motor bridge: DRV8231
  • Connector: Next18 (NEM-662)

Kicad

Schematic | Layout

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

Firmware

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

Example: D21F0001.hex

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

Firmware files

UPDI

The fuse settings as well as the P-code (D21Pxxxx.hex) has to be installed by using UPDI. Connecting the decoder via its track pins to a 5V(DC) power supply will boot its CPU. This way, its easy to program the fuses and flash.

<img src=supplemental/images/D21_updi.jpg width=800>

Fuse SettingP-code Install
<img src=supplemental/images/D21_updi_fuses.jpg width=500><img src=supplemental/images/D21_updi_memory.jpg width=500>

Images

topbottom

YouTube

Some YouTubes to see the D21 motor driver in action.

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

Comments
Sign in to comment

No comments yet. Be the first to ask about this board.