Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question/request #39

Open
Flangad opened this issue Sep 6, 2024 · 4 comments
Open

question/request #39

Flangad opened this issue Sep 6, 2024 · 4 comments

Comments

@Flangad
Copy link

Flangad commented Sep 6, 2024

Hello! very interesting informations in this project. Do you think it could be possible to create a Microsoft Makecode extension that would allow to control Lego Boost with a microbit?

@JorgePe
Copy link
Owner

JorgePe commented Sep 6, 2024

Hi! I never used Microsoft Makecode and after a fast look here (https://makecode.microbit.org/reference/bluetooth) I don't see a way to send BLE messages except through UART. The LEGO native firmware doesn't support UART but if it is possible to create extensions to write/read BLE characteristics then yes, you can controll BOOST with a microbit. If not, you will need to flash BOOST with an advanced firmware like pybricks that implements a UART service over BLE (Nordic UART Service or NUS).

@Flangad
Copy link
Author

Flangad commented Sep 7, 2024

thx a lot for the precisions... more complex than what i imagined... i'll try to check about BLE... but my coding/development skills are totally outdated. It would be so great to be able to combine the world of microbit, with wide range of sensors and easy coding, with the great motors control of Lego Poweredup for Robotic learning and prototyping!

@Flangad
Copy link
Author

Flangad commented Sep 7, 2024

does this could help: https://tech.microbit.org/bluetooth/ ?

@JorgePe
Copy link
Owner

JorgePe commented Sep 7, 2024

not much
that describes the micro:bit and gives some examples on how to use it as an end device, like emulating a common beacon service [so you can use your mobile phone to track micro:bit]
the problem here is that micro:bit (and also the BOOST) was not designed to directly initiate BT BLE communications to other end devices; the pybricks project eliminates this limitation by replacing the firmware but most micro:bit projects I find keep using the micro:bit firmware and only add some code to it
For what you pretend, the easiest option is to have a smartphone or a computer acting as a common controller to both the micro:bit and the BOOST. You can use something like Scratch, it has extensions for both devices (https://www.youtube.com/watch?v=sG5eNHdgSu4). But I am afraid Makecode doesn't have an extension for Powered Up devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants