Giter Club home page Giter Club logo

awesome-micropython's Introduction

Awesome


A curated list of awesome MicroPython libraries, frameworks, software and resources.

MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments.

Contents

Libraries

Other places you can look for MicroPython Libraries:

  • PyPi - This filter shows just the MicroPython libraries on PyPi. Note: You cannot pip install MicroPython libraries. See the MicroPython docs for more information on managing packages with MicroPython.
  • GitHub Search - Search GitHub for repositories containing MicroPython.
  • GitHub Topic - MicroPython - Browse GitHub Topics for projects tagged with MicroPython.
  • Libraries.io - Libraries.io query for MicroPython.
  • GitLab Explore - Explore repositories on GitLab.
  • Codeberg Explore - Explore repositories on Codeberg.

AI

Audio

Communications

APIs

Authentication

Bluetooth

  • PyBoard-HC05-Android - Pyboard HC05 Bluetooth adapter example application.
  • uble - Lightweight Bluetooth Low Energy driver written in pure Python for MicroPython.
  • MicroPythonBLEHID - Human Interface Device (HID) over Bluetooth Low Energy (BLE) GATT library for MicroPython.
  • upyble - Command line tool for Bluetooth Low Energy MicroPython devices.
  • micropython-xiaomi-ble-adv-parse - Passively retrieve sensor data from some Xiaomi Bluetooth Low Energy (BLE) sensors.
  • mijia-temphum-upy - MicroPython library to read certain Xiaomi Mijia BLE temperature & humidity sensors.
  • micropython-aioble-itag - Examples using aioble to interact with iTag BLE keychain tags.

CAN

Compression

  • ufastlz - MicroPython wrapper for FastLZ, a lightning-fast lossless compression library.
  • tamp - A low-memory, MicroPython-optimized, DEFLATE-inspired lossless compression library.

Cryptography

  • ucryptography - Lightweight porting of pyca/cryptography to MicroPython based on ARM Mbed TLS.
  • mpyaes - MicroPython module for AES encryption.
  • micropython-aes - AES algorithm with pure python implementation.
  • ucrypto - MicroPython package for doing fast RSA and elliptic curve cryptography, specifically digital signatures. ECDSA API design inspired from fastecdsa and implementation based on tomsfastmath.
  • ucryptoauthlib - Lightweight driver for Microchip Crypto Authentication secure elements written in pure Python for MicroPython.
  • embit - A minimal Bitcoin library for MicroPython and Python 3 with a focus on embedded systems.
  • microotp - An ESP8266 MicroPython OTP Generator.
  • micropython-rsa-signing - RSA signing on MicroPython.
  • micropython-cryptomsg - A MicroPython module to encrypt and decrypt messages with AES CBC mode.
  • mprsa - A MicroPython module for creating, importing, and exporting RSA keys in DER and PEM formats with PKCS#1, PKCS#8, and X.509/SPKI structures, and signing/verifying and encryption/decryption using blinding and SHA-1 and SHA-256 hashing algorithms.
  • mpy-mbedtls - MicroPython bindings for some MbedTLS EC and x509 cert/csr functions.
  • micropython-cryptocfb - A Python module to encrypt and decrypt data with AES-128 CFB mode.
  • tscp - An endpoint-to-endpoint encryption based on Diffie-Hellman-Merkle with TLS1.3 styled handshake using MicroPython.

DNS

  • ICantBelieveItsNotDNS - "I Can't Believe It's Not DNS!" (ICBIND) is an authoritative DNS server for the ESP8266 written in MicroPython.
  • MicroDNSSrv - A micro DNS server for MicroPython to simply respond to A queries on multi-domains with or without wildcards (used on Pycom modules & ESP32).
  • tinydns - Very simple DNS async server for MicroPython.
  • micropython-captiveportal - Minimal async captive portal for MicroPython (compatible with uasyncio v3/MicroPython 1.13+ as well as earlier versions).
  • Micropython-DNSServer-Captive-Portal - MicroPython WiFi AP Captive Portal with DNS and Web Server.

ESP-NOW

Ethernet

FTP

GPS

GSM

HTTP

  • mrequests - A HTTP client module (not only) for MicroPython with an API similar to requests.

IoT

  • microhomie - MicroPython implementation of the Homie MQTT convention for IoT.
  • uPyEcho - Emulated Belkin WeMo device that works with Amazon Echo (Alexa) using MicroPython on an ESP32.
  • SonosRemote - A remote for Sonos installations running on an ESP8266 and using Sonos HTTP API.
  • micropython-home-assistant - MicroPython-based scripts to extend your Home Assistant-driven home automation projects.
  • micropython-iot - An approach to designing IoT applications using ESP8266, ESP32 or Pyboard D endpoints.
  • iot-core-micropython - Use MicroPython to connect to Google Cloud IoT Core.
  • SmartUPy - Controlling "Tuya-type" smart power outlets using MicroPython.
  • aws-iot-GET-POST-loop - MicroPython code which uses the AWS IoT REST API to GET/POST device state info.
  • sensor-mqtt-homeassistant - An ESP8266/ESP32 MicroPython-based sensor platform for GPIO, DHT, analog, LED and more. Includes remote updates for .py code from web server and MQTT/Home Assistant integration.
  • micropython-ha-mqtt-device - MicroPython module which allows creating Entites for HomeAssistant using MQTT Discovery.
  • ESP8266-Home-Assistant-Smart-Socket - This MicroPython project is to hack a Hyleton313 cheap WiFi smart socket.
  • ESP8266-Home-Assistant-RGB-Bulb - This MicroPython project is to hack a TYWE3S board in a cheap WiFi RGB Bulb.
  • uPyIoT - Connect an M5Stack ATOM running MicroPython to the Google Cloud Platform (GCP) to collect air-quality variables obtained from reading sensors.
  • micropython-switchbot-thermometer-hygrometer - Read SwitchBot Thermometer/Hygrometer via Bluetooth.

