Wednesday 26 October 2011

Train Cab Control System Part 1

In the effort to occupy more of my spare time, and to create a problem to be solved, I decided that a regular DCC controller for my forthcoming OO layout is just not good enough.

Looking around, I've not found anything good enough or cheap enough to use, nor anything that's actually good-looking or remotely fun to use. So new projects, here we come.

The Idea

The idea is to build a pseudo-realistic control panel, that mimics the pre-requisite controls, and the type of touch and feel found in the cab of a real train. Because I don't have a specific train cab in mind, I'm not replicating a prototype panel in existence, but taking the essence of the feel of the cab and condensing that into something small enough to be used practically at home.

After seeing the InterCity APT a few weeks back, I've been inspired by the simplicity and general layout of it's controls. Coupled with images scouted from Flickr and with Google, theres enough scope to do something that is original, yet quite obvious as to purpose.

The Look & Feel

I started researching and planning an older style panel, but gave up when I made little headway in sourcing real (actual used/new parts) or pseudo-real (stuff that vaguely looks like the real thing) levers and parts. It seemed I'd be forced to make replicas; either approximate in size, or scaled to fit, using vac-form plastic and wooden parts. While relatively straight forward for me, I just don't have the time or space to be doing that at the moment (though I'm really keen to build a mini-vac former so I can do it in the kitchen).

Having stared at the pictures of the APT cab, it dawned on me that not only can I build a modern cab using actual components (allowing me to get away from the "hand-made" look), but I'd have enough wiggle room to build something that could look like a prototype off Bombardier or Siemens' next design.

By using the same kind of switches and selectors as would be used in an actual cab, the panel should have the same feel - even with clunk-click selector switches for direction, and large illuminators for feedback. I'm not planning to use electronics parts (the kind you pick up at Maplin), but the regular day-to-day heavy duty controls that we use in proper control panels.

The Controls & Electronics

The manufacturers of train control systems, for the most part, use these electrical components in their panels - there will however be some difficulty in sourcing the two quadrant levers used for speed and braking, and any needle gauges (yup, seems like they're still being used). My initial thoughts are to utilise LCD displays for speed, braking and "general information" (i.e. the DCC train selected and other programming stuff).

I'm also considering how advanced it should be, as a keypad might be useful - then again, with the palette of functions in DCC, provided I settle on function numbers for each function layout-wide, there'll be actual buttons for those functions - two-way horn buttons, light switches, pantograph controls etc. A ball-mouse or trackpad is probably overkill, but worth considering for JMRI integration.

It'll basically be a panel building job, tied into an Arduino based I/O card, and a couple of extra bits of electronics for the gauges. I'll also finish it with nice rugged connectors for power, data and USB (interfacing the Arduino).

For the most part, I'll used Telemecanique buttons and switches, though the quadrants might be a custom build using Telemec bits and bobs, and some scratch building for the framework. The LCD units will be of course interfaced with the Arduino, but are as close to what would be used, that they'll be fine. I'm not going to use little LEDs etc, but instead use actual pilot lights (big, but the real thing).

I've sourced a large angled console enclosure, that features a display panel - and excellent mimic of the real thing. Using aluminium, I'll build one or two brackets, one to hold a mini LCD display (for JMRI) and one to hold some additional controls I might implement in the future. I'd love a touchscreen, but I think it might knock the panel over using it, so that'll be a separate project (a signal operators panel I think).

It'll be tied together by a paint job to the case (greyish blue/bluish grey) and polycarbonate-coated polyester labels (again what's used in combination with traffolyte for the real thing).

I'll of course go balls-out on the internal cable looms, even though it'll spend most of it's time sealed. Might put thumb-screws on for easy internal access...

DCC Integration

The biggest issue that was always going to present itself, was integration with a DCC system. After spending time chatting with the folks at MERG, it seems that my original thoughts are correct, and that unless I plan to write an entire DCC stack (ermmm, no), then I need something else to do the DCC control.

So this leads onto JMRI and CAN-Bus.

I have two options at this stage, both involve JMRI as the core DCC control stack. The panel can either interface through customer code using USB and acting as an input to JMRI, or it can be part of a CAN-Bus network, and the CAN-Bus controller can interface JMRI. Thanks to the work at MERG, the latter looks to be the easiest.

More to come, plus I'll start posting pictures of parts as they arrive. Lots to think about on the code side, and integration, so again, more to come.

Stay tuned.

Monday 10 October 2011


In a packed weekend, I got to see lots and lots of Barbary Macaques up-close in a forest... Oh and I got to drive two trains.

Oh yes.

Not only did I get to drive a class 03 diesel shunter (03703), but I got to drive a class 73 electro-diesel locomotive tractor unit (73006) too... Both were in their BR colours; a wonderful combination of BR Blue and yellow (with the body in the distinctive BR greyish-blue and the cabs in the normal yellow).

Class 73 Electro-Diesel (73006)

I'm not sure which I loved the most, driving a 600hp generator on rails (the 73) or the 200hp farm tractor on rails (the 03). Both are so different, but both fantastic to drive; the former is what you'd expect from a train - ammeters, voltage regulators and a wide range of mode selectors, and the latter is a simple combination of air-selected gear changing and a throttle.

Class 03 Diesel (03073)

A short post, but I'm in the middle of getting the Arduino code right for the twin-thruster controls... Oh, and I've got plans for a few of new projects, including an OO (1:76) track inspection carriage (a real one, that'll use image analysis software) and a DCC control panel that mimics a real set of cab controls.

Lots of pictures to follow...

Thursday 6 October 2011

RIP Steve Jobs

I've never been one to idolise, nor one to have personal heroes, but to me, Steve Jobs has always been a hero and an inspiration since my first foray into Apple Computers, and it's colourful history. I love watching his keynotes (even after knowing what was launched or announced), they motivate and captivate like no other. His attention to detail and passion are present in every product. His vision and his compelling ability to excite and inspire will be sorely missed, but never forgotten.