DEV Community

Cover image for MicroPython 101 IoT Basics

MicroPython 101 IoT Basics

Philip John Basile on June 19, 2023

MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library...
Collapse
 
spo0q profile image
spO0q

so cool!

Is the project still in beta?

Collapse
 
philipjohnbasile profile image
Philip John Basile

MicroPython offers a complete implementation of Python 3.4 and includes significant aspects of Python 3.5. However, it doesn't incorporate every feature introduced from Python 3.5 onwards. That said, it does adopt some fresh syntax from Python 3.6 and specific features from subsequent versions like 3.8 (assignment expressions) and 3.9. It also encompasses a selection of the standard library.

Collapse
 
spo0q profile image
spO0q

πŸ€– It seems it's used in production, but I was not sure, hence my question. Thanks @andypiper !

Thread Thread
 
philipjohnbasile profile image
Philip John Basile

thanks @andypiper! Have you worked with it?

Thread Thread
 
andypiper profile image
Andy Piper

I don't use it in production myself, I'm a hobbyist and I do use it in my workshop - however folks who are part of the Melbourne MicroPython Meetup and MicroPython Discord that are available to participate in online, absolutely do use MicroPython in production.

Thread Thread
 
philipjohnbasile profile image
Philip John Basile

Ahh another discord to join! Thank you :) Build anything cool with it? Tie it together with something 3d printed?

Thread Thread
 
andypiper profile image
Andy Piper

yes, exactly that - I have it managing lighting for inside my Bambu X1 Carbon, progress light indicator for prints in a case on my desk, keypads, small robots, etc.

Thread Thread
 
philipjohnbasile profile image
Philip John Basile

hey ! have a Bambu X1 Carbon too! I have two ams's as well. I love love love it. My kids and their friends are always "putting orders in".

Collapse
 
andypiper profile image
Andy Piper

Definitely not in beta, it is being used in production in many places!

Collapse
 
philipjohnbasile profile image
Philip John Basile

know of any specifics items?

Collapse
 
andypiper profile image
Andy Piper

A couple of important tools you've missed out here are mpremote (the official command line tool for interacting with devices) and mip (the MicroPython equivalent to pip). Good post though!

Collapse
 
philipjohnbasile profile image
Philip John Basile

Oh true!! Thanks for adding that! I’ll probably add it in

Collapse
 
ganonbit profile image
Andrew Reese

Very informative, thanks for this ✌🏼

Collapse
 
philipjohnbasile profile image
Philip John Basile

aww you're welcome! It was fun going from zero to 101.

Collapse
 
ganonbit profile image
Andrew Reese

For sure, I knew some of the similar knowledge from using arduino ide, but it’s nice to see it broken down in a programming language I’m already familiar with from my software engineering career, python 🀘🏼

Thread Thread
 
philipjohnbasile profile image
Philip John Basile

It's not perfect but if you know Python then it is.