IR

LoRa

  • loraE22 - A MicroPython class for the Ebyte E22 Series LoRa modules.
  • micropython-lora - MicroPython library for controlling a Semtech SX127x LoRa module over SPI.
  • micropython-aiolora - MicroPython library for controlling a Semtech SX127x LoRa module with asyncio API.
  • micropython-rylr - MicroPython library for controlling Reyax LoRa modules (RYLR896, RYLR406).
  • silvergeko_rfm9x - Porting to MicroPython of adafruit_rfm9x.py library.

LoRaWAN

MDNS

  • micropython-mdns - A pure Python implementation of MDNS with support for Service Discovery.

Modbus

  • micropython-modbus - MicroPython port of modbus-tk.
  • micropython-modbus - Modbus Master library for MicroPython ESP32 devices. Based on pycom-modbus from Pycom.
  • mp_modbus - Modbus library for MicroPython.
  • micropython-modbus - ModBus TCP and RTU library supporting client and host mode. Based on pycom-modbus from Pycom.

MQTT

  • micropython-mqtt - A 'resilient' asynchronous MQTT client: recovers from WiFi and broker outages.
  • MQBoard - A micro-framework for using MQTT with asyncio on MicroPython boards, primarily on the ESP32.
  • pysmartnode - MicroPython Smart Home framework.
  • umqtt_aws_iot - Publish UMQTT messages with MicroPython to AWS IoT.
  • sonoff-mqtt by davea - MicroPython scripts to control Sonoff/ESP8266 using MQTT.
  • micropython-sonoff-switch - Implements an MQTT-controllable switch for the iTead Sonoff Switch using MicroPython.
  • micropython-thingspeak-mqtt-esp8266 - Publish and Subscribe to ThingSpeak using MQTT with MicroPython running on ESP8266/ESP32 platforms.
  • uMQTT - MQTT publish for MicroPython on the WiPy board.
  • micropython-mqtt - Async MQTT library with auto reconnect for MicroPython devices such as the ESP32 or Pycom devices.
  • micropython-adafruit-mqtt-esp8266 - Using MQTT to Publish/Subscribe to Adafruit IO. MicroPython/CircuitPython implementation on ESP8266/ESP32.
  • mqtt_upython - MQTT Client using MicroPython on ESP8266.
  • tinymqtt - Async MQTT client for MicroPython.
  • micropython-mqtt-thingspeak - Publish and Subscribe to ThingSpeak using MQTT with MicroPython.

NBD

  • unbd - Micro implementation of network block device (NBD) for MicroPython.

NFC

  • micropython-nfc - Using NFC with MicroPython.
  • micropython_pn532 - Driver for PN532 NFC/RFID breakout boards based on Adafruit CircuitPython (UART).
  • NFC_PN532_SPI - Partial port of Adafruit CircuitPython to MicroPython of PN532 NFC/RFID control library (SPI).

NTP

OneWire

  • Official OneWire - For devices using the OneWire bus, eg Dallas DS18x20.
  • Onewire_DS18X20 - Classes for driving the DS18x20 sensor with the OneWire protocol for Pycom MicroPython.
  • micropython_arduino_control - MicroPython library to control an Arduino remotely, with corresponding Arduino code.

Onkyo EISCP

  • eiscp-micropython - MicroPython port for the Onkyo-EISCP protocol used, among others, by Pioneer.

OTA

Radio

RC receiver

REPL

  • webrepl - MicroPython WebREPL.
  • zepl - MicroPython WebREPL Console Application using ZeroMQ.
  • jupyter_micropython_remote - Jupyter kernel to directly execute code on a MicroPython board over the serial/web REPL.
  • FBConsole - Framebuffer console class for MicroPython.

RFID

RPC

  • ujrpc - JSON RPC for MicroPython.

RTC

Serial

  • mpy-miniterm - Tool for seamless serial debug and file synchronisation with MicroPython devices via the serial REPL.
  • MicroPython-MorseCode - International Morse Code using a microcontroller with MicroPython.
  • I2C Slave - Uses the Pyboard's I2C slave mode to implement a full duplex asynchronous link. Principal use case is for ESP8266 which has only one UART.
  • microSDI12 - A mini SDI-12 implementation for getting sensor info over RS-485.

Serialization

  • micropython-msgpack - MessagePack serialisation library optimised for MicroPython.
  • micropython-uprotobuf - A lightweight implementation of Google's Protocol Buffers (protobuf) for MicroPython.
  • minipb - Mini Protobuf {de}serializer in pure Python.
  • ucbor - Lightweight implementation of cbor for MicroPython.
  • upy-msgpack - A lightweight MessagePack (de)serialization library (not only) for MicroPython.

SMTP

  • uMail - A lightweight, scalable SMTP client for sending email in MicroPython.

Sockets

  • XAsyncSockets - XAsyncSockets is an efficient Python/MicroPython library of managed asynchronous sockets.

SOCKS

TCP

  • us2n - MicroPython bridge between UART and TCP for the ESP32.

Telnet

  • MicroTelnetServer - Simple telnet server for MicroPython and the ESP8266 allowing telnet clients access to the REPL.

Text-to-Speech

VoIP

  • uPyVoip - VoIP for MicroPython ESP32 with Interactive Voice Response.

