> For the complete documentation index, see [llms.txt](https://wiki.openelab.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.openelab.io/aiot/m5stack/m5stack-ultrasonic-distance-unit-i2c.md). Agents can also search and read this documentation through its [MCP server](https://wiki.openelab.io/~gitbook/mcp).

# M5Stack Ultrasonic Distance Unit I2C

{% hint style="info" %}
[**View M5Stack Ultrasonic I2C Unit RCWL-9620 Distance Measurement Sensor on OpenELAB**](https://openelab.io/products/ultrasonic-distance-unit)

**Store SKU / option:** `M5-U098-B1`. Match the purchased model and revision to the official reference below.
{% endhint %}

### M5Stack Ultrasonic Distance Unit I2C

***

### Product Link

{% embed url="<https://openelab.io/products/ultrasonic-distance-unit>" %}

### Description <a href="#description" id="description"></a>

**UNIT SONIC I2C** is an `I2C` interface ultrasonic distance sensor. This allows for easy I2C integration and multi-sensor operation using a single BUS, to save I/O resources. The module features an RCWL-9620 ultrasonic distance measurement chip with a 16mm probe, which the ranging accuracy can reach `2cm-450cm` (accuracy up to ±2%). It is ideal to apply in robotics obstacle avoidance, fluid level detection, and other applications that require you to perform measurements.

Note: When the measurement is more than 3.5m, there will be a slight delay in the response of the distance measurement data.

### Features <a href="#product-features" id="product-features"></a>

* RCWL-9620 Chip
* I2C communication interface (addr: 0x57)
* Measuring range: 2cm-450cm
* Protective housing
* Built-in temperature compensation, reduce the temperature drift
* Support UIFlow platform

### Application <a href="#application" id="application"></a>

* Robot Obstacle Avoidance
* Fluid Level Detection
* Sitting Posture Detection

### Specifications <a href="#specifications" id="specifications"></a>

| Specifications                   | Parameters       |
| -------------------------------- | ---------------- |
| Ultrasonic Ranging Single Chip   | RCWL-9620        |
| Range                            | 2cm-450cm        |
| Probe Specifications             | 16mm             |
| Receiving/Transmitting Frequency | 40KHz            |
| Receiving sensitivity            | -65dB            |
| Pointing angle                   | 60°              |
| Measurement accuracy             | ±2%              |
| Measurement period               | 50ms             |
| Working current                  | 2mA              |
| Net weight                       | 10g              |
| Gross weight                     | 25g              |
| Product size                     | 56 \* 24 \* 15mm |
| Packing size                     | 76 \* 47 \* 29mm |

![](https://static-cdn.m5stack.com/resource/docs/products/unit/sonic.i2c/sonic.i2c_04.webp) ![](https://static-cdn.m5stack.com/resource/docs/products/unit/sonic.i2c/sonic.i2c_05.webp) ![](https://static-cdn.m5stack.com/resource/docs/products/unit/sonic.i2c/sonic.i2c_06.webp)

### Pinout <a href="#pin-mapping" id="pin-mapping"></a>

* UNIT SONIC I2C

| M5CORE - PORT A | G21 | G22 | 5V  | GND |
| --------------- | --- | --- | --- | --- |
| UNIT SONIC I2C  | SDA | SCL | VCC | GND |

### Dimensions <a href="#module-size" id="module-size"></a>

<figure><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/products/unit/UNIT%20SONIC%20I2C/%E5%B0%BA%E5%AF%B8%E5%9B%BE.jpg" alt=""><figcaption></figcaption></figure>

### Example <a href="#example" id="example"></a>

#### Arduino <a href="#arduino" id="arduino"></a>

* [M5Unit-Sonic with M5Atom](https://github.com/m5stack/M5Unit-Sonic/blob/master/examples/Unit_SonicI2C_M5Atom/Unit_SonicI2C_M5Atom.ino)
* [M5Unit-Sonic with M5Core](https://github.com/m5stack/M5Unit-Sonic/blob/master/examples/Unit_SonicI2C_M5Core/Unit_SonicI2C_M5Core.ino)
* [M5Unit-Sonic with M5Core2](https://github.com/m5stack/M5Unit-Sonic/blob/master/examples/Unit_SonicI2C_M5Core2/Unit_SonicI2C_M5Core2.ino)
* [M5Unit-Sonic with M5StickC](https://github.com/m5stack/M5Unit-Sonic/blob/master/examples/Unit_SonicI2C_M5StickC/Unit_SonicI2C_M5StickC.ino)
* [M5Unit-Sonic with M5StickCPlus](https://github.com/m5stack/M5Unit-Sonic/blob/master/examples/Unit_SonicI2C_M5StickCPlus/Unit_SonicI2C_M5StickCPlus.ino)

## Official documentation and development resources

Use [Unit Ultrasonic-I2C](https://docs.m5stack.com/en/unit/Unit_Ultrasonic-I2C) for the manufacturer's complete model reference, diagrams and maintained examples. The official product code is **`U098-B1`**; match the board/Unit label before choosing a firmware or host example. The references below complement this guide's local instructions.

| Development need                                 | Model-specific reference                                                                                                                                                        |
| ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Mechanical / CAD files                           | [Read mechanical / cad files](https://github.com/m5stack/M5_Hardware/tree/master/Products/U098-B1_Unit_Ultrasonic-I2C/Structures)                                               |
| Mechanical / CAD files                           | [Read mechanical / cad files](https://github.com/m5stack/M5_Hardware/blob/master/Products/U098-B1_Unit_Ultrasonic-I2C/Structures/Unit_Ultrasonic-I2C.stl)                       |
| Arduino development tutorial                     | [Read arduino development tutorial](https://docs.m5stack.com/en/arduino/projects/unit/unit_ultrasonic_i2c)                                                                      |
| Example source: Unit\_SonicI2C\_M5Atom.ino       | [Read example source: unit\_sonici2c\_m5atom.ino](https://github.com/m5stack/M5Unit-Sonic/blob/master/examples/Unit_SonicI2C_M5Atom/Unit_SonicI2C_M5Atom.ino)                   |
| Example source: Unit\_SonicI2C\_M5Core.ino       | [Read example source: unit\_sonici2c\_m5core.ino](https://github.com/m5stack/M5Unit-Sonic/blob/master/examples/Unit_SonicI2C_M5Core/Unit_SonicI2C_M5Core.ino)                   |
| Example source: Unit\_SonicI2C\_M5Core2.ino      | [Read example source: unit\_sonici2c\_m5core2.ino](https://github.com/m5stack/M5Unit-Sonic/blob/master/examples/Unit_SonicI2C_M5Core2/Unit_SonicI2C_M5Core2.ino)                |
| Example source: Unit\_SonicI2C\_M5StickC.ino     | [Read example source: unit\_sonici2c\_m5stickc.ino](https://github.com/m5stack/M5Unit-Sonic/blob/master/examples/Unit_SonicI2C_M5StickC/Unit_SonicI2C_M5StickC.ino)             |
| Example source: Unit\_SonicI2C\_M5StickCPlus.ino | [Read example source: unit\_sonici2c\_m5stickcplus.ino](https://github.com/m5stack/M5Unit-Sonic/blob/master/examples/Unit_SonicI2C_M5StickCPlus/Unit_SonicI2C_M5StickCPlus.ino) |

Keep the example's host model, interface pins and dependency versions together when reproducing a result. A schematic or SDK link does not establish that another revision uses the same wiring. Official model pages and accessible tutorial links reviewed **23 November 2026**. Other downloads above are manufacturer-listed resources; listing a file is not a test of its contents. Compilation, firmware flashing and hardware operation were **not performed** in this review.
