10

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?

4 Answers 4

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.

3

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

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.