Layout documentation

How the staging level and the helix are wired: power districts, track sections and detection, turnouts and crossovers, the reversing sections, and the link to the computer. The two upper levels are still being built.

Overview · Power and protection · Sections and gaps · Detection · Turnouts and crossovers · Reversing sections · Siding, yard and engine storage · The computer link · Radio nodes · Section list · Parts

Overview

The layout has three levels joined by a two-track helix. The lowest, the staging level, is finished, wired and used for operating sessions. Everything on this page is on the staging level and the helix.

The layout runs on DCC. The main parts of the electrical system are:

Every locomotive has a decoder with its own address and follows only the commands sent to that address, so two trains can run at once anywhere on the main line, in either direction, each on its own throttle.

Track diagram of the staging level with labels for the main line, the two reversing sections, the passing siding, the yard, the yard lead and the engine storage tracks.
Plan P1: the staging level, not to scale. Switch numbers match the fascia. The section list has the same track drawn to scale.

The drawings on this page use short labels. This table matches them to the names on the layout, the panels and the wiring viewer.

LabelWhat it isName on the layout
RS-1Reversing section 1: the west part of the main line, Switch 1 to Switch 23Main West
Main line, eastThe rest of the main loopBrick-Plane, East Ext, Main East
Double trackThe two tracks at the east endWest Ext and East Lead
RS-2Reversing section 2: the return loop at the east endK-1 and K-2, the loop at Princess
Passing sidingThe siding beside the main line, Switch 5 to Switch 7Scale, at Brick Plane
Yard leadThe track that serves the yard, Switch 7 to Switch 15Barn
Y1 to Y5The five yard tracksSouth Yard S-R, S-1, S-2, S-3, S-4
E1 to E3The three engine storage tracksEH-1, EH-2, EH-3
Holding tracksTwo tracks off the main lineW-1 and W-2, West Yard
SectionA piece of track with gaps in both rails at both ends and its own feeders and detectorBlock
Locomotives 2091 and Conrail 1993 side by side on two tracks, each pulling its own train.
Two trains running at once, each under its own control: 2091 (left) and 1993 (right).

Power and protection

The command station and booster feed the districts through a set of terminal strips, the booster matrix. Each district has its own protection:

A short shuts down only its own district, and the board's light shows which one tripped. The command station and booster also have their own short protection. The booster matrix has room for a second booster.

Drawing D1: throttles, command station, booster, booster matrix, and the six breakers and auto-reversers feeding the district buses.
Drawing D1: power and control. Red is track power, blue is detection and data. Each locomotive gets its speed and direction from the DCC commands sent to its address.
A plywood panel holding a TCS CS-105 command station, a TCS B-106 booster, five green DCC Specialties boards with their status lamps lit, and terminal strips joining them with red and black wire.
The power panel: the TCS CS-105 command station (top right), the TCS B-106 booster (below it), and the DCC Specialties circuit breakers and auto-reverser (left), joined by the terminal strips of the booster matrix.

Sections, gaps and feeders

The six power districts are split again into 43 sections. Each section has gaps in both rails at both ends and its own pair of feeders from the district bus (drawing D2). To find a fault, one section's feeders can be disconnected at its terminal strip. The section list has every one.

Drawing D2: the district bus feeding a DNCT2B detector's rail input; its two outputs feeding the feeders of two sections, each gapped in both rails at both ends; and the DNCT2B's network cable to a DNCTA and the LCOS client node.
Drawing D2: a typical section. Every section on the staging level and the helix is wired this way.
An eight-position terminal strip mounted under the benchwork with red, black, white, blue, yellow and orange wires connected to it.
A terminal strip under the layout, where bus and feeder wires join.
Close-up of straight track with a gap cut in each rail at a section boundary, the two gaps a few ties apart.
A section boundary with gaps in both rails.

Every terminal strip under the layout uses the same eight positions and wire colors, so any bus or feeder can be traced the same way at every strip.

TerminalCarriesWire color
1DCC1 + Red, or green on a secondary bus
2DCC1 – Black, or brown on a secondary bus
3DCC2 + White
4DCC2 – Blue
5+12 V (switch machines, accessories) Yellow
6+5 V Red
7+3.3 V Orange
8Ground Black

Detection

Every section is detected. A section shows as occupied on the panels when a locomotive, or a car with resistor wheelsets, is on it.

Detection senses current. The district bus feeds both rails into a DNCT2B detector's rail input. The DNCT2B has two outputs, and each one feeds the feeders of one section, so the detector sees any current drawn in that section. Each DNCT2B plugs into a DNCTA by network cable, and one DNCTA connects up to four DNCT2Bs to the nearby LCOS client node, which reports each section as occupied or clear (drawing D2).

