Trains.com

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

DIY DCC

11387 views
29 replies
1 rating 2 rating 3 rating 4 rating 5 rating
  • Member since
    April 2003
  • 305,205 posts
DIY DCC
Posted by Anonymous on Wednesday, March 28, 2007 2:22 PM
I am new to DCC but I am handy with electronics and programing. I would like to create a DCC system without spending alot of $$$. I assume most DIY people buy the decoders and then create the control station via building one or using a pc. What are the do's and dont's to this systems, ideas, compatability issues. Thanks
  • Member since
    August 2003
  • From: Midtown Sacramento
  • 3,340 posts
Posted by Jetrock on Wednesday, March 28, 2007 2:32 PM

At this point it's probably a lot less expensive to use off-the-shelf commercial systems than to do it yourself.

 

Put it this way: is it cheaper to buy a video card for your computer, or to buy a prototyping board and design and assemble your own video card using off-the-shelf components? It used to be cheaper to build your own, about 30 years ago when you were building, say, a serial port controller for an Altair 8088. Similarly, electronics hobbyists used to design their own command/control system, based on an Apple II or TRS-80 (I recall one series called the CTC) but they weren't easy or cheap.

 

Unless your idea of "handy with electronics and programming" includes designing your own microprocessors, it's probably no great advantage to build a DCC system from scratch. There are lots of ways to expand, program and otherwise more fully utilize off-the-shelf DCC systems than to try to homebrew 'em. Space is also a consideration--microminiature components and custom chip sets are part of why you can fit a DCC decoder into an N scale locomotive. Homebrewed circuit boards take up more space.

  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Wednesday, March 28, 2007 2:50 PM

 See my post over in the Layouts section to the fellow who wants to build a route control system for turnouts. While DIY DCC is entirely possible (See MERG for some examples), it won;t be any cheaper than a decent commecrial system. What might be better is to start with a commercial system and DIY some of the accessories and add-ons. Again I will use myself as the example here. I have a Digitrax system, but a lot of my control will be via Hans Deloof's LocoIO board which is a 16 bit universal I/O board. I can put one together for about $20, maybe less if I an using for a specific purpose and elminiate the phone jacks used to make up each group of 4 ports and use my old computer power supplies, eliminating the rectifier and voltage regulator circuitry on each one. Likewise, Hans also has a nice 3 amp booster design which would be fairly inexensive to build. I've only stayed away so far because it uses a different PIC processor than the LocoIO/LocoBuffer circuits and to program that (he provides the code) I would need to buy, borrow, or build a programmer for that type of chip.

 And Hans isn't the only one. There are many interesting DIY projects built around Digitrax. John Plocher tackes the LocoIO approach to the next step and has designed a controller for Tortoise switch motors that provides control, actual position feedback, and block detection of 4 turnout sections. And a 16 port block detector that should be definitely lower cost than the BDL-168.

 MERG has some DIY accessories that use the track signal, and thus work on any system, but I haven't seen much DIY material for Lenz or NCE.

 

                                               --Randy
 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    July 2006
  • From: Vail, AZ
  • 1,943 posts
Posted by Vail and Southwestern RR on Wednesday, March 28, 2007 2:52 PM

I think once you do the research you'll decide you don't want to do this, but....

For info on the DCC specifications go here:

http://www.nmra.org/standards/consist.html#standards

There are several relevant DCC documents.

The compatibility issue only applies to the signal to the rails, and now the decoders interpret it, but not necessarily what they do (specifically thinking of decoders that have unique CVs, sound, etc.), but the standards should tell you what you need.  Throttles and command stations do not have to be compatible with each other between vendors.  The Digitrax and CVP websites have some pretty good info on how they do things.  Also, you can look at the JMRI site for lots of stuff.  There is also a gizmo called SPROG http://bbmgroup.home.comcast.net/sprog/

that can interface with DecoderPro and run a layout, at least to a degree.

Look at all that, and see what you really want to do!

 

Jeff But it's a dry heat!

  • Member since
    April 2003
  • 305,205 posts
Posted by Anonymous on Wednesday, March 28, 2007 3:06 PM

