DCC-MERG-logo

DCC Resources Main Page


Contents

Updated 14 March 2009. 


Copyright for items on this page is retained by the authors identified. 

The use or misuse for the sale, design, supply, process, installation, delivery, test, repair, servicing, and alteration of the designs, instructions, computer code, photographs, circuits, and any other information that appear on this web site is entirely at the risk of the user or visitor to the web site. The information is made available in good faith without warranty of any kind strictly on the basis that no liability will attach to the Model Electronic Railway Group (MERG), its officers and members.

Many of the items on this page are downloadable acrobat files (.pdf) as recommended by Mike Bolton. The Acrobat viewer is free from this site. if you don't already have it.

These pages are a resource area for projects members are working on or have completed and wished to make publicly available.  Some of these projects have resulted in MERG kits but nothing on these pages should be taken as definative information about the kits, members should check the kit pages for up to date information on the kits.

MERG DCC Components

The MERG DCC system has been largely developed by Mike Bolton with help from other members including Gordon Hopkins and John Eato. The system follows the NMRA standard and is designed to be easier to use than most commercial systems for those used to more conventional Model Railway controls.  It is also reasonably easy to build, in fact we have successfully assembled decoders on our demonstration stand at exhibitions.  MERG is registered with the NMRA as a manufacturer with the id #165.

More details can be found in the system overview and a .pdf version of this document can be downloaded from the file matrix below. This overview has been revised in February 2003.

Kits
Kits for the programmer, command station, handsets, accessory decoders and encoder are available to MERG members. Members should check the kit pages in the members area for availability of kits.  For various reasons we cannot supply to non-members. However full details to allow construction from purchased components are available for downloading in the file matrix below. 

Programmer
The programmer is a stand alone device able to programme any NMRA compatible decoder and can be used in conjunction with the MERG system or with any commercial DCC system.  The latest batch of  programmer kits use the 16F628A chip and need the version 2x of the software, downloadable below. The latest version, 2K has been revised to cope with the large current inrush of sound decoders and also can handle Digitrax and CT decoders in direct mode. 
(The original version 1x is still available for anyone using the obsolete 16F84).

Auto Reverse and Cutout module (ARC)
This module provides an auto-reverse feature for use on reverse loops etc. and can also be used as a high speed circuit breaker to allow several seperate sections to be fed from one booster.

Simple cutout module (BCO1)
This is a simple cutout without auto reverse and can be used to divide a layout into sections so that a short on one section does not shut down the whole layout. 

Cut out and detector unit (BDC1)
This unit can be built as a cut out enabling a booster to supply a number of seperate power districts. Alternatively it can be built as a single block occupancy detector, or both at the same time .
New Booster (NB1A)
This unit provides a simple booster for use where a layout needs a bigger power supply than the system unit can provide. The rating of the unit can be 10 amps or more to suit whatever external Dc power supply you have, files updated February 2009 to fix some minor problems.

Locomotive Decoder

Mike advises that the new versions 10 and 11 replace all earlier versions.  Version 10 has all components surface mount, eliminating the need to drill the board. It may be built single sided or double sided, ie long and thin or short and fat.   Version 11 is a similar but smaller version, it has all the same features but the current rating is smaller because of the small components used. Version 12 now has both feedback and stealth features giving a silent drive suitable for can or coreless motors in a similar size package to version 11. Version 13 has the feedback and stealth in a version 10 size.
The software for these has been upgraded to version Dec133 which combines the features of the original Dec131 and Dec132.(NB. Dec133 updated on 14/3/03 the original version works but THE BEMF code was not modified as intended the new version corresponds to the description).

Auxiliary lighting unit
FLASH is a small 'add - on' unit for use with DCC decoders to give realistic ditch lights, gyralights and dimming. This is achieved by high frequency pulse width modulation of the LED current and look-up tables for the varying brightness with time. This enables a much slower apparent increase and decrease in brightness or a dimming without flicker. Version 2 software now gives more realistic flash rates, timed from the real thing.

Alternative software for the locomotive decoder
Gil Fuchs provided the alternative available below as 'mbint105.asm', the CVs available are listed in 'INTDEC10version103.pdf'  Click here for Gil's description of his software.  January 2004. Gil Fuchs has informed me that he has discovered a 'bug' in the code for mbint104 - the Decoder 10 /11 code. It only applied when selecting which functions operated when in 'consist' mode so most users will not have noticed it. This bug has been fixed in the mbint105 which also now has the newly allocated MERG manufacturers id included.
Karol Marcinczak has rewritten mbint104 to support the PIC16F628 (cheaper than the original 16F84) and to give slow down/speed up on direction change using the values in CV3 and CV4. Download below as 16f628.asm.

