Over at Dexter Industries they wanted to control a vintage Lionel trainset from the Pi. For this, they used their Arduberry board (which brings Arduino-compatible control to the Pi) and some standard software and custom code. Read how they did it here. You can see a video below.