Web

  • MicroWebSrv - A micro HTTP web server that supports WebSockets, HTML/Python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32).
  • MicroWebSrv2 - The last micro web server for IoTs (MicroPython) or large servers (CPython), that supports WebSocket, routes, template engine and with really optimized architecture (mem allocations, async I/Os).
  • tinyweb - Simple and lightweight HTTP async server for MicroPython.
  • upy-websocket-server - MicroPython (ESP8266) WebSocket server implementation.
  • micropython-captive-portal - A captive portal demo for MicroPython.
  • uPyPortal - A captive portal for MicroPython using ESP32 (Wemos).
  • ESP8266WebServer - ESP8266 web server for MicroPython.
  • microCoAPy - A mini client/server implementation of CoAP (Constrained Application Protocol) into MicroPython.
  • micropyserver - MicroPyServer is a simple HTTP server for MicroPython projects.
  • MicroRESTCli - A micro JSON REST web client based on MicroWebCli for MicroPython (used on Pycom modules & ESP32).
  • micropython-noggin - A very simple web server for MicroPython.
  • uwebsockets - MicroPython WebSocket implementation for ESP8266.
  • microdot - The impossibly small web framework for MicroPython.
  • micropython-nanoweb - Full async MicroPython web server with small memory footprint.
  • MicroWebCli - A micro HTTP web client for MicroPython (used on Pycom modules & ESP32).
  • micropython-configserver - Captive portal for MicroPython including a dumb DNS server and a web server to configure WiFi networks.
  • micropython-aioweb - A minimalist asyncio web framework for MicroPython.
  • thimble - A tiny web framework for MicroPython.
  • CaptiveWebServer - Simple MicroPython web server for serving a website from a captive portal.
  • micropython-urouter - A lightweight HTTP request routing processing support library based on MicroPython. The previous name was micro-route.
  • wlan-relays - Very simple HTTP server written in MicroPython for controlling the pins of an ESP32 board.

WiFi

Zigbee

  • ZbPy - MicroPython IEEE802.15.4 / Zigbee parser.

Display

E-Paper

Fonts

  • micropython-font-to-py - A Python 3 utility to convert fonts to Python source capable of being frozen as bytecode.
  • writer - A simple way to render above Python fonts to displays whose driver is subclassed from framebuf.
  • ssd1306big - A font for MicroPython on 128x64 pixel SSD1306 OLED display.
  • framebuf2 - MicroPython FrameBuffer extension: larger and rotated font, triangles and circles.
  • micropython_GT30L24T3Y_big5_font - MicroPython driver for reading BIG-5 Chinese characters from GT30L24T3Y / ER3303-1 SPI module.
  • ttgo-hershey-fonts - MicroPython Hershey font demo for the TTGO-LCD board.
  • packed-font - Memory efficient MicroPython fonts for the Pico Pi and SSD1306 OLED Display.

Graphics

GUI

  • lvgl - An object-oriented, component-based high-level GUI library with MicroPython binding.
  • micropython-lcd160cr-gui - Simple touch-driven event based GUI for the Pyboard and LCD160CR colour display.
  • micropython_ra8875 - MicroPython device driver and nano-GUI for RA8875 based displays.
  • micropython-nano-gui - A tiny display-only GUI with a limited set of GUI objects (widgets) for displays whose display driver is subclassed from the framebuf class. With drivers for TFT, ePaper and OLED displays.
  • micro-gui - Derived from nano-gui and supporting the same displays and hosts, this provides for user input via push buttons or a navigation joystick and an optional rotary encoder.
  • micropython-touch - Derived from nano-gui and supporting the same displays and hosts, this offers touch input. Supports various touch controllers.
  • TFT-GUI - A fast touch GUI for large displays based on SSD1963 controller with XPT2046 touch controller.
  • micropython-nextion - Control Nextion displays using MicroPython.
  • mp_lvgl_widgets - Widgets for the MicroPython Port of LVGL.
  • micropython-core2 - Extends LV-MicroPython for the M5Stack CORE2 with MPU6886, ILI9342C, BM8563 and AXP192 drivers.

LCD Character

LCD Graphic

LCD TFT

  • micropython-ili9341 - Collection of drivers for TFT displays, ILI9341, SH1106, SSD1606, ST7735.
  • micropython-ili934x - SPI driver for ILI934X series based TFT / LCD displays.
  • MicroPython-ST7735 - ESP32 version of GuyCarvers's ST7735 TFT LCD driver.
  • micropython-st7735 - Driver for ST7735 TFT LCDs.
  • MicroPython_ST7735 - Driver for ST7735 128x128 TFT.
  • SSD1963-TFT-Library-for-PyBoard-and-RP2040 - SSD1963 TFT Library for Pyboard and Raspberry Pi Pico.
  • ST7735 - Driver for ST7735 TFT LCDs.
  • micropython-ili9341 - MicroPython ILI9341 display & XPT2046 touch screen driver.
  • st7789_mpy - Fast pure-C driver for MicroPython that can handle display modules on ST7789 chip.
  • st7789py_mpy - Slow MicroPython driver for 240x240 ST7789 display without CS pin from AliExpress, written in MicroPython.
  • micropython-ili9341 - MicroPython Driver for ILI9341 display.
  • micropython-ili9341 - ILI9341 TFT driver for MicroPython on ESP32.
  • st7789_mpy - Fast MicroPython driver for ST7789 display module written in C.
  • st7789py_mpy - Driver for 320x240, 240x240 and 135x240 ST7789 displays written in MicroPython.
  • ili9342c_mpy - ILI9342C Fast 'C' Driver for MicroPython (M5Stack Core).
  • gc9a01py - GC9A01 Display driver in MicroPython.
  • gc9a01_mpy - Fast MicroPython driver for GC9A01 display modules written in C.
  • st7735-esp8266-micropython - An ESP8266 MicroPython library for ST7735 160x80, 128x128, 128x160 TFT LCD displays.
  • TTGO-ST7789-MicroPython - MicroPython ST7789 display driver for TTGO T-Display ESP32 CP2104 WiFi Bluetooth Module 1.14 Inch LCD.
  • st7735_micropython - ST7735 MicroPython drivers for 80x160, 128x128, 128x160 for ESP8266.
  • ili934x-micropython - Library for using ILI9341 display drivers with MicroPython.
  • micropython-st7735-esp8266 - MicroPython driver for ST7735 TFT displays on the ESP8266.
  • st7789s3_esp_lcd - Fast ESP_LCD based MicroPython driver for the TTGO T-Display-S3 st7789 display written in C.
  • s3lcd - ESP_LCD based MicroPython driver for ESP32-S3 Devices with ST7789 or compatible displays.
  • thmi_py - MicroPython display driver for the LILYGO T-HMI written in Python.
  • wt32sc01py - WT32SC01 Plus MicroPython Display Driver.
  • st7789s3_mpy - MicroPython display driver for the TTGO T-Display-S3 ST7789 written in C.
  • t-display-s3 - MicroPython display driver for the TTGO T-Display-S3 ST7789 written in Python.
  • mp-ili9341 - MicroPython Driver for ILI9341 TFT Display.
  • lvgl_esp32_gc9a01 - Driver for displays using the GC901 driver for use with LVGL MicroPython.