WOW! Lots of information to absorb. I have seen some decoders on ebay sell from .99 cents to $14. Do I have to be weary about stuff like that and what would be a safe system or brand to stick with so that I can deal with compatability and expansion issues. What is the issue with an amp booster. If the track voltage is constant why cant you just run a regulated step down transformer? You can get a 3amp transformer at Radio Shack for $10. What are you using a  switching power supply(p/c) for?

  • Member since
    April 2003
  • 305,205 posts
Posted by Anonymous on Wednesday, March 28, 2007 3:08 PM
P.S. Is there a collision detection system available with DCC?
  • Member since
    November 2002
  • From: Colorado
  • 4,075 posts
Posted by fwright on Wednesday, March 28, 2007 3:27 PM

 Davefin wrote:
I am new to DCC but I am handy with electronics and programing. I would like to create a DCC system without spending alot of $$$. I assume most DIY people buy the decoders and then create the control station via building one or using a pc. What are the do's and dont's to this systems, ideas, compatability issues. Thanks

Since you are willing to buy decoders, what you have proposed is feasible (depending on your engineering and programming skills and patience).  It has been done.  The NMRA specs for DCC can be found at http://www.nmra.org/standards/consist.html.  Note that the specs only address the command station to locomotive signals and communications.  Anything on the user side of the command station (throttle network, throttle programming) is totally up to the developer, and there are a number of commercial propritary standards used here.  Both sides of the command station must operate in a noisy environment that abounds with non-twisted parallel conductors; hence data rates tend to be low.  Also short circuits on the track are common, and must be dealt with without ruining equipment.

You have to design, build, and debug a command station that merges the command signal with the power signal, and applies it to track that has an impedance varying anywhere from a few ohms to infinite.

You have to design, build, and debug a throttle to generate the commands, and a data link between the throttle and command station.

http://jmri.sourceforge.net/ has a lot of ideas that might help you in your quest.  There is information about system components that work with Digitrax's Loconet at http://embeddedloconet.sourceforge.net/

Hope this helps

Fred W  

  • Member since
    October 2006
  • From: Prescott, AZ
  • 1,736 posts
Posted by Midnight Railroader on Wednesday, March 28, 2007 3:43 PM

 Davefin wrote:
P.S. Is there a collision detection system available with DCC?

Yep.

Mark I Eyeball. Has the advantage of being 100% compatible with DC operations, too.

  • Member since
    January 2001
  • From: SE Minnesota
  • 6,847 posts
Posted by jrbernier on Wednesday, March 28, 2007 3:50 PM

  Digitrax uses collision detection/avoidence for their Loconet cab bus.

Jim

Modeling BNSF  and Milwaukee Road in SW Wisconsin

  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Wednesday, March 28, 2007 3:51 PM
 Davefin wrote:

WOW! Lots of information to absorb. I have seen some decoders on ebay sell from .99 cents to $14. Do I have to be weary about stuff like that and what would be a safe system or brand to stick with so that I can deal with compatability and expansion issues. What is the issue with an amp booster. If the track voltage is constant why cant you just run a regulated step down transformer? You can get a 3amp transformer at Radio Shack for $10. What are you using a  switching power supply(p/c) for?

 

 The track voltage is constant but it's not DC. It's a square wave signal that actually carries the DCC commands as well as provides the operating power. And when it comes to high current supplies, a switchign power supply is lighter and cheaper and more efficient than just using a massive transformer and a regulator. Good example - my first computer I built froma  kit. It uses a standard regulated power supply, it puts out I think 3 amps at 5 volts and maybe 1 amp at 12 volts. I can take the switching power supplies from my present computers, that put out somehwere around 45 amps at 5 volts not to mention a ton at 12 volts and 3.3 volts, and three of them together are lighter than that one 3 amp supply. 

 

 The NMRA DCC standard applies to the track signal. Any sysem putting out NMRA DCC can control any NMRA DCC decoder. This compatibility does NOT extend to the throttle side. You can't use a Lenz throttle on a Digitrax system.

 The problem with the big 10 amp boosters is that 10 amps at 15 volts or so is plenty to arc weld things, like wheels to track. This is why they make circuit breakers  to place between the booster and the track, and you break your layout up into sections called power districts. You have the overall 10 amps to drive your layout, but each section is individually limited to a safe current level - if any given section will only see 2-3 trains at a time, there's no reason to feed it more than 2-3 amps. Plus if a train derails and short in one section, it will only cut power to that section, the others will continue to receive power.

 

                                          --Randy
 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    January 2001
  • From: SE Minnesota
  • 6,847 posts
