Posts with «model railroad» label

A Turntable For Model Railroads

Way back when, before diesel-electric locomotives were a thing, trains weren’t really able to go backwards too well. Also it’s sometimes necessary to turn carriages around in a small space. For that, the railway turntable was invented. If you want to implement one on a model layout, this project from DIY & Digital Railworld is for you.

The project is at an early stage – thus far, laying out how to set up an Arduino Uno using a potentiometer to control the speed of a stepper motor, which rotates the turntable. The turntable itself is a 3D printed part sourced from Thingiverse, designed to suit the specific stepper motor used.

This has the easy part sorted – rotating a piece of track through 360 degrees to orient a train properly. However, there’s significant work ahead. Power needs to be hooked up to the rails, and a system for accurately aligning the turntable with outgoing tracks needs to be devised. This is particularly relevant for N-gauge setups, where tolerances are everything.

We’d love to know how you’d tackle the various issues to build a working model turntable in the comments. We’ve seen some serious model railroad builds before around these parts. Video after the break.

 

The Arduino Hits The Rails

Certain hobbies come in clusters. It isn’t uncommon to see, for example, ham radio operators that are private pilots. Programmers who are musicians. Electronics people who build model trains. This last seems like a great fit since you can do lots of interesting things with simple electronics and small-scale trains. [Jimmy] at the aptly-named DIY and Digital Railroad channel has several videos on integrating railroad setups with Arduino. These range from building a DCC system for about $45 (see below) to a crossing signal.

There are actually quite a few basic Arduino videos on the channel, although most of them are aimed at beginners. However, the DCC — Digital Command and Control — might be new to you if you are a train neophyte. DCC is a standard defined by the National Model Railroad Association.

Model trains pick up electrical power from the rails. DCC allows digital messages to also ride the rail. The signal shifts from positive to negative to indicate marks and spaces. By diode switching the electrical signal, the train or other equipment can get a constant supply of current. However, equipment monitoring the line ahead of the diodes can read the data and interpret it as commands.

To accommodate old equipment, you can stretch the high or low values to make the average voltage either positive (forward) or negative (reverse). This can heat up DC motors, though, so it may shorten the life of the legacy equipment.

The build uses an available Arduino library, so if you want to get into the protocol you’ll have to work through that code. We had to wonder if there were other places where passing power and data on the same lines might be useful. There are other ways to do that, of course, but this would be a reasonable place to start if you needed that capability.

If you want to use an mBed system instead of an Arduino, there’s a great tutorial for that. Either way, it is just the thing for your next coffee table.