DCC Loco Decoder

This page presents information on a DCC Locomotive Decoder
 I have designed.

Decoder Features

  • Maximum 2A load.
  • High Frequency PWM motor drive (15.625kHz).
  • Back EMF motor speed control
    - improved low speed running.
  • 4 Function outputs.
  • C Source code, using Microchip’s C18 lite compiler, available on this page.
  • PIC18F25K22.processor @ 64MHz.
  • Compact 21mm x 14mm
  • On The Main CV access

See it in action

The following video was shortly after the very first upload of code to the target PCB.
All work prior was performed on my development board with the track being fed with the PWM motor drive.

http://www.youtube.com/watch?v=hU_JWjFPNQM&feature=plcp

Design Genesis

The original concept began from a Loco Decoder design that can be found on the Model Electronics Railway Group:
 www.merg.org.uk

The original design was by Mike Bolton and the software written in PIC assembler by Gil Fuchs, both members of MERG at the time.

Using the schematic for the Merg V13 decoder I designed a double sided surface mount PCB.
The V13 decoder schematic can be found here:
http://www.merg.org.uk/merg_resources/dcc_download.php

Despite being a faithful copy of the V13 schematic I was unable to get the decoder to reliably function.
I also found that my PCB (36mm x 18mm) was not actually small enough to fit inside some of my locos.

I decided I needed to shrink the PCB, and also understand the inner workings of the code.
Several iterations of the PCB took place in the ”virtual world” of Protel, shrinking the PCB further each time.
Along the way I opted for a more modern processor with more capabilities, the PIC18F25K22.

The final PCB measures 21mm x 14mm, using a 28 pin QFN package for the PIC.
As the QFN package has no pins, a soldering iron cannot be used.
This page shows how I solder the QFN package to the PCB.

Design Files

Schematics, PCB designs and software for the loco decoder can be found on this page

Planned updates

This page details current known issues, and future directions

This page has been accessed times.

 

[Home] [Hobbies] [Model Railways] [Electronics] [Hobby Machining] [Favorites] [Photo Gallery] [Stats]

Copyright 2014 Ray Jones | All rights reserved