LED Matrix

LED Segment

  • LKM1638 - Driver for JY-LKM1638 displays based on TM1638 controller.
  • max7219_8digit - Driver for MAX7219 8-digit 7-segment LED modules.
  • micropython-max7219 - Driver for MAX7219 8-digit 7-segment LED modules.
  • micropython-my9221 - Driver for MY9221 10-segment LED bar graph modules.
  • micropython-tm1637 - Driver for TM1637 quad 7-segment LED modules.
  • micropython-tm1638 - Driver for TM1638 dual quad 7-segment LED modules with switches.
  • micropython-tm1640 - Driver for TM1740 8x8 LED matrix modules.
  • micropython-tm1640 - MicroPython Library for 16 digits 7-segment displays controlled by a TM1640.
  • TM74HC595 - Driver for shift register-controlled 5 pin display modules.
  • micropython-tm1638spi - MicroPython Library for a popular board with 8 7-segment digits, 8 separate LEDs and 8 push buttons controlled by a TM1638.

LEDs

OLED

Printer

IO

ADC

DAC

GPIO

  • micropython-inputs - Classes to count pulses, debounce digital inputs, and calculate moving averages of analog inputs for a MicroPython board.
  • ubutton - A MicroPython library for controlling reading and debouncing pushbutton inputs, including "short" and "long" press callbacks.
  • micropython-debounce-switch - MicroPython Class for Debouncing Switches.

IO-Expander

  • micropython-mcp230xx - Driver for MCP23017 and MCP23008 GPIO expanders.
  • micropython-mcp230xx - Driver for MCP23017 and MCP23008 GPIO expanders, extended with interrupt handling.
  • micropython-mcp23017 - MicroPython driver for MCP23017 16-bit I/O Expander.
  • micropython-pcf8574 - MicroPython driver for PCF8574 8-Bit I2C I/O Expander with Interrupt.
  • micropython-pcf8575 - MicroPython driver for PCF8575 16-Bit I2C I/O Expander with Interrupt.
  • ESP8266_MCP23S17 - MicroPython library for using the MCP23S17 16-bit I/O expander with the ESP8266.
  • pcf8574 - MicroPython module for working with the PCF8574(A) I2C 8-bit I/O expander from NXP.

Joystick

Keyboard

Multiplexer

  • micropython-tca9548a - MicroPython examples using TCA9548A I2C multiplexer.
  • tca9548a - MicroPython driver for the TCA9548A I2C multiplexer.

Potentiometers

  • micropython-ad840x - MicroPython SPI-based manipulation of the AD series digital potentiometers AD8400, AD8402 and AD8403.
  • mcp4131 - MicroPython module to control MicroChip's MCP4131 SPI digital potentiometer.
  • MicroPython_DS1841 - MicroPython Driver for the DS1841 Potentiometer.
  • MicroPython_DS3502 - MicroPython Driver for the DS3502 Potentiometer.

Power Management

PWM

  • upwmcontroller - A MicroPython library for controlling PWM outputs in an asyncio loop, with features including fading and blinking.

Relay

Rotary Encoder

Shift Registers

  • micropython-74hc595 - MicroPython driver for 74HC595 8-bit shift registers.
  • MicroPython-SN74HCS264 - MicroPython Driver for SN74HCS264 8-Bit Parallel-Out Serial Shift Registers With Schmitt-Trigger Inputs and Inverted Outputs.

Waveform Generator

Mathematics

  • uMath - Computer Algebra for microcontrollers.
  • micropython-ulab - A NumPy-like fast vector module for MicroPython.
  • micropython-fourier - Fast Fourier transform in MicroPython's inline ARM assembler.
  • Filters - FIR filters using ARM Thumb assembler. Using an online utility you can go from a graph of required frequency response to a filter implementation.
  • ulinalg - Small size matrix handling module with a few linear algebra operations specifically for MicroPython (Python 3).
  • micropython-mtx - Fast Matrix Multiplication and Linear Solver on MicroPython.
  • micropython-vec - Vector Operations on MicroPython.
  • MicroPython_Statistics - Statistics module for MicroPython.
  • MicroPython-Matrix - MicroPython basic matrix operations.
  • uumpy - A subset of NumPy for MicroPython.
  • upyuncertainties - Uncertainty calculations for MicroPython.
  • umatrix - A matrix library for the MicroPython language.
  • micropython-fractions - A MicroPython port of the CPython standard Fractions library.
  • Sun and Moon - Determine Sun and Moon rise and set times, Moon phases.

Motion

