Send data between LEGO hubs and Raspberry Pi Pico #1599
Replies: 4 comments 14 replies
-
Something along the lines of your plan to use the RFID tag to determine the position of a train is on my docket of things to do as well. It might be interesting to set the Pico up to command the Lego Hub via UART (or vice versa) so you only have to write the control program on one of the two devices, and the other one can be a simple listener program that never needs to change. Personally, I would run the control program on the Pico, since I'm getting into the C/C++-on-MCUs game. |
Beta Was this translation helpful? Give feedback.
-
This looks great, thanks for sharing @KWSmit ! |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing this. |
Beta Was this translation helpful? Give feedback.
-
There is now also this library to further simplify it, and use it with (almost) the same API as on the hubs. This has been an unfinished work for the longest time, so I figured it was finally time to update and publish it 😄 |
Beta Was this translation helpful? Give feedback.
-
Pybricks uses Bluetooth BLE data broadcasting for sending information between LEGO hubs. The same technique can be used to send data between LEGO hubs and Raspberry Pi Pico. The good news is that it's not that difficult, thanks to Pybricks. I made a tutorial on Github. This way you can use a lot more sensors in your Pybricks projects. I'm thinking of using rfid-tags to distinguish which train enters the station 😄 Any other ideas?
Beta Was this translation helpful? Give feedback.
All reactions