11

Over the holidays I tried the following Python library: https://github.com/undera/pylgbst but I couldn't get it to work. Then again my knowledge of Python is very limited.

I'm more experienced with C++ or C#, is anything available for those languages?

As a general question, do you know of any programming environments or API's that can control the LEGO move hub and its peripherals from the LEGO BOOST set?

Alexander O'Mara
  • 13,302
  • 4
  • 43
  • 97
Michael Verschaeve
  • 11,064
  • 1
  • 25
  • 62

4 Answers4

6

Boost and the other Powered Up components (the new City trains, the app-controlled batmobile, and WeDo 2.0) are controlled via Bluetooth. Any environment that can send bluetooth commands can be used to control these components.

There is a github page which documents some of the reverse-engineering that has been done and it links to several third-party Boost/PoweredUp programming libraries. I've used movehub, but there is another node.js library called node-poweredup which looks more complete.

Lego themselves have documented part of the BLE wireless protocol on github as well.

Mr. Shiny and New 安宇
  • 6,181
  • 1
  • 19
  • 50
3

Not C but you might take a look at https://github.com/JorgePe/pyb00st

Bart
  • 31
  • 1
3

If you prefer C#, there a new lib on the block: SharpBrick.PoweredUp. While the Boost hub and motors are missing, the protocol is implemented. Your use case should be two minor contributions away.

Full Disclaimer: I maintain the library. I do not have Boost Hardware but the protocol officially supports Boost Hub. Just some enums and types are missing.

zovits
  • 16,181
  • 1
  • 41
  • 80
Thomas
  • 191
  • 5
1

You can try our just released WeDo 2.0 Framework that should suppot Boost partially (full support will be added soon). It is open source and free for education (written in C#). You can find it by this link: https://github.com/btframework/WeDo