Lego Boost coding

 

                                                                                              


How much acceleration can support Lego Boost motor Hub? 

Then, how to modify speed in what it seems a fixed max item? 

This questions led me to search new ways to program it

 IDEs, Apps & Libbs to start programming for Boost:

 

Lego PoweredUp is the modern version of Lego Boost App, both by default the App that comes with your Lego set:

You'll program with blocks. Control the Hub via Widgets, they ŕe visual buttons in the tablet,but can´t work in autonomous way.

Guide for How-to use blocks:
https://www.lego.com/es-es/service/help-topics/article/lego-powered-up-programming-blocks

In PoweredUp all proyect files can be found here:

Phone/Android/data/com.lego.poweredup/files/Activities/

 

Pybricks:

Boost can works in autonomous way not relaying on a Bluetooth connection with an App. Upload your code and run it. 

Need to install Pybricks firmware om the Lego via Bluetooth

Itś based in Micropython

Coding in text is free, coding with visual blocks its 5 per month, 50 per life

Like MicroPython, Pybricks can run on just about every device that lets you update the firmware

Wanna try without subscribing? , yes it can be used without the bricks,  just code in text. 

https://github.com/pybricks/pybricks-projects/tree/master/sets

https://tutorials.aposteriori.com.sg/110-Pybricks-Basics/10-Introduction/10-Intro.html

https://youtu.be/8sMpt8ULk6Q?si=jZmr0PF90gnSW2PJ

https://youtu.be/mtlIB2ErlUY?si=-UM53lIsjbxhn_e7


Scratch:

https://scratch.mit.edu/ 

Visual coding in blocks. Posibility to connect keypad to a tablet to move the hub using keys.

http://www.brickcodelab.com/boost-scratch/pinball

https://youtu.be/p_WZnqT-Fow?si=RDVWRMc-E6wEvG9Bñ

When exporting Scratch proyects they are saved like .sb3

What are scratch files, .sb3, what's this? 

I opened in text editor and it looks like ciphered text.

 

Lego Boost with Python programming:

From Pc, download libs to interact with the Lego Boost via Bluetooth.

"Basically, to get the Move Hub to do things, you send it a command, as you might expect; however, to get information back from the Move Hub, you have to subscribe to the appropriate stream."

Libs:

https://github.com/undera/pylgbst

https://magazine.raspberrypi.com/articles/hack-lego-boost-with-raspberry-pi

https://m.youtube.com/watch?v=oqsmgZlVE8I 

Entradas populares