Skip to the content
2 layers91 × 91 mmFader Platine, the printed circuit board in 3D

Drive your brick-built trains from your computer or a home-made remote – via Bluetooth, without internet, without an account.

Size
91 × 91 mm
Copper layers
2
Thickness
1.6 mm
Parts
17
Nets
22
Pads
58
Tracks, vias
97, 0
Pours
6
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
29 Oct 2026
Updated
31 Oct 2026

Overview

Fader Platine is an open-source printed circuit board by ru320, from the ru320/StudRailMaster repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 91 × 91 mm with 17 parts on 22 nets, routed with 97 tracks and 0 vias.

Its parts include 4 capacitors, 4 resistors and 1 connector.

README

README.md

Stud Rail Master – drive brick-built trains via Bluetooth, with real levers

Drive your brick-built trains from your computer or a home-made remote –
via Bluetooth, without internet, without an account.

🇩🇪 Deutsche Fassung · Installation · User guide · Remote


Why?

The layout runs trains with motor hubs from three makers: a cheap JMC hub, a Mould King 4.0 from the Orient Express and a LEGO City Hub from the freight train 60337. Every hub wants its own phone app. Every app has different sliders, and driving two trains at once means two phones.

I wanted one control desk for all trains – ideally with real levers you push with your thumb, and a big red button that really stops everything. No account, no ads, no cloud. That turned into two things:

Stud Rail Master – the PC programfor Windows, macOS and Linux. Find hubs, add photos of your trains, assign levers, drive. Needs no extra hardware.
Stud Rail Master Quadro – the remotean ESP32 with four slide pots, direction switches and an emergency stop. Drives up to four hubs on its own, no PC needed; set up through a web page in your phone's browser.

Both share the same drivers and take turns: when the PC starts it takes over the radio, when it quits the remote drives again.

What it looks like

Loading screen: logo, a brick train runs along the track Drive page with three levers and emergency stop

Four throttles, freely spread over the ports of three hubs

Every socket of every hub gets a throttle – spread any way you like: two motors on one throttle, one throttle across several hubs (even from different makers), single motors inverted. More in the user guide.

  • One lever per throttle – drag up to go faster, one tap to change direction, a big red emergency stop (also on the space bar).
  • Your trains, your pictures – put a photo on every hub so you always know which lever moves which train.
  • Many trains at once – up to 16 throttles; one throttle can drive several locomotives, even from different makers.
  • Gentle direction changes – the train slows down and starts off the other way, instead of jerking.
  • Stays at home – no internet, no account, no advertising, no data collection.
  • Help built in – the same guide as here, offline in the program (the ? button).

Which hubs?

HubWindowsmacOSLinuxRemote
JMC hub (shows up as “JG_JMC-…”, ports A–D)✔✔✔✔
Mould King 4.0 (ports A–D, up to 3 hubs)⚠ not yet tested✘ → Linux or ESP32 with web page✔ one-time unlock✔
LEGO Powered Up City Hub (88009, e.g. set 60337, ports A/B)✔✔✔✔

Planned:

  • IR hubs (infrared, protocol like LEGO Power Functions) – transmitter in the remote, the window in the case is already there
  • BlueBrixx hubs with 2.4 GHz radio
  • LEGO Technic Hub (4 ports), Mould King 6.0 (as soon as the hubs are available)

Get started

  1. Download the program for your system from the releases page and unpack it.
  2. Start it, switch your hub on, find it under Settings → Find hubs, assign a throttle – and off you go.

Step by step: Installation · User guide · Set up the remote · Together with the remote

Want to try it without a hub first? Demo mode simulates three trains (see the user guide).

Or run it from source

With Python 3.10 or newer: download or clone this repository, then start app/start.sh (Linux), app/start.command (macOS) or app/start.bat (Windows). The first start sets everything up and downloads the required Python packages once; after that it starts right away.

Safety

Some hubs simply keep running their last command when they hear nothing more. So everywhere:

  • Emergency stop halts every train immediately – even in the middle of a direction change.
  • Nothing moves until every lever has been at 0 – after switching on and after every emergency stop.
  • On quit, on a lost connection and before every restart a stop is sent actively.
  • When you drive through the remote's web page, it triggers an emergency stop as soon as the page has been silent for 2 seconds.

The long road

No maker has published its protocol (except LEGO). What now fits into a few lines of driver cost quite a few evenings:

JMC: the hub that would not listen

The protocol comes from a capture of the original app: 11 bytes, a checksum, done – or so I thought. The hub still ignored every drive command. The reason: a freshly switched-on hub has to receive a stop first, before it moves at all. Then came the second surprise: it has no watchdog. If the connection drops, the motor just keeps running – more than 20 seconds in the test, until it was switched off. Since then every path out of the program actively sends stop. And because ports A+B share one speed byte, two motors stuttered as soon as you tried to drive them separately.

Mould King 4.0: radio without a connection

This hub never connects. It is controlled through encrypted Bluetooth advertising packets that the app sends every 100 ms with a changing address. The encryption could be rebuilt thanks to other people's work (see THIRD_PARTY.md) – and still nothing moved. In broadcast mode Linux drops three inconspicuous bytes (the “flags” 02 01 02), and without exactly those three bytes the hub ignores everything. On Linux the commands now go straight to the Bluetooth chip. macOS doesn't allow that at all. By the way: one reference had forward and reverse swapped.

