How to make LEGO Mindstorms, Technic, Spike and City hubs communicate via Bluetooth using Pybricks
Вставка
- Опубліковано 20 жов 2024
- This video explains how you can use Pybricks to make two or more LEGO hubs communicate via Bluetooth. This lets you build bigger robots, or networks of small creations that work together. You can try it out via pybricks.com/
It works with LEGO MINDSTORMS, Technic, City, SPIKE Prime and SPIKE Essential.
This is fantastic.
Really cool!!!
I have RI hub, Prime,hub and Boost hub.
Now, I want the Essential hub.
To have the option for two remote I/O. 😊
Will this work for the hubs that come in LEGO City Train sets as well?
Yes! See 6:46.
Just great!!!
hi, i´ve used lego mindstorms for a while now, but now im more into arduino and the code behind it, is it possible to connect an arduino and a lego mindstorms hub with an hc-05 module using pybricks and transfering data from both sides?, i would like to use mindstorms again using more advance code and more sensors for crazy machines, thank you for reading!
Sure, you could make an arduino that has BLE support broadcast and observe the same data as the hubs!
Thanks for replying!!! Do you have any examples of how that could be done?@@pybricks
@@XolotlcraftNot yet - our focus is on the LEGO hubs for now :)
Ok, thanks!!!
I am looking forward to see a sale discount for block diagram functionality :)
We have one this week! Check our Facebook page :)
Hello I have problems to connect my lego spike hub with mindstorm app. Could you help me with this issue?
Sure! Although this is using Pybricks, not the Mindstorms app. But you can still ask about it on our forum, we can probably help :)
Cool stuff! Is it possible to send bluetooth data not from another pybricks hub, but from computer? Like python program on a laptop sends data and pybricks hub reads it?
Yes, we've published the protocol. Anything that can scan/broadcast will work. For example an Arduino or Raspberry Pi will work too.
@@pybricks is it just a protocol description or ready-to use lib or code example?
@@1Cygapb1 just the protocol. We'll post an arduino example at some point.
@@pybricks how about the BBC microBit? That's a common device for education here, and would be nice to utilize it with joysticks and buttons as a remote, rather than the LEGO remote, with only digital input.
Would love some examples for microBit to build upon.
My "dream remote":
microBit + 2x joysticks + 2x analog triggers + 8x buttons + 20x4 LCD i2c
@@thorbjrnhellehaven5766Anything with Bluetooth Low Energy should work. I think the MicroBit V2 has that!
Would you mind asking your question over at github.com/orgs/pybricks/discussions
That will allow us to post a proper example code and allow others to learn from it too :)
Can I use Pybricks to talk to a Lego City (train) hub using an Apple computer? I want to program my trains but don’t have a Windows computer
Yes, Mac is supported! You can try it out to be sure. (In fact Windows was not even used to record this video!)