A DNCT2B detector board mounted under the layout, with track wiring in its screw terminals and a network cable to its DNCTA.
A DNCT2B detector: rail input from the bus, two outputs to the track, and the network cable to its DNCTA.
Part of the dispatcher panel for the west end of the staging level, with occupied sections shown in red.
The dispatcher panel, with occupied sections in red.

Turnouts and crossovers

Every turnout on the staging level is a Peco turnout with a powered frog, thrown by an MTB MP4 slow-motion switch machine under the layout. The MP4 has two built-in SPDT contacts that move with the points (drawing D3):

The switch machine runs off a 12 V output on the nearby LCOS node, so a turnout can be thrown from the fascia button, a DCC throttle or the computer.

Drawing D3: a turnout with the MP4's contact 1 powering the frog and contact 2 reporting the position.
Drawing D3: turnout frog power and position contact.

Each turnout shows its position in two places, both driven by contact 2, so they show where the points really are however the turnout was thrown:

An MTB MP4 switch machine and a round Touch Toggle push button with a green lamp.
An MTB MP4 switch machine (bottom) and a Touch Toggle fascia button (center).
Two MTB MP4 switch machines mounted under the layout, with their frog and position wiring joined by lever connectors.
Two MP4 switch machines under the layout, with their frog and position wiring.
A yellow Touch Toggle Universal Translator board wired to a lit green indicator lamp and a push button.
A Universal Translator wired to its button and light, before mounting.
A framed track diagram on the fascia with green and red lights at three turnouts.
A framed track diagram on the fascia with a light at each turnout.
Switch 3 (DCC address 101) set normal, and its Touch Toggle on the fascia lit green.
Switch 3 (DCC address 101) set normal, its fascia light green.
Switch 3 set reverse, and its Touch Toggle lit red.
The same switch set reverse: the light turns red.

There are crossovers at Switches 7, 23 and 35. Each is two turnouts wired like any other, and both machines throw together. Each frog has its own polarity, so both rails between the two frogs are gapped, and each half is its own detected section (drawing D4).

The two halves share one pair of position inputs on the node. Their position contacts are wired in series, so the panel shows normal only when both halves are normal and reverse only when both are reverse. If the halves disagree, neither light comes on and JMRI shows the crossover as inconsistent.

Drawing D4: a crossover of two turnouts with both rails gapped between the frogs, and below it the position contacts of the two machines wired in series to one normal and one reverse input, with a table of what the panel shows.
Drawing D4: crossover. Top: frogs and gaps. Bottom: the two machines' position contacts in series, so a position shows only when both halves agree.
The Switch 7 crossover seen from above, showing both frogs and the gaps in the crossover rails between them.
The Switch 7 crossover, with gaps in both rails between the frogs.
Peco turnouts on cork roadbed.
Peco turnouts on the staging level.

Reversing sections

At the east end of the main line is a return loop, RS-2 (plan P2). A train goes out on one track, around the loop, and comes back on the other facing the other way. The loop is powered through a DCC Specialties PSXX-AR auto-reverser. It is two detected sections on the two outputs of one DNCT2B, and because both get power from the one auto-reverser they change polarity together, so for wiring and troubleshooting they are one reversing section.

The main line also loops back on itself at the west end, so its west part, RS-1, is a second reversing section, wired the same way on an NCE AR10. RS-1 is 217 in long, longer than any train on the level.

Track diagram with the two reversing sections highlighted and the gaps at their ends marked.
Plan P2: the two reversing sections and their gaps.

Each reversing section has gaps in both rails at both ends. The auto-reverser's output feeds the rail input of a DNCT2B, and the DNCT2B's outputs feed the track, so the reversing sections are detected like every other section. When a train's wheels bridge a gap with the wrong polarity, the auto-reverser senses the short and flips the section's polarity in a few milliseconds, and the train keeps going. Each section is longer than the longest train, so the flip finishes before the train reaches the far gap.

Drawing D5: an auto-reverser whose output feeds a DNCT2B detector's rail input; the DNCT2B's two outputs feed two detected sections of one reversing section, gapped at both outer ends and between the two sections.
Drawing D5: a reversing section on an auto-reverser. The two detected sections share the auto-reverser and change polarity together.
The two tracks of the return loop RS-2 leaving the switches, with red tape marking the gaps.
The return loop RS-2, its gaps marked with red tape.
An NCE AR10 auto-reverser board mounted on the benchwork, its output wired into the rail input of a DNCT2B detector beside it.
RS-1: the NCE AR10 (right), its output going through the DNCT2B (left) to the track.
Two DCC Specialties boards on the power panel with their status lights lit: a PSXX-AR auto-reverser above and a PSXX-2 circuit breaker below.
RS-2: the DCC Specialties PSXX-AR (top), with a PSXX-2 circuit breaker below it.