DC Motor

  • L298N - Driver for the L298N dual H-bridge motor controller.
  • MicroPython-L298 - Drive L298 dual H-bridge with MicroPython.
  • pyl298 - Driver for the L298 dual full-bridge motor controller.

Servo

Stepper

Sensors

Accelerometer Digital

Air Quality

Barometer

  • micropython-bme280 - Driver for the Bosch BME280 temperature/pressure/humidity sensor.
  • micropython-bmp180 - Driver for Bosch BMP180 temperature, pressure and altitude sensor.
  • mpy_bme280_esp8266 - Bosch BME280 temperature/pressure/humidity sensor.
  • BME280 - MicroPython driver for the BME280 sensor, target platform Pycom devices.
  • micropython-bmp280 - Module for the BMP280 sensor.
  • micropython_bme280_i2c - A MicroPython module for communicating with the Bosch BME280 temperature, humidity, and pressure sensor.
  • MicroPython-BME280 - Driver to digital sensor of Temperature, Pressure and Humidity.
  • micropython-bmp180 - A module for MicroPython which provides a class for the BMP180 pressure sensor.
  • BMP390 - MicroPython module for BMP390 pressure & temperature sensor.
  • BMP180 - MicroPython module for BMP180 pressure & temperature sensor.
  • MicroPython_BMP581 - MicroPython driver for the Bosch BMP581 pressure & temperature sensor.
  • MicroPython_DPS310 - MicroPython Driver for the DPS310 Sensor.
  • MicroPython_ICP10111 - MicroPython Driver for the TDK ICP-10111 Barometric Pressure and Temperature sensor.

Battery

Biometric

  • micropython-fingerprint - MicroPython library for reading Grow and ZhianTec fingerprint sensors.
  • MAX30102-MicroPython-driver - A MAX30102 driver ported to MicroPython. It should also work for MAX30105.
  • max30102 - MicroPython driver for the MAX30102, with heartbeat detection and BPM measurement.

Camera

  • micropython-ov2640 - MicroPython class for OV2640 camera.
  • Nikon-Trigger-for-MicroPython - Remote trigger for a Nikon camera using an IR LED. For Pyboard v1.1.
  • micropython-camera-driver - OV2640 camera driver for MicroPython on ESP32.
  • esp32-cam-micropython - MicroPython ESP32-CAM.
  • uPyCam - Take a photo with an ESP32-CAM running MicroPython.
  • OV2640_uPy - OV2640 camera library for MicroPython.
  • MQTT-Cam - ESP32-CAM MicroPython MQTT AWS S3 Uploader.
  • huskylib - MicroPython driver for the DFRobot Husky Lens. An easy-to-use AI Camera / Vision Sensor, featuring face recognition, object tracking, object recognition, line tracking, color recognition, and QR code recognition.

Colour

Compass

Current

Distance IR

Distance Laser

Distance Ultrasonic

Dust

  • pyGP2Y - MicroPython library for the Sharp GP2Y1014AU0F Dust Sensor.

Energy

  • ATM90E26_Micropython - Driver for ATM90E26 energy metering device.
  • MCP39F521 - ESP8266 scripts for reading MCP39F521 power monitors.
  • micropython-p1meter - A ESP32 sensor to read a p1 electricity meter and publish this to MQTT and Home Assistant, written in MicroPython.
  • esp32-solar2 - Simple solar regulator - MicroPython project.
  • cs5490_micropython - MicroPython Driver for CS5490 Energy Monitor IC.

Gaseous

  • micropython-MQ - Drivers for MQ series gas sensors.
  • MQ135 - Driver for MQ135 gas sensor.
  • CCS811 - Basic MicroPython driver for CCS811 on ESP8266 boards.
  • micropython-scd30 - MicroPython I2C driver for Sensirion SCD30 CO2 sensor module.
  • MicroPython_SCD4X - MicroPython I2C driver for Sensirion SCD40 and SCD41 CO2 sensors.
  • micropython-sgp40 - MicroPython I2C driver for SGP40 VOC sensor module.
  • MICS6814-Micropython-driver - ESP32 MicroPython driver for the Pimoroni MICS6814 breakout board.
  • MicroPython_AGS02MA - MicroPython Driver for the AGS02MA TVOC sensor.
  • SCD4x - MicroPython module for work with SCD4x (SCD40, SCD41) low power CO2, temperature & humidity electroacoustic sensor from Sensirion.
  • ens160 - MicroPython module for work with ENS160 Digital Metal-Oxide Multi-Gas Sensor.

Humidity

Human Presence

  • ld2410 - 24GHz human presence sensing module, capable of detecting moving and stationary targets, and providing an approximate range.

Light

Magnetometer

Motion Inertial

Pressure

  • ms5803-micropython - A MicroPython implementation of the driver for an MS5803 pressure & temperature sensor.
  • MPL3115A2_MicroPython - MicroPython library for the MPL3115A2 altimeter.
  • MicroPython_MMR902 - MicroPython Driver for the Mitsumi MMR902 Micro Pressure Sensor.
  • MicroPython_MPL3115A2 - MicroPython driver for the NXP MPL3115A2 Pressure and Temperature sensor.
  • MicroPython_MS5611 - MicroPython Driver for the TE MS5611 Pressure and Temperature Sensor.
  • D6F-PH - MicroPython module for differential pressure sensor, D6F-PH (OMRON).

Proximity

  • uPy_APDS9960 - MicroPython proximity library for ESP8266 using APDS9960.
  • MicroPython_VCNL4010 - MicroPython Driver for the Vishay VCNL4010 Proximity and Ambient Light Sensor.
  • apds9960 - MicroPython Driver for the APDS9960, with simple gesture detection.

Radiation

