
Breadboard-1
bicknell/DCC-Mobile-Decoder
DCC Mobile Decoder Reference Implementation Hardware & Software

DCC Mobile Decoder Reference Implementation Hardware & Software
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.
The Wired-N-1A-2-1 design is a basic 1A N-Scale decoder based off the Breadboard-1 reference design.
Actual size 9mm x 18mm:

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.
View the schematic: Wired-N-1A-2-1.pdf
Supporting CALCULATIONS.md discussions how component values were determined.
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.
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:
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.
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.
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.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 10 | 220 | Resistor_SMD:R_0201_0603Metric | R33, R34, R41, R42, R43, R44, R45, R46, R47, R48 |
| 4 | 2N7002 | Package_TO_SOT_SMD:SOT-363_SC-70-6 | Q41, Q42, Q43, Q44 |
| 4 | D_S | Diode_SMD:D_SOD-523 | D11, D12, D13, D14 |
| 3 | 10K | Resistor_SMD:R_0201_0603Metric | R23, R31, R32 |
| 3 | 6K6 | Resistor_SMD:R_0201_0603Metric | R22, R35, R36 |
| 2 | 100nF | Capacitor_SMD:C_0201_0603Metric | C21, C23 |
| 2 | 1K3 | Resistor_SMD:R_0201_0603Metric | R21, R37 |
| 2 | 2.2uF | Capacitor_SMD:C_0402_1005Metric | C11, C12 |
| 2 | CA | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J0, J1 |
| 2 | DTC143Z | Package_TO_SOT_SMD:SOT-723 | Q35, Q36 |
| 2 | QH8MA3 | DCC Project Footprints:TSMT8 | Q31, Q32 |
| 1 | +5 | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J15 |
| 1 | 100nF | Capacitor_SMD:C_0402_1005Metric | C31 |
| 1 | F0R | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J13 |
| 1 | F1 | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J4 |
| 1 | F2 | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J5 |
| 1 | F3 | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J6 |
| 1 | F4 | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J7 |
| 1 | F5 | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J8 |
| 1 | F6 | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J9 |
| 1 | FOF | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J12 |
| 1 | GND | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J16 |
| 1 | LR8341A | Package_TO_SOT_SMD:SOT-23 | U11 |
| 1 | MA | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J2 |
| 1 | MB | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J3 |
| 1 | MCLR | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J14 |
| 1 | PGC | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J18 |
| 1 | PGD | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J17 |
| 1 | PIC18F | Package_DFN_QFN:VQFN-20-1EP_3x3mm_P0.4mm_EP1.7x1.7mm | U21 |
| 1 | RL | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J10 |
| 1 | RR | Connector_Wire:SolderWirePad_1x01_SMD_1x2mm | J11 |

bicknell/DCC-Mobile-Decoder
DCC Mobile Decoder Reference Implementation Hardware & Software

bicknell/DCC-Mobile-Decoder
DCC Mobile Decoder Reference Implementation Hardware & Software

bicknell/DCC-Mobile-Decoder
DCC Mobile Decoder Reference Implementation Hardware & Software

bicknell/DCC-Mobile-Decoder
DCC Mobile Decoder Reference Implementation Hardware & Software




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

botanicfields/PCB-MBUS-AquesTalk-pico-LSI
MBUS Module of AquesTalk pico LSI for M5Stack


DerRKDCB/meshphone
meshtastic Samsung Galaxy A5 standalone offline dual node

It measures 9 × 25 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask bicknell before reusing the design.