r/modeltrains • u/_Wartoaster_ • 6h ago
Electrical I made a business card sized model railroad layout with physics simulation and games
I wanted to replicate the experiece of running a layout, but with the portability of being able to fit in your pocket. Obviously this isn't using real locomotives and carriages, but the spirit is fully there.
The thumbwheel on the bottom right will change the speed and direction of the engine, which is coupled to the cars using the rightmost set of DIP switches. The physics simulation takes mass, rolling resistance, and even air resistance into account, meaning the engine is much faster with no cars coupled, and the cars themselves can transfer inertia to one another. This is important for the Curling game.
The leftmost set of DIP switches allow for the track switches to change, so you can shunt cars around and rearrange them, which is how you play the Puzzle game.
Being a layout, the obligatory mountain and tunnel are there. The engine will head through the tunnel during the Trolley Problem game, where you can use the buttons on the left to make split-second decisions.
The buttons on the left, incidentally, are how you enter all 4 game modes, including Puzzle, Curling, Trolley Problem, and Bomb Cart. The Bomb Cart game has you driving your engine and switching tracks to avoid the cart which is following you and will explode on the timer. Each round a new carriage is added, making the engine less responsive
This was a fun project to work on and I'm interested to hear feedback from the model railroading community due to the complete novelty of it. I totally understand there aren't any real rolling stock, and the gauge is a completely made-up thing I'm calling W gauge due to the use of WS-series LEDs, but I'd love to hear everyone's opinions!