LEGO City Hub: the impatient one

The only hub with open documentation – and still fussy: if nobody connects right away, it switches itself off after a few seconds. So the program no longer searches at leisure but grabs it the moment it shows up.

Packaging: 301 MB for one window

The first Linux program accidentally bundled the whole GTK toolkit and weighed 301 MB – and still didn't run everywhere, because WebKitGTK can't be packed portably. Now it ships Qt WebEngine (171 MB). The built-in Chromium sandbox failed on locked-down namespaces, an AppImage can't be given special privileges, and the Mould King radio needs exactly such a privilege – so there is now a tiny helper you unlock once with your password. And for a while, the browser opened every time along with the program window.

New findings about hubs go into drivers/*.json as test vectors – so PC and remote check on every build that they still send exactly the same bytes.

The remote

An ESP32 DevKit, four 75 mm slide pots, four toggle switches with an LED for the direction, an emergency-stop button and 4× AA batteries in a printed case. The firmware also works on its own without any of that – then the levers are sliders on the web page StudRailMasterQuadro.local.

Preview – not yet printed or tested. The case is fully designed on the computer but nobody has built it yet. If you print it first, feedback is welcome.

Case of the remote: desk with four orange slide levers, toggle switches and a red emergency stop

  • Case (German) – 180 × 180 mm desk, every part printable in one colour (build plate from 185 × 185 mm), STL files and a parametric CAD model (SolidCraft, STEP)
  • Parts list (German) – electronics, bought parts, screws
  • Flash and set up the firmware – already works with a bare ESP32 DevKit
  • Schematic to follow; the pin assignment is in the parts list.

For developers

The project consists of the PC program (app/, Python) and the firmware of the ESP32 remote (src/, lib/, PlatformIO). Both share the same hub drivers (drivers/).

License

Free software and open hardware – if you change it and pass it on, you must share it under the same terms:

PartLicense
Software (app/, src/, lib/, test/, tools/, drivers/)GPL-3.0-or-later
Hardware (hardware/: schematic, PCB, enclosure)CERN-OHL-S-2.0
Docs, images, logo (docs/, README*)CC BY-SA 4.0

Third-party parts (Barlow fonts, prior work on Mould King) and their licenses: THIRD_PARTY.md.

LEGO® is a trademark of the LEGO Group, Mould King a trademark of its manufacturer. This project is not sponsored or endorsed by either; the names only describe which hubs it works with.


In Herbrechtingen ist es immer am schönsten!

Parts

17
QtyValueFootprintReferences
4100nCapacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mmC1, C2, C3, C4
41kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4
4B103 75 mmZugFern:Fader_B103_75mm_DualRV1, RV2, RV3, RV4
4M3MountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
1zur HauptplatineConnector_JST:JST_XH_B6B-XH-A_1x06_P2.50mm_VerticalJ1

More from ru320/StudRailMaster

1
  • 2 layers100 × 52 mmHauptplatine, the printed circuit board in 3D

    Hauptplatine

    ru320/StudRailMaster

    Drive your brick-built trains from your computer or a home-made remote – via Bluetooth, without internet, without an account.

    40 partsGPL-3.0

Similar boards

  • 2 layers50 × 35 mmServo power, the printed circuit board in 3D

    Servo power

    earthtojake/text-to-cad

    Design physical products with AI

    17 parts26kMIT
  • 2 layers139.7 × 62.2 mmBreakout 60pin EEC IV, the printed circuit board in 3D

    Breakout 60pin EEC IV

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    17 parts1.2k
  • 2 layers29.2 × 55.9 mmDeniseadapter, the printed circuit board in 3D

    Deniseadapter

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    17 parts1kGPL-3.0
  • 2 layers24.5 × 36.5 mmCluster, the printed circuit board in 3D

    Cluster

    JesusFreke/lalboard

    A 3D-printed keyboard inspired by the DataHand

    17 parts993
  • 2 layers56.3 × 55.7 mmStarNecklace, the printed circuit board in 3D

    StarNecklace

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    17 parts915
  • 2 layers25 × 25 mmSmallEncoder, the printed circuit board in 3D

    SmallEncoder

    DDeGonge/OS-ARM

    This arm is not industrial and it will not be fast, but that is not my goal. But it will hopefully be a very nice looking arm fully capable of 6dof motion, cheap enough to keep it accessable but capable enough to…

    17 parts498MIT
  • 2 layers38.9 × 16.1 mmAmoeba spc, the printed circuit board in 3D

    Amoeba spc

    mtl/keyboard-pcbs

    Keyboard PCBs

    17 parts485
  • 2 layers36 × 51 mmABSIS ALE, the printed circuit board in 3D

    ABSIS ALE

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    17 parts431

Questions

How big is the Fader Platine PCB?

It measures 91 × 91 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Fader Platine use?

17 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Fader Platine KiCad files?

From the ru320/StudRailMaster repository on GitHub, at the commit this page was made from: the board is hardware/platinen/fader/Fader-Platine.kicad_pcb and its schematic hardware/platinen/fader/Fader-Platine.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Fader Platine design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).