I am trying to figure out how to run my model HO scale train using my Raspberry Pi. While I have found videos on YouTube of people operating their model via RPi, I can't find any way to do it myself. Does anyone know code or the setup to get this working?
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
I have no clue about model trains, but a quick Google search reveals that there are multiple projects for Linux which allow you to control model trains. It seems that Rocrail is one of them, and they even have a Raspberry Pi page in their wiki.
You need to fetch one of their pre built packages, and install it:
sudo dpkg -i rocrail-xxxx-wheezy-armhf.deb
Where xxxx denotes the version number (5655 as of this writing). You seem to need to have a digital command station for your model train, which will be attached via ethernet or USB to the Pi. You need to figure this one out for yourself, but the Rocrail wiki seems full with information on this.