Passing siding, yard and engine storage

The passing siding runs beside the main line from Switch 5 to Switch 7 (plan P3). It is 145 in long, room for about 19 cars of 50 ft, and joins the main line at both ends, so one train can wait on the siding while another passes on the main.

Close-up track diagram of the passing siding beside the main line between Switch 5 and Switch 7.
Plan P3: the passing siding.

The yard has five tracks, Y1 to Y5, from about 141 to 231 in long (plan P4). A switcher works the yard from the yard lead, which leaves the main line at Switch 7 and runs on its own track to the yard ladder, so trains keep running on the main line while the yard is switched.

Close-up track diagram of the five-track yard and its lead.
Plan P4: the yard and its lead.

Three engine storage tracks, E1 to E3, branch off the yard lead at Switches 9 and 11 (plan P5). Each holds at least one locomotive.

Close-up track diagram of the three engine storage tracks off the yard lead.
Plan P5: engine storage.
Conrail 1993 running through Switch 5 on the main line while 2091 waits beside it on the passing siding.
1993 runs through Switch 5 on the main line while 2091 waits on the passing siding.
A long view along the yard: the yard lead and the yard tracks beside the main line.
The yard lead, beside the main line.
Diesel locomotives standing on the engine storage tracks in front of a two-stall engine house.
Locomotives on the engine storage tracks.
The yard seen along its length, with freight cars on several tracks.
The yard.

The computer link

The LCOS nodes under the layout talk to each other by radio. Each node is an Arduino Nano with an nRF24L01 radio. LCOS has no connection to JMRI of its own, so HART has a bridge in two parts (drawing D6):

JMRI has a built-in MQTT connection, so every LCOS turnout, sensor and signal shows up in JMRI as a normal turnout, sensor or signal. The address is the node number and the device number: turnout 1308 is turnout 8 on node 13, and the line track/turnout/1308 THROWN means that turnout has thrown.

The program checks the USB link about every 12 seconds and reconnects if it stops answering. After the layout power is turned off and on, it tells the node to sign up for events again, and it reports whether the link is up so the panels can show it. The code is open source on GitHub: LCOS_ESP32_MQTT_Client. LCOS and the Arduino bridge has more.

Drawing D6: JMRI, the MQTT server, the bridge program, the bridge node, the LCOS nodes and the railroad, with the links between them.
Drawing D6: the bridge between the LCOS radio network and JMRI. The shaded boxes are built for HART.
The primary LCOS node, an Arduino Nano with its radio on an LCOS board, mounted under the benchwork.
The primary LCOS node, which runs the radio network. The bridge node is the same hardware with HART's firmware.
The bridge node on a shelf, connected by USB to the PC that runs the bridge program, with the Raspberry Pi that runs JMRI beside them.
The bridge node (right) connected by USB to the PC, with the Raspberry Pi that runs JMRI.
MQTT RX turnout cmd topic='track/cmd/turnout/1308' qos=1 retain=False raw_bytes=b'THROWN'
MQTT turnout queued for serial: 'track/cmd/turnout/1308 THROWN'
MQTT -> serial b'track/cmd/turnout/1308 THROWN\n'
ACK track/cmd/turnout/1308 THROWN
TX -> track/turnout/1308 THROWN
TX -> track/sensor/1367 INACTIVE
TX -> track/sensor/1368 ACTIVE
TX -> track/sensor/1368 ACTIVE
MQTT RX turnout cmd topic='track/cmd/turnout/1308' qos=1 retain=False raw_bytes=b'CLOSED'
MQTT turnout queued for serial: 'track/cmd/turnout/1308 CLOSED'
MQTT -> serial b'track/cmd/turnout/1308 CLOSED\n'
ACK track/cmd/turnout/1308 CLOSED
TX -> track/turnout/1308 CLOSED
TX -> track/sensor/1367 ACTIVE
TX -> track/sensor/1368 INACTIVE
TX -> track/sensor/1368 INACTIVE
The bridge program's window, 15 November 2026. JMRI throws turnout 1308, the node acknowledges (ACK), the turnout reports THROWN and its two position sensors (1367 and 1368) change; then the same for CLOSED. Lines that start with MQTT are commands from JMRI; lines that start with TX are reports from the layout.