Posted by jrbernier on Wednesday, March 28, 2007 3:57 PM

  If you really want to waste your time/money, here is a link for DIY DCC stuff:

http://www.cmlelectronics.co.uk/dcc/makingown.htm

 

  I once saw an old 286 CPU converted to a DCC command station - All the guy could do was control a single engine and he had all kinds of extra stuff hooked up to it......

  For about $150 on up, you can get some really nice starter systems from NCE(PowerCab) and Digitrax(Zephyr).  I doubt you could build anything with as much function for the price.  If you want a functional 'kit', check out CVP:

http://www.cvpusa.com/ 

 

Jim Bernier

 

Modeling BNSF  and Milwaukee Road in SW Wisconsin

  • Member since
    December 2005
  • From: East Granby, CT, USA
  • 505 posts
Posted by jim22 on Wednesday, March 28, 2007 10:48 PM

If you want to DIY, what do you think of a non-DCC system?  I think it would be cool to design a system based on Bluetooth or Wireless-B.  Decoders might be tricky because of their size, but a wireless PDA could be used for the control.  I actually did a chip-based brushless DC motor control for a jetliner - VERY COOL!  Of course, it could lift an automobile :-)

 Just an out-of-the-box thought....

Jim 

  • Member since
    August 2004
  • From: Amish country Tenn.
  • 10,027 posts
Posted by loathar on Wednesday, March 28, 2007 11:24 PM
Jim22- Yea, I think if I had the smarts to build my own, I try and do something along the lines of a TV style remote control. I'm pretty amazed at the range of TV and car alarm devices these days.
  • Member since
    June 2003
  • From: CANADA
  • 2,292 posts
Posted by ereimer on Wednesday, March 28, 2007 11:57 PM
 rrinker wrote:

There are many interesting DIY projects built around Digitrax. John Plocher tackes the LocoIO approach to the next step and has designed a controller for Tortoise switch motors that provides control, actual position feedback, and block detection of 4 turnout sections.

thanks Randy , i haven't seen John's site before . looks like a very interesting project .

the CVP EasyDCC system was originally done as a series of diy articles by Keith Gutierrez in the feb to july 1997 issues of Model Railroader (years before that he also wrote a series of articles on his CTC-16 system , a pre-dcc command control setup) . i think all of the parts are still available from CVP , it should be possible to order just the hard to get stuff if you think you can source parts at a better price . i also think it's pretty amazing that Keith was willing to share all the details about how to build his systems with the rest of us 

  • Member since
    January 2004
  • From: Crosby, Texas
  • 3,660 posts
Posted by cwclark on Thursday, March 29, 2007 1:00 AM
If you ask me, I'd tell you to  purchase the stuff already made. I also went thru the build it yourself phase and most of the systems I built didn't work too well or work at all. After sending a lot of my hard earned money  to places like Mouser, Digi-key, and Radio Shack (not to mention the hours upon hours spent soldering the components together)  I found that they didn't work, I realized the pre-made stuff is the only way to go. All it takes is a small piece of solder to get across a circuit or one connection soldered in the wrong place and the entire thing won't work. It taught me a valuble lesson. I now just buy the stuff someone makes for a living. The only do-it-yourself circuit I use now is a simple one that converts 12 volts to 5 or 1.5 volts. Everything else is manufactured. It saves a lot of money in the long run to purchase electronic components that just need a few wires soldered in place and is ready to go.

  • Member since
    October 2006
  • From: Santa Barbara, Ca
  • 195 posts
Posted by SBCA on Thursday, March 29, 2007 2:18 AM

CWCLARK, you actually built that CTC-16 system?  Crazy man.

It seems it took a lot more dedication to be a "serious" modeller back then.  Wow.

I remember hearing about that system in MR, but wondered how many people actually built that stuff.

Like you say, it only takes one little error.

Like when I was a kid, a friend of mine and I would sit there for 3 hours trying to type some "game" program into my commodore 64 from a book.  In the end, there would be some small error that was actually wrong in the book.  We'd never get it to work. 

