Controlling the Lego Technics Hub (Hub 2) via Bluetooth (btle) using a Rasperry Pi 4B

A school project that shows how to control a Lego Jeep with Bluetooth on the Raspberry Pi 4B. The Sources can be found on github

Current State:

  • Motors can be registered at the Hub 2 Hub
  • Motors can be combined and registered at the Hub 2 Hub (for synchronized command execution)
  • Motors can be turned by Degree and by Time
  • Motors can be reset
  • Motors support gear train
  • A TestScript that shows what can be done is available

Next Steps:

  • Query over-/under-current of Motor, resp. STALL status
  • Better Notification-thread implementation
  • Correct and clean findings notes