MicroPython programming on Arduino just got easier

If you’ve been exploring MicroPython on Arduino, you already know how powerful and flexible this Python-based language can be for microcontroller programming. Whether you’re a pro or just starting out, MicroPython opens up a new world of quick prototyping and clean, readable code. Now, we’re making it even easier to get started and manage your […]

The post MicroPython programming on Arduino just got easier appeared first on Arduino Blog.

If you’ve been exploring MicroPython on Arduino, you already know how powerful and flexible this Python-based language can be for microcontroller programming. Whether you’re a pro or just starting out, MicroPython opens up a new world of quick prototyping and clean, readable code.

Now, we’re making it even easier to get started and manage your MicroPython projects with the brand-new MicroPython Package Installer for Arduino!

What’s the MicroPython Package Installer?

Installing libraries and managing MicroPython code on your Arduino boards can sometimes feel like a chore. Hunting down the right libraries, uploading files manually – let’s be honest, it takes time.

The MicroPython Package Installer streamlines the entire process:

  • Find packages: Search for libraries directly from Arduino’s official MicroPython package index.
  • Install in seconds: Connect your board, pick a package, and install it with a single click.
  • Custom installations: Want to add a package from a GitHub URL? You can do that too.

Plus, it automatically converts files into the efficient .mpy format, optimizing size and speed on your microcontroller.

Why is this a big deal?

As MicroPython gains importance in the Arduino ecosystem, so does the need for tools that make it accessible and fun. Here’s how the MicroPython Package Installer does that:

  • Automated package installation: No need to worry about manual file management – installing libraries is quick and straightforward.
  • Works on any platform: Whether you’re using Windows, macOS, or Linux, the tool is ready for you.
  • Perfect for beginners: No complicated workflows – just search, install, and start coding.

With the Arduino MicroPython Package Installer, you can spend less time setting things up and more time building your projects.

What packages can I find?

The MicroPython Package Installer connects to the growing Arduino MicroPython package index where you can find:

  • Official Arduino MicroPython libraries: A collection of packages curated and maintained by Arduino for common hardware and tasks.
  • Community-contributed libraries: Useful libraries contributed by the MicroPython community, including sensors, drivers, and more.
  • MicroPython standard libraries: All the official MicroPython libraries from the micropython-lib repository are also available for installation.

We’re excited to see this registry grow! If you’ve created a library that could help others, consider contributing to the package index on GitHub. Let’s build this ecosystem together!


How to get started

Here’s your step-by-step guide to running MicroPython on Arduino:

1. Install MicroPython on your board

If your board doesn’t have MicroPython installed yet, start with the Arduino MicroPython Installer. It automatically detects your connected board, downloads the latest firmware, and installs MicroPython with a single click.

2. Write and upload code

Once MicroPython is running, you’ll need a lightweight editor to write and manage your programs. Arduino Lab for MicroPython is the perfect tool for the job. Connect to your board, write your MicroPython code, upload files, and interact with the REPL shell to test your scripts in real time.

3. Manage MicroPython packages

Finally, use the MicroPython Package Installer to find and install libraries directly to your board. Search for packages, install them in seconds, or add custom ones from a GitHub URL.

Ready to dive in?

MicroPython has been part of the Arduino ecosystem for a while now, but with these tools, the experience is smoother and more beginner-friendly than ever before.

So, what’s stopping you? Grab your Arduino board, follow the steps above, and start experimenting with MicroPython today. Whether it’s a quick sensor readout, an IoT project, or a creative prototype, you’ll be up and running in no time.

We can’t wait to see what you’ll build next.

The post MicroPython programming on Arduino just got easier appeared first on Arduino Blog.

The web-based Arduino Lab for MicroPython Editor is out! With Chromebook support to code Alvik and more

We’re excited to announce the release of the web-based version of the Arduino Lab for MicroPython Editor. This lightweight platform makes it even easier to code with MicroPython using Arduino hardware such as Alvik, Nano ESP32, Nano RP2040 Connect, Nano 33 BLE Sense – and more! You can check the full list of MicroPython-compatible Arduino […]

The post The web-based Arduino Lab for MicroPython Editor is out! With Chromebook support to code Alvik and more appeared first on Arduino Blog.

We’re excited to announce the release of the web-based version of the Arduino Lab for MicroPython Editor. This lightweight platform makes it even easier to code with MicroPython using Arduino hardware such as Alvik, Nano ESP32, Nano RP2040 Connect, Nano 33 BLE Sense – and more! You can check the full list of MicroPython-compatible Arduino hardware at this link.

What’s more, if you are a Chromebook user, now you can simply edit, run, and save MicroPython code on your board, as well as upload your files (assets or code), directly in the browser (Chrome, Opera, and Edge are supported). 

Please note that the editor is still in its “lab” phase, so expect ongoing changes, improvements, and bug fixes of course. 

Program Alvik robot with your Chromebook!

The web-based Arduino Lab for MicroPython Editor allows students and teachers using Chromebook to easily program Arduino Alvik in the classroom, expanding the possibilities for them to create more robotics projects. Check out our free online course to start your adventure with Alvik, MicroPython and more! 

What is MicroPython?

MicroPython is a lightweight version of Python® designed to run on microcontrollers, allowing you to control hardware like sensors and motors with just a few lines of code. It’s great for beginners because Python® is known for being simple and readable, making it easier to dive into electronics without needing deep programming knowledge. 

Plus, since MicroPython works well with Arduino boards, you can take advantage of our incredible open-source community, tutorials, and tools. It’s a perfect fit for exploring hardware projects in a friendly and accessible way!

Ready to give it a try? Test it out now! The web-based Arduino Lab for MicroPython Editor can be accessed from the Resources section in our app.arduino.cc or directly from https://lab-micropython.arduino.cc.

The post The web-based Arduino Lab for MicroPython Editor is out! With Chromebook support to code Alvik and more appeared first on Arduino Blog.