Skip to content

nvsukhanov/MOC-Commander

Repository files navigation

MOC Commander: PWA for controlling LEGO® Powered Up devices

GitHub license CI Status GitHub release

An open-source Progressive Web Application for controlling LEGO® Powered Up devices with physical controllers.

Deployment of the latest stable version is available at https://moc-commander.com

Features

Input

  • Supported input devices:
  • Any number of input devices can be used to control any number of outputs
  • Input devices can be configured: gamepad axes active zones, input gain (liner/log/exp) etc

Output

  • Supports LEGO Powered Up hubs (compliant with LEGO Wireless Protocol v3.0.00)
  • Utilizes dynamic IO capabilities discovery to determine supported IO operations by the device.
  • Supports connection to multiple hubs simultaneously

Operation Modes

  • Supports the following device operation modes:
    • Speed
    • Set angle
    • Servo w/ auto-calibration on start
    • Stepper
    • Train
    • Gearbox
  • Allows fine-tuning of operation mode parameters such as speed limits, power output, angle limits, etc.
  • Supports acceleration and deceleration profiles (slow start and slow stop, especially useful for trains)
  • Allows reading and adjusting of motor position during the configuration of control schemes

Misc

  • Supports reading of sensor data (voltage, pitch, yaw, etc) and displaying it during operation
  • Import/export of control schemes
  • Backup/restore application state
  • Supports small screen devices
  • Supports dark theme
  • Installable as a PWA

Supported platforms

  • Windows
  • macOS
  • Linux
  • Android

Limitations

  • Due to the nature of the Web Bluetooth API used for hub connections, the application is compatible only with the latest versions of Chrome and Chromium-based browsers (Edge, Opera, Brave, etc). Check here for the full list of supported browsers.
  • iOS devices are not supported due to the lack of support for the Web Bluetooth API.

Disclaimer

LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this application.

Screenshots

Running control scheme Gamepad settings Hubs list
Running control scheme Gamepad settings Hubs list
Hub view Control scheme view Control scheme view (dark theme)
Hub view Control scheme view (full) Control scheme view (full, dark theme)
Control scheme export (dark theme) Control scheme edit Controllers list
Control scheme view small screen Control scheme edit Controllers list