www.pmdsb.com
  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Thursday, March 29, 2007 7:25 AM
 ereimer wrote:
 rrinker wrote:

There are many interesting DIY projects built around Digitrax. John Plocher tackes the LocoIO approach to the next step and has designed a controller for Tortoise switch motors that provides control, actual position feedback, and block detection of 4 turnout sections.

thanks Randy , i haven't seen John's site before . looks like a very interesting project .

the CVP EasyDCC system was originally done as a series of diy articles by Keith Gutierrez in the feb to july 1997 issues of Model Railroader (years before that he also wrote a series of articles on his CTC-16 system , a pre-dcc command control setup) . i think all of the parts are still available from CVP , it should be possible to order just the hard to get stuff if you think you can source parts at a better price . i also think it's pretty amazing that Keith was willing to share all the details about how to build his systems with the rest of us 

 That wasn't quite as much a DIY series as a "how do I assemble these kits" series, much the same as the Railcommand articles a few years before. The last real DIY command control series was the CTC-16e, and the CTC-16 before it. As far as I know, the only thing you can buy from CVP that isn't assembled is the Booster 10, and the kit is only like $20 less than the assembled version. I don't believe the command station is available as a kit anymore.

 

                                         --Randy
 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Thursday, March 29, 2007 7:31 AM

 loathar wrote:
Jim22- Yea, I think if I had the smarts to build my own, I try and do something along the lines of a TV style remote control. I'm pretty amazed at the range of TV and car alarm devices these days.

 That's out there too - there's a DIY project for Loconet that has the option of using a TV remote for a throttle. It even supports selecting new locos without plugging in. 

http://embeddedloconet.sourceforge.net/

 

                              --Randy
 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Thursday, March 29, 2007 7:40 AM

You might also be iinterested in this one: http://loconetovertcp.sourceforge.net/ which allows access to the Digitrax Loconet from any computer on a TCP/IP network. You could theoretically control and monitor your layout from anywhere on the internet, but the real purpose is to have a single interface to the layout and have multple client apps connect into it, more along the lien sof, you have an internet conenciton, you can use a web browser to view web pages, an ftp program to transfer files, or an email program to read mail.

 

                                  --Randy
 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    April 2003
  • 305,205 posts
Posted by Anonymous on Thursday, March 29, 2007 8:24 AM
Ok, I agree with all of you! DIY is a pain sometimes. I am an engineer so it's par for the course. So, in an effort to keep costs down, ie buying used items, does anyone have good ideas for what is the best bang for your buck. Is using a p/c as a control station a good idea?
  • Member since
    April 2003
  • 305,205 posts
Posted by Anonymous on Thursday, March 29, 2007 10:27 AM

What do you guys think about this:

http://www.geocities.com/CapeCanaveral/7706/tmwdcc.html

 

  • Member since
    January 2001
  • From: SE Minnesota
  • 6,847 posts
Posted by jrbernier on Thursday, March 29, 2007 1:06 PM

Dave,

  Go for it!  I have read the article and will offer the following:

  • You wind up with fixed function, teathered throttles.
  • Your command station is either a programmer of train controller, not concurrently.
  • You have no built-in fast clock.
  • You may or not have 'on the main' programming capability.
  • What about 'consisting'?

 If you want some old computers(486/Pentium 500 class), came and pick them up from me in Minnesota.  It costs me .35/lb to dispose of them here!

  As others have mentioned, you can buy very nice DCC command stations for about $150.  You can unplug walk-around throttles and walk to another port to operate while the train is running.  If you are running a single engine, then maybe your DIY project will suffice.

Jim

 

 

Modeling BNSF  and Milwaukee Road in SW Wisconsin

  • Member since
    December 2005
  • From: East Granby, CT, USA
  • 505 posts
Posted by jim22 on Thursday, March 29, 2007 10:50 PM

Dont forget: the current DCC system was once a DIY project!  I'm sure there were lots of geeky discussions, basement electronics projects, and genuine engineering development before the final DCC specification came out.  DCC is great, and having a standard which the industry follows is great, but it's easy to stifle progress by adhering too tightly to a standard.  There are lots of microelectronics devices available today that weren't options when DCC was concepted.  Maybe there's already a DCC-II concept in progress.  Maybe we should start one :-)

 

