Skip to main content
FWerner
Associate
November 23, 2020
Solved

Must the I²C address of the VL53L3CX be changed after each restart of the unit?

  • November 23, 2020
  • 3 replies
  • 1400 views

I have 6 VL53L3CX sensors connected via the same I²C bus. For this reason, the I²C address of each sensor must be changed as described in the UM2778 User's Guide.

Does this procedure have to be carried out each time the device is restarted or disconnected from the power supply, or will the new address of the sensor be permanently saved?

Many thanks in advance.

This topic has been closed for replies.
Best answer by John E KVAM

There is no programmable ROM inside the sensor - so yes - you must change the addresses every time you boot if you have more than one sensor.

I know it's kind of a pain, but you only have to write the code once.

Sorry about that.

  • john

3 replies

Frak.1
Associate II
November 23, 2020

Hi,

If it is not included in the datasheet, just perform a fast test. Set address for one sensons, turn off the device. Then load new code without address initialization and try to talk with the sensor.

You can also write some precedure that starts at the beginnig of the code executions. It should try to talk with sensors for example get some values. If you can't get data, or data will be not received from some sensor, it means you have to perform initialization.

Regards

FWerner
FWernerAuthor
Associate
November 23, 2020

Hi,

thank you very much for your quick response.

The problem is that the sensors are SMD components and the circuit board to which they are soldered is not yet finished.

Therefore tests as you have described them are not possible at the moment. I will see if I can organize a breakout board to test them as you have described.

Regards 

John E KVAM
John E KVAMBest answer
ST Employee
November 23, 2020

There is no programmable ROM inside the sensor - so yes - you must change the addresses every time you boot if you have more than one sensor.

I know it's kind of a pain, but you only have to write the code once.

Sorry about that.

  • john

HElni.1
Associate II
December 8, 2020

Are you using the expansion board?