Skip to content

Lego Powered Up Train Controller with Gamepad Support and Multiplayer (for Android, Windows and Browser)

Notifications You must be signed in to change notification settings

ronnyporsch/TrainController

Repository files navigation

Platform: Windows Platform: Android Platform: Browser

Train Controller

Control your Lego Powered Up Trains from your PC or phone! You can even do so with a gamepad (or more than one!) Try it out at https://ronnyporsch.github.io/TrainController

Features

  • Control speed and Light
  • Gamepad Support: use your Xbox Gamepad to drive your trains
  • Control multiple trains at the same time: When using a Gamepad, you can select multiple trains to control at once
  • Multiplayer: Use multiple Gamepads simultaneously at the same time to control different trains

UI

Screenshot 2025-07-27 131602

How to use

  1. Download the latest Release (Windows and Android only)
  2. Run the application:
  3. (Optional) Connect up to four Gamepads
  4. Turn on your Lego Trains
  5. Enjoy!

Build it locally

  1. Clone the repository
  2. Run the app on your target platform:
    • Windows: .\gradlew composeApp:run
    • Android:
      • connect your Android device
      • install the app using .\gradlew composeApp:installDebug
    • Browser:: .\gradlew wasmJsBrowserProductionRun

Limitations

  • This program only works with the Lego City Powered Up Hubs (found for example in the current Passenger and Freight Trains )
  • The program expects the Motor to be on Port A of the train hub, the light (if available) on Port B
  • Gamepad Support was only tested with Xbox One Gamepads. Others may or may not work properly
  • The Browser version requires support for the Web Bluetooth API

Credits

This software was inspired by the amazing Brick Automation Project

About

Lego Powered Up Train Controller with Gamepad Support and Multiplayer (for Android, Windows and Browser)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages