If you were a British kid at any time from the 1950s to the 1980s, the chances are that your toy shop had a train set in it. Not just any train set, but a full model railway layout in a glass case roughly the size of a pool table, with a button that when pressed started a timer and set a little tank engine off on a circuit with a pair of coaches. Magical for a generation raised on black-and-white TV, but probably not something that would cut it with today’s youth. A modern take on the glass-case layout comes from [Jack Flynn], who has created a coffee table with an automated and computerised N-gauge railway layout inside it. And this is definitely a railway rather than a railroad, the main locomotive is a Brush Type 4, a British Rail Class 47 diesel.
The modelling is a work of art, with a slightly idealised British street scene in an oval of double track against a backdrop of a rocky hillside. In the hill is an unexpected surprise which you can see on the video we’ve placed below the break, and beneath it lie the electronics. A Teensy handles the track switching and all the various LED lights around the board, a Sprog DCC controller takes care of the trains, and overseeing everything is a Raspberry Pi running some custom software in Python with a web interface for control. We probably wouldn’t be able to resist a bit of remote-control railway action if our coffee table had a layout like this one!
Continue reading “Coffee Tables, Computers, And Railways”
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.
Continue reading “A Turntable For Model Railroads”
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.
Continue reading “The Arduino Hits The Rails”
Ah, Christmas, the time of festive good cheer, cherubic carol-singers standing in the crunchy snow, church bells ringing out across the frozen landscape, Santa Claus in his red suit flying down the chimney with a sack of presents, the scent of Christmas meals cooking heavy upon the air, and a Canadian guy wearing a trainset.
Wait a minute, we hear you say, a Canadian guy wearing a trainset? That’s right, not satisfied with the sheer awfulness of his ugly Christmas sweater on its own, [BD594] made it extra-special by incorporating a working Christmas tree trainset into the ensemble. As if the discovery that Christmas tree trainsets are a thing was not enough, we are treated to the spectacle of one on a plywood ring suspended from a particularly obnoxious Christmas-themed garment. Not all hacks are in good taste, and in fairness we have to note that this one is tagged as comedy rather than railroad engineering.
You can view the result in the video below the break. It’s short on technical detail, which is a slight shame as even though there are few mysteries in powering a small trainset it might be interesting to know how the method used to suspend the baseboard. We’d suspect a harness underneath that jumper, as Christmas garments are built for looks rather than strength.
Continue reading “The Most Tasteful Of Christmas Sweaters Come With A Trainset”
[Mike Rigsby] has moved a train with a coin cell. A CR2477 cell to be exact, which is to say one of the slightly more chunky examples, and the train in question isn’t the full size variety but a model railroad surrounding a Christmas tree, but nevertheless, the train moved.
A coin cell on its own will not move a model locomotive designed to run on twelve volts. So [Mark] used a boost converter to turn three volts into twelve. The coin cell has a high internal resistance, though, so first the coin cell was discharged into a couple of supercapacitors which would feed the boost converter. As his supercaps were charging, he meticulously logged the voltage over time, and found that the first one took 18 hours to charge while the second required 51 hours.
This is important and useful data for entrants to our Coin Cell Challenge, several of whom are also going for a supercap approach to provide a one-off power boost. We suspect though that he might have drawn a little more from the cell, had he selected a dedicated supercap charger circuit.
Continue reading “This Coin Cell Can Move That Train!”
[kodera2t] discovered the VL53L0X Time of Flight sensor and thought it would make a great way to control the operation of a model train without touching it. He explains it in his own words in the demo video.
The sensor was small enough for an N-gauge train, which translates to 1:148 scale or about 9mm from rail to rail. His idea was to build a tiny control board that could fit inside the locomotive: 10mm by 40mm. His board consists of the ToF sensor, an ATMega328P-MMH, USB-serial, and a Texas Instruments DRV8830 motor driver. he powers the board via the 6V running through the track.
Right now [kodera2t]’s using the ToF as sort of a gestural controller to get the train to start rolling, but one could imagine the sensor could be incorporated into more advanced programming, like having the train speed up on straightaways and slow down on a curve, based on the height of the bridge over it.
We’ve published a bunch of [kodera2t]’s tiny circuit board projects here on Hackaday, including the smallest basic computer, his minimal frequency counter, and his VFD amplifier.
Continue reading “Tiniest Control Board Fits Inside An N-Gauge Model Train”
The word hacking got its start with model railway clubs, and the state of the art belies the current advancements in computer control and very, very small microcontrollers. [Jim] put together a great tutorial for driving model locomotives with a microcontroller, in this case an ARM-powered mbed.
Low-end model locomotives are controlled with DC, so an H-bridge and a PWM out on the mbed makes sense to drive these trains. [Jim] wired up a Pololu H-bridge driver, connected it to his mbed, and everything ran great.
Rail switches are another matter entirely. These allow trains to move from one track to another, but having them go to the left or right requires powering a fairly high current solenoid with 15 to 24 volts. For this, [Jim] used a MOSFET power control board to switch the rails and came up with a pretty neat demo that shows a small locomotive going back and forth over a single rail switch.
There is another class of model locomotive – ones with Digital Command Control. This setup is just a small decoder chip that fits inside an engine and tells the locomotive to turn on a lamp or run a motor digitally, allowing the conductor to control multiple trains on the same track.
[Jim] goes through the basics of DCC using the mbed, allowing two trains to switch positions in a rail yard using computer control. It’s really cool stuff that leaves us wanting a little more room in the basement to start building a huge computer controlled model railway.
Continue reading “Controlling A Railroad With An Mbed”