Connecting two VL53L5CX sensors to Artemis Thing Plus

Hello (this is my very first post),

I’ve been playing around with the VL53L5CX sensor and I have a use case where I will need two of these sensors connected roughly 1 meter apart.

Basically this configuration but with 50cm Qwiic cables connecting the sensors instead:

When I load the Arduino example sketch for two sensors I can see these comments:

SparkFun_VL53L5CX myImager1;
int sensorAddress1 = 0x44; //New address of unit without a wire. Valid: 0x08 <= address <= 0x77
int sensorReset1 = 14; //GPIO that is connected to the Reset pin on sensor 1
VL53L5CX_ResultsData measurementData1;

SparkFun_VL53L5CX myImager2;
int sensorAddress2 = 0x29; //Default VL53L5CX - this is the unit we'll hold in reset (has the wire soldered)
int sensorReset2 = 13; //GPIO that is connected to the Reset pin on sensor 2
VL53L5CX_ResultsData measurementData2;

But I have no idea which wires it is referring to. :? I suppose it’s the I2C traces mentioned on https://learn.sparkfun.com/tutorials/qw … e-overview?

Can someone give me some guidance on what I need to do to get this example working?

Thanks!

The default address is 0x29 (shifted left for the read/write byte becomes 0x52)

In the Sparkfun VL53l5CX library documents folder look for the document um2884-a-guide-to-using-the-vl53l5cx.pdf. in chapter 2.2 of that document, it describes the sequence to change the default address. The “wire” in the sketch is connected to the LPn pin.

Coussion: it is not clear to me however whether that new address is permanent / sustained after power down or whether it refers back to default.

I expect it is easier to connect only ONE VL53L5CX and then use the Sparkfun library call like ```
measurementData1.setAddress(0x44)