technology logo
technology logo

12 best Python Microcontroller libraries in 2023

share link

by weaver dot icon Updated: Jan 4, 2023

Guide Kit Guide Kit  

Build robotics, collect machine data, fun projects, and more with these Python microcontroller libraries.

 

Using microcontroller libraries is one of the most efficient ways of implementing Python in microcontrollers. With these libraries you can not only add machine learning capabilities to your project but also add support for real-time operating systems such as Zephyr. Popular Python microcontroller libraries like MicroPython provide implementation of several components that consists of an array, collections, errno, binascii, builtins, cmath, gc, json, math, hashlib, heapq, io, os, select, socket, ssl, random, re, uasyncio, zlib, struct, sys, time, and _thread. It is an open-source firmware solution designed to help developers implement the features of high-level language offered by Python into low-level hardware platforms and microcontrollers. Also, these libraries can run on small memory systems.


Explore below the list of top and trending Python microcontroller libraries to include in your machine learning or robotics project.

platformio-coreby platformio

Python doticonstar image 6820 doticonVersion:v6.1.7doticon
License: Permissive (Apache-2.0)

A professional collaborative platform for embedded development :alien:

Support
    Quality
      Security
        License
          Reuse

            platformio-coreby platformio

            Python doticon star image 6820 doticonVersion:v6.1.7doticon License: Permissive (Apache-2.0)

            A professional collaborative platform for embedded development :alien:
            Support
              Quality
                Security
                  License
                    Reuse

                      stm32-rsby stm32-rs

                      Python doticonstar image 939 doticonVersion:v0.15.1doticon
                      License: Permissive (Apache-2.0)

                      Embedded Rust device crates for STM32 microcontrollers

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                stm32-rsby stm32-rs

                                Python doticon star image 939 doticonVersion:v0.15.1doticon License: Permissive (Apache-2.0)

                                Embedded Rust device crates for STM32 microcontrollers
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          pyOCDby pyocd

                                          Python doticonstar image 920 doticonVersion:v0.35.1doticon
                                          License: Permissive (Apache-2.0)

                                          Open source Python library for programming and debugging Arm Cortex-M microcontrollers

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    pyOCDby pyocd

                                                    Python doticon star image 920 doticonVersion:v0.35.1doticon License: Permissive (Apache-2.0)

                                                    Open source Python library for programming and debugging Arm Cortex-M microcontrollers
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              pyOCDby mbedmicro

                                                              Python doticonstar image 447 doticonVersion:v0.27.3doticon
                                                              License: Permissive (Apache-2.0)

                                                              Open source Python library for programming and debugging Arm Cortex-M microcontrollers

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        pyOCDby mbedmicro

                                                                        Python doticon star image 447 doticonVersion:v0.27.3doticon License: Permissive (Apache-2.0)

                                                                        Open source Python library for programming and debugging Arm Cortex-M microcontrollers
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse
                                                                                  Python doticonstar image 395 doticonVersion:Currentdoticon
                                                                                  no licences License: No License (null)

                                                                                  A Python library for communicating with Arduino microcontroller boards

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            Python-Arduino-Command-APIby thearn

                                                                                            Python doticon star image 395 doticonVersion:Currentdoticonno licences License: No License

                                                                                            A Python library for communicating with Arduino microcontroller boards
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      goodfetby travisgoodspeed

                                                                                                      Python doticonstar image 289 doticonVersion:Currentdoticon
                                                                                                      no licences License: No License (null)

                                                                                                      An embedded bus adapter for various microcontrollers and radios.

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                goodfetby travisgoodspeed

                                                                                                                Python doticon star image 289 doticonVersion:Currentdoticonno licences License: No License

                                                                                                                An embedded bus adapter for various microcontrollers and radios.
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          stcflashby laborer

                                                                                                                          Python doticonstar image 196 doticonVersion:Currentdoticon
                                                                                                                          License: Strong Copyleft (GPL-3.0)

                                                                                                                          A command line programmer for STC 8051 microcontroller

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    stcflashby laborer

                                                                                                                                    Python doticon star image 196 doticonVersion:Currentdoticon License: Strong Copyleft (GPL-3.0)

                                                                                                                                    A command line programmer for STC 8051 microcontroller
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              emlearnby emlearn

                                                                                                                                              Python doticonstar image 252 doticonVersion:0.16.3doticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              Machine Learning inference engine for Microcontrollers and Embedded devices

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        emlearnby emlearn

                                                                                                                                                        Python doticon star image 252 doticonVersion:0.16.3doticon License: Permissive (MIT)

                                                                                                                                                        Machine Learning inference engine for Microcontrollers and Embedded devices
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  lib-pythonby blynkkk

                                                                                                                                                                  Python doticonstar image 147 doticonVersion:0.2.6doticon
                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                  Blynk IoT library for Python and Micropython

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            lib-pythonby blynkkk

                                                                                                                                                                            Python doticon star image 147 doticonVersion:0.2.6doticon License: Permissive (MIT)

                                                                                                                                                                            Blynk IoT library for Python and Micropython
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      illuminOSby idimitrakopoulos

                                                                                                                                                                                      Python doticonstar image 80 doticonVersion:Currentdoticon
                                                                                                                                                                                      License: Permissive (MIT)

                                                                                                                                                                                      An open-source MicroPython based SDK for WiFi-enabled microcontrollers

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                illuminOSby idimitrakopoulos

                                                                                                                                                                                                Python doticon star image 80 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                                                An open-source MicroPython based SDK for WiFi-enabled microcontrollers
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          LEMPAby rbenamotz

                                                                                                                                                                                                          Python doticonstar image 84 doticonVersion:V0.6doticon
                                                                                                                                                                                                          License: Permissive (MIT)

                                                                                                                                                                                                          Standalone programmer for micro controllers.

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    LEMPAby rbenamotz

                                                                                                                                                                                                                    Python doticon star image 84 doticonVersion:V0.6doticon License: Permissive (MIT)

                                                                                                                                                                                                                    Standalone programmer for micro controllers.
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse
                                                                                                                                                                                                                              Python doticonstar image 56 doticonVersion:Currentdoticon
                                                                                                                                                                                                                              License: Permissive (Unlicense)

                                                                                                                                                                                                                              Schematic symbol libraries for FPGAs & microcontrollers.

                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                        KiCad-Schematic-Symbol-Librariesby xesscorp

                                                                                                                                                                                                                                        Python doticon star image 56 doticonVersion:Currentdoticon License: Permissive (Unlicense)

                                                                                                                                                                                                                                        Schematic symbol libraries for FPGAs & microcontrollers.
                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                Reuse