Trainiot

Control a small model train layout using Windows IOT running on a Raspberry Pi. This is not intended to replace any of the existing model train control packages with fancy nifty features, it is just to experiment with creating it all from scratch. If you find something that can help you feel free to borrow, steal, or even contribute... once there is something it is possible to contribute to of course.

Hardware

As the Raspberry Pi is not a real time device it is not able to generate the DCC signal directly using the IO ports. The sensible thing to do is to use a SPROG, IB-COM or one of the other countless command stations with a serial or USB interface. Or maybe connect an Arduino with USB and run DCC++ on it if you do not always want to go for the simplest option.

The less sensible thing is to create your own hardware. It's not that hard to do if you are crazy enough - basically any microcontroller will do the job with a minimum of coding and hardware. But what do you do if even this this is not crazy enough? You use standard off the shelf logic ICs to read the DCC signal through the SPI protocol and generate the corresponding DCC signal.

Trainiot SPI 2 DCC

Notice this is work in progress - so far the device has been assembled on a breadboard only and - as the booster has not been constructed yet - it is not known if this will work in practice.