Born out of a passion for model railways and the everyday needs of a real layout: fully automatic operation, a freely designable graphical interlocking in your web browser with no need to sit at the host PC, and true hands-on control via the Elgato Stream Deck plugin and the wireless Elecrow ESP32 rotary knob (an off-the-shelf module for about $30 running our own firmware).
TrainMaster is open source under the MIT license: the software, ESP32 firmware, Stream Deck plugin and 3D-printable files are freely available on GitHub at no cost.
Click through the different areas of TrainMaster. Every view runs responsively right in the browser. The interface itself is available in English and German.
The control centre for your fleet: an overview of all train types, live block occupancy on the layout, and placing a train on the track in seconds by tap or drag & drop.
Draw your track freely on a grid in the browser β with automatic track analysis, block generation and turnout locking:
All signals and occupancy detectors are driven within milliseconds by our optimised custom ESP32 firmware β no expensive proprietary add-on hardware required:
Control several trains at once on any device. When you add a new locomotive, its functions and sounds are labelled prototypically and given matching icons:
Open and precise: TrainMaster connects seamlessly to modern command stations and protects your layout with smart train protection:
No cryptic data dumps or hex codes: TrainMaster translates bus commands and feedback into plain text β so you can troubleshoot without expert knowledge:
Turn your Stream Deck (Classic, MK.2, Mini, XL or Plus) into a tactile control panel. Turnout positions, signal aspects, loco speed steps and sounds are shown live on the key displays:
Why TrainMaster makes life easier for model railroaders
The bridge between digital software and the physical model railway
The TrainMaster plugin (included in the GitHub repository) turns any Stream Deck (Mini, Standard, XL or Plus) into a hands-on control panel. Turnout positions, signal states and routes are shown live on the LCD keys. A single key press is enough for an emergency stop or to set a route.
Supported: Stream Deck Classic, XL, MK.2 & Stream Deck Plus (dial support)Hands-on model railway control, up to date: we use the off-the-shelf Elecrow ESP32 rotary display/knob module (very affordable at around $30). With the TrainMaster firmware it offers a round touch display on top for fast train selection and a surrounding RGB LED ring for live visual feedback on speed steps, braking and status changes.
Round touch display (train selection) β’ RGB LED ring (live feedback) β’ Off-the-shelf $30 hardware β’ Direct Wi-Fi connectionAll signals (discrete LEDs or WS2812 RGB) and feedback sensors (current sensors & contacts) are controlled in real time by our optimised ESP32 WIO firmware. It runs on common standard ESP32 boards and talks to TrainMaster wirelessly via port 8051 (WIO / UDP) or REST webhooks β no expensive proprietary add-on hardware needed.
WIO server port 8051 β’ 2β4-aspect signals & current sensors β’ Firmware for standard ESP32 boardsFree and open source under the MIT license β up and running in a few minutes
git clone https://github.com/ETSREAC/Trainmaster.git, then run npm install once in the folder.localhost:5173 β on a tablet, use the PC's IP address. Without a command station everything runs in the built-in simulator. Switch the interface to English with the EN button in the header.TrainMaster is an open hobby project and will stay free. Please report bugs and ideas as an issue on GitHub (English or German is fine). If you would like to support further development, you can buy me a coffee β from β¬25 you get a personal unlock code for the clean edition without support hints in the interface.