Wednesday, October 24, 2012

JMRI BackAndForth.py


Most underground tracks are hooked up to occupancy detectors. I'm cleaning track and one of the easier ways to distribute the cleaning alcohol is to run a train back and forth over the cleaned section.  But that gets old pretty quickly, so I modified JMRI's BackAndForth.py sample script  and made a locomotive run through staging tracks controlled by a script.

This presents the first time that I dabbled in automated train control on my layout. So many possibilities ....

The video shows a trip of the locomotive through staging as seen on the main panel of the Welztalbahn.

No comments: