Page 1 of 1

Is it possible to connect some micro:bit to raspberry

Posted: Thu Oct 15, 2020 9:05 pm
by syl
Hi,
I would like to connect 10 micro:bit(new version or the old one) to a rasberry at the same time. Do you think it's possible with bluetooth ? Or some other way?
Thank you !

Re: Is it possible to connect some micro:bit to raspberry

Posted: Tue Oct 20, 2020 12:45 pm
by jimmo
syl wrote:
Thu Oct 15, 2020 9:05 pm
I would like to connect 10 micro:bit(new version or the old one) to a rasberry at the same time. Do you think it's possible with bluetooth ? Or some other way?
It depends what you mean by "connect". :)

It's obviously possible to use a USB hub and physically connect them to the Raspberry Pi.

MicroPython on the micro:bit doesn't support Bluetooth (BLE), however it does support sending basic messages over the same radio that BLE uses. So one way that you can do this is to have one micro:bit connected to the Rasberry Pi over USB that you send commands over the REPL or serial to, which then talks to the other 10 micro:bits over the radio. I have done exactly this with my students in the past. https://microbit-micropython.readthedoc ... radio.html