JMRI also runs the signals and the CATS dispatcher panel from the same turnouts and sensors: how the signals work.

Radio nodes

Floor plan grid of the layout room. Orange squares are benchwork; each LCOS radio node address sits in the square where that node is mounted.
Radio addresses on a floor plan of the layout room. Orange squares are benchwork, and each address is in the square where its node sits. Yellow squares mark the master (00), the five nodes that talk to it directly (01 to 05), 012 at East End, 013 at the Barn, and the bridge node, 015.

Pin-by-pin wiring for every node is in the wiring viewer.

Section list

To-scale track plan of the staging level, with switch numbers and a 100 cm scale bar.
Plan P0: the staging level to scale. Switch numbers match plan P1. Scale bar 100 cm.

Every detected section on the staging level and the helix, wired as in drawing D2. "Node · ch" is the LCOS node and detector channel. Lengths marked ≈ are estimates.

No.SectionLayout nameNode · chLength, in
1Return loopK-1C1 · 1124
2Return loopK-2C1 · 2114
3Turnout 37OS Switch 37C1 · 316
4Turnout 39OS Switch 39C1 · 410
5Turnout 35 (crossover half b)OS Switch 35bC1 · 520
6Turnout 35 (crossover half a)OS Switch 35aC1 · 615
7Double trackEast LeadC1 · 7104
8Double trackWest ExtC1 · 8156
9Main line, westMain WestC2 · 1217
10Main line, eastMain EastC2 · 3315
11Yard trackS-4C2 · 4≈ 141
12Yard trackS-3C2 · 5≈ 145
13Yard trackS-2C2 · 6≈ 178
14Yard trackS-1C2 · 7≈ 212
15Yard trackS-RC2 · 8≈ 231
16Turnout 13OS Switch 13C3 · 118
17Turnout 15OS Switch 15C3 · 218
18Turnout 17OS Switch 17C3 · 3≈ 15
19Turnout 19OS Switch 19C3 · 5≈ 15
20Turnout 21OS Switch 21C3 · 7≈ 9
21Turnout 3OS Switch 3C4 · 1≈ 14
22Turnout 1OS Switch 1C4 · 223
23Holding trackW-2C4 · 3≈ 105
24Holding trackW-1C4 · 4≈ 105
25Turnout 5OS Switch 5C4 · 525
26Main line at the west endBrick-PlaneC4 · 658
27Main line beside the passing sidingEast ExtC4 · 7141
28Passing sidingScaleC4 · 8145
29Turnout 25OS Switch 25C12 · 1≈ 15
30Turnout 27OS Switch 27C12 · 3≈ 15
31Turnout 23 (crossover half a)OS Switch 23aC12 · 424
32Turnout 29OS Switch 29C12 · 5≈ 15
33Turnout 23 (crossover half b)OS Switch 23bC12 · 6≈ 9
34Turnout 31OS Switch 31C12 · 7≈ 20
35Turnout 33OS Switch 33C12 · 812
36Yard leadBarnC13 · 134
37Turnout 11OS Switch 11C13 · 2≈ 22
38Turnout 7OS Switch 7C13 · 3≈ 9
39Turnout 7 (crossover half b)OS Switch 7bC13 · 49
40Engine storageEH-3C13 · 5≈ 30
41Engine storageEH-2C13 · 6≈ 30
42Engine storageEH-1C13 · 7≈ 51
43Turnout 9OS Switch 9C13 · 8≈ 20

Parts

PartMakerUsed for
CS-105 command stationTCSDCC command station
B-106 boosterTCSTrack power
PSX circuit breakersDCC SpecialtiesDistricts A to D
AR10 auto-reverserNCERS-1
PSXX-AR auto-reverserDCC SpecialtiesRS-2
TurnoutsPecoAll turnouts and crossovers
MP4 switch machinesMTBThrowing turnouts, frog power, position contact
Touch Toggles, Universal TranslatorBerrett HillFascia buttons and lights
LCOS nodes and boardsBeagle BaySwitch machine outputs, inputs
DNCT2B detectors, DNCTABeagle BayBlock detection (DNCT2B, two sections each); linking up to four DNCT2Bs to a node (DNCTA)
Arduino Nano, nRF24L01 radioArduino; variousBridge node
Raspberry PiRaspberry Pi LtdRuns JMRI and the MQTT server
JMRI, MosquittoFree softwarePanels; MQTT server

More: Wiring viewer · LCOS and the Arduino bridge · How the signals work · Track plan