Software for the accessory decoder
The accessory decoder code has been updated to version 4.  This version is included in the kits.
A more detailed description of the software can be found on the supplementary page.

There is a new version of the code which allows a decoder to work in dual mode. This can give 8 separate outputs when used with a Lenz system (Acc5). The code is available for download below as well as a description (acc5txt.pdf).  Mike Bolton will reprogram existing PICs if you send them with a SAE for return.

Stefano Curtarolo has provided an alternative, this is available in the download section below.  It supports the "Accessory decoder configuration variable access instruction". This instruction is similar to a OPS program mode for accessory decoders. NCE and SYS1 stations support this useful instruction, and they make life much easier. dbacc5 is the version for PIC16F628. It should work with the PIC16F627 too. The F628 is cheaper, faster, and more powerful than the obsolete F84.

Accessory Decoders for Tortoises etc. (ACC3)
This is a variant of the above decoder with an appropriate output for slow action motors, LEDs etc. It uses the same software. The schematic and board layout can be downloaded below. Note. this decoder needs a supplementary unit to give enough power for Fulgurex type motors.  It can now be replaced by the Acc6 version which has a simpler design and does not need the supplementary unit. Details can be downloaded below.   (Note for members, Acc 6 is not available as a kit).

Update for the accessory encoder (ACE)
This unit has been fully revised and is now at version 2b. There is also an adapter board allowing the encoder to be operated from a PC in addition to or instead of the switch matrix.  Note: The code on the website was incorrect and did not work. It has now been replaced. If you have downloaded dccace3.asm and/or dccace3.hexplease replace them with the current versions ace3a.asm and/or ace3a.hex. Sorry for the error. 18/1/2006.
The code and text file have been updated to correspond with those in the kits, 18/8/08.

Handsets (HS2)
The handset is now at Mark 2 This uses a single sided board and is much easier to build than the Mk1.

Bryan Knight offers this idea for Handset users. DCC Controller Rack.

When using the MERG DCC system, it would be useful to have somewhere to park any handsets not requiring immediate attention.  There is a tendency for any not actually in a hand to tumble to the floor, assisted by the weight of the cable.  A rack has been constructed which holds them conveniently.  Basically the device is like a lectern or music stand in which the handsets can sit, the bottom surface having cut-outs to clear the cables.  It is clamped to a convenient surface, such as a table top, using one or two woodworker’s clamps to hold sideways extensions.

The whole thing is made by gluing five pieces of 6mm plywood.  The “reading” surface is 260mm long by 100mm high.  The sill, the same length, is 26mm wide, with the four cable slots 11mm wide and 19mm deep, separated 68mm. A triangular piece at each end supports the “reading” surface so that it is leaning back by about 15 degrees.  The fifth piece is the bottom of the structure and is 340mm long to provide room for the clamps.

This picture shows the front view, with the fixing extensions and the cable clearances.  The surface against which the controllers rest is leaning back in this view.

8-Channel DCC Track Circuit/Block Occupancy Detector - ‘DTC’
This design, now available as MERG kit No. 56, enables members to derive an indication of the location of trains on their layout. Crafted specifically for DCC systems, it employs a 'current sensor' front end to detect the flow of traction or decoder current in a block section. A train 'in section' induces a current sensor output giving a low output at both a bipolar ‘Output’ pin and a ‘Discharge’ open collector pin. When the train goes out of section, the output from the sensor disappears and provides a delayed release of the track circuit which is prototypical in operation. Its design enables the traction and train detection circuits to be kept electrically separate.

Capable of operation from a power source of 5 - 15v dc, it can drive a panel LED or small relay directly as well as CMOS logic. This unit has been designed by Gordon Hopkins as an integral part of his RPC system, hence on a complete standard module the eight bipolar outputs can be fed to a standard RPC shift register device to allow the module to be plugged directly into an RPC Stack if required. It can be mounted as supplied in a central location, or sliced up into four smaller sections each containing two detectors which can be installed adjacent to separate track feeds around the layout.

Single channel DCC Track Circuit/Block Occupancy Detector - BOD1.
This design is a simple block occupancy detector for use on DCC systems only. It is based on the resonant transformer circuit by Wayne Roderick of Teton Short Line to whom full
acknowledgement is given.

Here are some photographs of the equipment, click on the thumbnails for the big picture.

