https://github.com/ddland/micropython
MicroPython libraries I use or created
https://github.com/ddland/micropython
iot libraries micropython sensors
Last synced: about 2 months ago
JSON representation
MicroPython libraries I use or created
- Host: GitHub
- URL: https://github.com/ddland/micropython
- Owner: ddland
- Created: 2024-09-11T09:17:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-22T17:29:06.000Z (about 2 months ago)
- Last Synced: 2026-01-23T04:16:01.122Z (about 2 months ago)
- Topics: iot, libraries, micropython, sensors
- Language: Python
- Homepage:
- Size: 649 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MicroPython
Working with sensors creates quite a few libraries. Some are written by me, others are adapted and even more are just used.
# [Examples](examples/)
Example code for interfacing the Raspberrypi Pico
* [Motors](examples/motors/)
Control motors with the Raspberry Pi Pico
* [Internal Temperature Sensor](examples/read_temperature.py)
Read the internal temperature sensor with a loop!
# [Tips and Tricks](tips/)
Tips and tricks explaining some coding concepts or useful tools within the micropython ecosystem.
* [Threading](tips/threading)
Threading on the Raspberrypi Pico. Allowing two while loops running at the same time!
* [WatchDog](tips/watchdog.py)
Use the watchdog which reboots the Pico when something doesn't work!
# [Libraries](libraries/)
In the libraries subfolder there are submodules with my own modules. Here is a list of both my own code, drivers adapted from others code or links to drivers written by others.
## Acceleration
* [LIS3DHTR](https://github.com/ddland/mp_lis3dhtr)
Driver for the [Grove - 3-Axis acceleromter](https://wiki.seeedstudio.com/Grove-3-Axis-Digital-Accelerometer-LIS3DHTR/) for the Rasbperry Pi Pico.
* [MSA301](https://github.com/wojciech-szmyt/msa301-micropython-driver)
Library for the [Adafruit MSA301](https://learn.adafruit.com/msa301-triple-axis-accelerometer/overview) accelerometer. I had to change the device address (from 0x26 into 0x62, else it did not work).
## DAC (digital to analogue converter)
* [MCP4725](https://github.com/ddland/mp_mcp4725)
Driver for the [MCP4725](https://www.sparkfun.com/sparkfun-i2c-dac-breakout-mcp4725.html) DAC. Based on work from [Wayoda](https://github.com/wayoda/micropython-mcp4725).
## Display
* [SSD1306](https://github.com/stlehmann/micropython-ssd1306)
Library for the SSD1306 screens (works also with SSD1315).
## Environment
* [SPS30](https://github.com/ddland/mp_sps30)
Driver for the [SPS30](https://sensirion.com/products/catalog/SPS30) for the Raspberry Pi Pico.
* [SEN66](https://github.com/ddland/mp_sen66)
Driver for the [SEN66](https://sensirion.com/products/catalog/SEN66) for the Raspberry Pi Pico.
* [TLV493D](https://github.com/ddland/mp_tlv493d)
Driver for the [TLV493D](https://learn.adafruit.com/adafruit-tlv493-triple-axis-magnetometer), based on the work from [Adafruit](https://learn.adafruit.com/) and [Maarten Doves](https://github.com/MDoves).
* [SHT45](https://github.com/jposada202020/MicroPython_SHT4X/tree/master)
* Driver for the SHT5x Temperature and Humidity sensors. A bit outdated, but does still work.
## Other
* [CutebotPro](https://github.com/ddland/mp_cutebotpro)
MicroPython library for the [CutebotPro](https://shop.elecfreaks.com/products/elecfreaks-smart-cutebot-pro-v2-programming-robot-car-for-micro-bit) with a [Micro:bit](https://microbit.org) running MicroPython.
# Git Submodules
If you want all submodules when this repository is cloned use
```
git clone --recurse-submodules
```
All data from the submodules will be pulled to their respective directories.