Skip to the content
2 layers9 × 25 mmWired N-1A-8-1, the printed circuit board in 3D

DCC Mobile Decoder Reference Implementation Hardware & Software

Size
9 × 25 mm
Copper layers
2
Thickness
1.6 mm
Parts
56
Nets
45
Pads
187
Tracks, vias
310, 53
Pours
3
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
8 Nov 2022
Updated
18 Mar 2024

Overview

Wired N-1A-8-1 is an open-source printed circuit board by bicknell, from the bicknell/DCC-Mobile-Decoder repository on GitHub. It is a 2-layer board of 9 × 25 mm with 56 parts on 45 nets, routed with 310 tracks and 53 vias.

It is built around the LR8341A-M25, DTC143Z and QH8MA3TCR. Its parts include 19 connectors, 18 resistors, 8 transistors, 5 capacitors and 4 diodes. It belongs with the PIC boards of this library.

Main components

3

README

hardware/decoders/Wired-N-1A-2-1/README.md

Wired-N-1A-2-1

About

The Wired-N-1A-2-1 design is a basic 1A N-Scale decoder based off the Breadboard-1 reference design.

  • 1A Capacity
  • 2 Functions (FOF, FOR)
  • ICSP programming exposed via pads.
  • Components on top side only enabling cheap fabrication.

3D Render

Actual size 9mm x 18mm:

Board

Intended Use Case

Used for any hard wired N/Z scale application, from locomotives that do not support drop in decoders, to passenger car and caboose lighting operations.

Schematic

View the schematic: Wired-N-1A-2-1.pdf

Supporting CALCULATIONS.md discussions how component values were determined.

Schematic Walkthrough

Power Supply

Power from the two rails is fed into a bridge rectifier made up of four discrete diodes D11-D14. As DCC is a square wave, the output is nearly but not quite continuous DC power with low ripple. That power is split off to drive the motor and functions directly, labeled as Vdrive. A linear regulator U11 is used to generate +5v for the micro-processor, and has two support capacitors.

The project requirements for this design are to operate from 6v to 30v of input.

Micro-controller

A PIC18F06Q40 processor is used in this design due to it's avaialbility in a 3mm x 3mm VQFN-20 package. PIC processors require minimal support components. C21 is a local bypass capacitor that is placed closed to the power pins. C23 and R11 form a hold up circuit for MCLR which must be kept high during normal operation. If MCLR drops, the chip will reset.

Particular notes on this part:

  • This design does not use a Vref pin.

H-Bridge

The H-Bridge controls the current to the motor. It is driven by a PWM signal generated by the micro-controller. The software generates 4 PWM signals, P1A-P1D, which are used to control speed and direction.

The H-bridge is simply 4 high power MOSFETs arranged in an H configuration. This design uses two discrete dual MOSFET chips each with 1 PNP and 1NPN MOSFET, which is a common arrangement. Resistors are placed on the gate inputs to prevent inrush from damaging the micro-controller.

External diodes are omitted on this design to save space, the body diode of the MOSFET must do the job.

In order to calculate BackEMF, a 100nf capacitor C31 is added to reduce signal noise. The resistors R35 and R36 then reduce the voltage to an appropriate level for the analog input of the micro-controller. By monitoring this voltage the micro-controller can calculate the load.

Functions

This design supports functions F0F, F0R, F1-F6.

Functions F0F, F0R, and F1-F6 are designed to be connected to external device in a "common anode" configuration.

Vdrive power is provided as a common anode source at both ends of the board. The MOSFET connects to ground when turned on by the micro-processor. A resistor is provided on the gate of each MOSFET to manage inrush current.

External Connectivity

MA & MB are the two motor connection solder pads.

RL & RR are the left and right rail solder pads.

F0F, F0R, & F0-F6 are the function solder pads.

CA are the Common Anode solder pads.

MCLR, +5, GND, PGD, PGD make up the ISCP connection points.

Parts