Soil Moisture

  • micropython-chirp - Driver for the Chirp Soil Moisture Sensor.
  • MicroPython-MiFlora - Xiaomi Mi Flora (aka flower care) BLE plant sensors (soil moisture/conductivity/light intensity/temperature).
  • micropython-miflora - MicroPython library for Xiaomi Mi Flora BLE plant sensors.

Spectral

Temperature Analog

  • micropython-max31855 - Thermocouple amplifier, SPI interface.
  • max31856 - Precision thermocouple to digital converter with linearization, SPI interface.
  • mcp9700 - Generic MicroPython driver for MCP9700.
  • micropython-generic-thermistor - MicroPython Generic Thermistor Library for simplified temperature sensing using NTC thermistors with voltage dividors.

Temperature Digital

Temperature IR

Touch Capacitive

  • micropython-mpr121 - Driver for MPR121 capacitive touch keypads and breakout boards.
  • micropython-ttp223 - Examples using TTP223 capacitive touch module.
  • micropython-TTP229-BSF - MicroPython ESP8266/ESP32 driver for TTP229-BSF 16-key capacitive keypad in serial interface mode.
  • uFT6336U - MicroPython I2C driver for the Focus LCDs FT6336U capacitive touch panel controller IC.
  • MicroPythonTrill - Trill touch sensor library for MicroPython.
  • L58Touch - L58 Multi-Touch MicroPython Module.

Touch Resistive

Scheduling

  • micropython-mcron - MicroCRON is a time-based task scheduling program for MicroPython.
  • micropython-scron - SimpleCRON is a time-based task scheduling program inspired by the well-known cron program for Unix systems.
  • Schedule - A scheduler for asyncio based applications. Schedule events at specified times and dates or with reference to Sun and Moon rise and set.
  • micropython-aioschedule - A persistent uasyncio scheduler that supports deepsleep between task runs.

Storage

Configuration file

  • uPyftsConf - MicroPython Far Too Simple Config File. Single file library that writes configurations to itself.

Database

  • uPyMySQL - Pure MicroPython MySQL Client.
  • micropython-redis - A Redis client implementation designed for use with MicroPython.
  • picoredis - A very minimal Redis client (not only) for MicroPython.
  • micropg - PostgreSQL database driver for MicroPython.
  • micropg_lite - PostgreSQL database driver for MicroPython, based on micropg but aiming to require less memory with some compromises in functionality.
  • nmongo - MongoDB client for CPython and MicroPython, with MongoDB shell-like APIs.
  • MicroPyDatabase - A low-memory JSON-based database for MicroPython.
  • micropython-firebase-realtime-database - Firebase implementation for MicroPython optimized for ESP32.
  • micropython-firebase-firestore - Firebase Firestore implementation for MicroPython.
  • uSQLite - SQLite library module for MicroPython.

EEPROM

  • micropython_eeprom - Cross-platform MicroPython device drivers for memory chips (EEPROM, FRAM, Flash, PSRAM).
  • mb_24x256_512 - Very simple MicroPython module/driver for Microchip 24x256 and 24x512 I2C EEPROM devices.
  • micropython-eeprom - MicroPython driver for AT24Cxx EEPROM.

Flash

  • micropython_data_to_py - A Python 3 utility to convert an arbitrary binary file to Python source for freezing as bytecode in Flash.
  • micropython-winbond - Interact with Winbond W25Q Flash chips via SPI.
  • freezeFS - Create self-extracting compressed or self-mounting archives for MicroPython.

FRAM

PSRAM

  • mb_PSRAM_64Mb_SPI - Very simple MicroPython module to use a generic 64Mbit PSRAM (ie Adafruit 4677) with a Raspberry Pi Pico (RP2040).

SRAM

  • mb_23LC1024 - Very simple MicroPython module to use a Microchip 23LC1024 SPI SRAM with a Raspberry Pi Pico (RP2040).
  • mb_47x16 - Very simple MicroPython module/driver for Microchip 47x16 EERAM devices (47L/47C).

Threading

  • MicroWorkers - A micro workers class that easily manages a pool of threads to optimise simultaneous jobs and jobs endings, for MicroPython (used on Pycom modules & ESP32).

User Interface

  • upymenu - MicroPython Menu for LCD Displays.

Utilities

Community

Tutorials

Books

Frameworks

  • micrOS - MicroPython-based IoT Framework.
  • terkin-datalogger - Flexible data logger application for MicroPython and CPython.
  • perthensis - Perthensis: an asynchronous framework for MicroPython.
  • meerkat - I2C Data Acquisition for MicroPython and Raspberry Pi.

Resources

Development

Code Generation

Debugging

Firmware

IDEs

Logging

  • micropython-ulogger - Lightweight log module customized for MicroPython.
  • scd30logger - Sensirion SCD30 based CO2, Humidity and Temperature Logger for MicroPython.
  • sht15logger - MicroPython Temperature and Humidity Logger using Sensirion SHT15.

Shells

Jupyter

On Device

  • upy-shell - A simple command line-based shell for MicroPython.
  • Micropython-Editor - Small on-board editor for Pyboard, WiPy, ESP8266, ESP32, PyCom and Adafruit devices written in Python.

On Host

  • rshell - Copy or sync files to boards, enter REPL from your terminal.
  • ampy - Utility to interact with a MicroPython board over a serial connection.
  • mpbridge - A file system bridge to synchronize and manage files on a device running MicroPython.
  • mpfshell - A simple shell-based file explorer for ESP8266 and WiPy.
  • mpsync - A tool that automatically synchronizes code to a MicroPython board.
  • mpremote - Powerful official shell that supports mounting the host's current directory on the target. Run code without changing the target's filesystem.
  • MPRemoteEditor - A simple Windows IDE for developing with MicroPython MPRemote devices.
  • uPyExplorer - Explorer for MicroPython Device.
  • mpr - Wrapper for MicroPython mpremote tool.

