Working with sensors creates quite a few libraries. Some are written by me, others are adapted and even more are just used.
Example code for interfacing the Raspberrypi Pico
- Motors Control motors with the Raspberry Pi Pico
- Internal Temperature Sensor Read the internal temperature sensor with a loop!
Tips and tricks explaining some coding concepts or useful tools within the micropython ecosystem.
- Threading Threading on the Raspberrypi Pico. Allowing two while loops running at the same time!
- WatchDog Use the watchdog which reboots the Pico when something doesn't work!
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.
- LIS3DHTR Driver for the Grove - 3-Axis acceleromter for the Rasbperry Pi Pico.
- MSA301 Library for the Adafruit MSA301 accelerometer. I had to change the device address (from 0x26 into 0x62, else it did not work).
- SSD1306 Driver for the SSD1306 screens (works also with SSD1315).
- SPS30 Driver for the particulate matter sensor SPS30 for the Raspberry Pi Pico.
- SEN6x Driver for the environment sensor SEN66 and SEN63-C for the Raspberry Pi Pico.
- SGP30 Example code for interfacing the SGP30 VOC and eCO2 sensor.
- SGP40 Example code for interfacing the SGP40 VOC sensor.
- LTR390 Driver for the Ambient and UV light sensor LTR390 from Adafruit.
- AS7341 example code for the 10 band optical light sensor for measureing different colours.
- VL53L4CD Example code for the range (0-20cm) sensor.
- TLV493D Driver for the magnetometer TLV493D, based on the work from Adafruit and Maarten Doves.
- SHT4x Driver for the SHT4x Temperature and Humidity sensors. A bit outdated, but does still work.
- BME680 example code for the BME680 temperature, humidity and pressure sensor.
- CutebotPro MicroPython library for the CutebotPro with a Micro:bit running MicroPython.
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.