Skip to the content
PCBKitNew board
2 layers50.8 × 76.2 mmBreadboard-1, the printed circuit board in 3D

DCC Mobile Decoder Reference Implementation Hardware & Software

Size
50.8 × 76.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
76
Nets
59
Pads
203
Tracks, vias
416, 51
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
8 Nov 2022
Updated
18 Mar 2024

Overview

Breadboard-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 50.8 × 76.2 mm with 76 parts on 59 nets, routed with 416 tracks and 51 vias.

It is built around the PIC18F16Q40-I/P, SE8633X2-HF and BSS138K, with the 1N5819WS, DTC143ZCA and PMV250EPEAR among its other parts. Its parts include 29 resistors, 15 diodes, 13 transistors, 7 capacitors and 5 connectors. It belongs with the PIC boards of this library.

Main components

9

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

76
QtyValueFootprintReferences
11390RResistor_SMD:R_0805_2012MetricR31, R55, R56, R61, R62, R71, R72, R73, R74, R75, R76
83KResistor_SMD:R_0805_2012MetricR59, R81, R82, R83, R84, R85, R86, R87
8White LEDLED_SMD:LED_0805_2012MetricD61, D62, D81, D82, D83, D84, D85, D86
7BSS138KPackage_TO_SOT_SMD:SOT-23Q31, Q71, Q72, Q73, Q74, Q75, Q76
610KResistor_SMD:R_0805_2012MetricR21, R32, R51, R52, R53, R54
61N5819Diode_SMD:D_SOD-323D11, D12, D13, D14, D15, D21
410uFCapacitor_SMD:C_0805_2012MetricC12, C13, C51, C52
201x06Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ1, J2
2100nFCapacitor_SMD:C_0805_2012MetricC21, C22
222KResistor_SMD:R_0805_2012MetricR57, R58
2DTC143ZCAPackage_TO_SOT_SMD:SOT-23Q53, Q54
2PMV250EPEAPackage_TO_SOT_SMD:SOT-23Q51, Q52
2PMV55ENEARPackage_TO_SOT_SMD:SOT-23Q55, Q56
101x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP41
101x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_HorizontalJ3
101x05SConnector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_HorizontalJ5
101x07Connector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_VerticalJ4
1100RResistor_SMD:R_2512_6332MetricR41
14R7Resistor_SMD:R_0805_2012MetricR11
1DNPCapacitor_THT:CP_Radial_D10.0mm_P2.50mm_P5.00mmC11
1PIC18F16Q40Package_SO:SSOP-20_5.3x7.2mm_P0.65mmU21
1R/G LEDLED_SMD:LED_RGB_1210D87
1SE8633X2-HFPackage_TO_SOT_SMD:SOT-23U11

The 72 most common of 76 parts.

Questions

How big is the Breadboard-1 PCB?

It measures 50.8 × 76.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Breadboard-1 use?

76 parts, built around the PIC18F16Q40-I/P, SE8633X2-HF, BSS138K and 1N5819WS. 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 Breadboard-1 KiCad files?

From the bicknell/DCC-Mobile-Decoder repository on GitHub, at the commit this page was made from: the board is hardware/reference/Breadboard-1/Breadboard-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 Breadboard-1 design in my own project?

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

More from bicknell/DCC-Mobile-Decoder

4
  • 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
  • 2 layers9 × 25 mmWired N-1A-8-1, the printed circuit board in 3D

    Wired N-1A-8-1

    bicknell/DCC-Mobile-Decoder

    DCC Mobile Decoder Reference Implementation Hardware & Software

    56 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

  • 4 layers65 × 56 mmPi hat ups, the printed circuit board in 3D

    Pi hat ups

    Doenec/pi-hat

    collection of different shields to be stacked in raspberry pi

    80 parts1MIT
  • 4 layers100 × 100 mmTtf ng a v1, the printed circuit board in 3D

    Ttf ng a v1

    gingerologist/ttf-ng-a-v1

    kicad 10 project for board A for ttf project, release.

    209 parts
  • 2 layers160 × 240 mmTtf ng b v1, the printed circuit board in 3D

    Ttf ng b v1

    gingerologist/ttf-ng-b-v1

    KiCAD 10 board B of ttf project, release

    90 parts
  • 2 layers50 × 50 mmPolyPot, the printed circuit board in 3D

    PolyPot

    msplr/PolyPot

    Main repository of the PolyPot semester project - yet another IoT device

    42 parts1
  • 4 layers150 × 100 mmInterrupter v1.2, the printed circuit board in 3D

    Interrupter v1.2

    Alberto0235/DRSSTC-Fiber-Optic-Interrupter

    Custom 4-layer interrupter control board for DRSSTC systems. STM32F405-based, fiber-optically isolated outputs, hardware E-brake safety chain, and controlled-impedance routing (90Ω USB, 50Ω FSMC/SDIO).

    212 partsMIT
  • 2 layers57 × 57 mmSensor node, the printed circuit board in 3D

    Sensor node

    henriheimann/prosper3-monitor

    Repository of the Prosper III Environment Monitor project ☀️🌱

    52 parts
  • 2 layers70 × 30 mm021-00 Digital DC Load, the printed circuit board in 3D

    021-00 Digital DC Load

    RedlabsDE/Digital-DC-Load

    In the "Calibration" page, the raw ADC values are displayed. The user can set the raw DAC value.

    78 parts
  • 2 layers100 × 71.8 mmBrutzelkarte, the printed circuit board in 3D

    Brutzelkarte

    jago85/Brutzelkarte_PCB

    Brutzelkarte - N64 Flash Cart PCB (KiCad)

    106 parts67GPL-3.0