Miscellaneous

Contributing

Contributions and suggestions are always welcome! Please take a look at the contribution guidelines first.

I will keep some pull requests open if I'm not sure whether those libraries are awesome, you could vote for them by adding 👍 to them.

awesome-micropython's People

Contributors

5roop avatar andypiper avatar askpatrickw avatar brainelectronics avatar carlosperate avatar cbrand avatar dmazzella avatar dsiggi avatar hilch avatar josverl avatar jphalip avatar jposada202020 avatar luiz-brandao avatar matthias-bs avatar mattytrentini avatar mcauser avatar mdaeron avatar orbin avatar peter-l5 avatar peterhinch avatar prcutler avatar rafaelaroca avatar redoxcode avatar scruss avatar spekulatius avatar stevesek avatar thilomichael avatar thinktransit avatar upesy avatar wooldoughnut310 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

awesome-micropython's Issues

Add mprsa

mprsa - A MicroPython module for creating, importing, and exporting RSA keys in DER and PEM formats with PKCS#1, PKCS#8, and X.509/SPKI structures, and signing/verifying and encryption/decryption using blinding and SHA-1 and SHA-256 hashing algorithms.

dead links in the micropyton display driver list

Hey, i am setting up a reference chart for micropython display drivers and unfortunately i came across some dead links on your website/github. Do you happen to have new sources for the drivers?

Controller  Type Typical display conn. Typ.res. Driver Library  Remark 
Dead link SSD1606  E-Paper active matrix epaper   128x180 micropython-ili9341
Dead link ILI9341 LCD TFT Medium lcd rgb 2.7”-3.2”      micropython-ili9341
Dead link SH1106 LCD TFT       micropython-ili9341
Dead link SSD1606 LCD TFT       micropython-ili9341
Dead link ST7735 LCD TFT       micropython-ili9341
Dead link PCD8544 OLED       micropython-oled
Dead link SH1106 OLED       micropython-oled
Dead link SSD1306 OLED       micropython-oled
Dead link UC1701X OLED       micropython-oled

Add Belay (Package Manager & computer-device communications)

I'd like to propose adding my project, Belay, to your list! I can open a PR, but I was unsure of what section to put it under. Belay is primarily 2 things:

Allows Easy Computer-Device Communications.

The following code, running on a computer (e.g. with CPython), will toggle an LED on a microcontroller board running micropython. Besides micropython, no prior pre-configuration is required.

import belay

device = belay.Device("/dev/ttyUSB0")


@device.task
def set_led(state):
    print(f"Printing from device; turning LED to {state}.")
    Pin(25, Pin.OUT).value(state)


set_led(True)

Package Manager

It's been a challenge to get repeatable deployments, and reliable dependency updates. I added a cli tool belay that is heavily inspired by Poetry.

Basically, micropython dependency URLs can be specified in pyproject.toml. Running belay update will fetch and cache those files into the .belay/ folder of your project (this should be committed to git and can be thought of like a lock file). The dependencies and project can then be installed to device via belay install [PORT]. Hashes of files are compared, so syncs are efficient when only a few changes are made. The CLI has a lot of other actions to aid in development and debugging, but this is the basic use-case.

Here's a very basic project that uses Belay for handling dependencies. Note that in this project, no explicit belay install needs to be performed since it's automatically handled within main.py. This also allows for pip-installable libraries/cli to bundle micropython code that can be automatically deployed to micropython microcontrollers.

