Skip to content

BETA: How to use Pybricks on SPIKE Prime and MINDSTORMS Robot Inventor #591

Closed

Description

@laurensvalk

By popular demand, we are now releasing the first beta of Pybricks for SPIKE Prime and MINDSTORMS Robot Inventor!

Try it out now! 🎉

How can I try Pybricks for SPIKE Prime and MINDSTORMS Robot Inventor?

  1. Follow the steps on this page to install Pybricks.
    • This is a temporary page to simplify the installation process.
    • Eventually this will just be done via our main app. Please bear with us :-)
  2. Start coding. It's the same as for the other hubs.
  3. To restore the original firmware, see the instructions on the installation page.

What's working?

  • Write and run code via the Pybricks editor.
  • The program is saved on the hub when you run it. You can start it again with the center button.
  • Faster program execution, and lots of RAM available for your scripts.
  • Battery charging and low battery indicators are now working.
  • You can access most hub features via the PrimeHub and InventorHub classes.
  • You can use all motors, including SPIKE, MINDSTORMS, Technic and Powered Up.
  • You can use all sensors, including SPIKE, MINDSTORMS, Technic and Powered Up.
  • You can use the Powered Up Remote Control.
  • And everything else listed in the docs: the pybricks API is the same for all hubs.
  • Advanced users can also run programs from the command line or their favorite editor using pybricksdev.

What's still in progress?

  • Automatic firmware updates within our main app. (V3.2)
  • Editing and saving multiple scripts. (V3.2)
  • Creating scripts with reusable modules. (V3.3 or later)
  • Better sound support and better IMU support. (V3.3 or later)
  • Hub-to-hub communication. (V3.3 or later)

What's the difference between the Prime Hub and the Inventor Hub?

  • The color of the plastic casing.

How can I help?

Give it a try, and let us know what you think!

What if I tried the alpha version previously?

No additional action is required. Just use the official SPIKE or MINDSTORMS app to install the latest official LEGO firmware, just like everybody else. Then you can run the Pybricks installer as indicated above. You may need to refresh the page to see the latest version.

Unlike the old alpha version, this beta no longer uses dual-boot to run Pybricks. Since restoring the original firmware takes just 30 seconds anyway, it's much simpler to just have one firmware. This way, all hubs work the same.

And of course, thanks a lot for trying this alpha and beta version! We really appreciate it.

Activity

  1. added
    help wanted
    hub: primehub/inventorhub
    on Jan 14, 2022
  2. pinned this issue on Jan 14, 2022
  3. laurensvalk commented on Jan 14, 2022

    @laurensvalk
    MemberAuthor

    Comments with specific issues will be moved to separate thread so we can keep this easy to follow.

    Thanks for your understanding!

  4. deleted a comment from DanNetor on Jan 14, 2022
  5. deleted a comment from DanNetor on Jan 14, 2022
  6. BertLindeman commented on Jan 14, 2022

    @BertLindeman

    Did the install on win11 pro. Fine.

    Ran a program using the IMU with tilt, acceleration and angular_velocity.
    Did look OK.

    Thanks!

  7. johnscary-ev3 commented on Jan 14, 2022

    @johnscary-ev3

    This is working great for me!
    Now that the battery charging is included, the dual booting is not needed as much.
    Although it was sort of cool.
    The saved program run option is also a nice addition,
    Thanks for getting this running.

  8. SpudGunMan commented on Jan 15, 2022

    @SpudGunMan

    no bueno here, install-dot crashed ungoogled chromium once but I thought this could work with newest firmware? do I still need to downgrade my hubs to put this on?

    Getting firmware info.
    Your hub runs LEGO Firmware version: b'v1.4.01.0000-594ce3d'
    Your LEGO firmware version is not (yet) supported.
    Please install one of the following versions and try again.
    
  9. dlech commented on Jan 15, 2022

    @dlech
    Member

    You need to clear your browser cache to get the latest page (opening in private window also works).

  10. SpudGunMan commented on Jan 15, 2022

    @SpudGunMan

    oh yea that helped. for sure the issue, worked perfect

  11. haylinmoore commented on Feb 17, 2022

    @haylinmoore

    Any update on hub to hub communication?

  12. kmaar commented on Feb 24, 2022

    @kmaar

    Thanks for your awesome work! I had Pybricks for my new Spike Prime working within 10mins. You rock! 🔥 🔥 🔥

  13. haylinmoore commented on Feb 25, 2022

    @haylinmoore

    Got Spike with the Remote Control 88010 working wonderfully! Our students are very happy to finally have remote controllable Spike bots! Thank you

  14. dlech commented on Jul 28, 2022

    @dlech
    Member

    It is now possible to flash firmware to SPIKE and MINDSTORMS (RI-only) hubs in Pybricks Code v3.2.0b3 (Pybricks Beta v2.0.0-beta.4).

  15. unpinned this issue on Jul 28, 2022
  16. BertLindeman commented on Jul 28, 2022

    @BertLindeman

    Great work, David.

    I only had to update my (Win11) usb driver for SpikePrime hub.
    Firmware updates for various hubs now neatly in one place.
    Especially Spike and Mindstorms hubs blazing fast.

    Thank you Pybricks team.

  17. added theissue type on Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedhub: primehub/inventorhub

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions