Not too long ago, I started a thread to see if an Arduino micro-controller could be used to replace the train dispatcher-in-a-closet on a large model train layout. I received a lot of good advice and several options to follow. Original Thread I've progressed sufficiently to start building my actual train layout, knowing that this simplified scheme has a high probability of working...at least in my head. I wrote everything down and attached the paper and the Mega 2650 program.
At the moment, trains can only move in 1 direction on the sidings. I've tried but can't figure out how to allow bi-directional travel. It's not a signal issue. The GreenSteam GSP-14 can handle bi-directional travel. My first thoughts are to associate a direction with each path and then associate that direction with the train as it travels.
Ideas would be greatly appreciated.
Chaz
Automating Train Movement.pdf (127 KB)
TrainMovementControl.ino (5.82 KB)