[MicroPython-NeuralNetwork] - (https://gitlab.com/olivierlenoir/MicroPython-NeuralNetwork) - Neural Network for MicroPython

In category AI.

[MicroPython-NeuralNetwork] - (https://gitlab.com/olivierlenoir/MicroPython-NeuralNetwork) - Neural Network for MicroPython

README
Neural Network using an ESP32 with MicroPython

This repository require using Matrix:
https://gitlab.com/olivierlenoir/MicroPython-Matrix

PROCESS
1 - Train neural network with python
cd micropython
python3 test_neuralnetwork

2 - Use neuralnetwork with micropython
import utest_neuralnetwork

DOCUMENTATION
https://olivierlenoir.gitlab.io/MicroPython-NeuralNetwork/MicroPythonNeuralNetwork.pdf

ESP32 Micropython version

HI,
Very good web site for micropython examples but could you tell me what micropython firmware for ESP32 are you using ?

Sincerely
Eric

Micropython video+written tutorials

Two great sources of tutorials for Micropython:

  1. Miguel Grinberg's 6-part Micropython course. He also created the awesome Microdot library, which allows you to use a Flask-like expressive web framework in Micropython.
    https://blog.miguelgrinberg.com/post/micropython-and-the-internet-of-things-part-i-welcome
    https://github.com/miguelgrinberg/microdot

  2. Bi-weekly Micropython video+written tutorials (full disclosure: this is me...but the tutorials are free, so it's win-win :)
    https://bhave.sh

Suggestion: Set up a cron CI workflow to check links

Just a suggestion in case you are interested, on my Awesome list I run a workflow like this to check for dead links every morning:
https://github.com/carlosperate/awesome-microbit/blob/master/.github/workflows/check-links.yml

It uses a ruby-base awesome list tool instea of the more common awesome-lint, as I find some of the awesome-link rules a bit too strick and awesome_bot works well for my purposes.

The workflow file would likely Just Work™️ if it's copy/pasted, happy to submit a PR if it's something you'd like to integrate here as well.

Add HX710 driver

This is a driver for the HX710. https://github.com/QuirkyCort/IoTy/blob/main/public/extensions/hx710.py

It is very similar to the current drivers for HX711 (...and is readable using the HX711 drivers), but the HX710 has different settings and either a built-in temperature sensor (HX710A) or a Analog/Digital Voltage difference detector (HX710B).

This driver was written for the IoTy project (...a web-based blocks to Python system, similar to BIPES), so it doesn't have it's own repository.

Suggestion: SH1107 display driver with support for 128 x 128 pixel OLEDs

Besides support for 128 x 64 displays provided by the SH1107 driver already listed, this one also supports 128 x 128 displays. It works with I2C and SPI and provides for initialisation in different rotations, some optimisations for partial screen updates, and support for hardware features such as flipping the display upside down.

SH1107 - Micropython driver for SH1107-based OLED displays, both 128 x 128 and 128 x 64 pixels

Add mpbridge CLI tool

I'm maintainer of mpbridge CLI tool which helps MicroPython developers to develop and debug faster and easier. This tool can be integrated into any IDE and help you sync / run / debug project faster. It depends on mpremote which is officially maintained by MicroPython organization.

Add P10 32*16 LED panel display driver

I propose adding my project, LED Panel MicroPython Driver Module, to the Awesome MicroPython list.

This driver is designed for P10 32x16 single-color LED panel displays. I couldn't find an existing MicroPython driver for this module during my research, so I hope adding it to the Awesome MicroPython list would make it more accessible to others.

P10 Panel

Proposing a new section "Frameworks"

Dear Mike,

thanks for your awesome collection of MicroPython resources - and also thanks to all of the contributors.

We would like to add the Terkin Datalogger to the collection. However, it is not quite a library but would probably qualify as a "full program".

While thinking about that, the naming would be a bit awkward, so we came up with "Frameworks" which we believe would fit better. We have a strong background using the Pyramid web framework which could be seen as a role model for Terkin somehow - naturally on a much smaller scale ;].

Thanks already for looking into this. We wanted to humbly ask about your opinion on that before actually starting a pull request.

With kind regards,
Andreas.

Modbus slave: TCP and RTU

Hi!

Thanks for the great page.

I'm researching so much on the internet, including forum, and so on to find a Modbus TCP Server (slave) and Modbus RTU slave. But I will be happy if just one that slave (TCP or RTU) can be found :)

Do you know some project with that?

I found only this: https://github.com/sfera-labs/exo-sense-py-modbus Unfortunately that was wrote for the PyCom modules where their MicroPython is a bit different than official MicroPython, and that last commit has 2 years.
If will be not possible to find a project, do you know (more or less) if is easy to port that to Official MicroPython?
Ps: actually I'm using uasyncio on applications. So I would like to use the ModBus integrated with uasyncio as well.

Thank you so much.

there is no micro:bit section

the microbit rus so slowly that one wire protocol solution have to be written in arm thumb assembly language and won't easily port to other micropython boards even if there were the need for an assembly solution to getting a sensor to work.
With version 1 microbits there were issues with the size of program source, this is still the case with version 2, less than 20kb so the microbit version of a sensor is often rendered unreadable by minifying all function and variable names.

do you want to start a microbit section on your awesome list, this is a list i host?
https://github.com/rhubarbdog/microbit-component

Add micropython-generic-thermistor

Would you be willing to add my library to the ADC temperature sensor section?
Thanks!

micropython-generic-thermistor - Micropython Generic Thermistor Library is a basic software module designed to simplify temperature sensing using NTC thermistors within MicroPython-based projects. The library assumes a generic NTC thermistor on the ground side of a voltage divider.

Add social sharing / OpenGraph tags

Enhancement: could add og: and twitter:card meta tags to make Awesome MicroPython more awesome when the link is shared online.

(mostly logging this as a todo for myself to contribute / @mcauser consider me assigned!)

Add Husky Lens drivers

This is a driver for the DFRobot Husky Lens. https://github.com/QuirkyCort/IoTy/blob/main/public/extensions/huskylib.py

The Husky Lens (https://www.dfrobot.com/product-1922.html) is a camera module that can do some onboard machine vision tasks and returns the results in either UART or I2C mode.

The driver is based on the official Python API (https://github.com/HuskyLens/HUSKYLENSPython), but heavily modified to work with micropython and fix a few bugs.

This driver was written for the IoTy project (...a web-based blocks to Python system, similar to BIPES), so it doesn't have it's own repository.

mpsync - A tool that detects changes in files and synchronizes them to a micropython board

Hi,

I'm new to micropython and for my workflow I created a tool that detects changes to files in a specified folder and synchronizes them to a micropython board. That way, whenever you save your project, your board directly executes what you've just written.

The project is called mpsync, is licensed under the MIT license and can be downloaded via pip (pip install mpsync). It is in very early development and has definitely some missing features.

Maybe this tool is also helpful for other developers, so it would be great if it can be added to this list. I'm not sure under wich topic it would fit. It runs on the host, but is not really a shell.

Best,
Uhlo

Add VL53L1X driver

This is a driver for the VL53L1X. https://github.com/QuirkyCort/IoTy/blob/main/public/extensions/vl53l1x.py

Compared to the current driver listed on awesome-micropython, this one provides the ability to set distance mode and timing budget. This should allow better results in some cases, but I haven't played around with it enough to see a difference.

This driver was written for the IoTy project (...a web-based blocks to Python system, similar to BIPES), so it doesn't have it's own repository.

Add micropython-gy33 driver

This is a pair of UART and I2C driver for the GY-33 color sensor.

https://github.com/QuirkyCort/micropython-gy33

The GY-33 uses a TCS3472, but does not expose it by default. Instead, it has an onboard micro-controller (STM32F030F4) that handles reading of the sensor and provides a UART and I2C interface. The I2C interface is not compatible with drivers written for the TCS3472, so a separate driver is required.

I couldn't find any detailed English documentation for the GY33, so I've also provided documentation for it in the repository based on the Chinese docs and my own tests.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.