Jim 

  • Member since
    May 2008
  • 3 posts
Posted by gil3 on Tuesday, September 16, 2014 3:15 PM

I would have to, at least partially, disagree. As one of the initiators of MERG CBus, anyone versed in electronics can re-use publically available designs or purchase kits, which are distributed to members at cost, and build a nice layout control system with features not available in commercial systems, at lower cost. It outperforms many currently available commercial systems (in which technology is becoming legacy, and they are bound by it to support their existing install base), user friendlyness and simple configuration without any programming required, and a good support group that would take on any question or problem. One certainly does not have to redesign everything from scratch. Would you be saying the same about JMRI, that you would not use it and rather use only commercial software? I don't see a big difference.

As for the cost question, you have to compare apples to apples, and just as there are different performance caracteristics, pros and cons among the commercial systems, so is the situation with DIY systems. So it all depends what your goal is - operating a simple small room layout, club, modular layout, what is the routing mechanism you would like to have, what options you intend to impelement for safety and train control (which are largely related to the era and theme being modeled) - is it TT/TO, signaling, CTC?

FYI if you have the necessary skill level and simple equipment to solder SMT and QFN components, you can produce N scale decoders and sound decoders small enough to fit in your locomotives. I have done it. If you want to save on effort, have the PCB produced commercially- it is quite cost effective online, and/or order a kit. You might find the result a better fit for your individual needs. Mostly it is a matter of deciding to get involved in such a project and can be very exciting - it is certainly a new facet of the hobby and (used to?) provide feedback that influenced DCC manufacturers.

  • Member since
    May 2008
  • 3 posts
Posted by gil3 on Tuesday, September 16, 2014 3:28 PM

For a complete DIY system supported by many kits and documentation have a look at http://www.merg.org.uk.

If nothing else I'm sure you will find it interesting reading!

Gil

  • Member since
    September 2007
  • From: Charlotte, NC
  • 6,099 posts
Posted by Phoebe Vet on Wednesday, September 17, 2014 8:35 AM

Anonymous
I am new to DCC but I am handy with electronics and programing. I would like to create a DCC system without spending alot of $$$. I assume most DIY people buy the decoders and then create the control station via building one or using a pc. What are the do's and dont's to this systems, ideas, compatability issues. Thanks

 

Your questions indicate a total lack of understanding of what DCC is and how it works.  Before doing anything, invest in a couple of books.  Kalmbach, our host here, has several good ones.  They will answer most of your questions.

 

http://www.kalmbachstore.com/modeltrains-railroading-model-railroading-books-wiring-electronics-series.html 

 

Dave

Lackawanna Route of the Phoebe Snow

  • Member since
    January 2006
  • From: Northeast OH
  • 2,268 posts
Posted by NeO6874 on Wednesday, September 17, 2014 8:45 AM

gil3

(stuff)

 

Holy thread necro batman!

 

Guys, this thread is SEVEN YEARS OLD! While, yeah I suppose it can be interesting to argue the merits of building your own decoders / command stations, I doubt the OP is gonna get anything out of this anymore Wink

-Dan

Builder of Bowser steam! Railimages Site

  • Member since
    July 2003
  • From: Sierra Vista, Arizona
  • 13,757 posts
Posted by cacole on Wednesday, September 17, 2014 8:56 AM

And in those 7 years we've heard nothing more about anyone building their own DCC system using the information provided on the referenced web sites.

 

  • Member since
    September 2007
  • From: Charlotte, NC
  • 6,099 posts
Posted by Phoebe Vet on Wednesday, September 17, 2014 9:06 AM

Embarrassed  How embarrasing.  I looked only at the date of the most recent reply.  I hate being the victim of a troll. 

Dave

Lackawanna Route of the Phoebe Snow

  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Wednesday, September 17, 2014 9:39 AM

 7 years later and the response is "Check out MERG". Hmm, that sounds familiar - oh yeah, that's what I said in my first reply way back up at the top. LOL.

               --Randy

 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Users Online

There are no community member online

Search the Community

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Model Railroader Newsletter See all
Sign up for our FREE e-newsletter and get model railroad news in your inbox!