Photo of DTC module
8-Channel DCC Track Circuit/Block Occupancy Detector - ‘DTC’

decod10ct.jpg (4969 bytes)
Decoder version 10

Dec11t.jpg (6521 bytes)
Decoder version 11

decod12tops.jpg (11032 bytes)Decoder version 12 - top

Cutout module

Click image for larger version.

 

 

Dec10s2t.jpg (7337 bytes)

Dec10t.jpg (6342 bytes)

decod12bottoms.jpg (11945 bytes)Decoder version 12 - bottom

Locomotive Decoder Cutout BCO1

BOD1

Block Detector BOD1

BC1A-1s.jpg (5837 bytes)

BC1A-4s.jpg (5525 bytes)

BC1A-2s.jpg (11955 bytes)

BC1A-3s.jpg (7045 bytes)

BC1A - Combined Command Station and Booster
Standard package

BC1A - Combined Command Station and Booster
Alternative package with remote alarms and controller sockets.

Accdec2t.jpg (4109 bytes)

Accessory decoder
click image to enlarge

arc2s.jpg (10284 bytes)

Cmndstnt.jpg (3758 bytes)

Accessory Decoder
Pulse type

Accessory decoder
Revised steady state

Auto reverse module

Command station

Boost1t.jpg (5018 bytes)

Boost2t.jpg (9844 bytes)

Boost3t.jpg (9100 bytes)

   Booster, above, New Booster, below.


New-booster

hs2as.jpg (11629 bytes)

hs2bs.jpg (12916 bytes)

hs2cs.jpg (17865 bytes)

Mark 2 Hand Controller

Mvc-008xt.jpg (6521 bytes)

Mvc-009xt.jpg (9720 bytes)

progkn1s.jpg (7867 bytes)
Alternative housing.

Stand alone programmer

Files for downloading
The files in the matrix below provide the information needed to construct the MERG dcc system. For anyone having trouble downloading the source code .asm files  I have included them in .zip packages.  (The .zip includes all files for the item concerned).

Item (complete zip file)

Description
Parts list

Schematic

PCB layout

Component layout

Source code
Hex code

System

overview.pdf
26/2/03

 

 

 

 

Combined Command Station, Booster and Power Supply (BC1A)
bc1a.zip
Available as MERG kit 42.

bc1adoc.pdf
6/1/01
bc1apart2.xls
12/12/02

bc1asch-e.pdf
7/4/04

bc1a-epcb.pdf
7/4/04

 

bc1a_2.asm
11/2/06
bc1a_2.hex
23/2/06

Hand Controller - Mark 2

hs2.zip
Available as MERG kit 43.

Parts list.xls
24/2/03

Schematic.pdf
8/1/03

hs2bpcb.pdf
hs2bcut.pdf
8/1/03

hs2lbl1.pdf
hs2blay.pdf
8/1/03

 

New Booster (NB1A) Description.pdf
12/2/09
Schematic.pdf
11/2/09
Layout.pdf
11/2/09
Picture.jpg
17/8/07
n/a

Original Command Station
dcc8.zip

dcc81.pdf 
28/11/99

dccstn8d.pdf
8/7/99

dcc8stnu.pdf
22/11/99

 

dcc8g.asm
dcc8g.hex
29/02/00

Booster
booster.zip

booster.pdf.
7/7/99

boost5g.pdf.
7/7/99
b5pwrstg.pdf 
7/7/99

b5pcb.pdf.
7/7/99
boost5.pcb

 

 

Original Hand controller
hsc.zip

dcc8hscl.pdf 
20/01/00
hsparts.xls 10/5/01
hsparts.htm 10/5/01

dcc8hsd.pdf  
29/1/01

dcc8hsg3.pdf.
29/1/01 
hsspcb.pdf.
8/7/99
dcc8hsg6.pcb
8/8/02

hslbl.pdf
hslblm3.pdf
20/01/00
hslblkn.gif
8/8/02

 

Accessory Encoder
(updated)
ace2b.zip
Available as MERG kit 51.

ace2btxt.pdf
1/4/03
ace2parts.xls
1/4/03

ace2bsch.pdf.
1/4/03

ace2bpcb.pdf
1/4/03

 

ace3a.asm
ace3a.hex
18/1/06

Accessory Encoder PC adapter board
Available as MERG kit 54.
APC1_txt.pdf
18/8/08
APC1_sch.pdf
10/11/05
APC1_pcb.pdf
10/11/05
  Ace_PC1.asm
