Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.