Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HowManyOliversAreThere/micropython-i2c-ultrasonic
A MicroPython driver for the RCWL-9620-based M5 I2C Ultrasonic Distance Unit
https://github.com/HowManyOliversAreThere/micropython-i2c-ultrasonic
Last synced: 3 months ago
JSON representation
A MicroPython driver for the RCWL-9620-based M5 I2C Ultrasonic Distance Unit
- Host: GitHub
- URL: https://github.com/HowManyOliversAreThere/micropython-i2c-ultrasonic
- Owner: HowManyOliversAreThere
- Created: 2023-02-22T11:18:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-02-22T12:58:18.000Z (over 1 year ago)
- Last Synced: 2024-04-22T12:36:06.416Z (7 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-micropython - micropython-i2c-ultrasonic - MicroPython driver for the RCWL-9620-based M5 I2C Ultrasonic Distance Unit. (Libraries / Sensors)
README
# MicroPython I2C Ultrasonic
This is a [MicroPython](https://micropython.org) driver for the [M5 Ultrasonic Distance Unit I2C (RCWL-9620)](https://shop.m5stack.com/products/ultrasonic-distance-unit-i2c-rcwl-9620).
The only feature is to read the distance, which is returned in milimetres. Note that the maximum read distance of the sensor is 4500 mm, and so a reading of this maximum value can be assumed to be incorrect.
## Installation
Using [mip via mpremote](https://docs.micropython.org/en/latest/reference/packages.html#installing-packages-with-mpremote):
```bash
mpremote mip install github:HowManyOliversAreThere/micropython-i2c-ultrasonic
```## Usage
See the `examples` folder for examples for MicroPython versions 1.11 and 1.19.