VL53L5CX Advanced I2C

Materials

Example

Introduction

This example shows how to use the SparkFun VL53L5CX Time-of-Flight sensor on AMB82 Mini and how to start a sensor with an alternate I2C address or Wire port.

Procedure

Connect the VL53L5CX to I2C_SDA and I2C_SCL of the board as shown in the diagram below.

../../../_images/image0136.png

Open the example in “File” -> “Examples” -> “AmebaWire” -> “VL53L5CX” -> “AdvancedI2C”.

../../../_images/image0236.png

Compile and run the example.

You can see that the sensor initializes at address 0x3C on the Wire1 port.

../../../_images/image0333.png