Ace_PC1.hex
18/8/08

Auto reverse and cutout module (ARC)
arc.zip

arc.pdf
26/1/02
arcparts.xls
31/1/02

arc1sch.pdf
26/1/02

arc1pcb.pdf
26/1/02

 

arc1.asm
26/1/02
arc1.hex
26/1/02

Cutout module (BCO1)
BCO1.zip
Description.pdf Schematic.pdf Circuit board.pdf
Software
Hex file,
ASM file.
Cut out and detection module (BDC1) Description .pdf Schematic.pdf Board.pdf Picture.jpg n/a
Block Occupancy Detector BOD1 Description.pdf Schematic.pdf Board.pdf Picture.jpg n/a

Loco Decoder
dec10-11.zip

decoder2.pdf
26/04/00
make101.pdf
26/04/00
INTDEC10version103.pdf
3/2/01

decod10b.pdf,
3/4/00

dec10bpc.pdf.
7/4/00

dec10pc2.pdf,
7/4/00

decod10d.asm
decod10d.hex
8/2/01
mbint105.asm
mbint105.hex
27//01/04
16f628.asm
1/4/03

Small loco decoder
dec10-11.zip

dec11sch.pdf
14/6/00

dec11pcb.pdf.
28/4/00

dec11pc2.pdf,
20/4/00

Small loco decoder with feedback and stealth
dec12-13.zip

dec131tx.pdf
9/5/02
dec131~1.pdf
10/1/03

de12dsch.pdf
27/4/01

de12dpcb.pdf
27/4/01

 

dec133a.asm
dec133a.hex
14/3/03

Loco decoder with feedback and stealth
dec12-13.zip

decod13.pdf 10/5/01

dec13pcb.pdf 10/5/01

 

Flash unit
flash.zip

flash.pdf
5/2/02

flashsch.pdf
5/2/02

flashpcb.pdf
5/2/02

 

flash12a.asm
17/5/02
flash12a.hex

Accessory decoder (ACC6)
revised version for Fulgurex etc point motors
ACC6_txt.pdf
04/02/07
ACC6_sch.pdf
04/02/07
ACC6_pcb.pdf
04/02/07

Acc6_3.asm
23/3/07
Acc6_3.hex

Accessory decoder (ACC2)
acc.zip
Available as MERG kit 52.

acc2btxt.pdf
1/4/03

acc2parts.xls
1/4/03

acc5txt.pdf
6/8/05

acc2bsch.pdf
1/4/03

acc2bpcb.pdf 
4/6/03

 


acc4.asm
acc4.hex
6/8/05
acc5.asm
acc5.hex
6/8/05
dbacc5.asm
dbacc5.hex
11/11/01

Accessory decoder for Tortoise etc. (ACC3)
Available as MERG kit 53.

 

acc3sch.pdf
13/2/03

acc3pcb.pdf
13/2/03

 

Programmer
prog.zip
Available as MERG kit 41.

operating instructions
7/01/07

prognlb.pdf
15/7/99
progpa~1.pdf
12/12/02

dccprog1.pdf
15/7/99
dccprog2.pdf
15/7/99

progpcb.pdf 
22/7/99
prog.pcb

 Box label and cutting template
23/6/08

for 16F84 (obsolete)
progg1H.asm
07/01/07
progg1H.hex

for 16F628A (current)
progg2K.asm
21/09/08
progg2K.hex

 

Other DCC ideas

From N C (Fris) Friswell here is a method for driving a bi-polar lighting circuit from standard decoder function leads, could save some tricky rewiring on locos with factory fitted lights.

More on DIY DCC will be found by exploring from our links page.

Test gear.

When you have built your DCC system Schematics, Adobe Portable Document Format (PDF) instructions,
Software, and other goodies needed to test conformance with the NMRA standards from Ken West are now at:
http://www.dccsig.org/ken/readme.html

Cab bus protocols.

The North Coast Engineering Cab Bus Protocol.
This protocol has been made public by North Coast, it is also used by Wangrow (System One).
Details of the protocol are given in
this zipped Word document.

The Digitrax "Loconet" Cab bus.
For comparison you can get the
details of Loconet from the Digitrax site.

The Lenz "X-bus"
The Lenz bus is also used by ZTC. Roco and by Arnold digital. Lenz now have full details for download in the 'manuals' section of their site, lenz.com .

Back to Top


Contact Information

If you want to follow up any item on this page please contact
Keith Norgrove who looks after these pages.

Copyright to all information on these pages is held by the Authors identified.