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-core:
- Platform IO Core is an open-source ecosystem for developing Internet of Things.
- Platform IO Core is available for Windows, macOS, and Linux.
- Platform IO Core supports a wide range of development platforms and microcontrollers.
platformio-coreby platformio
A professional collaborative platform for embedded development :alien:
platformio-coreby platformio
Python 6820 Version:v6.1.7 License: Permissive (Apache-2.0)
stm32-rs:
- "stm32-rs" likely refers to a Rust programming library for working with STM32 microcontrollers.
- STM32 is a family of microcontrollers developed by STMicroelectronics.
- Rust is a programming language known for its system-level programming, and safety.
stm32-rsby stm32-rs
Embedded Rust device crates for STM32 microcontrollers
stm32-rsby stm32-rs
Python 939 Version:v0.15.1 License: Permissive (Apache-2.0)
pyOCD :
- PyOCD is an open-source Python tool for programming and debugging ARM Cortex-M microcontrollers.
- PyOCD supports a wide range of development boards and debug probes.
- PyOCD helps to program firmware onto ARM Cortex-M microcontrollers.
pyOCDby pyocd
Open source Python library for programming and debugging Arm Cortex-M microcontrollers
pyOCDby pyocd
Python 920 Version:v0.35.1 License: Permissive (Apache-2.0)
pyOCD :
- PyOCD works with a wide range of development boards and debug probes.
- PyOCD supports a wide range of development boards and debug probes.
- PyOCD helps to program firmware onto ARM Cortex-M microcontrollers.
pyOCDby mbedmicro
Open source Python library for programming and debugging Arm Cortex-M microcontrollers
pyOCDby mbedmicro
Python 447 Version:v0.27.3 License: Permissive (Apache-2.0)
Python-Arduino-Command-API:
- Python-Arduino-Command-API is a Python library that provides a convenient and user-friendly way.
- This library simplifies sending and receiving data between a Python script.
- It makes it easier to develop projects that involve Arduino in a Python environment.
Python-Arduino-Command-APIby thearn
A Python library for communicating with Arduino microcontroller boards
Python-Arduino-Command-APIby thearn
Python 395 Version:Current License: No License
goodfet:
- GoodFET is an open-source, open-hardware project.
- That aims to create a flexible and affordable hardware tool for embedded systems.
- It helps to facilitate various tasks related to embedded systems.
goodfetby travisgoodspeed
An embedded bus adapter for various microcontrollers and radios.
goodfetby travisgoodspeed
Python 289 Version:Current License: No License
stcflash:
- stcflash is a Python library typically used in Internet of Things (IoT) applications.
- STC microcontrollers chip produced by STC Microelectronics, a Chinese semiconductor company.
- It can helps to load your own code onto the microcontroller or to update existing firmware.
stcflashby laborer
A command line programmer for STC 8051 microcontroller
stcflashby laborer
Python 196 Version:Current License: Strong Copyleft (GPL-3.0)
emlearn:
- emlearn is an open-source project focused on deploying machine learning models on resource-constrained.
- emlearn enables developers to use machine learning techniques on microcontrollers.
- emlearn provides tools and libraries to convert ML models trained with popular frameworks.
emlearnby emlearn
Machine Learning inference engine for Microcontrollers and Embedded devices
emlearnby emlearn
Python 252 Version:0.16.3 License: Permissive (MIT)
lib-python:
- Lib-python likely refers to the standard library of the Python programming language.
- These modules come bundled with Python and helps in your Python program.
- Python's standard library is a comprehensive collection of modules and packages. It provides a range of functionality for various tasks.
lib-pythonby blynkkk
Blynk IoT library for Python and Micropython
lib-pythonby blynkkk
Python 147 Version:0.2.6 License: Permissive (MIT)
illuminOS:
- illuminOS is a Python library used in IoT, and Arduino applications.
- illuminOS has no bugs, it has no vulnerabilities.
- An open-source Micro Python-based OS for ESP microcontroller variants.
illuminOSby idimitrakopoulos
An open-source MicroPython based SDK for WiFi-enabled microcontrollers
illuminOSby idimitrakopoulos
Python 80 Version:Current License: Permissive (MIT)
LEMPA:
- It refers to a language proficiency exam in the Lithuanian language.
- It is often required for individuals who want to study or work in Lithuania. It helps to demonstrate proficiency in the Lithuanian language.
- LEMPA could be an acronym for various phrases or organizations.
KiCad-Schematic-Symbol-Libraries:
- KiCad-Schematic-Symbol-Libraries refers to the collection of schematic symbol libraries used in KiCad.
- It is an open-source electronic design automation (EDA) suite.
- KiCad helps in designing electronic circuits and printed circuit boards (PCBs).
KiCad-Schematic-Symbol-Librariesby xesscorp
Schematic symbol libraries for FPGAs & microcontrollers.
KiCad-Schematic-Symbol-Librariesby xesscorp
Python 56 Version:Current License: Permissive (Unlicense)
FAQ
1. What are Python microcontroller libraries?
Python microcontroller libraries are software packages or modules that enable Python. which has small, self-contained computing devices often used in embedded systems. These libraries provide a high-level interface for programming microcontrollers, making it easy.
2. Why use Python for microcontrollers?
Python, known for its simplicity, is a popular and high-level programming language. Using Python on microcontrollers simplifies development and reduces the learning curve. It allows for rapid prototyping and development of embedded systems.
3. Which microcontroller platforms are supported by Python microcontroller libraries?
Python microcontroller libraries support a variety of microcontroller platforms. It includes popular ones like Arduino, Raspberry Pi, ESP8266, ESP32, and more. The availability of libraries may vary depending on the platform.
4. Are Python microcontroller libraries open source?
Many Python microcontroller libraries are open source, which means their source code. It modifies and contributes to the developer community. Open-source libraries encourage collaboration and innovation.
5. What functionalities do Python microcontroller libraries offer?
Python microcontroller libraries provide functions for tasks such as
1. digital and analog I/O,
2. sensor data acquisition,
3. communication (UART, SPI, I2C),
4. PWM control, and
5. interfacing with displays.
Some libraries also support networking and Internet of Things (IoT) functionality.