56
QtyValueFootprintReferences
10220Resistor_SMD:R_0201_0603MetricR33, R34, R41, R42, R43, R44, R45, R46, R47, R48
42N7002Package_TO_SOT_SMD:SOT-363_SC-70-6Q41, Q42, Q43, Q44
4D_SDiode_SMD:D_SOD-523D11, D12, D13, D14
310KResistor_SMD:R_0201_0603MetricR23, R31, R32
36K6Resistor_SMD:R_0201_0603MetricR22, R35, R36
2100nFCapacitor_SMD:C_0201_0603MetricC21, C23
21K3Resistor_SMD:R_0201_0603MetricR21, R37
22.2uFCapacitor_SMD:C_0402_1005MetricC11, C12
2CAConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ0, J1
2DTC143ZPackage_TO_SOT_SMD:SOT-723Q35, Q36
2QH8MA3DCC Project Footprints:TSMT8Q31, Q32
1+5Connector_Wire:SolderWirePad_1x01_SMD_1x2mmJ15
1100nFCapacitor_SMD:C_0402_1005MetricC31
1F0RConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ13
1F1Connector_Wire:SolderWirePad_1x01_SMD_1x2mmJ4
1F2Connector_Wire:SolderWirePad_1x01_SMD_1x2mmJ5
1F3Connector_Wire:SolderWirePad_1x01_SMD_1x2mmJ6
1F4Connector_Wire:SolderWirePad_1x01_SMD_1x2mmJ7
1F5Connector_Wire:SolderWirePad_1x01_SMD_1x2mmJ8
1F6Connector_Wire:SolderWirePad_1x01_SMD_1x2mmJ9
1FOFConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ12
1GNDConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ16
1LR8341APackage_TO_SOT_SMD:SOT-23U11
1MAConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ2
1MBConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ3
1MCLRConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ14
1PGCConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ18
1PGDConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ17
1PIC18FPackage_DFN_QFN:VQFN-20-1EP_3x3mm_P0.4mm_EP1.7x1.7mmU21
1RLConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ10
1RRConnector_Wire:SolderWirePad_1x01_SMD_1x2mmJ11

More from bicknell/DCC-Mobile-Decoder

4
  • 2 layers50.8 × 76.2 mmBreadboard-1, the printed circuit board in 3D

    Breadboard-1

    bicknell/DCC-Mobile-Decoder

    DCC Mobile Decoder Reference Implementation Hardware & Software

    76 parts14
  • 2 layers50.8 × 76.2 mmBreadboard-2, the printed circuit board in 3D

    Breadboard-2

    bicknell/DCC-Mobile-Decoder

    DCC Mobile Decoder Reference Implementation Hardware & Software

    75 parts14
  • 4 layers9 × 61.3 mmAtlas N-1A-2-GP40-1, the printed circuit board in 3D

    Atlas N-1A-2-GP40-1

    bicknell/DCC-Mobile-Decoder

    DCC Mobile Decoder Reference Implementation Hardware & Software

    48 parts14
  • 2 layers9 × 18 mmWired N-1A-2-1, the printed circuit board in 3D

    Wired N-1A-2-1

    bicknell/DCC-Mobile-Decoder

    DCC Mobile Decoder Reference Implementation Hardware & Software

    37 parts14

Similar boards

  • 2 layers85 × 60 mmBLDC STC15W401, the printed circuit board in 3D

    BLDC STC15W401

    oshwcom/BLDC_STC15W401

    低成本(RMB 7元左右)12V的bldc驱动电路。基于STC15W401AS单片机。

    61 parts30Unlicense
  • 2 layers36 × 53.5 mmYaumataca, the printed circuit board in 3D

    Yaumataca

    Slamy/Yaumataca

    USB mouse and joystick to Amiga, Atari ST & C64 Adapter

    25 parts28MIT
  • 4 layers38.5 × 47 mmSIM7080, the printed circuit board in 3D

    SIM7080

    techstudio-design/sim7080_dev_board

    SIM7080 Dev Board hardware design files

    55 parts17
  • 2 layers17.8 × 21 mmVBUS Switch Addon Board, the printed circuit board in 3D

    VBUS Switch Addon Board

    suzan-works/XIAO_CH32X035

    Tiny microcontroller board equipped with WCH CH32X035. WCH CH32X035を搭載した小型のマイコンボード

    29 parts8MIT
  • 2 layers50 × 50 mmBf-034, the printed circuit board in 3D

    Bf-034

    botanicfields/PCB-MBUS-AquesTalk-pico-LSI

    MBUS Module of AquesTalk pico LSI for M5Stack

    56 parts6CC0-1.0
  • 2 layers78 × 40 mmNode base, the printed circuit board in 3D

    Node base

    LanternD/NB-Scope

    Hardware and software design for NB-Scope.

    79 parts6Apache-2.0
  • 2 layers60 × 80 mmGalaxy A5 dual node, the printed circuit board in 3D

    Galaxy A5 dual node

    DerRKDCB/meshphone

    meshtastic Samsung Galaxy A5 standalone offline dual node

    87 parts5

Questions

How big is the Wired N-1A-8-1 PCB?

It measures 9 × 25 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Wired N-1A-8-1 use?

56 parts, built around the LR8341A-M25, DTC143Z and QH8MA3TCR. 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 Wired N-1A-8-1 KiCad files?

From the bicknell/DCC-Mobile-Decoder repository on GitHub, at the commit this page was made from: the board is hardware/decoders/Wired-N-1A-8-1/Wired-N-1A-8-1.kicad_pcb and its schematic hardware/decoders/Atlas-N-1A-2-GP40-1/Atlas-N-1A-2-GP40-1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Wired N-1A-8-1 design in my own project?

Its repository states no licence, so its author keeps all rights: ask bicknell before reusing the design.